blob: 4f30b109bf6ee26a21e25aa2ea94ae6b55e7006c [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy4c08aed2011-07-01 19:47:50 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.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'
cristy4c08aed2011-07-01 19:47:50 +0000576PACKAGE_TARNAME='ImageMagick-7.0.0'
577PACKAGE_VERSION='7.0.0'
578PACKAGE_STRING='ImageMagick 7.0.0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
756OPENEXR_DELEGATE_FALSE
757OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000758OPENEXR_LIBS
759OPENEXR_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000760LZMA_LIBS
cristyfbb0ef02010-12-19 02:32:11 +0000761LZMA_DELEGATE_FALSE
762LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000763LQR_DELEGATE_FALSE
764LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765LQR_LIBS
766LQR_CFLAGS
767LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768LCMS_DELEGATE_FALSE
769LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000771JP2_DELEGATE_FALSE
772JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774JPEG_DELEGATE_FALSE
775JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JBIG_DELEGATE_FALSE
778JBIG_DELEGATE_TRUE
779GVC_DELEGATE_FALSE
780GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781GVC_LIBS
782GVC_CFLAGS
783GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784GS_DELEGATE_FALSE
785GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FREETYPE_DELEGATE_FALSE
788FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000789freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000790FONTCONFIG_DELEGATE_FALSE
791FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FONTCONFIG_LIBS
793FONTCONFIG_CFLAGS
794FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FPX_DELEGATE_FALSE
796FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798FFTW_DELEGATE_FALSE
799FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801DJVU_DELEGATE_FALSE
802DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804DPS_DELEGATE_FALSE
805DPS_DELEGATE_TRUE
806AUTOTRACE_DELEGATE_FALSE
807AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808AUTOTRACE_LIBS
809AUTOTRACE_CFLAGS
810LIB_DL
811ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812ZLIB_DELEGATE_FALSE
813ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814XEXT_LIBS
815X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816X11_DELEGATE_FALSE
817X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818X_EXTRA_LIBS
819X_LIBS
820X_PRE_LIBS
821X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000822XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000823BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824BZLIB_DELEGATE_FALSE
825BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826CCMALLOCDelegate
827UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828HasUMEM_FALSE
829HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830THREAD_LIBS
831GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832WITH_MAGICK_PLUS_PLUS_FALSE
833WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000835MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000836POW_LIB
837LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000838UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000839UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000840UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000841UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000842UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000843UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000844INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000845INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000846UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000848INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000849INT32_T
850UINT16_T
851INT16_T
852UINT8_T
853INT8_T
854LIBRARY_EXTRA_CPPFLAGS
855MODULE_EXTRA_CPPFLAGS
856LIBSTDCLDFLAGS
857PERL_MAKE_OPTIONS
858QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000859MAINT
860MAINTAINER_MODE_FALSE
861MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862MAGICK_HDRI
863DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
866WITH_MODULES_FALSE
867WITH_MODULES_TRUE
868WITH_SHARED_LIBS_FALSE
869WITH_SHARED_LIBS_TRUE
870LTDLOPEN
871LT_CONFIG_H
872CONVENIENCE_LTDL_FALSE
873CONVENIENCE_LTDL_TRUE
874INSTALL_LTDL_FALSE
875INSTALL_LTDL_TRUE
876ARGZ_H
877sys_symbol_underscore
878LIBADD_DL
879LT_DLPREOPEN
880LIBADD_DLD_LINK
881LIBADD_SHL_LOAD
882LIBADD_DLOPEN
883LT_DLLOADERS
884INCLTDL
885LTDLINCL
886LTDLDEPS
887LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000888LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000889CXXCPP
890OTOOL64
891OTOOL
892LIPO
893NMEDIT
894DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000895MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000896RANLIB
cristyda16f162011-02-19 23:52:17 +0000897ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000898AR
899NM
900ac_ct_DUMPBIN
901DUMPBIN
902LIBTOOL
903OBJDUMP
904DLLTOOL
905AS
cristy3ed852e2009-09-05 21:47:34 +0000906LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000907CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000908CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000909OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000910PTHREAD_CFLAGS
911PTHREAD_LIBS
912PTHREAD_CC
913ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000914WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000915USING_CL_FALSE
916USING_CL_TRUE
917CYGWIN_BUILD_FALSE
918CYGWIN_BUILD_TRUE
919WIN32_NATIVE_BUILD_FALSE
920WIN32_NATIVE_BUILD_TRUE
921WINGDI32_DELEGATE_FALSE
922WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000923GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000924PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000925LN_S
cristy3ed852e2009-09-05 21:47:34 +0000926LD
cristy73bd4a52010-10-05 11:24:23 +0000927FGREP
928SED
929am__fastdepCXX_FALSE
930am__fastdepCXX_TRUE
931CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000932ac_ct_CXX
933CXXFLAGS
934CXX
cristya0b81c32010-01-22 02:54:33 +0000935EGREP
936GREP
937CPP
cristy73bd4a52010-10-05 11:24:23 +0000938am__fastdepCC_FALSE
939am__fastdepCC_TRUE
940CCDEPMODE
941AMDEPBACKSLASH
942AMDEP_FALSE
943AMDEP_TRUE
944am__quote
945am__include
946DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000947OBJEXT
948EXEEXT
949ac_ct_CC
950CPPFLAGS
951LDFLAGS
952CFLAGS
953CC
954DIRSEP
955MAGICK_FILTER_MODULE_PATH
956MAGICK_CONFIGURE_BUILD_PATH
957MAGICK_CONFIGURE_SRC_PATH
958MAGICK_CODER_MODULE_PATH
959MAN_DIR
960INFO_DIR
961PERSISTINCLUDE_DIR
962INCLUDE_DIR
963LIB_DIR
964LOCALSTATE_DIR
965SHAREDSTATE_DIR
966SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000967DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000968DATA_DIR
969LIBEXEC_DIR
970SBIN_DIR
971BIN_DIR
972EXEC_PREFIX_DIR
973PREFIX_DIR
974CONFIG_STATUS_DEPENDENCIES
975MAGICK_LIB_VERSION_NUMBER
976MAGICK_LIB_VERSION_TEXT
977MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000978AM_BACKSLASH
979AM_DEFAULT_VERBOSITY
980am__untar
981am__tar
982AMTAR
983am__leading_dot
984SET_MAKE
985AWK
986mkdir_p
987MKDIR_P
988INSTALL_STRIP_PROGRAM
989STRIP
990install_sh
991MAKEINFO
992AUTOHEADER
993AUTOMAKE
994AUTOCONF
995ACLOCAL
996VERSION
997PACKAGE
998CYGPATH_W
999am__isrc
1000INSTALL_DATA
1001INSTALL_SCRIPT
1002INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001003PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001004PACKAGE_RELEASE_DATE
1005PACKAGE_LIB_VERSION_NUMBER
1006PACKAGE_LIB_VERSION
1007PACKAGE_CHANGE_DATE
1008PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001009PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001010MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001011MAGICK_LIBRARY_VERSION_INFO
1012MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001013MAGICK_LIBRARY_AGE
1014MAGICK_LIBRARY_REVISION
1015MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001016MAGICK_TARGET_OS
1017MAGICK_TARGET_VENDOR
1018MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001019target_os
1020target_vendor
1021target_cpu
1022target
1023host_os
1024host_vendor
1025host_cpu
1026host
1027build_os
1028build_vendor
1029build_cpu
1030build
1031CONFIGURE_ARGS
1032DISTCHECK_CONFIG_FLAGS
1033target_alias
1034host_alias
1035build_alias
1036LIBS
1037ECHO_T
1038ECHO_N
1039ECHO_C
1040DEFS
1041mandir
1042localedir
1043libdir
1044psdir
1045pdfdir
1046dvidir
1047htmldir
1048infodir
1049docdir
1050oldincludedir
1051includedir
1052localstatedir
1053sharedstatedir
1054sysconfdir
1055datadir
1056datarootdir
1057libexecdir
1058sbindir
1059bindir
1060program_transform_name
1061prefix
1062exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001063PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001064PACKAGE_BUGREPORT
1065PACKAGE_STRING
1066PACKAGE_VERSION
1067PACKAGE_TARNAME
1068PACKAGE_NAME
1069PATH_SEPARATOR
1070SHELL'
1071ac_subst_files=''
1072ac_user_opts='
1073enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001074enable_silent_rules
1075enable_dependency_tracking
1076with_gnu_ld
1077with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001078enable_bounds_checking
1079enable_osx_universal_binary
1080with_threads
1081enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001082enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001083enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001084enable_shared
1085enable_static
1086with_pic
1087enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001088with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001089enable_libtool_lock
1090with_included_ltdl
1091with_ltdl_include
1092with_ltdl_lib
1093enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001094with_modules
1095enable_delegate_build
1096enable_deprecated
1097enable_installed
1098enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001099enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001100enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001101enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001102enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001103enable_ccmalloc
1104enable_efence
1105enable_prof
1106enable_gprof
1107enable_gcov
1108with_method_prefix
1109with_quantum_depth
1110with_cache
1111with_frozenpaths
1112with_magick_plus_plus
1113with_perl
1114with_perl_options
1115with_umem
1116with_libstdc
1117with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001118with_x
cristy3ed852e2009-09-05 21:47:34 +00001119with_zlib
1120with_autotrace
1121with_dps
1122with_djvu
cristy430a7312010-01-21 20:44:04 +00001123with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001124with_fftw
1125with_fpx
1126with_fontconfig
1127with_freetype
1128with_gslib
1129with_fontpath
1130with_gs_font_dir
1131with_gvc
1132with_jbig
1133with_jpeg
1134with_jp2
1135with_lcms
cristy71203402010-06-18 13:12:03 +00001136with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001137with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001138with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001139with_openexr
1140with_png
1141with_rsvg
1142with_tiff
cristyb1860752011-03-14 00:27:46 +00001143with_webp
cristy3ed852e2009-09-05 21:47:34 +00001144with_windows_font_dir
1145with_wmf
1146with_xml
1147'
1148 ac_precious_vars='build_alias
1149host_alias
1150target_alias
1151CC
1152CFLAGS
1153LDFLAGS
1154LIBS
1155CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001156CPP
cristy3ed852e2009-09-05 21:47:34 +00001157CXX
1158CXXFLAGS
1159CCC
cristy73bd4a52010-10-05 11:24:23 +00001160PKG_CONFIG
1161CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001162XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001163AUTOTRACE_CFLAGS
1164AUTOTRACE_LIBS
1165FONTCONFIG_CFLAGS
1166FONTCONFIG_LIBS
1167GVC_CFLAGS
1168GVC_LIBS
1169LQR_CFLAGS
1170LQR_LIBS
1171OPENEXR_CFLAGS
1172OPENEXR_LIBS
1173RSVG_CFLAGS
1174RSVG_LIBS
1175CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001176CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001177
1178
1179# Initialize some variables set by options.
1180ac_init_help=
1181ac_init_version=false
1182ac_unrecognized_opts=
1183ac_unrecognized_sep=
1184# The variables have the same names as the options, with
1185# dashes changed to underlines.
1186cache_file=/dev/null
1187exec_prefix=NONE
1188no_create=
1189no_recursion=
1190prefix=NONE
1191program_prefix=NONE
1192program_suffix=NONE
1193program_transform_name=s,x,x,
1194silent=
1195site=
1196srcdir=
1197verbose=
1198x_includes=NONE
1199x_libraries=NONE
1200
1201# Installation directory options.
1202# These are left unexpanded so users can "make install exec_prefix=/foo"
1203# and all the variables that are supposed to be based on exec_prefix
1204# by default will actually change.
1205# Use braces instead of parens because sh, perl, etc. also accept them.
1206# (The list follows the same order as the GNU Coding Standards.)
1207bindir='${exec_prefix}/bin'
1208sbindir='${exec_prefix}/sbin'
1209libexecdir='${exec_prefix}/libexec'
1210datarootdir='${prefix}/share'
1211datadir='${datarootdir}'
1212sysconfdir='${prefix}/etc'
1213sharedstatedir='${prefix}/com'
1214localstatedir='${prefix}/var'
1215includedir='${prefix}/include'
1216oldincludedir='/usr/include'
1217docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1218infodir='${datarootdir}/info'
1219htmldir='${docdir}'
1220dvidir='${docdir}'
1221pdfdir='${docdir}'
1222psdir='${docdir}'
1223libdir='${exec_prefix}/lib'
1224localedir='${datarootdir}/locale'
1225mandir='${datarootdir}/man'
1226
1227ac_prev=
1228ac_dashdash=
1229for ac_option
1230do
1231 # If the previous option needs an argument, assign it.
1232 if test -n "$ac_prev"; then
1233 eval $ac_prev=\$ac_option
1234 ac_prev=
1235 continue
1236 fi
1237
1238 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001239 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1240 *=) ac_optarg= ;;
1241 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001242 esac
1243
1244 # Accept the important Cygnus configure options, so we can diagnose typos.
1245
1246 case $ac_dashdash$ac_option in
1247 --)
1248 ac_dashdash=yes ;;
1249
1250 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1251 ac_prev=bindir ;;
1252 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1253 bindir=$ac_optarg ;;
1254
1255 -build | --build | --buil | --bui | --bu)
1256 ac_prev=build_alias ;;
1257 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1258 build_alias=$ac_optarg ;;
1259
1260 -cache-file | --cache-file | --cache-fil | --cache-fi \
1261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1262 ac_prev=cache_file ;;
1263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1265 cache_file=$ac_optarg ;;
1266
1267 --config-cache | -C)
1268 cache_file=config.cache ;;
1269
1270 -datadir | --datadir | --datadi | --datad)
1271 ac_prev=datadir ;;
1272 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1273 datadir=$ac_optarg ;;
1274
1275 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1276 | --dataroo | --dataro | --datar)
1277 ac_prev=datarootdir ;;
1278 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1279 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1280 datarootdir=$ac_optarg ;;
1281
1282 -disable-* | --disable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001286 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"enable_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval enable_$ac_useropt=no ;;
1297
1298 -docdir | --docdir | --docdi | --doc | --do)
1299 ac_prev=docdir ;;
1300 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1301 docdir=$ac_optarg ;;
1302
1303 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1304 ac_prev=dvidir ;;
1305 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1306 dvidir=$ac_optarg ;;
1307
1308 -enable-* | --enable-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001312 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"enable_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval enable_$ac_useropt=\$ac_optarg ;;
1323
1324 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1325 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1326 | --exec | --exe | --ex)
1327 ac_prev=exec_prefix ;;
1328 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1329 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1330 | --exec=* | --exe=* | --ex=*)
1331 exec_prefix=$ac_optarg ;;
1332
1333 -gas | --gas | --ga | --g)
1334 # Obsolete; use --with-gas.
1335 with_gas=yes ;;
1336
1337 -help | --help | --hel | --he | -h)
1338 ac_init_help=long ;;
1339 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1340 ac_init_help=recursive ;;
1341 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1342 ac_init_help=short ;;
1343
1344 -host | --host | --hos | --ho)
1345 ac_prev=host_alias ;;
1346 -host=* | --host=* | --hos=* | --ho=*)
1347 host_alias=$ac_optarg ;;
1348
1349 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1350 ac_prev=htmldir ;;
1351 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1352 | --ht=*)
1353 htmldir=$ac_optarg ;;
1354
1355 -includedir | --includedir | --includedi | --included | --include \
1356 | --includ | --inclu | --incl | --inc)
1357 ac_prev=includedir ;;
1358 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1359 | --includ=* | --inclu=* | --incl=* | --inc=*)
1360 includedir=$ac_optarg ;;
1361
1362 -infodir | --infodir | --infodi | --infod | --info | --inf)
1363 ac_prev=infodir ;;
1364 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1365 infodir=$ac_optarg ;;
1366
1367 -libdir | --libdir | --libdi | --libd)
1368 ac_prev=libdir ;;
1369 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1370 libdir=$ac_optarg ;;
1371
1372 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1373 | --libexe | --libex | --libe)
1374 ac_prev=libexecdir ;;
1375 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1376 | --libexe=* | --libex=* | --libe=*)
1377 libexecdir=$ac_optarg ;;
1378
1379 -localedir | --localedir | --localedi | --localed | --locale)
1380 ac_prev=localedir ;;
1381 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1382 localedir=$ac_optarg ;;
1383
1384 -localstatedir | --localstatedir | --localstatedi | --localstated \
1385 | --localstate | --localstat | --localsta | --localst | --locals)
1386 ac_prev=localstatedir ;;
1387 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1388 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1389 localstatedir=$ac_optarg ;;
1390
1391 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1392 ac_prev=mandir ;;
1393 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1394 mandir=$ac_optarg ;;
1395
1396 -nfp | --nfp | --nf)
1397 # Obsolete; use --without-fp.
1398 with_fp=no ;;
1399
1400 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1401 | --no-cr | --no-c | -n)
1402 no_create=yes ;;
1403
1404 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1405 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1406 no_recursion=yes ;;
1407
1408 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1409 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1410 | --oldin | --oldi | --old | --ol | --o)
1411 ac_prev=oldincludedir ;;
1412 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1413 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1414 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1415 oldincludedir=$ac_optarg ;;
1416
1417 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1418 ac_prev=prefix ;;
1419 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1420 prefix=$ac_optarg ;;
1421
1422 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1423 | --program-pre | --program-pr | --program-p)
1424 ac_prev=program_prefix ;;
1425 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1426 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1427 program_prefix=$ac_optarg ;;
1428
1429 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1430 | --program-suf | --program-su | --program-s)
1431 ac_prev=program_suffix ;;
1432 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1433 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1434 program_suffix=$ac_optarg ;;
1435
1436 -program-transform-name | --program-transform-name \
1437 | --program-transform-nam | --program-transform-na \
1438 | --program-transform-n | --program-transform- \
1439 | --program-transform | --program-transfor \
1440 | --program-transfo | --program-transf \
1441 | --program-trans | --program-tran \
1442 | --progr-tra | --program-tr | --program-t)
1443 ac_prev=program_transform_name ;;
1444 -program-transform-name=* | --program-transform-name=* \
1445 | --program-transform-nam=* | --program-transform-na=* \
1446 | --program-transform-n=* | --program-transform-=* \
1447 | --program-transform=* | --program-transfor=* \
1448 | --program-transfo=* | --program-transf=* \
1449 | --program-trans=* | --program-tran=* \
1450 | --progr-tra=* | --program-tr=* | --program-t=*)
1451 program_transform_name=$ac_optarg ;;
1452
1453 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1454 ac_prev=pdfdir ;;
1455 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1456 pdfdir=$ac_optarg ;;
1457
1458 -psdir | --psdir | --psdi | --psd | --ps)
1459 ac_prev=psdir ;;
1460 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1461 psdir=$ac_optarg ;;
1462
1463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464 | -silent | --silent | --silen | --sile | --sil)
1465 silent=yes ;;
1466
1467 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1468 ac_prev=sbindir ;;
1469 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1470 | --sbi=* | --sb=*)
1471 sbindir=$ac_optarg ;;
1472
1473 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1474 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1475 | --sharedst | --shareds | --shared | --share | --shar \
1476 | --sha | --sh)
1477 ac_prev=sharedstatedir ;;
1478 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1479 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1480 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1481 | --sha=* | --sh=*)
1482 sharedstatedir=$ac_optarg ;;
1483
1484 -site | --site | --sit)
1485 ac_prev=site ;;
1486 -site=* | --site=* | --sit=*)
1487 site=$ac_optarg ;;
1488
1489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1490 ac_prev=srcdir ;;
1491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1492 srcdir=$ac_optarg ;;
1493
1494 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1495 | --syscon | --sysco | --sysc | --sys | --sy)
1496 ac_prev=sysconfdir ;;
1497 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1498 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1499 sysconfdir=$ac_optarg ;;
1500
1501 -target | --target | --targe | --targ | --tar | --ta | --t)
1502 ac_prev=target_alias ;;
1503 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1504 target_alias=$ac_optarg ;;
1505
1506 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1507 verbose=yes ;;
1508
1509 -version | --version | --versio | --versi | --vers | -V)
1510 ac_init_version=: ;;
1511
1512 -with-* | --with-*)
1513 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1514 # Reject names that are not valid shell variable names.
1515 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001516 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001517 ac_useropt_orig=$ac_useropt
1518 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1519 case $ac_user_opts in
1520 *"
1521"with_$ac_useropt"
1522"*) ;;
1523 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1524 ac_unrecognized_sep=', ';;
1525 esac
1526 eval with_$ac_useropt=\$ac_optarg ;;
1527
1528 -without-* | --without-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001532 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1536 *"
1537"with_$ac_useropt"
1538"*) ;;
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1541 esac
1542 eval with_$ac_useropt=no ;;
1543
1544 --x)
1545 # Obsolete; use --with-x.
1546 with_x=yes ;;
1547
1548 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1549 | --x-incl | --x-inc | --x-in | --x-i)
1550 ac_prev=x_includes ;;
1551 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1552 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1553 x_includes=$ac_optarg ;;
1554
1555 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1556 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1557 ac_prev=x_libraries ;;
1558 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1559 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1560 x_libraries=$ac_optarg ;;
1561
cristy98dddb52010-11-04 00:30:15 +00001562 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1563Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001564 ;;
1565
1566 *=*)
1567 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1568 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001569 case $ac_envvar in #(
1570 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001571 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001572 esac
cristy3ed852e2009-09-05 21:47:34 +00001573 eval $ac_envvar=\$ac_optarg
1574 export $ac_envvar ;;
1575
1576 *)
1577 # FIXME: should be removed in autoconf 3.0.
1578 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1579 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1580 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001581 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001582 ;;
1583
1584 esac
1585done
1586
1587if test -n "$ac_prev"; then
1588 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001590fi
1591
1592if test -n "$ac_unrecognized_opts"; then
1593 case $enable_option_checking in
1594 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001595 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001596 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1597 esac
1598fi
1599
1600# Check all directory arguments for consistency.
1601for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1602 datadir sysconfdir sharedstatedir localstatedir includedir \
1603 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1604 libdir localedir mandir
1605do
1606 eval ac_val=\$$ac_var
1607 # Remove trailing slashes.
1608 case $ac_val in
1609 */ )
1610 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1611 eval $ac_var=\$ac_val;;
1612 esac
1613 # Be sure to have absolute directory names.
1614 case $ac_val in
1615 [\\/$]* | ?:[\\/]* ) continue;;
1616 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1617 esac
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001619done
1620
1621# There might be people who depend on the old broken behavior: `$host'
1622# used to hold the argument of --host etc.
1623# FIXME: To remove some day.
1624build=$build_alias
1625host=$host_alias
1626target=$target_alias
1627
1628# FIXME: To remove some day.
1629if test "x$host_alias" != x; then
1630 if test "x$build_alias" = x; then
1631 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001632 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1633 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001634 elif test "x$build_alias" != "x$host_alias"; then
1635 cross_compiling=yes
1636 fi
1637fi
1638
1639ac_tool_prefix=
1640test -n "$host_alias" && ac_tool_prefix=$host_alias-
1641
1642test "$silent" = yes && exec 6>/dev/null
1643
1644
1645ac_pwd=`pwd` && test -n "$ac_pwd" &&
1646ac_ls_di=`ls -di .` &&
1647ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001648 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001649test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001650 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001651
1652
1653# Find the source files, if location was not specified.
1654if test -z "$srcdir"; then
1655 ac_srcdir_defaulted=yes
1656 # Try the directory containing this script, then the parent directory.
1657 ac_confdir=`$as_dirname -- "$as_myself" ||
1658$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1659 X"$as_myself" : 'X\(//\)[^/]' \| \
1660 X"$as_myself" : 'X\(//\)$' \| \
1661 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1662$as_echo X"$as_myself" |
1663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1664 s//\1/
1665 q
1666 }
1667 /^X\(\/\/\)[^/].*/{
1668 s//\1/
1669 q
1670 }
1671 /^X\(\/\/\)$/{
1672 s//\1/
1673 q
1674 }
1675 /^X\(\/\).*/{
1676 s//\1/
1677 q
1678 }
1679 s/.*/./; q'`
1680 srcdir=$ac_confdir
1681 if test ! -r "$srcdir/$ac_unique_file"; then
1682 srcdir=..
1683 fi
1684else
1685 ac_srcdir_defaulted=no
1686fi
1687if test ! -r "$srcdir/$ac_unique_file"; then
1688 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001689 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001690fi
1691ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1692ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001693 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001694 pwd)`
1695# When building in place, set srcdir=.
1696if test "$ac_abs_confdir" = "$ac_pwd"; then
1697 srcdir=.
1698fi
1699# Remove unnecessary trailing slashes from srcdir.
1700# Double slashes in file names in object file debugging info
1701# mess up M-x gdb in Emacs.
1702case $srcdir in
1703*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1704esac
1705for ac_var in $ac_precious_vars; do
1706 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1707 eval ac_env_${ac_var}_value=\$${ac_var}
1708 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1709 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1710done
1711
1712#
1713# Report the --help message.
1714#
1715if test "$ac_init_help" = "long"; then
1716 # Omit some internal or obsolete options to make the list less imposing.
1717 # This message is too long to be a string in the A/UX 3.1 sh.
1718 cat <<_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00001719\`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001720
1721Usage: $0 [OPTION]... [VAR=VALUE]...
1722
1723To assign environment variables (e.g., CC, CFLAGS...), specify them as
1724VAR=VALUE. See below for descriptions of some of the useful variables.
1725
1726Defaults for the options are specified in brackets.
1727
1728Configuration:
1729 -h, --help display this help and exit
1730 --help=short display options specific to this package
1731 --help=recursive display the short help of all the included packages
1732 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001733 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001734 --cache-file=FILE cache test results in FILE [disabled]
1735 -C, --config-cache alias for \`--cache-file=config.cache'
1736 -n, --no-create do not create output files
1737 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1738
1739Installation directories:
1740 --prefix=PREFIX install architecture-independent files in PREFIX
1741 [$ac_default_prefix]
1742 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1743 [PREFIX]
1744
1745By default, \`make install' will install all the files in
1746\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1747an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1748for instance \`--prefix=\$HOME'.
1749
1750For better control, use the options below.
1751
1752Fine tuning of the installation directories:
1753 --bindir=DIR user executables [EPREFIX/bin]
1754 --sbindir=DIR system admin executables [EPREFIX/sbin]
1755 --libexecdir=DIR program executables [EPREFIX/libexec]
1756 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1757 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1758 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1759 --libdir=DIR object code libraries [EPREFIX/lib]
1760 --includedir=DIR C header files [PREFIX/include]
1761 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1762 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1763 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1764 --infodir=DIR info documentation [DATAROOTDIR/info]
1765 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1766 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001767 --docdir=DIR documentation root
cristy4c08aed2011-07-01 19:47:50 +00001768 [DATAROOTDIR/doc/ImageMagick-7.0.0]
cristy3ed852e2009-09-05 21:47:34 +00001769 --htmldir=DIR html documentation [DOCDIR]
1770 --dvidir=DIR dvi documentation [DOCDIR]
1771 --pdfdir=DIR pdf documentation [DOCDIR]
1772 --psdir=DIR ps documentation [DOCDIR]
1773_ACEOF
1774
1775 cat <<\_ACEOF
1776
cristy73bd4a52010-10-05 11:24:23 +00001777Program names:
1778 --program-prefix=PREFIX prepend PREFIX to installed program names
1779 --program-suffix=SUFFIX append SUFFIX to installed program names
1780 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1781
cristy3ed852e2009-09-05 21:47:34 +00001782X features:
1783 --x-includes=DIR X include files are in DIR
1784 --x-libraries=DIR X library files are in DIR
1785
1786System types:
1787 --build=BUILD configure for building on BUILD [guessed]
1788 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1789 --target=TARGET configure for building compilers for TARGET [HOST]
1790_ACEOF
1791fi
1792
1793if test -n "$ac_init_help"; then
1794 case $ac_init_help in
cristy4c08aed2011-07-01 19:47:50 +00001795 short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
cristy3ed852e2009-09-05 21:47:34 +00001796 esac
1797 cat <<\_ACEOF
1798
1799Optional Features:
1800 --disable-option-checking ignore unrecognized --enable/--with options
1801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001803 --enable-silent-rules less verbose build output (undo: `make V=1')
1804 --disable-silent-rules verbose build output (undo: `make V=0')
1805 --disable-dependency-tracking speeds up one-time build
1806 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001807 --bounds-checking enable run-time bounds-checking
1808 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001809 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001810 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001811 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001812 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001813 --enable-shared[=PKGS] build shared libraries [default=yes]
1814 --enable-static[=PKGS] build static libraries [default=yes]
1815 --enable-fast-install[=PKGS]
1816 optimize for fast installation [default=yes]
1817 --disable-libtool-lock avoid locking (might break parallel builds)
1818 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001819 --enable-delegate-build look for delegate libraries in build directory
1820 --disable-deprecated exclude deprecated methods in MagickCore and
1821 MagickWand API's
1822 --disable-installed Formally install ImageMagick under PREFIX
1823 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001824 --enable-zero-configuration
1825 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001826 zero-configuration ImageMagick
1827 --enable-hdri accurately represent the wide range of intensity
1828 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001829 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001830 --enable-maintainer-mode enable make rules and dependencies not useful
1831 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001832 --enable-ccmalloc enable 'ccmalloc' memory debug support
1833 --enable-efence enable 'efence' memory debug support
1834 --enable-prof enable 'prof' profiling support
1835 --enable-gprof enable 'gprof' profiling support
1836 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001837 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001838
1839Optional Packages:
1840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001842 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1843 --with-dmalloc use dmalloc, as in
1844 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001845 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001846 --with-pic try to use only PIC/non-PIC objects [default=use
1847 both]
cristyda16f162011-02-19 23:52:17 +00001848 --with-sysroot=DIR Search for dependent libraries within DIR
1849 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001850 --with-included-ltdl use the GNU ltdl sources included here
1851 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1852 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001853 --with-modules enable building dynamically loadable modules
1854 --with-method-prefix=PREFIX
1855 prefix MagickCore API methods
1856 --with-quantum-depth=DEPTH
1857 number of bits in a pixel quantum (default 16)
1858 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1859 memory)
1860 --with-frozenpaths freeze delegate paths
1861 --without-magick-plus-plus
1862 disable build/install of Magick++
1863 --with-perl enable build/install of PerlMagick
1864 --with-perl-options=OPTIONS
1865 options to pass on command-line when generating
1866 PerlMagick's build file
1867 --with-umem enable umem memory allocation library support
1868 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1869 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001870 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001871 --without-zlib disable ZLIB support
1872 --with-autotrace enable autotrace support
1873 --without-dps disable Display Postscript support
1874 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001875 --with-dejavu-font-dir=DIR
1876 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001877 --without-fftw disable FFTW support
1878 --without-fpx disable FlashPIX support
1879 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001880 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001881 --without-gslib enable Ghostscript library support
1882 --with-fontpath=DIR prepend to default font search path
1883 --with-gs-font-dir=DIR Ghostscript font directory
1884 --without-gvc disable GVC support
1885 --without-jbig disable JBIG support
1886 --without-jpeg disable JPEG support
1887 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001888 --without-lcms disable lcms (v1.1X) support
1889 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001890 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001891 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001892 --without-openexr disable OpenEXR support
1893 --without-png disable PNG support
1894 --without-rsvg disable RSVG support
1895 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001896 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001897 --with-windows-font-dir=DIR
1898 directory containing MS-Windows fonts
1899 --without-wmf disable WMF support
1900 --without-xml disable XML support
1901
1902Some influential environment variables:
1903 CC C compiler command
1904 CFLAGS C compiler flags
1905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1906 nonstandard directory <lib dir>
1907 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001908 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001909 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001910 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001911 CXX C++ compiler command
1912 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001913 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001914 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001915 XMKMF Path to xmkmf, Makefile generator for X Window System
1916 AUTOTRACE_CFLAGS
1917 C compiler flags for AUTOTRACE, overriding pkg-config
1918 AUTOTRACE_LIBS
1919 linker flags for AUTOTRACE, overriding pkg-config
1920 FONTCONFIG_CFLAGS
1921 C compiler flags for FONTCONFIG, overriding pkg-config
1922 FONTCONFIG_LIBS
1923 linker flags for FONTCONFIG, overriding pkg-config
1924 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1925 GVC_LIBS linker flags for GVC, overriding pkg-config
1926 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1927 LQR_LIBS linker flags for LQR, overriding pkg-config
1928 OPENEXR_CFLAGS
1929 C compiler flags for OPENEXR, overriding pkg-config
1930 OPENEXR_LIBS
1931 linker flags for OPENEXR, overriding pkg-config
1932 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1933 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1934 CAIRO_SVG_CFLAGS
1935 C compiler flags for CAIRO_SVG, overriding pkg-config
1936 CAIRO_SVG_LIBS
1937 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001938
1939Use these variables to override the choices made by `configure' or to help
1940it to find libraries and programs with nonstandard names/locations.
1941
1942Report bugs to <http://www.imagemagick.org>.
1943_ACEOF
1944ac_status=$?
1945fi
1946
1947if test "$ac_init_help" = "recursive"; then
1948 # If there are subdirs, report their specific --help.
1949 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1950 test -d "$ac_dir" ||
1951 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1952 continue
1953 ac_builddir=.
1954
1955case "$ac_dir" in
1956.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1957*)
1958 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1959 # A ".." for each directory in $ac_dir_suffix.
1960 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1961 case $ac_top_builddir_sub in
1962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1964 esac ;;
1965esac
1966ac_abs_top_builddir=$ac_pwd
1967ac_abs_builddir=$ac_pwd$ac_dir_suffix
1968# for backward compatibility:
1969ac_top_builddir=$ac_top_build_prefix
1970
1971case $srcdir in
1972 .) # We are building in place.
1973 ac_srcdir=.
1974 ac_top_srcdir=$ac_top_builddir_sub
1975 ac_abs_top_srcdir=$ac_pwd ;;
1976 [\\/]* | ?:[\\/]* ) # Absolute name.
1977 ac_srcdir=$srcdir$ac_dir_suffix;
1978 ac_top_srcdir=$srcdir
1979 ac_abs_top_srcdir=$srcdir ;;
1980 *) # Relative name.
1981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1982 ac_top_srcdir=$ac_top_build_prefix$srcdir
1983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1984esac
1985ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1986
1987 cd "$ac_dir" || { ac_status=$?; continue; }
1988 # Check for guested configure.
1989 if test -f "$ac_srcdir/configure.gnu"; then
1990 echo &&
1991 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1992 elif test -f "$ac_srcdir/configure"; then
1993 echo &&
1994 $SHELL "$ac_srcdir/configure" --help=recursive
1995 else
1996 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1997 fi || ac_status=$?
1998 cd "$ac_pwd" || { ac_status=$?; break; }
1999 done
2000fi
2001
2002test -n "$ac_init_help" && exit $ac_status
2003if $ac_init_version; then
2004 cat <<\_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00002005ImageMagick configure 7.0.0
cristyda16f162011-02-19 23:52:17 +00002006generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002007
cristy98dddb52010-11-04 00:30:15 +00002008Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002009This configure script is free software; the Free Software Foundation
2010gives unlimited permission to copy, distribute and modify it.
2011_ACEOF
2012 exit
2013fi
cristy8b350f62009-11-15 23:12:43 +00002014
2015## ------------------------ ##
2016## Autoconf initialization. ##
2017## ------------------------ ##
2018
2019# ac_fn_c_try_compile LINENO
2020# --------------------------
2021# Try to compile conftest.$ac_ext, and return whether this succeeded.
2022ac_fn_c_try_compile ()
2023{
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 rm -f conftest.$ac_objext
2026 if { { ac_try="$ac_compile"
2027case "(($ac_try" in
2028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2029 *) ac_try_echo=$ac_try;;
2030esac
2031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2032$as_echo "$ac_try_echo"; } >&5
2033 (eval "$ac_compile") 2>conftest.err
2034 ac_status=$?
2035 if test -s conftest.err; then
2036 grep -v '^ *+' conftest.err >conftest.er1
2037 cat conftest.er1 >&5
2038 mv -f conftest.er1 conftest.err
2039 fi
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && {
2042 test -z "$ac_c_werror_flag" ||
2043 test ! -s conftest.err
2044 } && test -s conftest.$ac_objext; then :
2045 ac_retval=0
2046else
2047 $as_echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050 ac_retval=1
2051fi
cristyda16f162011-02-19 23:52:17 +00002052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002053 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002054
2055} # ac_fn_c_try_compile
2056
cristy95646052009-11-28 23:05:30 +00002057# ac_fn_c_try_cpp LINENO
2058# ----------------------
2059# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2060ac_fn_c_try_cpp ()
2061{
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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
cristyda16f162011-02-19 23:52:17 +00002078 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2080 test ! -s conftest.err
2081 }; 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
cristy95646052009-11-28 23:05:30 +00002090 as_fn_set_status $ac_retval
2091
2092} # ac_fn_c_try_cpp
2093
cristy8b350f62009-11-15 23:12:43 +00002094# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2095# -------------------------------------------------------
2096# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2097# the include files in INCLUDES and setting the cache variable VAR
2098# accordingly.
2099ac_fn_c_check_header_mongrel ()
2100{
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002102 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002105if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002106 $as_echo_n "(cached) " >&6
2107fi
2108eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111else
2112 # Is the header compilable?
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2114$as_echo_n "checking $2 usability... " >&6; }
2115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h. */
2117$4
2118#include <$2>
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_header_compiler=yes
2122else
2123 ac_header_compiler=no
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2127$as_echo "$ac_header_compiler" >&6; }
2128
2129# Is the header present?
2130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2131$as_echo_n "checking $2 presence... " >&6; }
2132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h. */
2134#include <$2>
2135_ACEOF
2136if ac_fn_c_try_cpp "$LINENO"; then :
2137 ac_header_preproc=yes
2138else
2139 ac_header_preproc=no
2140fi
cristyda16f162011-02-19 23:52:17 +00002141rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2143$as_echo "$ac_header_preproc" >&6; }
2144
2145# So? What about this header?
2146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2147 yes:no: )
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2149$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152 ;;
2153 no:yes:* )
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2155$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2157$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2159$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2161$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002164( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002165## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002166## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002167 ) | sed "s/^/$as_me: WARNING: /" >&2
2168 ;;
2169esac
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002172if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002173 $as_echo_n "(cached) " >&6
2174else
2175 eval "$3=\$ac_header_compiler"
2176fi
2177eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180fi
cristyda16f162011-02-19 23:52:17 +00002181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002182
2183} # ac_fn_c_check_header_mongrel
2184
2185# ac_fn_c_try_run LINENO
2186# ----------------------
2187# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2188# that executables *can* be run.
2189ac_fn_c_try_run ()
2190{
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 if { { ac_try="$ac_link"
2193case "(($ac_try" in
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2196esac
2197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198$as_echo "$ac_try_echo"; } >&5
2199 (eval "$ac_link") 2>&5
2200 ac_status=$?
2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2203 { { case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206esac
2207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208$as_echo "$ac_try_echo"; } >&5
2209 (eval "$ac_try") 2>&5
2210 ac_status=$?
2211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212 test $ac_status = 0; }; }; then :
2213 ac_retval=0
2214else
2215 $as_echo "$as_me: program exited with status $ac_status" >&5
2216 $as_echo "$as_me: failed program was:" >&5
2217sed 's/^/| /' conftest.$ac_ext >&5
2218
2219 ac_retval=$ac_status
2220fi
2221 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002223 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002224
2225} # ac_fn_c_try_run
2226
2227# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2228# -------------------------------------------------------
2229# Tests whether HEADER exists and can be compiled using the include files in
2230# INCLUDES, setting the cache variable VAR accordingly.
2231ac_fn_c_check_header_compile ()
2232{
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002236if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002237 $as_echo_n "(cached) " >&6
2238else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241$4
2242#include <$2>
2243_ACEOF
2244if ac_fn_c_try_compile "$LINENO"; then :
2245 eval "$3=yes"
2246else
2247 eval "$3=no"
2248fi
2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250fi
2251eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002255
2256} # ac_fn_c_check_header_compile
2257
cristya0b81c32010-01-22 02:54:33 +00002258# ac_fn_cxx_try_compile LINENO
2259# ----------------------------
2260# Try to compile conftest.$ac_ext, and return whether this succeeded.
2261ac_fn_cxx_try_compile ()
2262{
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 rm -f conftest.$ac_objext
2265 if { { ac_try="$ac_compile"
2266case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269esac
2270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271$as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_compile") 2>conftest.err
2273 ac_status=$?
2274 if test -s conftest.err; then
2275 grep -v '^ *+' conftest.err >conftest.er1
2276 cat conftest.er1 >&5
2277 mv -f conftest.er1 conftest.err
2278 fi
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } && {
2281 test -z "$ac_cxx_werror_flag" ||
2282 test ! -s conftest.err
2283 } && test -s conftest.$ac_objext; then :
2284 ac_retval=0
2285else
2286 $as_echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 ac_retval=1
2290fi
cristyda16f162011-02-19 23:52:17 +00002291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002292 as_fn_set_status $ac_retval
2293
2294} # ac_fn_cxx_try_compile
2295
cristy8b350f62009-11-15 23:12:43 +00002296# ac_fn_c_try_link LINENO
2297# -----------------------
2298# Try to link conftest.$ac_ext, and return whether this succeeded.
2299ac_fn_c_try_link ()
2300{
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 rm -f conftest.$ac_objext conftest$ac_exeext
2303 if { { ac_try="$ac_link"
2304case "(($ac_try" in
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2307esac
2308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309$as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_link") 2>conftest.err
2311 ac_status=$?
2312 if test -s conftest.err; then
2313 grep -v '^ *+' conftest.err >conftest.er1
2314 cat conftest.er1 >&5
2315 mv -f conftest.er1 conftest.err
2316 fi
2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318 test $ac_status = 0; } && {
2319 test -z "$ac_c_werror_flag" ||
2320 test ! -s conftest.err
2321 } && test -s conftest$ac_exeext && {
2322 test "$cross_compiling" = yes ||
2323 $as_test_x conftest$ac_exeext
2324 }; then :
2325 ac_retval=0
2326else
2327 $as_echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 ac_retval=1
2331fi
2332 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2333 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2334 # interfere with the next link command; also delete a directory that is
2335 # left behind by Apple's compiler. We do this before executing the actions.
2336 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002338 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002339
2340} # ac_fn_c_try_link
2341
cristy73bd4a52010-10-05 11:24:23 +00002342# ac_fn_c_check_func LINENO FUNC VAR
2343# ----------------------------------
2344# Tests whether FUNC exists, setting the cache variable VAR accordingly
2345ac_fn_c_check_func ()
2346{
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2349$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002350if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002351 $as_echo_n "(cached) " >&6
2352else
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354/* end confdefs.h. */
2355/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2357#define $2 innocuous_$2
2358
2359/* System header to define __stub macros and hopefully few prototypes,
2360 which can conflict with char $2 (); below.
2361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2362 <limits.h> exists even on freestanding compilers. */
2363
2364#ifdef __STDC__
2365# include <limits.h>
2366#else
2367# include <assert.h>
2368#endif
2369
2370#undef $2
2371
2372/* Override any GCC internal prototype to avoid an error.
2373 Use char because int might match the return type of a GCC
2374 builtin and then its argument prototype would still apply. */
2375#ifdef __cplusplus
2376extern "C"
2377#endif
2378char $2 ();
2379/* The GNU C library defines this for functions which it implements
2380 to always fail with ENOSYS. Some functions are actually named
2381 something starting with __ and the normal name is an alias. */
2382#if defined __stub_$2 || defined __stub___$2
2383choke me
2384#endif
2385
2386int
2387main ()
2388{
2389return $2 ();
2390 ;
2391 return 0;
2392}
2393_ACEOF
2394if ac_fn_c_try_link "$LINENO"; then :
2395 eval "$3=yes"
2396else
2397 eval "$3=no"
2398fi
2399rm -f core conftest.err conftest.$ac_objext \
2400 conftest$ac_exeext conftest.$ac_ext
2401fi
2402eval ac_res=\$$3
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002406
2407} # ac_fn_c_check_func
2408
2409# ac_fn_cxx_try_cpp LINENO
2410# ------------------------
2411# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2412ac_fn_cxx_try_cpp ()
2413{
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 if { { ac_try="$ac_cpp conftest.$ac_ext"
2416case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419esac
2420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421$as_echo "$ac_try_echo"; } >&5
2422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2423 ac_status=$?
2424 if test -s conftest.err; then
2425 grep -v '^ *+' conftest.err >conftest.er1
2426 cat conftest.er1 >&5
2427 mv -f conftest.er1 conftest.err
2428 fi
2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002430 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002431 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2432 test ! -s conftest.err
2433 }; then :
2434 ac_retval=0
2435else
2436 $as_echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 ac_retval=1
2440fi
cristyda16f162011-02-19 23:52:17 +00002441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002442 as_fn_set_status $ac_retval
2443
2444} # ac_fn_cxx_try_cpp
2445
2446# ac_fn_cxx_try_link LINENO
2447# -------------------------
2448# Try to link conftest.$ac_ext, and return whether this succeeded.
2449ac_fn_cxx_try_link ()
2450{
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 rm -f conftest.$ac_objext conftest$ac_exeext
2453 if { { ac_try="$ac_link"
2454case "(($ac_try" in
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2457esac
2458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2459$as_echo "$ac_try_echo"; } >&5
2460 (eval "$ac_link") 2>conftest.err
2461 ac_status=$?
2462 if test -s conftest.err; then
2463 grep -v '^ *+' conftest.err >conftest.er1
2464 cat conftest.er1 >&5
2465 mv -f conftest.er1 conftest.err
2466 fi
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468 test $ac_status = 0; } && {
2469 test -z "$ac_cxx_werror_flag" ||
2470 test ! -s conftest.err
2471 } && test -s conftest$ac_exeext && {
2472 test "$cross_compiling" = yes ||
2473 $as_test_x conftest$ac_exeext
2474 }; then :
2475 ac_retval=0
2476else
2477 $as_echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 ac_retval=1
2481fi
2482 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2483 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2484 # interfere with the next link command; also delete a directory that is
2485 # left behind by Apple's compiler. We do this before executing the actions.
2486 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002488 as_fn_set_status $ac_retval
2489
2490} # ac_fn_cxx_try_link
2491
cristy98dddb52010-11-04 00:30:15 +00002492# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2493# ---------------------------------------------
2494# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2495# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002496ac_fn_c_check_decl ()
2497{
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002499 as_decl_name=`echo $2|sed 's/ *(.*//'`
2500 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2502$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002503if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002504 $as_echo_n "(cached) " >&6
2505else
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507/* end confdefs.h. */
2508$4
2509int
2510main ()
2511{
cristy98dddb52010-11-04 00:30:15 +00002512#ifndef $as_decl_name
2513#ifdef __cplusplus
2514 (void) $as_decl_use;
2515#else
2516 (void) $as_decl_name;
2517#endif
cristy73bd4a52010-10-05 11:24:23 +00002518#endif
2519
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524if ac_fn_c_try_compile "$LINENO"; then :
2525 eval "$3=yes"
2526else
2527 eval "$3=no"
2528fi
2529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530fi
2531eval ac_res=\$$3
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002535
2536} # ac_fn_c_check_decl
2537
cristy8b350f62009-11-15 23:12:43 +00002538# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2539# -------------------------------------------
2540# Tests whether TYPE exists after having included INCLUDES, setting cache
2541# variable VAR accordingly.
2542ac_fn_c_check_type ()
2543{
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002547if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002548 $as_echo_n "(cached) " >&6
2549else
2550 eval "$3=no"
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552/* end confdefs.h. */
2553$4
2554int
2555main ()
2556{
2557if (sizeof ($2))
2558 return 0;
2559 ;
2560 return 0;
2561}
2562_ACEOF
2563if ac_fn_c_try_compile "$LINENO"; then :
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565/* end confdefs.h. */
2566$4
2567int
2568main ()
2569{
2570if (sizeof (($2)))
2571 return 0;
2572 ;
2573 return 0;
2574}
2575_ACEOF
2576if ac_fn_c_try_compile "$LINENO"; then :
2577
2578else
2579 eval "$3=yes"
2580fi
2581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582fi
2583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584fi
2585eval ac_res=\$$3
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002589
2590} # ac_fn_c_check_type
2591
cristy92703d82010-04-26 00:18:18 +00002592# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2593# ----------------------------------------------------
2594# Tries to find if the field MEMBER exists in type AGGR, after including
2595# INCLUDES, setting cache variable VAR accordingly.
2596ac_fn_c_check_member ()
2597{
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2600$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002601if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002602 $as_echo_n "(cached) " >&6
2603else
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605/* end confdefs.h. */
2606$5
2607int
2608main ()
2609{
2610static $2 ac_aggr;
2611if (ac_aggr.$3)
2612return 0;
2613 ;
2614 return 0;
2615}
2616_ACEOF
2617if ac_fn_c_try_compile "$LINENO"; then :
2618 eval "$4=yes"
2619else
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621/* end confdefs.h. */
2622$5
2623int
2624main ()
2625{
2626static $2 ac_aggr;
2627if (sizeof ac_aggr.$3)
2628return 0;
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633if ac_fn_c_try_compile "$LINENO"; then :
2634 eval "$4=yes"
2635else
2636 eval "$4=no"
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641fi
2642eval ac_res=\$$4
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002646
2647} # ac_fn_c_check_member
2648
cristy501c8042011-05-26 17:46:28 +00002649# ac_fn_c_find_intX_t LINENO BITS VAR
2650# -----------------------------------
2651# Finds a signed integer type with width BITS, setting cache variable VAR
2652# accordingly.
2653ac_fn_c_find_intX_t ()
2654{
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2657$as_echo_n "checking for int$2_t... " >&6; }
2658if eval \${$3+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660else
2661 eval "$3=no"
2662 # Order is important - never check a type that is potentially smaller
2663 # than half of the expected target width.
2664 for ac_type in int$2_t 'int' 'long int' \
2665 'long long int' 'short int' 'signed char'; do
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667/* end confdefs.h. */
2668$ac_includes_default
2669 enum { N = $2 / 2 - 1 };
2670int
2671main ()
2672{
2673static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2674test_array [0] = 0
2675
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680if ac_fn_c_try_compile "$LINENO"; then :
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h. */
2683$ac_includes_default
2684 enum { N = $2 / 2 - 1 };
2685int
2686main ()
2687{
2688static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2689 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2690test_array [0] = 0
2691
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696if ac_fn_c_try_compile "$LINENO"; then :
2697
2698else
2699 case $ac_type in #(
2700 int$2_t) :
2701 eval "$3=yes" ;; #(
2702 *) :
2703 eval "$3=\$ac_type" ;;
2704esac
2705fi
2706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707fi
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 if eval test \"x\$"$3"\" = x"no"; then :
2710
2711else
2712 break
2713fi
2714 done
2715fi
2716eval ac_res=\$$3
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2718$as_echo "$ac_res" >&6; }
2719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2720
2721} # ac_fn_c_find_intX_t
2722
2723# ac_fn_c_find_uintX_t LINENO BITS VAR
2724# ------------------------------------
2725# Finds an unsigned integer type with width BITS, setting cache variable VAR
2726# accordingly.
2727ac_fn_c_find_uintX_t ()
2728{
2729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2731$as_echo_n "checking for uint$2_t... " >&6; }
2732if eval \${$3+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734else
2735 eval "$3=no"
2736 # Order is important - never check a type that is potentially smaller
2737 # than half of the expected target width.
2738 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2739 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741/* end confdefs.h. */
2742$ac_includes_default
2743int
2744main ()
2745{
2746static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2747test_array [0] = 0
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753if ac_fn_c_try_compile "$LINENO"; then :
2754 case $ac_type in #(
2755 uint$2_t) :
2756 eval "$3=yes" ;; #(
2757 *) :
2758 eval "$3=\$ac_type" ;;
2759esac
2760fi
2761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 if eval test \"x\$"$3"\" = x"no"; then :
2763
2764else
2765 break
2766fi
2767 done
2768fi
2769eval ac_res=\$$3
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771$as_echo "$ac_res" >&6; }
2772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2773
2774} # ac_fn_c_find_uintX_t
2775
cristy8b350f62009-11-15 23:12:43 +00002776# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2777# --------------------------------------------
2778# Tries to find the compile-time value of EXPR in a program that includes
2779# INCLUDES, setting VAR accordingly. Returns whether the value could be
2780# computed
2781ac_fn_c_compute_int ()
2782{
2783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2784 if test "$cross_compiling" = yes; then
2785 # Depending upon the size, compute the lo and hi bounds.
2786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787/* end confdefs.h. */
2788$4
2789int
2790main ()
2791{
2792static int test_array [1 - 2 * !(($2) >= 0)];
2793test_array [0] = 0
2794
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799if ac_fn_c_try_compile "$LINENO"; then :
2800 ac_lo=0 ac_mid=0
2801 while :; do
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h. */
2804$4
2805int
2806main ()
2807{
2808static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2809test_array [0] = 0
2810
2811 ;
2812 return 0;
2813}
2814_ACEOF
2815if ac_fn_c_try_compile "$LINENO"; then :
2816 ac_hi=$ac_mid; break
2817else
2818 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2819 if test $ac_lo -le $ac_mid; then
2820 ac_lo= ac_hi=
2821 break
2822 fi
2823 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2824fi
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826 done
2827else
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h. */
2830$4
2831int
2832main ()
2833{
2834static int test_array [1 - 2 * !(($2) < 0)];
2835test_array [0] = 0
2836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841if ac_fn_c_try_compile "$LINENO"; then :
2842 ac_hi=-1 ac_mid=-1
2843 while :; do
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$4
2847int
2848main ()
2849{
2850static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2851test_array [0] = 0
2852
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857if ac_fn_c_try_compile "$LINENO"; then :
2858 ac_lo=$ac_mid; break
2859else
2860 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2861 if test $ac_mid -le $ac_hi; then
2862 ac_lo= ac_hi=
2863 break
2864 fi
2865 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2866fi
2867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 done
2869else
2870 ac_lo= ac_hi=
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873fi
2874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875# Binary search between lo and hi bounds.
2876while test "x$ac_lo" != "x$ac_hi"; do
2877 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879/* end confdefs.h. */
2880$4
2881int
2882main ()
2883{
2884static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2885test_array [0] = 0
2886
2887 ;
2888 return 0;
2889}
2890_ACEOF
2891if ac_fn_c_try_compile "$LINENO"; then :
2892 ac_hi=$ac_mid
2893else
2894 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2895fi
2896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897done
2898case $ac_lo in #((
2899?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2900'') ac_retval=1 ;;
2901esac
2902 else
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905$4
2906static long int longval () { return $2; }
2907static unsigned long int ulongval () { return $2; }
2908#include <stdio.h>
2909#include <stdlib.h>
2910int
2911main ()
2912{
2913
2914 FILE *f = fopen ("conftest.val", "w");
2915 if (! f)
2916 return 1;
2917 if (($2) < 0)
2918 {
2919 long int i = longval ();
2920 if (i != ($2))
2921 return 1;
2922 fprintf (f, "%ld", i);
2923 }
2924 else
2925 {
2926 unsigned long int i = ulongval ();
2927 if (i != ($2))
2928 return 1;
2929 fprintf (f, "%lu", i);
2930 }
2931 /* Do not output a trailing newline, as this causes \r\n confusion
2932 on some platforms. */
2933 return ferror (f) || fclose (f) != 0;
2934
2935 ;
2936 return 0;
2937}
2938_ACEOF
2939if ac_fn_c_try_run "$LINENO"; then :
2940 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2941else
2942 ac_retval=1
2943fi
2944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2945 conftest.$ac_objext conftest.beam conftest.$ac_ext
2946rm -f conftest.val
2947
2948 fi
cristyda16f162011-02-19 23:52:17 +00002949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002950 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002951
2952} # ac_fn_c_compute_int
2953
2954# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2955# ---------------------------------------------------------
2956# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2957# the include files in INCLUDES and setting the cache variable VAR
2958# accordingly.
2959ac_fn_cxx_check_header_mongrel ()
2960{
2961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002962 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2964$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002965if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002966 $as_echo_n "(cached) " >&6
2967fi
2968eval ac_res=\$$3
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2970$as_echo "$ac_res" >&6; }
2971else
2972 # Is the header compilable?
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2974$as_echo_n "checking $2 usability... " >&6; }
2975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976/* end confdefs.h. */
2977$4
2978#include <$2>
2979_ACEOF
2980if ac_fn_cxx_try_compile "$LINENO"; then :
2981 ac_header_compiler=yes
2982else
2983 ac_header_compiler=no
2984fi
2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2987$as_echo "$ac_header_compiler" >&6; }
2988
2989# Is the header present?
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2991$as_echo_n "checking $2 presence... " >&6; }
2992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993/* end confdefs.h. */
2994#include <$2>
2995_ACEOF
2996if ac_fn_cxx_try_cpp "$LINENO"; then :
2997 ac_header_preproc=yes
2998else
2999 ac_header_preproc=no
3000fi
cristyda16f162011-02-19 23:52:17 +00003001rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3003$as_echo "$ac_header_preproc" >&6; }
3004
3005# So? What about this header?
3006case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3007 yes:no: )
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3009$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3011$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3012 ;;
3013 no:yes:* )
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3015$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3017$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3019$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3021$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003024( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003025## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003026## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003027 ) | sed "s/^/$as_me: WARNING: /" >&2
3028 ;;
3029esac
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3031$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003032if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003033 $as_echo_n "(cached) " >&6
3034else
3035 eval "$3=\$ac_header_compiler"
3036fi
3037eval ac_res=\$$3
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3039$as_echo "$ac_res" >&6; }
3040fi
cristyda16f162011-02-19 23:52:17 +00003041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003042
3043} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003044cat >config.log <<_ACEOF
3045This file contains any messages produced by compilers while
3046running configure, to aid debugging if configure makes a mistake.
3047
cristy4c08aed2011-07-01 19:47:50 +00003048It was created by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +00003049generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003050
3051 $ $0 $@
3052
3053_ACEOF
3054exec 5>>config.log
3055{
3056cat <<_ASUNAME
3057## --------- ##
3058## Platform. ##
3059## --------- ##
3060
3061hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3062uname -m = `(uname -m) 2>/dev/null || echo unknown`
3063uname -r = `(uname -r) 2>/dev/null || echo unknown`
3064uname -s = `(uname -s) 2>/dev/null || echo unknown`
3065uname -v = `(uname -v) 2>/dev/null || echo unknown`
3066
3067/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3068/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3069
3070/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3071/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3072/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3073/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3074/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3075/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3076/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3077
3078_ASUNAME
3079
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003085 $as_echo "PATH: $as_dir"
3086 done
cristy3ed852e2009-09-05 21:47:34 +00003087IFS=$as_save_IFS
3088
3089} >&5
3090
3091cat >&5 <<_ACEOF
3092
3093
3094## ----------- ##
3095## Core tests. ##
3096## ----------- ##
3097
3098_ACEOF
3099
3100
3101# Keep a trace of the command line.
3102# Strip out --no-create and --no-recursion so they do not pile up.
3103# Strip out --silent because we don't want to record it for future runs.
3104# Also quote any args containing shell meta-characters.
3105# Make two passes to allow for proper duplicate-argument suppression.
3106ac_configure_args=
3107ac_configure_args0=
3108ac_configure_args1=
3109ac_must_keep_next=false
3110for ac_pass in 1 2
3111do
3112 for ac_arg
3113 do
3114 case $ac_arg in
3115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3117 | -silent | --silent | --silen | --sile | --sil)
3118 continue ;;
3119 *\'*)
3120 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3121 esac
3122 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003124 2)
cristy8b350f62009-11-15 23:12:43 +00003125 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003126 if test $ac_must_keep_next = true; then
3127 ac_must_keep_next=false # Got value, back to normal.
3128 else
3129 case $ac_arg in
3130 *=* | --config-cache | -C | -disable-* | --disable-* \
3131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3133 | -with-* | --with-* | -without-* | --without-* | --x)
3134 case "$ac_configure_args0 " in
3135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3136 esac
3137 ;;
3138 -* ) ac_must_keep_next=true ;;
3139 esac
3140 fi
cristy8b350f62009-11-15 23:12:43 +00003141 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003142 ;;
3143 esac
3144 done
3145done
cristy8b350f62009-11-15 23:12:43 +00003146{ ac_configure_args0=; unset ac_configure_args0;}
3147{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003148
3149# When interrupted or exit'd, cleanup temporary files, and complete
3150# config.log. We remove comments because anyway the quotes in there
3151# would cause problems or look ugly.
3152# WARNING: Use '\'' to represent an apostrophe within the trap.
3153# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3154trap 'exit_status=$?
3155 # Save into config.log some information that might help in debugging.
3156 {
3157 echo
3158
cristy98dddb52010-11-04 00:30:15 +00003159 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003160## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003161## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003162 echo
3163 # The following way of writing the cache mishandles newlines in values,
3164(
3165 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3166 eval ac_val=\$$ac_var
3167 case $ac_val in #(
3168 *${as_nl}*)
3169 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003171$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3172 esac
3173 case $ac_var in #(
3174 _ | IFS | as_nl) ;; #(
3175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003176 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003177 esac ;;
3178 esac
3179 done
3180 (set) 2>&1 |
3181 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3182 *${as_nl}ac_space=\ *)
3183 sed -n \
3184 "s/'\''/'\''\\\\'\'''\''/g;
3185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3186 ;; #(
3187 *)
3188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3189 ;;
3190 esac |
3191 sort
3192)
3193 echo
3194
cristy98dddb52010-11-04 00:30:15 +00003195 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003196## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003197## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003198 echo
3199 for ac_var in $ac_subst_vars
3200 do
3201 eval ac_val=\$$ac_var
3202 case $ac_val in
3203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3204 esac
3205 $as_echo "$ac_var='\''$ac_val'\''"
3206 done | sort
3207 echo
3208
3209 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003210 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003211## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003212## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003213 echo
3214 for ac_var in $ac_subst_files
3215 do
3216 eval ac_val=\$$ac_var
3217 case $ac_val in
3218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3219 esac
3220 $as_echo "$ac_var='\''$ac_val'\''"
3221 done | sort
3222 echo
3223 fi
3224
3225 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003226 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003227## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003228## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003229 echo
3230 cat confdefs.h
3231 echo
3232 fi
3233 test "$ac_signal" != 0 &&
3234 $as_echo "$as_me: caught signal $ac_signal"
3235 $as_echo "$as_me: exit $exit_status"
3236 } >&5
3237 rm -f core *.core core.conftest.* &&
3238 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3239 exit $exit_status
3240' 0
3241for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003242 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003243done
3244ac_signal=0
3245
3246# confdefs.h avoids OS command line length limits that DEFS can exceed.
3247rm -f -r conftest* confdefs.h
3248
cristy8b350f62009-11-15 23:12:43 +00003249$as_echo "/* confdefs.h */" > confdefs.h
3250
cristy3ed852e2009-09-05 21:47:34 +00003251# Predefined preprocessor variables.
3252
3253cat >>confdefs.h <<_ACEOF
3254#define PACKAGE_NAME "$PACKAGE_NAME"
3255_ACEOF
3256
cristy3ed852e2009-09-05 21:47:34 +00003257cat >>confdefs.h <<_ACEOF
3258#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3259_ACEOF
3260
cristy3ed852e2009-09-05 21:47:34 +00003261cat >>confdefs.h <<_ACEOF
3262#define PACKAGE_VERSION "$PACKAGE_VERSION"
3263_ACEOF
3264
cristy3ed852e2009-09-05 21:47:34 +00003265cat >>confdefs.h <<_ACEOF
3266#define PACKAGE_STRING "$PACKAGE_STRING"
3267_ACEOF
3268
cristy3ed852e2009-09-05 21:47:34 +00003269cat >>confdefs.h <<_ACEOF
3270#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3271_ACEOF
3272
cristy8b350f62009-11-15 23:12:43 +00003273cat >>confdefs.h <<_ACEOF
3274#define PACKAGE_URL "$PACKAGE_URL"
3275_ACEOF
3276
cristy3ed852e2009-09-05 21:47:34 +00003277
3278# Let the site file select an alternate cache file if it wants to.
3279# Prefer an explicitly selected file to automatically selected ones.
3280ac_site_file1=NONE
3281ac_site_file2=NONE
3282if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003283 # We do not want a PATH search for config.site.
3284 case $CONFIG_SITE in #((
3285 -*) ac_site_file1=./$CONFIG_SITE;;
3286 */*) ac_site_file1=$CONFIG_SITE;;
3287 *) ac_site_file1=./$CONFIG_SITE;;
3288 esac
cristy3ed852e2009-09-05 21:47:34 +00003289elif test "x$prefix" != xNONE; then
3290 ac_site_file1=$prefix/share/config.site
3291 ac_site_file2=$prefix/etc/config.site
3292else
3293 ac_site_file1=$ac_default_prefix/share/config.site
3294 ac_site_file2=$ac_default_prefix/etc/config.site
3295fi
3296for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3297do
3298 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003299 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003301$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3302 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003303 . "$ac_site_file" \
3304 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306as_fn_error $? "failed to load site script $ac_site_file
3307See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003308 fi
3309done
3310
3311if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003312 # Some versions of bash will fail to source /dev/null (special files
3313 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3314 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003316$as_echo "$as_me: loading cache $cache_file" >&6;}
3317 case $cache_file in
3318 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3319 *) . "./$cache_file";;
3320 esac
3321 fi
3322else
cristy8b350f62009-11-15 23:12:43 +00003323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003324$as_echo "$as_me: creating cache $cache_file" >&6;}
3325 >$cache_file
3326fi
3327
cristycd4c5312009-11-22 01:19:08 +00003328as_fn_append ac_header_list " stdlib.h"
3329as_fn_append ac_header_list " unistd.h"
3330as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003331# Check that the precious variables saved in the cache have kept the same
3332# value.
3333ac_cache_corrupted=false
3334for ac_var in $ac_precious_vars; do
3335 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3336 eval ac_new_set=\$ac_env_${ac_var}_set
3337 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3338 eval ac_new_val=\$ac_env_${ac_var}_value
3339 case $ac_old_set,$ac_new_set in
3340 set,)
cristy8b350f62009-11-15 23:12:43 +00003341 { $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 +00003342$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3343 ac_cache_corrupted=: ;;
3344 ,set)
cristy8b350f62009-11-15 23:12:43 +00003345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003346$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3347 ac_cache_corrupted=: ;;
3348 ,);;
3349 *)
3350 if test "x$ac_old_val" != "x$ac_new_val"; then
3351 # differences in whitespace do not lead to failure.
3352 ac_old_val_w=`echo x $ac_old_val`
3353 ac_new_val_w=`echo x $ac_new_val`
3354 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003356$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3357 ac_cache_corrupted=:
3358 else
cristy8b350f62009-11-15 23:12:43 +00003359 { $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 +00003360$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3361 eval $ac_var=\$ac_old_val
3362 fi
cristy8b350f62009-11-15 23:12:43 +00003363 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003364$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003365 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003366$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3367 fi;;
3368 esac
3369 # Pass precious variables to config.status.
3370 if test "$ac_new_set" = set; then
3371 case $ac_new_val in
3372 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3373 *) ac_arg=$ac_var=$ac_new_val ;;
3374 esac
3375 case " $ac_configure_args " in
3376 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003377 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003378 esac
3379 fi
3380done
3381if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003386 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003387fi
cristy8b350f62009-11-15 23:12:43 +00003388## -------------------- ##
3389## Main body of script. ##
3390## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003391
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
3399
3400ac_aux_dir=
3401for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003402 if test -f "$ac_dir/install-sh"; then
3403 ac_aux_dir=$ac_dir
3404 ac_install_sh="$ac_aux_dir/install-sh -c"
3405 break
3406 elif test -f "$ac_dir/install.sh"; then
3407 ac_aux_dir=$ac_dir
3408 ac_install_sh="$ac_aux_dir/install.sh -c"
3409 break
3410 elif test -f "$ac_dir/shtool"; then
3411 ac_aux_dir=$ac_dir
3412 ac_install_sh="$ac_aux_dir/shtool install -c"
3413 break
3414 fi
cristy3ed852e2009-09-05 21:47:34 +00003415done
3416if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003417 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003418fi
3419
3420# These three variables are undocumented and unsupported,
3421# and are intended to be withdrawn in a future Autoconf release.
3422# They can cause serious problems if a builder's source tree is in a directory
3423# whose full name contains unusual characters.
3424ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3425ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3426ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3427
3428
3429
3430
3431ac_config_headers="$ac_config_headers config/config.h"
3432
cristy24fc1fe2010-10-23 21:13:01 +00003433
cristy4c08aed2011-07-01 19:47:50 +00003434ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003435
cristy4c08aed2011-07-01 19:47:50 +00003436ac_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 +00003437
3438
3439#
3440# Save initial user-tunable values
3441#
3442USER_LIBS=$LIBS
3443for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3444 eval isset=\${$var+set}
3445 if test "$isset" = 'set'; then
3446 eval val=$`echo $var`
3447 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3448 fi
3449done
3450
3451
3452CONFIGURE_ARGS="$0 ${ac_configure_args}"
3453
3454
3455# Source file containing package/library versioning information.
3456. ${srcdir}/version.sh
3457
cristy15a88782010-01-31 23:24:49 +00003458echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003459# Make sure we can run config.sub.
3460$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003461 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003462
cristy8b350f62009-11-15 23:12:43 +00003463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003464$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003465if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003466 $as_echo_n "(cached) " >&6
3467else
3468 ac_build_alias=$build_alias
3469test "x$ac_build_alias" = x &&
3470 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3471test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003472 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003473ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003474 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003475
3476fi
cristy8b350f62009-11-15 23:12:43 +00003477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003478$as_echo "$ac_cv_build" >&6; }
3479case $ac_cv_build in
3480*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003481*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003482esac
3483build=$ac_cv_build
3484ac_save_IFS=$IFS; IFS='-'
3485set x $ac_cv_build
3486shift
3487build_cpu=$1
3488build_vendor=$2
3489shift; shift
3490# Remember, the first character of IFS is used to create $*,
3491# except with old shells:
3492build_os=$*
3493IFS=$ac_save_IFS
3494case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3495
3496
cristy8b350f62009-11-15 23:12:43 +00003497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003498$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003499if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003500 $as_echo_n "(cached) " >&6
3501else
3502 if test "x$host_alias" = x; then
3503 ac_cv_host=$ac_cv_build
3504else
3505 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003507fi
3508
3509fi
cristy8b350f62009-11-15 23:12:43 +00003510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003511$as_echo "$ac_cv_host" >&6; }
3512case $ac_cv_host in
3513*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003514*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003515esac
3516host=$ac_cv_host
3517ac_save_IFS=$IFS; IFS='-'
3518set x $ac_cv_host
3519shift
3520host_cpu=$1
3521host_vendor=$2
3522shift; shift
3523# Remember, the first character of IFS is used to create $*,
3524# except with old shells:
3525host_os=$*
3526IFS=$ac_save_IFS
3527case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3528
3529
cristy8b350f62009-11-15 23:12:43 +00003530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003531$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003532if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003533 $as_echo_n "(cached) " >&6
3534else
3535 if test "x$target_alias" = x; then
3536 ac_cv_target=$ac_cv_host
3537else
3538 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003540fi
3541
3542fi
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo "$ac_cv_target" >&6; }
3545case $ac_cv_target in
3546*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003547*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003548esac
3549target=$ac_cv_target
3550ac_save_IFS=$IFS; IFS='-'
3551set x $ac_cv_target
3552shift
3553target_cpu=$1
3554target_vendor=$2
3555shift; shift
3556# Remember, the first character of IFS is used to create $*,
3557# except with old shells:
3558target_os=$*
3559IFS=$ac_save_IFS
3560case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3561
3562
3563# The aliases save the names the user supplied, while $host etc.
3564# will get canonicalized.
3565test -n "$target_alias" &&
3566 test "$program_prefix$program_suffix$program_transform_name" = \
3567 NONENONEs,x,x, &&
3568 program_prefix=${target_alias}-
3569
cristy837d6dc2010-02-27 01:16:57 +00003570
3571
3572
cristy19615b82011-04-13 20:02:01 +00003573MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003574
3575
cristy19615b82011-04-13 20:02:01 +00003576MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003577
3578
cristy19615b82011-04-13 20:02:01 +00003579MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003580
3581
cristy3ed852e2009-09-05 21:47:34 +00003582# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003583MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3584
3585MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3586
cristya448bd22011-10-14 12:38:13 +00003587MAGICK_SVN_REVISION=5645
cristyd694ca32011-03-27 21:42:54 +00003588
3589
cristy3ed852e2009-09-05 21:47:34 +00003590
3591
3592# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3594$as_echo_n "checking whether build environment is sane... " >&6; }
3595# Just in case
3596sleep 1
3597echo timestamp > conftest.file
3598# Reject unsafe characters in $srcdir or the absolute working directory
3599# name. Accept space and tab only in the latter.
3600am_lf='
3601'
3602case `pwd` in
3603 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003604 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003605esac
3606case $srcdir in
3607 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003608 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003609esac
cristy3ed852e2009-09-05 21:47:34 +00003610
cristy73bd4a52010-10-05 11:24:23 +00003611# Do `set' in a subshell so we don't clobber the current shell's
3612# arguments. Must try -L first in case configure is actually a
3613# symlink; some systems play weird games with the mod time of symlinks
3614# (eg FreeBSD returns the mod time of the symlink's containing
3615# directory).
3616if (
3617 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3618 if test "$*" = "X"; then
3619 # -L didn't work.
3620 set X `ls -t "$srcdir/configure" conftest.file`
3621 fi
3622 rm -f conftest.file
3623 if test "$*" != "X $srcdir/configure conftest.file" \
3624 && test "$*" != "X conftest.file $srcdir/configure"; then
3625
3626 # If neither matched, then we have a broken ls. This can happen
3627 # if, for instance, CONFIG_SHELL is bash and it inherits a
3628 # broken ls alias from the environment. This has actually
3629 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003630 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003631alias in your environment" "$LINENO" 5
3632 fi
3633
3634 test "$2" = conftest.file
3635 )
3636then
3637 # Ok.
3638 :
3639else
cristy98dddb52010-11-04 00:30:15 +00003640 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003641Check your system clock" "$LINENO" 5
3642fi
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3644$as_echo "yes" >&6; }
3645
3646am__api_version='1.11'
3647
3648# Find a good install program. We prefer a C program (faster),
3649# so one script is as good as another. But avoid the broken or
3650# incompatible versions:
3651# SysV /etc/install, /usr/sbin/install
3652# SunOS /usr/etc/install
3653# IRIX /sbin/install
3654# AIX /bin/install
3655# AmigaOS /C/install, which installs bootblocks on floppy discs
3656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3657# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3659# OS/2's system install, which has a completely different semantic
3660# ./install, which can be erroneously created by make from ./install.sh.
3661# Reject install programs that cannot install multiple files.
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3663$as_echo_n "checking for a BSD-compatible install... " >&6; }
3664if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003665if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003666 $as_echo_n "(cached) " >&6
3667else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 # Account for people who put trailing slashes in PATH elements.
3674case $as_dir/ in #((
3675 ./ | .// | /[cC]/* | \
3676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3677 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3678 /usr/ucb/* ) ;;
3679 *)
3680 # OSF1 and SCO ODT 3.0 have their own names for install.
3681 # Don't use installbsd from OSF since it installs stuff as root
3682 # by default.
3683 for ac_prog in ginstall scoinst install; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3686 if test $ac_prog = install &&
3687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3688 # AIX install. It has an incompatible calling convention.
3689 :
3690 elif test $ac_prog = install &&
3691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3692 # program-specific install script used by HP pwplus--don't use.
3693 :
3694 else
3695 rm -rf conftest.one conftest.two conftest.dir
3696 echo one > conftest.one
3697 echo two > conftest.two
3698 mkdir conftest.dir
3699 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3700 test -s conftest.one && test -s conftest.two &&
3701 test -s conftest.dir/conftest.one &&
3702 test -s conftest.dir/conftest.two
3703 then
3704 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3705 break 3
3706 fi
3707 fi
3708 fi
3709 done
3710 done
3711 ;;
3712esac
3713
3714 done
3715IFS=$as_save_IFS
3716
3717rm -rf conftest.one conftest.two conftest.dir
3718
3719fi
3720 if test "${ac_cv_path_install+set}" = set; then
3721 INSTALL=$ac_cv_path_install
3722 else
3723 # As a last resort, use the slow shell script. Don't cache a
3724 # value for INSTALL within a source directory, because that will
3725 # break other packages using the cache if that directory is
3726 # removed, or if the value is a relative name.
3727 INSTALL=$ac_install_sh
3728 fi
3729fi
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3731$as_echo "$INSTALL" >&6; }
3732
3733# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3734# It thinks the first close brace ends the variable substitution.
3735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3736
3737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3738
3739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3740
3741test "$program_prefix" != NONE &&
3742 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3743# Use a double $ so make ignores it.
3744test "$program_suffix" != NONE &&
3745 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3746# Double any \ or $.
3747# By default was `s,x,x', remove it if useless.
3748ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3749program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3750
3751# expand $ac_aux_dir to an absolute path
3752am_aux_dir=`cd $ac_aux_dir && pwd`
3753
3754if test x"${MISSING+set}" != xset; then
3755 case $am_aux_dir in
3756 *\ * | *\ *)
3757 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3758 *)
3759 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3760 esac
3761fi
3762# Use eval to expand $SHELL
3763if eval "$MISSING --run true"; then
3764 am_missing_run="$MISSING --run "
3765else
3766 am_missing_run=
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3768$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3769fi
3770
3771if test x"${install_sh}" != xset; then
3772 case $am_aux_dir in
3773 *\ * | *\ *)
3774 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3775 *)
3776 install_sh="\${SHELL} $am_aux_dir/install-sh"
3777 esac
3778fi
3779
3780# Installed binaries are usually stripped using `strip' when the user
3781# run `make install-strip'. However `strip' might not be the right
3782# tool to use in cross-compilation environments, therefore Automake
3783# will honor the `STRIP' environment variable to overrule this program.
3784if test "$cross_compiling" != no; then
3785 if test -n "$ac_tool_prefix"; then
3786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3787set dummy ${ac_tool_prefix}strip; ac_word=$2
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003790if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003791 $as_echo_n "(cached) " >&6
3792else
3793 if test -n "$STRIP"; then
3794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3803 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3806 fi
3807done
3808 done
3809IFS=$as_save_IFS
3810
3811fi
3812fi
3813STRIP=$ac_cv_prog_STRIP
3814if test -n "$STRIP"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3816$as_echo "$STRIP" >&6; }
3817else
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819$as_echo "no" >&6; }
3820fi
3821
3822
3823fi
3824if test -z "$ac_cv_prog_STRIP"; then
3825 ac_ct_STRIP=$STRIP
3826 # Extract the first word of "strip", so it can be a program name with args.
3827set dummy strip; ac_word=$2
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003830if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003831 $as_echo_n "(cached) " >&6
3832else
3833 if test -n "$ac_ct_STRIP"; then
3834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3843 ac_cv_prog_ac_ct_STRIP="strip"
3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847done
3848 done
3849IFS=$as_save_IFS
3850
3851fi
3852fi
3853ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3854if test -n "$ac_ct_STRIP"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3856$as_echo "$ac_ct_STRIP" >&6; }
3857else
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859$as_echo "no" >&6; }
3860fi
3861
3862 if test "x$ac_ct_STRIP" = x; then
3863 STRIP=":"
3864 else
3865 case $cross_compiling:$ac_tool_warned in
3866yes:)
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869ac_tool_warned=yes ;;
3870esac
3871 STRIP=$ac_ct_STRIP
3872 fi
3873else
3874 STRIP="$ac_cv_prog_STRIP"
3875fi
3876
3877fi
3878INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3879
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3881$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3882if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003883 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003884 $as_echo_n "(cached) " >&6
3885else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in mkdir gmkdir; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3894 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3895 'mkdir (GNU coreutils) '* | \
3896 'mkdir (coreutils) '* | \
3897 'mkdir (fileutils) '4.1*)
3898 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3899 break 3;;
3900 esac
3901 done
3902 done
3903 done
3904IFS=$as_save_IFS
3905
3906fi
3907
3908 test -d ./--version && rmdir ./--version
3909 if test "${ac_cv_path_mkdir+set}" = set; then
3910 MKDIR_P="$ac_cv_path_mkdir -p"
3911 else
3912 # As a last resort, use the slow shell script. Don't cache a
3913 # value for MKDIR_P within a source directory, because that will
3914 # break other packages using the cache if that directory is
3915 # removed, or if the value is a relative name.
3916 MKDIR_P="$ac_install_sh -d"
3917 fi
3918fi
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3920$as_echo "$MKDIR_P" >&6; }
3921
3922mkdir_p="$MKDIR_P"
3923case $mkdir_p in
3924 [\\/$]* | ?:[\\/]*) ;;
3925 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3926esac
3927
3928for ac_prog in gawk mawk nawk awk
3929do
3930 # Extract the first word of "$ac_prog", so it can be a program name with args.
3931set dummy $ac_prog; ac_word=$2
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003934if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003935 $as_echo_n "(cached) " >&6
3936else
3937 if test -n "$AWK"; then
3938 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3939else
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3947 ac_cv_prog_AWK="$ac_prog"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3950 fi
3951done
3952 done
3953IFS=$as_save_IFS
3954
3955fi
3956fi
3957AWK=$ac_cv_prog_AWK
3958if test -n "$AWK"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3960$as_echo "$AWK" >&6; }
3961else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963$as_echo "no" >&6; }
3964fi
3965
3966
3967 test -n "$AWK" && break
3968done
3969
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3971$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3972set x ${MAKE-make}
3973ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003974if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003975 $as_echo_n "(cached) " >&6
3976else
3977 cat >conftest.make <<\_ACEOF
3978SHELL = /bin/sh
3979all:
3980 @echo '@@@%%%=$(MAKE)=@@@%%%'
3981_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003982# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003983case `${MAKE-make} -f conftest.make 2>/dev/null` in
3984 *@@@%%%=?*=@@@%%%*)
3985 eval ac_cv_prog_make_${ac_make}_set=yes;;
3986 *)
3987 eval ac_cv_prog_make_${ac_make}_set=no;;
3988esac
3989rm -f conftest.make
3990fi
3991if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993$as_echo "yes" >&6; }
3994 SET_MAKE=
3995else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997$as_echo "no" >&6; }
3998 SET_MAKE="MAKE=${MAKE-make}"
3999fi
4000
4001rm -rf .tst 2>/dev/null
4002mkdir .tst 2>/dev/null
4003if test -d .tst; then
4004 am__leading_dot=.
4005else
4006 am__leading_dot=_
4007fi
4008rmdir .tst 2>/dev/null
4009
cristya448bd22011-10-14 12:38:13 +00004010# Check whether --enable-silent-rules was given.
4011if test "${enable_silent_rules+set}" = set; then :
4012 enableval=$enable_silent_rules;
4013fi
4014
4015case $enable_silent_rules in
4016yes) AM_DEFAULT_VERBOSITY=0;;
4017no) AM_DEFAULT_VERBOSITY=1;;
4018*) AM_DEFAULT_VERBOSITY=1;;
4019esac
4020AM_BACKSLASH='\'
4021
cristy73bd4a52010-10-05 11:24:23 +00004022if test "`cd $srcdir && pwd`" != "`pwd`"; then
4023 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4024 # is not polluted with repeated "-I."
4025 am__isrc=' -I$(srcdir)'
4026 # test to see if srcdir already configured
4027 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004028 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004029 fi
4030fi
4031
4032# test whether we have cygpath
4033if test -z "$CYGPATH_W"; then
4034 if (cygpath --version) >/dev/null 2>/dev/null; then
4035 CYGPATH_W='cygpath -w'
4036 else
4037 CYGPATH_W=echo
4038 fi
4039fi
4040
4041
4042# Define the identity of the package.
cristya448bd22011-10-14 12:38:13 +00004043 PACKAGE='ImageMagick-7.0.0'
4044 VERSION='7.0.0'
cristy73bd4a52010-10-05 11:24:23 +00004045
4046
cristya448bd22011-10-14 12:38:13 +00004047cat >>confdefs.h <<_ACEOF
4048#define PACKAGE "$PACKAGE"
4049_ACEOF
4050
4051
4052cat >>confdefs.h <<_ACEOF
4053#define VERSION "$VERSION"
4054_ACEOF
4055
cristy73bd4a52010-10-05 11:24:23 +00004056# Some tools Automake needs.
4057
4058ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4059
4060
4061AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4062
4063
4064AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4065
4066
4067AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4068
4069
4070MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4071
4072# We need awk for the "check" target. The system "awk" is bad on
4073# some platforms.
4074# Always define AMTAR for backward compatibility.
4075
4076AMTAR=${AMTAR-"${am_missing_run}tar"}
4077
4078am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4079
4080
4081
4082
4083
cristy3ed852e2009-09-05 21:47:34 +00004084
4085# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004086# Check whether --enable-silent-rules was given.
4087if test "${enable_silent_rules+set}" = set; then :
4088 enableval=$enable_silent_rules;
4089fi
4090
4091case $enable_silent_rules in
4092yes) AM_DEFAULT_VERBOSITY=0;;
4093no) AM_DEFAULT_VERBOSITY=1;;
4094*) AM_DEFAULT_VERBOSITY=0;;
4095esac
4096AM_BACKSLASH='\'
4097
cristy3ed852e2009-09-05 21:47:34 +00004098
4099MAGICK_LIB_VERSION="0x"
4100if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4101 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4102fi
4103MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4104if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4105 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4106fi
4107MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4108if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4109 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4110fi
4111MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4112
4113
4114# Definition used to define MagickLibVersionText in version.h
4115MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4116
4117
4118# Definition used to define MagickLibVersionNumber in version.h
4119MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4120
4121
4122# Regenerate config.status if ChangeLog or version.sh is updated.
4123CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4124
4125
4126PERLMAINCC=$CC
4127
4128MAGICK_CFLAGS=''
4129MAGICK_CPPFLAGS=$CPPFLAGS_USER
4130MAGICK_PCFLAGS=$CPPFLAGS_USER
4131MAGICK_LDFLAGS=''
4132MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004133MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004134
4135#
4136# Evaluate shell variable equivalents to Makefile directory variables
4137#
4138if test "x$prefix" = xNONE; then
4139 prefix=$ac_default_prefix
4140fi
4141# Let make expand exec_prefix.
4142if test "x$exec_prefix" = xNONE; then
4143 exec_prefix='${prefix}'
4144fi
4145
4146#
4147eval "eval PREFIX_DIR=${prefix}"
4148
4149eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4150
4151eval "eval BIN_DIR=$bindir"
4152
4153eval "eval SBIN_DIR=$sbindir"
4154
4155eval "eval LIBEXEC_DIR=$libexecdir"
4156
4157eval "eval DATA_DIR=$datadir"
4158
cristyd55889c2011-03-27 00:50:24 +00004159eval "eval DOC_DIR=$docdir"
4160
cristy3ed852e2009-09-05 21:47:34 +00004161eval "eval SYSCONF_DIR=$sysconfdir"
4162
4163eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4164
4165eval "eval LOCALSTATE_DIR=$localstatedir"
4166
4167eval "eval LIB_DIR=$libdir"
4168
4169eval "eval INCLUDE_DIR=$includedir"
4170
4171eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4172
4173eval "eval INFO_DIR=$infodir"
4174
4175eval "eval MAN_DIR=$mandir"
4176
4177
4178# Get full paths to source and build directories
4179srcdirfull="`cd $srcdir && pwd`"
4180builddir="`pwd`"
4181
4182#
4183# Compute variables useful for running uninstalled software.
4184#
4185MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4186MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4187MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4188MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4189DIRSEP=':'
4190case "${build_os}" in
4191 mingw* )
4192 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4193 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4194 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4195 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4196 DIRSEP=';'
4197 ;;
4198esac
4199case "${host_os}" in
4200 mingw* )
4201 DIRSEP=';'
4202 ;;
4203esac
4204
4205
4206
4207
4208
4209
cristya0b81c32010-01-22 02:54:33 +00004210
4211#
4212# Enable OS features.
4213#
cristy73bd4a52010-10-05 11:24:23 +00004214DEPDIR="${am__leading_dot}deps"
4215
4216ac_config_commands="$ac_config_commands depfiles"
4217
4218
4219am_make=${MAKE-make}
4220cat > confinc << 'END'
4221am__doit:
4222 @echo this is the am__doit target
4223.PHONY: am__doit
4224END
4225# If we don't find an include directive, just comment out the code.
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4227$as_echo_n "checking for style of include used by $am_make... " >&6; }
4228am__include="#"
4229am__quote=
4230_am_result=none
4231# First try GNU make style include.
4232echo "include confinc" > confmf
4233# Ignore all kinds of additional output from `make'.
4234case `$am_make -s -f confmf 2> /dev/null` in #(
4235*the\ am__doit\ target*)
4236 am__include=include
4237 am__quote=
4238 _am_result=GNU
4239 ;;
4240esac
4241# Now try BSD make style include.
4242if test "$am__include" = "#"; then
4243 echo '.include "confinc"' > confmf
4244 case `$am_make -s -f confmf 2> /dev/null` in #(
4245 *the\ am__doit\ target*)
4246 am__include=.include
4247 am__quote="\""
4248 _am_result=BSD
4249 ;;
4250 esac
4251fi
4252
4253
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4255$as_echo "$_am_result" >&6; }
4256rm -f confinc confmf
4257
4258# Check whether --enable-dependency-tracking was given.
4259if test "${enable_dependency_tracking+set}" = set; then :
4260 enableval=$enable_dependency_tracking;
4261fi
4262
4263if test "x$enable_dependency_tracking" != xno; then
4264 am_depcomp="$ac_aux_dir/depcomp"
4265 AMDEPBACKSLASH='\'
4266fi
4267 if test "x$enable_dependency_tracking" != xno; then
4268 AMDEP_TRUE=
4269 AMDEP_FALSE='#'
4270else
4271 AMDEP_TRUE='#'
4272 AMDEP_FALSE=
4273fi
4274
4275
cristy3ed852e2009-09-05 21:47:34 +00004276ac_ext=c
4277ac_cpp='$CPP $CPPFLAGS'
4278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281if test -n "$ac_tool_prefix"; then
4282 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4283set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004285$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004286if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004287 $as_echo_n "(cached) " >&6
4288else
4289 if test -n "$CC"; then
4290 ac_cv_prog_CC="$CC" # Let the user override the test.
4291else
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004301 break 2
4302 fi
4303done
cristy8b350f62009-11-15 23:12:43 +00004304 done
cristy3ed852e2009-09-05 21:47:34 +00004305IFS=$as_save_IFS
4306
4307fi
4308fi
4309CC=$ac_cv_prog_CC
4310if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004312$as_echo "$CC" >&6; }
4313else
cristy8b350f62009-11-15 23:12:43 +00004314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004315$as_echo "no" >&6; }
4316fi
4317
4318
4319fi
4320if test -z "$ac_cv_prog_CC"; then
4321 ac_ct_CC=$CC
4322 # Extract the first word of "gcc", so it can be a program name with args.
4323set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004325$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004326if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004327 $as_echo_n "(cached) " >&6
4328else
4329 if test -n "$ac_ct_CC"; then
4330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4331else
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004341 break 2
4342 fi
4343done
cristy8b350f62009-11-15 23:12:43 +00004344 done
cristy3ed852e2009-09-05 21:47:34 +00004345IFS=$as_save_IFS
4346
4347fi
4348fi
4349ac_ct_CC=$ac_cv_prog_ac_ct_CC
4350if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004352$as_echo "$ac_ct_CC" >&6; }
4353else
cristy8b350f62009-11-15 23:12:43 +00004354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004355$as_echo "no" >&6; }
4356fi
4357
4358 if test "x$ac_ct_CC" = x; then
4359 CC=""
4360 else
4361 case $cross_compiling:$ac_tool_warned in
4362yes:)
cristy8b350f62009-11-15 23:12:43 +00004363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4365ac_tool_warned=yes ;;
4366esac
4367 CC=$ac_ct_CC
4368 fi
4369else
4370 CC="$ac_cv_prog_CC"
4371fi
4372
4373if test -z "$CC"; then
4374 if test -n "$ac_tool_prefix"; then
4375 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4376set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004378$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004379if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004380 $as_echo_n "(cached) " >&6
4381else
4382 if test -n "$CC"; then
4383 ac_cv_prog_CC="$CC" # Let the user override the test.
4384else
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004394 break 2
4395 fi
4396done
cristy8b350f62009-11-15 23:12:43 +00004397 done
cristy3ed852e2009-09-05 21:47:34 +00004398IFS=$as_save_IFS
4399
4400fi
4401fi
4402CC=$ac_cv_prog_CC
4403if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004405$as_echo "$CC" >&6; }
4406else
cristy8b350f62009-11-15 23:12:43 +00004407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004408$as_echo "no" >&6; }
4409fi
4410
4411
4412 fi
4413fi
4414if test -z "$CC"; then
4415 # Extract the first word of "cc", so it can be a program name with args.
4416set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004418$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004419if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004420 $as_echo_n "(cached) " >&6
4421else
4422 if test -n "$CC"; then
4423 ac_cv_prog_CC="$CC" # Let the user override the test.
4424else
4425 ac_prog_rejected=no
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4434 ac_prog_rejected=yes
4435 continue
4436 fi
4437 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004439 break 2
4440 fi
4441done
cristy8b350f62009-11-15 23:12:43 +00004442 done
cristy3ed852e2009-09-05 21:47:34 +00004443IFS=$as_save_IFS
4444
4445if test $ac_prog_rejected = yes; then
4446 # We found a bogon in the path, so make sure we never use it.
4447 set dummy $ac_cv_prog_CC
4448 shift
4449 if test $# != 0; then
4450 # We chose a different compiler from the bogus one.
4451 # However, it has the same basename, so the bogon will be chosen
4452 # first if we set CC to just the basename; use the full file name.
4453 shift
4454 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4455 fi
4456fi
4457fi
4458fi
4459CC=$ac_cv_prog_CC
4460if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004462$as_echo "$CC" >&6; }
4463else
cristy8b350f62009-11-15 23:12:43 +00004464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004465$as_echo "no" >&6; }
4466fi
4467
4468
4469fi
4470if test -z "$CC"; then
4471 if test -n "$ac_tool_prefix"; then
4472 for ac_prog in cl.exe
4473 do
4474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4475set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004478if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004479 $as_echo_n "(cached) " >&6
4480else
4481 if test -n "$CC"; then
4482 ac_cv_prog_CC="$CC" # Let the user override the test.
4483else
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004493 break 2
4494 fi
4495done
cristy8b350f62009-11-15 23:12:43 +00004496 done
cristy3ed852e2009-09-05 21:47:34 +00004497IFS=$as_save_IFS
4498
4499fi
4500fi
4501CC=$ac_cv_prog_CC
4502if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004504$as_echo "$CC" >&6; }
4505else
cristy8b350f62009-11-15 23:12:43 +00004506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004507$as_echo "no" >&6; }
4508fi
4509
4510
4511 test -n "$CC" && break
4512 done
4513fi
4514if test -z "$CC"; then
4515 ac_ct_CC=$CC
4516 for ac_prog in cl.exe
4517do
4518 # Extract the first word of "$ac_prog", so it can be a program name with args.
4519set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004522if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004523 $as_echo_n "(cached) " >&6
4524else
4525 if test -n "$ac_ct_CC"; then
4526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004533 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004537 break 2
4538 fi
4539done
cristy8b350f62009-11-15 23:12:43 +00004540 done
cristy3ed852e2009-09-05 21:47:34 +00004541IFS=$as_save_IFS
4542
4543fi
4544fi
4545ac_ct_CC=$ac_cv_prog_ac_ct_CC
4546if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo "$ac_ct_CC" >&6; }
4549else
cristy8b350f62009-11-15 23:12:43 +00004550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004551$as_echo "no" >&6; }
4552fi
4553
4554
4555 test -n "$ac_ct_CC" && break
4556done
4557
4558 if test "x$ac_ct_CC" = x; then
4559 CC=""
4560 else
4561 case $cross_compiling:$ac_tool_warned in
4562yes:)
cristy8b350f62009-11-15 23:12:43 +00004563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4565ac_tool_warned=yes ;;
4566esac
4567 CC=$ac_ct_CC
4568 fi
4569fi
4570
4571fi
4572
4573
cristy8b350f62009-11-15 23:12:43 +00004574test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004576as_fn_error $? "no acceptable C compiler found in \$PATH
4577See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004578
4579# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004580$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004581set X $ac_compile
4582ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004583for ac_option in --version -v -V -qversion; do
4584 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004585case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4588esac
cristy8b350f62009-11-15 23:12:43 +00004589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590$as_echo "$ac_try_echo"; } >&5
4591 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004592 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004593 if test -s conftest.err; then
4594 sed '10a\
4595... rest of stderr output deleted ...
4596 10q' conftest.err >conftest.er1
4597 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004598 fi
cristycd4c5312009-11-22 01:19:08 +00004599 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4601 test $ac_status = 0; }
4602done
cristy3ed852e2009-09-05 21:47:34 +00004603
cristy8b350f62009-11-15 23:12:43 +00004604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004605/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004606
cristy3ed852e2009-09-05 21:47:34 +00004607int
4608main ()
4609{
4610
4611 ;
4612 return 0;
4613}
4614_ACEOF
4615ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004616ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004617# Try to create an executable without -o first, disregard a.out.
4618# It will help us diagnose broken compilers, and finding out an intuition
4619# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4621$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004622ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4623
4624# The possible output files:
4625ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4626
4627ac_rmfiles=
4628for ac_file in $ac_files
4629do
4630 case $ac_file in
4631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4632 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4633 esac
4634done
4635rm -f $ac_rmfiles
4636
cristy8b350f62009-11-15 23:12:43 +00004637if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004638case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641esac
cristy8b350f62009-11-15 23:12:43 +00004642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004644 (eval "$ac_link_default") 2>&5
4645 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004648 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4649# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4650# in a Makefile. We should not override ac_cv_exeext if it was cached,
4651# so that the user can short-circuit this test for compilers unknown to
4652# Autoconf.
4653for ac_file in $ac_files ''
4654do
4655 test -f "$ac_file" || continue
4656 case $ac_file in
4657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4658 ;;
4659 [ab].out )
4660 # We found the default executable, but exeext='' is most
4661 # certainly right.
4662 break;;
4663 *.* )
cristy8b350f62009-11-15 23:12:43 +00004664 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004665 then :; else
4666 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4667 fi
4668 # We set ac_cv_exeext here because the later test for it is not
4669 # safe: cross compilers may not add the suffix if given an `-o'
4670 # argument, so we may need to know it at that point already.
4671 # Even if this section looks crufty: it has the advantage of
4672 # actually working.
4673 break;;
4674 * )
4675 break;;
4676 esac
4677done
4678test "$ac_cv_exeext" = no && ac_cv_exeext=
4679
4680else
4681 ac_file=''
4682fi
cristy8b350f62009-11-15 23:12:43 +00004683if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685$as_echo "no" >&6; }
4686$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004687sed 's/^/| /' conftest.$ac_ext >&5
4688
cristy8b350f62009-11-15 23:12:43 +00004689{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004691as_fn_error 77 "C compiler cannot create executables
4692See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004693else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4695$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004696fi
cristycd4c5312009-11-22 01:19:08 +00004697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4698$as_echo_n "checking for C compiler default output file name... " >&6; }
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4700$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004701ac_exeext=$ac_cv_exeext
4702
cristycd4c5312009-11-22 01:19:08 +00004703rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004704ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004707if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004708case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711esac
cristy8b350f62009-11-15 23:12:43 +00004712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4713$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004714 (eval "$ac_link") 2>&5
4715 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004718 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4719# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4720# work properly (i.e., refer to `conftest.exe'), while it won't with
4721# `rm'.
4722for ac_file in conftest.exe conftest conftest.*; do
4723 test -f "$ac_file" || continue
4724 case $ac_file in
4725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4726 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4727 break;;
4728 * ) break;;
4729 esac
4730done
4731else
cristy8b350f62009-11-15 23:12:43 +00004732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004734as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4735See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004736fi
cristycd4c5312009-11-22 01:19:08 +00004737rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004739$as_echo "$ac_cv_exeext" >&6; }
4740
4741rm -f conftest.$ac_ext
4742EXEEXT=$ac_cv_exeext
4743ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745/* end confdefs.h. */
4746#include <stdio.h>
4747int
4748main ()
4749{
4750FILE *f = fopen ("conftest.out", "w");
4751 return ferror (f) || fclose (f) != 0;
4752
4753 ;
4754 return 0;
4755}
4756_ACEOF
4757ac_clean_files="$ac_clean_files conftest.out"
4758# Check that the compiler produces executables we can run. If not, either
4759# the compiler is broken, or we cross compile.
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4761$as_echo_n "checking whether we are cross compiling... " >&6; }
4762if test "$cross_compiling" != yes; then
4763 { { ac_try="$ac_link"
4764case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767esac
4768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4769$as_echo "$ac_try_echo"; } >&5
4770 (eval "$ac_link") 2>&5
4771 ac_status=$?
4772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4773 test $ac_status = 0; }
4774 if { ac_try='./conftest$ac_cv_exeext'
4775 { { case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778esac
4779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4780$as_echo "$ac_try_echo"; } >&5
4781 (eval "$ac_try") 2>&5
4782 ac_status=$?
4783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4784 test $ac_status = 0; }; }; then
4785 cross_compiling=no
4786 else
4787 if test "$cross_compiling" = maybe; then
4788 cross_compiling=yes
4789 else
4790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004792as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004793If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004794See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004795 fi
4796 fi
4797fi
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4799$as_echo "$cross_compiling" >&6; }
4800
4801rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4802ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004804$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004805if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004806 $as_echo_n "(cached) " >&6
4807else
cristy8b350f62009-11-15 23:12:43 +00004808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004809/* end confdefs.h. */
4810
4811int
4812main ()
4813{
4814
4815 ;
4816 return 0;
4817}
4818_ACEOF
4819rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004820if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004821case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824esac
cristy8b350f62009-11-15 23:12:43 +00004825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4826$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004827 (eval "$ac_compile") 2>&5
4828 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4830 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004831 for ac_file in conftest.o conftest.obj conftest.*; do
4832 test -f "$ac_file" || continue;
4833 case $ac_file in
4834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4835 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4836 break;;
4837 esac
4838done
4839else
4840 $as_echo "$as_me: failed program was:" >&5
4841sed 's/^/| /' conftest.$ac_ext >&5
4842
cristy8b350f62009-11-15 23:12:43 +00004843{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004845as_fn_error $? "cannot compute suffix of object files: cannot compile
4846See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004847fi
cristy3ed852e2009-09-05 21:47:34 +00004848rm -f conftest.$ac_cv_objext conftest.$ac_ext
4849fi
cristy8b350f62009-11-15 23:12:43 +00004850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004851$as_echo "$ac_cv_objext" >&6; }
4852OBJEXT=$ac_cv_objext
4853ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004855$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004856if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004857 $as_echo_n "(cached) " >&6
4858else
cristy8b350f62009-11-15 23:12:43 +00004859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004860/* end confdefs.h. */
4861
4862int
4863main ()
4864{
4865#ifndef __GNUC__
4866 choke me
4867#endif
4868
4869 ;
4870 return 0;
4871}
4872_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004873if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004874 ac_compiler_gnu=yes
4875else
cristy8b350f62009-11-15 23:12:43 +00004876 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004877fi
cristy3ed852e2009-09-05 21:47:34 +00004878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879ac_cv_c_compiler_gnu=$ac_compiler_gnu
4880
4881fi
cristy8b350f62009-11-15 23:12:43 +00004882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004883$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4884if test $ac_compiler_gnu = yes; then
4885 GCC=yes
4886else
4887 GCC=
4888fi
4889ac_test_CFLAGS=${CFLAGS+set}
4890ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004892$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004893if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004894 $as_echo_n "(cached) " >&6
4895else
4896 ac_save_c_werror_flag=$ac_c_werror_flag
4897 ac_c_werror_flag=yes
4898 ac_cv_prog_cc_g=no
4899 CFLAGS="-g"
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
cristy8b350f62009-11-15 23:12:43 +00004911if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004912 ac_cv_prog_cc_g=yes
4913else
cristy8b350f62009-11-15 23:12:43 +00004914 CFLAGS=""
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004916/* end confdefs.h. */
4917
4918int
4919main ()
4920{
4921
4922 ;
4923 return 0;
4924}
4925_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004926if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004927
cristy8b350f62009-11-15 23:12:43 +00004928else
4929 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004930 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004932/* end confdefs.h. */
4933
4934int
4935main ()
4936{
4937
4938 ;
4939 return 0;
4940}
4941_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004942if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004943 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004944fi
cristy3ed852e2009-09-05 21:47:34 +00004945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946fi
cristy3ed852e2009-09-05 21:47:34 +00004947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948fi
cristy3ed852e2009-09-05 21:47:34 +00004949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 ac_c_werror_flag=$ac_save_c_werror_flag
4951fi
cristy8b350f62009-11-15 23:12:43 +00004952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004953$as_echo "$ac_cv_prog_cc_g" >&6; }
4954if test "$ac_test_CFLAGS" = set; then
4955 CFLAGS=$ac_save_CFLAGS
4956elif test $ac_cv_prog_cc_g = yes; then
4957 if test "$GCC" = yes; then
4958 CFLAGS="-g -O2"
4959 else
4960 CFLAGS="-g"
4961 fi
4962else
4963 if test "$GCC" = yes; then
4964 CFLAGS="-O2"
4965 else
4966 CFLAGS=
4967 fi
4968fi
cristy8b350f62009-11-15 23:12:43 +00004969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004970$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004971if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004972 $as_echo_n "(cached) " >&6
4973else
4974 ac_cv_prog_cc_c89=no
4975ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004977/* end confdefs.h. */
4978#include <stdarg.h>
4979#include <stdio.h>
4980#include <sys/types.h>
4981#include <sys/stat.h>
4982/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4983struct buf { int x; };
4984FILE * (*rcsopen) (struct buf *, struct stat *, int);
4985static char *e (p, i)
4986 char **p;
4987 int i;
4988{
4989 return p[i];
4990}
4991static char *f (char * (*g) (char **, int), char **p, ...)
4992{
4993 char *s;
4994 va_list v;
4995 va_start (v,p);
4996 s = g (p, va_arg (v,int));
4997 va_end (v);
4998 return s;
4999}
5000
5001/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5002 function prototypes and stuff, but not '\xHH' hex character constants.
5003 These don't provoke an error unfortunately, instead are silently treated
5004 as 'x'. The following induces an error, until -std is added to get
5005 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5006 array size at least. It's necessary to write '\x00'==0 to get something
5007 that's true only with -std. */
5008int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5009
5010/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5011 inside strings and character constants. */
5012#define FOO(x) 'x'
5013int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5014
5015int test (int i, double x);
5016struct s1 {int (*f) (int a);};
5017struct s2 {int (*f) (double a);};
5018int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5019int argc;
5020char **argv;
5021int
5022main ()
5023{
5024return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5025 ;
5026 return 0;
5027}
5028_ACEOF
5029for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5030 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5031do
5032 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005033 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005034 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005035fi
cristy3ed852e2009-09-05 21:47:34 +00005036rm -f core conftest.err conftest.$ac_objext
5037 test "x$ac_cv_prog_cc_c89" != "xno" && break
5038done
5039rm -f conftest.$ac_ext
5040CC=$ac_save_CC
5041
5042fi
5043# AC_CACHE_VAL
5044case "x$ac_cv_prog_cc_c89" in
5045 x)
cristy8b350f62009-11-15 23:12:43 +00005046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005047$as_echo "none needed" >&6; } ;;
5048 xno)
cristy8b350f62009-11-15 23:12:43 +00005049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005050$as_echo "unsupported" >&6; } ;;
5051 *)
5052 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005054$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5055esac
cristy8b350f62009-11-15 23:12:43 +00005056if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005057
cristy8b350f62009-11-15 23:12:43 +00005058fi
cristy3ed852e2009-09-05 21:47:34 +00005059
5060ac_ext=c
5061ac_cpp='$CPP $CPPFLAGS'
5062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005065
cristy73bd4a52010-10-05 11:24:23 +00005066depcc="$CC" am_compiler_list=
5067
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5069$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005070if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005071 $as_echo_n "(cached) " >&6
5072else
5073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5074 # We make a subdir and do the tests there. Otherwise we can end up
5075 # making bogus files that we don't know about and never remove. For
5076 # instance it was reported that on HP-UX the gcc test will end up
5077 # making a dummy file named `D' -- because `-MD' means `put the output
5078 # in D'.
5079 mkdir conftest.dir
5080 # Copy depcomp to subdir because otherwise we won't find it if we're
5081 # using a relative directory.
5082 cp "$am_depcomp" conftest.dir
5083 cd conftest.dir
5084 # We will build objects and dependencies in a subdirectory because
5085 # it helps to detect inapplicable dependency modes. For instance
5086 # both Tru64's cc and ICC support -MD to output dependencies as a
5087 # side effect of compilation, but ICC will put the dependencies in
5088 # the current directory while Tru64 will put them in the object
5089 # directory.
5090 mkdir sub
5091
5092 am_cv_CC_dependencies_compiler_type=none
5093 if test "$am_compiler_list" = ""; then
5094 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5095 fi
5096 am__universal=false
5097 case " $depcc " in #(
5098 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5099 esac
5100
5101 for depmode in $am_compiler_list; do
5102 # Setup a source with many dependencies, because some compilers
5103 # like to wrap large dependency lists on column 80 (with \), and
5104 # we should not choose a depcomp mode which is confused by this.
5105 #
5106 # We need to recreate these files for each test, as the compiler may
5107 # overwrite some of them when testing with obscure command lines.
5108 # This happens at least with the AIX C compiler.
5109 : > sub/conftest.c
5110 for i in 1 2 3 4 5 6; do
5111 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5112 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5113 # Solaris 8's {/usr,}/bin/sh.
5114 touch sub/conftst$i.h
5115 done
5116 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5117
5118 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5119 # mode. It turns out that the SunPro C++ compiler does not properly
5120 # handle `-M -o', and we need to detect this. Also, some Intel
5121 # versions had trouble with output in subdirs
5122 am__obj=sub/conftest.${OBJEXT-o}
5123 am__minus_obj="-o $am__obj"
5124 case $depmode in
5125 gcc)
5126 # This depmode causes a compiler race in universal mode.
5127 test "$am__universal" = false || continue
5128 ;;
5129 nosideeffect)
5130 # after this tag, mechanisms are not by side-effect, so they'll
5131 # only be used when explicitly requested
5132 if test "x$enable_dependency_tracking" = xyes; then
5133 continue
5134 else
5135 break
5136 fi
5137 ;;
5138 msvisualcpp | msvcmsys)
5139 # This compiler won't grok `-c -o', but also, the minuso test has
5140 # not run yet. These depmodes are late enough in the game, and
5141 # so weak that their functioning should not be impacted.
5142 am__obj=conftest.${OBJEXT-o}
5143 am__minus_obj=
5144 ;;
5145 none) break ;;
5146 esac
5147 if depmode=$depmode \
5148 source=sub/conftest.c object=$am__obj \
5149 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5150 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5151 >/dev/null 2>conftest.err &&
5152 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5153 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5154 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5155 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5156 # icc doesn't choke on unknown options, it will just issue warnings
5157 # or remarks (even with -Werror). So we grep stderr for any message
5158 # that says an option was ignored or not supported.
5159 # When given -MP, icc 7.0 and 7.1 complain thusly:
5160 # icc: Command line warning: ignoring option '-M'; no argument required
5161 # The diagnosis changed in icc 8.0:
5162 # icc: Command line remark: option '-MP' not supported
5163 if (grep 'ignoring option' conftest.err ||
5164 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5165 am_cv_CC_dependencies_compiler_type=$depmode
5166 break
5167 fi
5168 fi
5169 done
5170
5171 cd ..
5172 rm -rf conftest.dir
5173else
5174 am_cv_CC_dependencies_compiler_type=none
5175fi
5176
5177fi
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5179$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5180CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5181
5182 if
5183 test "x$enable_dependency_tracking" != xno \
5184 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5185 am__fastdepCC_TRUE=
5186 am__fastdepCC_FALSE='#'
5187else
5188 am__fastdepCC_TRUE='#'
5189 am__fastdepCC_FALSE=
5190fi
5191
5192
cristy3ed852e2009-09-05 21:47:34 +00005193
cristya0b81c32010-01-22 02:54:33 +00005194ac_ext=c
5195ac_cpp='$CPP $CPPFLAGS'
5196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5200$as_echo_n "checking how to run the C preprocessor... " >&6; }
5201# On Suns, sometimes $CPP names a directory.
5202if test -n "$CPP" && test -d "$CPP"; then
5203 CPP=
5204fi
5205if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005206 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005207 $as_echo_n "(cached) " >&6
5208else
5209 # Double quotes because CPP needs to be expanded
5210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5211 do
5212 ac_preproc_ok=false
5213for ac_c_preproc_warn_flag in '' yes
5214do
5215 # Use a header file that comes with gcc, so configuring glibc
5216 # with a fresh cross-compiler works.
5217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5218 # <limits.h> exists even on freestanding compilers.
5219 # On the NeXT, cc -E runs the code through the compiler's parser,
5220 # not just through cpp. "Syntax error" is here to catch this case.
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h. */
5223#ifdef __STDC__
5224# include <limits.h>
5225#else
5226# include <assert.h>
5227#endif
5228 Syntax error
5229_ACEOF
5230if ac_fn_c_try_cpp "$LINENO"; then :
5231
5232else
5233 # Broken: fails on valid input.
5234continue
5235fi
cristyda16f162011-02-19 23:52:17 +00005236rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005237
5238 # OK, works on sane cases. Now check whether nonexistent headers
5239 # can be detected and how.
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241/* end confdefs.h. */
5242#include <ac_nonexistent.h>
5243_ACEOF
5244if ac_fn_c_try_cpp "$LINENO"; then :
5245 # Broken: success on invalid input.
5246continue
5247else
5248 # Passes both tests.
5249ac_preproc_ok=:
5250break
5251fi
cristyda16f162011-02-19 23:52:17 +00005252rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005253
5254done
5255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005256rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005257if $ac_preproc_ok; then :
5258 break
5259fi
5260
5261 done
5262 ac_cv_prog_CPP=$CPP
5263
5264fi
5265 CPP=$ac_cv_prog_CPP
5266else
5267 ac_cv_prog_CPP=$CPP
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5270$as_echo "$CPP" >&6; }
5271ac_preproc_ok=false
5272for ac_c_preproc_warn_flag in '' yes
5273do
5274 # Use a header file that comes with gcc, so configuring glibc
5275 # with a fresh cross-compiler works.
5276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5277 # <limits.h> exists even on freestanding compilers.
5278 # On the NeXT, cc -E runs the code through the compiler's parser,
5279 # not just through cpp. "Syntax error" is here to catch this case.
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h. */
5282#ifdef __STDC__
5283# include <limits.h>
5284#else
5285# include <assert.h>
5286#endif
5287 Syntax error
5288_ACEOF
5289if ac_fn_c_try_cpp "$LINENO"; then :
5290
5291else
5292 # Broken: fails on valid input.
5293continue
5294fi
cristyda16f162011-02-19 23:52:17 +00005295rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005296
5297 # OK, works on sane cases. Now check whether nonexistent headers
5298 # can be detected and how.
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h. */
5301#include <ac_nonexistent.h>
5302_ACEOF
5303if ac_fn_c_try_cpp "$LINENO"; then :
5304 # Broken: success on invalid input.
5305continue
5306else
5307 # Passes both tests.
5308ac_preproc_ok=:
5309break
5310fi
cristyda16f162011-02-19 23:52:17 +00005311rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005312
5313done
5314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005315rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005316if $ac_preproc_ok; then :
5317
5318else
5319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005321as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5322See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005323fi
5324
5325ac_ext=c
5326ac_cpp='$CPP $CPPFLAGS'
5327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330
5331
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5333$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005334if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005335 $as_echo_n "(cached) " >&6
5336else
5337 if test -z "$GREP"; then
5338 ac_path_GREP_found=false
5339 # Loop through the user's path and test for each of PROGNAME-LIST
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5342do
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_prog in grep ggrep; do
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5348 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5349# Check for GNU ac_path_GREP and select it if it is found.
5350 # Check for GNU $ac_path_GREP
5351case `"$ac_path_GREP" --version 2>&1` in
5352*GNU*)
5353 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5354*)
5355 ac_count=0
5356 $as_echo_n 0123456789 >"conftest.in"
5357 while :
5358 do
5359 cat "conftest.in" "conftest.in" >"conftest.tmp"
5360 mv "conftest.tmp" "conftest.in"
5361 cp "conftest.in" "conftest.nl"
5362 $as_echo 'GREP' >> "conftest.nl"
5363 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5365 as_fn_arith $ac_count + 1 && ac_count=$as_val
5366 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5367 # Best one so far, save it but keep looking for a better one
5368 ac_cv_path_GREP="$ac_path_GREP"
5369 ac_path_GREP_max=$ac_count
5370 fi
5371 # 10*(2^10) chars as input seems more than enough
5372 test $ac_count -gt 10 && break
5373 done
5374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5375esac
5376
5377 $ac_path_GREP_found && break 3
5378 done
5379 done
5380 done
5381IFS=$as_save_IFS
5382 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005383 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005384 fi
5385else
5386 ac_cv_path_GREP=$GREP
5387fi
5388
5389fi
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5391$as_echo "$ac_cv_path_GREP" >&6; }
5392 GREP="$ac_cv_path_GREP"
5393
5394
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5396$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005397if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005398 $as_echo_n "(cached) " >&6
5399else
5400 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5401 then ac_cv_path_EGREP="$GREP -E"
5402 else
5403 if test -z "$EGREP"; then
5404 ac_path_EGREP_found=false
5405 # Loop through the user's path and test for each of PROGNAME-LIST
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_prog in egrep; do
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5414 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5415# Check for GNU ac_path_EGREP and select it if it is found.
5416 # Check for GNU $ac_path_EGREP
5417case `"$ac_path_EGREP" --version 2>&1` in
5418*GNU*)
5419 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5420*)
5421 ac_count=0
5422 $as_echo_n 0123456789 >"conftest.in"
5423 while :
5424 do
5425 cat "conftest.in" "conftest.in" >"conftest.tmp"
5426 mv "conftest.tmp" "conftest.in"
5427 cp "conftest.in" "conftest.nl"
5428 $as_echo 'EGREP' >> "conftest.nl"
5429 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5431 as_fn_arith $ac_count + 1 && ac_count=$as_val
5432 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5433 # Best one so far, save it but keep looking for a better one
5434 ac_cv_path_EGREP="$ac_path_EGREP"
5435 ac_path_EGREP_max=$ac_count
5436 fi
5437 # 10*(2^10) chars as input seems more than enough
5438 test $ac_count -gt 10 && break
5439 done
5440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5441esac
5442
5443 $ac_path_EGREP_found && break 3
5444 done
5445 done
5446 done
5447IFS=$as_save_IFS
5448 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005449 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005450 fi
5451else
5452 ac_cv_path_EGREP=$EGREP
5453fi
5454
5455 fi
5456fi
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5458$as_echo "$ac_cv_path_EGREP" >&6; }
5459 EGREP="$ac_cv_path_EGREP"
5460
5461
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5463$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005464if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005465 $as_echo_n "(cached) " >&6
5466else
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h. */
5469#include <stdlib.h>
5470#include <stdarg.h>
5471#include <string.h>
5472#include <float.h>
5473
5474int
5475main ()
5476{
5477
5478 ;
5479 return 0;
5480}
5481_ACEOF
5482if ac_fn_c_try_compile "$LINENO"; then :
5483 ac_cv_header_stdc=yes
5484else
5485 ac_cv_header_stdc=no
5486fi
5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488
5489if test $ac_cv_header_stdc = yes; then
5490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h. */
5493#include <string.h>
5494
5495_ACEOF
5496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5497 $EGREP "memchr" >/dev/null 2>&1; then :
5498
5499else
5500 ac_cv_header_stdc=no
5501fi
5502rm -f conftest*
5503
5504fi
5505
5506if test $ac_cv_header_stdc = yes; then
5507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h. */
5510#include <stdlib.h>
5511
5512_ACEOF
5513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5514 $EGREP "free" >/dev/null 2>&1; then :
5515
5516else
5517 ac_cv_header_stdc=no
5518fi
5519rm -f conftest*
5520
5521fi
5522
5523if test $ac_cv_header_stdc = yes; then
5524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5525 if test "$cross_compiling" = yes; then :
5526 :
5527else
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529/* end confdefs.h. */
5530#include <ctype.h>
5531#include <stdlib.h>
5532#if ((' ' & 0x0FF) == 0x020)
5533# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5534# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5535#else
5536# define ISLOWER(c) \
5537 (('a' <= (c) && (c) <= 'i') \
5538 || ('j' <= (c) && (c) <= 'r') \
5539 || ('s' <= (c) && (c) <= 'z'))
5540# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5541#endif
5542
5543#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5544int
5545main ()
5546{
5547 int i;
5548 for (i = 0; i < 256; i++)
5549 if (XOR (islower (i), ISLOWER (i))
5550 || toupper (i) != TOUPPER (i))
5551 return 2;
5552 return 0;
5553}
5554_ACEOF
5555if ac_fn_c_try_run "$LINENO"; then :
5556
5557else
5558 ac_cv_header_stdc=no
5559fi
5560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5561 conftest.$ac_objext conftest.beam conftest.$ac_ext
5562fi
5563
5564fi
5565fi
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5567$as_echo "$ac_cv_header_stdc" >&6; }
5568if test $ac_cv_header_stdc = yes; then
5569
5570$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5571
5572fi
5573
5574# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5575for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5576 inttypes.h stdint.h unistd.h
5577do :
5578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5579ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5580"
cristy98dddb52010-11-04 00:30:15 +00005581if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005582 cat >>confdefs.h <<_ACEOF
5583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5584_ACEOF
5585
5586fi
5587
5588done
5589
5590
5591
5592 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 +00005593if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005594 MINIX=yes
5595else
5596 MINIX=
5597fi
5598
5599
5600 if test "$MINIX" = yes; then
5601
5602$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5603
5604
5605$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5606
5607
5608$as_echo "#define _MINIX 1" >>confdefs.h
5609
5610 fi
5611
5612
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5614$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005615if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005616 $as_echo_n "(cached) " >&6
5617else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619/* end confdefs.h. */
5620
5621# define __EXTENSIONS__ 1
5622 $ac_includes_default
5623int
5624main ()
5625{
5626
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631if ac_fn_c_try_compile "$LINENO"; then :
5632 ac_cv_safe_to_define___extensions__=yes
5633else
5634 ac_cv_safe_to_define___extensions__=no
5635fi
5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637fi
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5639$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5640 test $ac_cv_safe_to_define___extensions__ = yes &&
5641 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5642
5643 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5644
5645 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5646
5647 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5648
5649 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5650
5651
5652
5653# Check for programs
5654ac_ext=c
5655ac_cpp='$CPP $CPPFLAGS'
5656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658ac_compiler_gnu=$ac_cv_c_compiler_gnu
5659if test -n "$ac_tool_prefix"; then
5660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5661set dummy ${ac_tool_prefix}gcc; ac_word=$2
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005664if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005665 $as_echo_n "(cached) " >&6
5666else
5667 if test -n "$CC"; then
5668 ac_cv_prog_CC="$CC" # Let the user override the test.
5669else
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5680 fi
5681done
5682 done
5683IFS=$as_save_IFS
5684
5685fi
5686fi
5687CC=$ac_cv_prog_CC
5688if test -n "$CC"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5690$as_echo "$CC" >&6; }
5691else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; }
5694fi
5695
5696
5697fi
5698if test -z "$ac_cv_prog_CC"; then
5699 ac_ct_CC=$CC
5700 # Extract the first word of "gcc", so it can be a program name with args.
5701set dummy gcc; ac_word=$2
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005704if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005705 $as_echo_n "(cached) " >&6
5706else
5707 if test -n "$ac_ct_CC"; then
5708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717 ac_cv_prog_ac_ct_CC="gcc"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721done
5722 done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
5727ac_ct_CC=$ac_cv_prog_ac_ct_CC
5728if test -n "$ac_ct_CC"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5730$as_echo "$ac_ct_CC" >&6; }
5731else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736 if test "x$ac_ct_CC" = x; then
5737 CC=""
5738 else
5739 case $cross_compiling:$ac_tool_warned in
5740yes:)
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743ac_tool_warned=yes ;;
5744esac
5745 CC=$ac_ct_CC
5746 fi
5747else
5748 CC="$ac_cv_prog_CC"
5749fi
5750
5751if test -z "$CC"; then
5752 if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5754set dummy ${ac_tool_prefix}cc; 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}cc"
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
5790 fi
5791fi
5792if test -z "$CC"; then
5793 # Extract the first word of "cc", so it can be a program name with args.
5794set dummy cc; 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_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005798 $as_echo_n "(cached) " >&6
5799else
5800 if test -n "$CC"; then
5801 ac_cv_prog_CC="$CC" # Let the user override the test.
5802else
5803 ac_prog_rejected=no
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5812 ac_prog_rejected=yes
5813 continue
5814 fi
5815 ac_cv_prog_CC="cc"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819done
5820 done
5821IFS=$as_save_IFS
5822
5823if test $ac_prog_rejected = yes; then
5824 # We found a bogon in the path, so make sure we never use it.
5825 set dummy $ac_cv_prog_CC
5826 shift
5827 if test $# != 0; then
5828 # We chose a different compiler from the bogus one.
5829 # However, it has the same basename, so the bogon will be chosen
5830 # first if we set CC to just the basename; use the full file name.
5831 shift
5832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5833 fi
5834fi
5835fi
5836fi
5837CC=$ac_cv_prog_CC
5838if test -n "$CC"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5840$as_echo "$CC" >&6; }
5841else
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }
5844fi
5845
5846
5847fi
5848if test -z "$CC"; then
5849 if test -n "$ac_tool_prefix"; then
5850 for ac_prog in cl.exe
5851 do
5852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005856if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005857 $as_echo_n "(cached) " >&6
5858else
5859 if test -n "$CC"; then
5860 ac_cv_prog_CC="$CC" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873done
5874 done
5875IFS=$as_save_IFS
5876
5877fi
5878fi
5879CC=$ac_cv_prog_CC
5880if test -n "$CC"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5882$as_echo "$CC" >&6; }
5883else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885$as_echo "no" >&6; }
5886fi
5887
5888
5889 test -n "$CC" && break
5890 done
5891fi
5892if test -z "$CC"; then
5893 ac_ct_CC=$CC
5894 for ac_prog in cl.exe
5895do
5896 # Extract the first word of "$ac_prog", so it can be a program name with args.
5897set dummy $ac_prog; ac_word=$2
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005900if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005901 $as_echo_n "(cached) " >&6
5902else
5903 if test -n "$ac_ct_CC"; then
5904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913 ac_cv_prog_ac_ct_CC="$ac_prog"
5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917done
5918 done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923ac_ct_CC=$ac_cv_prog_ac_ct_CC
5924if test -n "$ac_ct_CC"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5926$as_echo "$ac_ct_CC" >&6; }
5927else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929$as_echo "no" >&6; }
5930fi
5931
5932
5933 test -n "$ac_ct_CC" && break
5934done
5935
5936 if test "x$ac_ct_CC" = x; then
5937 CC=""
5938 else
5939 case $cross_compiling:$ac_tool_warned in
5940yes:)
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5943ac_tool_warned=yes ;;
5944esac
5945 CC=$ac_ct_CC
5946 fi
5947fi
5948
5949fi
5950
5951
5952test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005954as_fn_error $? "no acceptable C compiler found in \$PATH
5955See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005956
5957# Provide some information about the compiler.
5958$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5959set X $ac_compile
5960ac_compiler=$2
5961for ac_option in --version -v -V -qversion; do
5962 { { ac_try="$ac_compiler $ac_option >&5"
5963case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966esac
5967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5968$as_echo "$ac_try_echo"; } >&5
5969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5970 ac_status=$?
5971 if test -s conftest.err; then
5972 sed '10a\
5973... rest of stderr output deleted ...
5974 10q' conftest.err >conftest.er1
5975 cat conftest.er1 >&5
5976 fi
5977 rm -f conftest.er1 conftest.err
5978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5979 test $ac_status = 0; }
5980done
5981
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5983$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005984if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005985 $as_echo_n "(cached) " >&6
5986else
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h. */
5989
5990int
5991main ()
5992{
5993#ifndef __GNUC__
5994 choke me
5995#endif
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001if ac_fn_c_try_compile "$LINENO"; then :
6002 ac_compiler_gnu=yes
6003else
6004 ac_compiler_gnu=no
6005fi
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007ac_cv_c_compiler_gnu=$ac_compiler_gnu
6008
6009fi
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6011$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6012if test $ac_compiler_gnu = yes; then
6013 GCC=yes
6014else
6015 GCC=
6016fi
6017ac_test_CFLAGS=${CFLAGS+set}
6018ac_save_CFLAGS=$CFLAGS
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6020$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006021if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006022 $as_echo_n "(cached) " >&6
6023else
6024 ac_save_c_werror_flag=$ac_c_werror_flag
6025 ac_c_werror_flag=yes
6026 ac_cv_prog_cc_g=no
6027 CFLAGS="-g"
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h. */
6030
6031int
6032main ()
6033{
6034
6035 ;
6036 return 0;
6037}
6038_ACEOF
6039if ac_fn_c_try_compile "$LINENO"; then :
6040 ac_cv_prog_cc_g=yes
6041else
6042 CFLAGS=""
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h. */
6045
6046int
6047main ()
6048{
6049
6050 ;
6051 return 0;
6052}
6053_ACEOF
6054if ac_fn_c_try_compile "$LINENO"; then :
6055
6056else
6057 ac_c_werror_flag=$ac_save_c_werror_flag
6058 CFLAGS="-g"
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h. */
6061
6062int
6063main ()
6064{
6065
6066 ;
6067 return 0;
6068}
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"; then :
6071 ac_cv_prog_cc_g=yes
6072fi
6073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074fi
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076fi
6077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 ac_c_werror_flag=$ac_save_c_werror_flag
6079fi
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6081$as_echo "$ac_cv_prog_cc_g" >&6; }
6082if test "$ac_test_CFLAGS" = set; then
6083 CFLAGS=$ac_save_CFLAGS
6084elif test $ac_cv_prog_cc_g = yes; then
6085 if test "$GCC" = yes; then
6086 CFLAGS="-g -O2"
6087 else
6088 CFLAGS="-g"
6089 fi
6090else
6091 if test "$GCC" = yes; then
6092 CFLAGS="-O2"
6093 else
6094 CFLAGS=
6095 fi
6096fi
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6098$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006099if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006100 $as_echo_n "(cached) " >&6
6101else
6102 ac_cv_prog_cc_c89=no
6103ac_save_CC=$CC
6104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h. */
6106#include <stdarg.h>
6107#include <stdio.h>
6108#include <sys/types.h>
6109#include <sys/stat.h>
6110/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6111struct buf { int x; };
6112FILE * (*rcsopen) (struct buf *, struct stat *, int);
6113static char *e (p, i)
6114 char **p;
6115 int i;
6116{
6117 return p[i];
6118}
6119static char *f (char * (*g) (char **, int), char **p, ...)
6120{
6121 char *s;
6122 va_list v;
6123 va_start (v,p);
6124 s = g (p, va_arg (v,int));
6125 va_end (v);
6126 return s;
6127}
6128
6129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6130 function prototypes and stuff, but not '\xHH' hex character constants.
6131 These don't provoke an error unfortunately, instead are silently treated
6132 as 'x'. The following induces an error, until -std is added to get
6133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6134 array size at least. It's necessary to write '\x00'==0 to get something
6135 that's true only with -std. */
6136int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6137
6138/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6139 inside strings and character constants. */
6140#define FOO(x) 'x'
6141int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6142
6143int test (int i, double x);
6144struct s1 {int (*f) (int a);};
6145struct s2 {int (*f) (double a);};
6146int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6147int argc;
6148char **argv;
6149int
6150main ()
6151{
6152return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6153 ;
6154 return 0;
6155}
6156_ACEOF
6157for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6159do
6160 CC="$ac_save_CC $ac_arg"
6161 if ac_fn_c_try_compile "$LINENO"; then :
6162 ac_cv_prog_cc_c89=$ac_arg
6163fi
6164rm -f core conftest.err conftest.$ac_objext
6165 test "x$ac_cv_prog_cc_c89" != "xno" && break
6166done
6167rm -f conftest.$ac_ext
6168CC=$ac_save_CC
6169
6170fi
6171# AC_CACHE_VAL
6172case "x$ac_cv_prog_cc_c89" in
6173 x)
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6175$as_echo "none needed" >&6; } ;;
6176 xno)
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6178$as_echo "unsupported" >&6; } ;;
6179 *)
6180 CC="$CC $ac_cv_prog_cc_c89"
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6182$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6183esac
6184if test "x$ac_cv_prog_cc_c89" != xno; then :
6185
6186fi
6187
6188ac_ext=c
6189ac_cpp='$CPP $CPPFLAGS'
6190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193
cristy73bd4a52010-10-05 11:24:23 +00006194depcc="$CC" am_compiler_list=
6195
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6197$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006198if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006199 $as_echo_n "(cached) " >&6
6200else
6201 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6202 # We make a subdir and do the tests there. Otherwise we can end up
6203 # making bogus files that we don't know about and never remove. For
6204 # instance it was reported that on HP-UX the gcc test will end up
6205 # making a dummy file named `D' -- because `-MD' means `put the output
6206 # in D'.
6207 mkdir conftest.dir
6208 # Copy depcomp to subdir because otherwise we won't find it if we're
6209 # using a relative directory.
6210 cp "$am_depcomp" conftest.dir
6211 cd conftest.dir
6212 # We will build objects and dependencies in a subdirectory because
6213 # it helps to detect inapplicable dependency modes. For instance
6214 # both Tru64's cc and ICC support -MD to output dependencies as a
6215 # side effect of compilation, but ICC will put the dependencies in
6216 # the current directory while Tru64 will put them in the object
6217 # directory.
6218 mkdir sub
6219
6220 am_cv_CC_dependencies_compiler_type=none
6221 if test "$am_compiler_list" = ""; then
6222 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6223 fi
6224 am__universal=false
6225 case " $depcc " in #(
6226 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6227 esac
6228
6229 for depmode in $am_compiler_list; do
6230 # Setup a source with many dependencies, because some compilers
6231 # like to wrap large dependency lists on column 80 (with \), and
6232 # we should not choose a depcomp mode which is confused by this.
6233 #
6234 # We need to recreate these files for each test, as the compiler may
6235 # overwrite some of them when testing with obscure command lines.
6236 # This happens at least with the AIX C compiler.
6237 : > sub/conftest.c
6238 for i in 1 2 3 4 5 6; do
6239 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6240 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6241 # Solaris 8's {/usr,}/bin/sh.
6242 touch sub/conftst$i.h
6243 done
6244 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6245
6246 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6247 # mode. It turns out that the SunPro C++ compiler does not properly
6248 # handle `-M -o', and we need to detect this. Also, some Intel
6249 # versions had trouble with output in subdirs
6250 am__obj=sub/conftest.${OBJEXT-o}
6251 am__minus_obj="-o $am__obj"
6252 case $depmode in
6253 gcc)
6254 # This depmode causes a compiler race in universal mode.
6255 test "$am__universal" = false || continue
6256 ;;
6257 nosideeffect)
6258 # after this tag, mechanisms are not by side-effect, so they'll
6259 # only be used when explicitly requested
6260 if test "x$enable_dependency_tracking" = xyes; then
6261 continue
6262 else
6263 break
6264 fi
6265 ;;
6266 msvisualcpp | msvcmsys)
6267 # This compiler won't grok `-c -o', but also, the minuso test has
6268 # not run yet. These depmodes are late enough in the game, and
6269 # so weak that their functioning should not be impacted.
6270 am__obj=conftest.${OBJEXT-o}
6271 am__minus_obj=
6272 ;;
6273 none) break ;;
6274 esac
6275 if depmode=$depmode \
6276 source=sub/conftest.c object=$am__obj \
6277 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6278 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6279 >/dev/null 2>conftest.err &&
6280 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6281 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6282 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6283 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6284 # icc doesn't choke on unknown options, it will just issue warnings
6285 # or remarks (even with -Werror). So we grep stderr for any message
6286 # that says an option was ignored or not supported.
6287 # When given -MP, icc 7.0 and 7.1 complain thusly:
6288 # icc: Command line warning: ignoring option '-M'; no argument required
6289 # The diagnosis changed in icc 8.0:
6290 # icc: Command line remark: option '-MP' not supported
6291 if (grep 'ignoring option' conftest.err ||
6292 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6293 am_cv_CC_dependencies_compiler_type=$depmode
6294 break
6295 fi
6296 fi
6297 done
6298
6299 cd ..
6300 rm -rf conftest.dir
6301else
6302 am_cv_CC_dependencies_compiler_type=none
6303fi
6304
6305fi
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6307$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6308CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6309
6310 if
6311 test "x$enable_dependency_tracking" != xno \
6312 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6313 am__fastdepCC_TRUE=
6314 am__fastdepCC_FALSE='#'
6315else
6316 am__fastdepCC_TRUE='#'
6317 am__fastdepCC_FALSE=
6318fi
6319
6320
cristy95646052009-11-28 23:05:30 +00006321ac_ext=cpp
6322ac_cpp='$CXXCPP $CPPFLAGS'
6323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6326if test -z "$CXX"; then
6327 if test -n "$CCC"; then
6328 CXX=$CCC
6329 else
6330 if test -n "$ac_tool_prefix"; then
6331 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6332 do
6333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6334set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006337if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006338 $as_echo_n "(cached) " >&6
6339else
6340 if test -n "$CXX"; then
6341 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354done
6355 done
6356IFS=$as_save_IFS
6357
6358fi
6359fi
6360CXX=$ac_cv_prog_CXX
6361if test -n "$CXX"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6363$as_echo "$CXX" >&6; }
6364else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366$as_echo "no" >&6; }
6367fi
6368
6369
6370 test -n "$CXX" && break
6371 done
6372fi
6373if test -z "$CXX"; then
6374 ac_ct_CXX=$CXX
6375 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6376do
6377 # Extract the first word of "$ac_prog", so it can be a program name with args.
6378set dummy $ac_prog; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006381if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006382 $as_echo_n "(cached) " >&6
6383else
6384 if test -n "$ac_ct_CXX"; then
6385 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_ac_ct_CXX="$ac_prog"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399 done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6405if test -n "$ac_ct_CXX"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6407$as_echo "$ac_ct_CXX" >&6; }
6408else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413
6414 test -n "$ac_ct_CXX" && break
6415done
6416
6417 if test "x$ac_ct_CXX" = x; then
6418 CXX="g++"
6419 else
6420 case $cross_compiling:$ac_tool_warned in
6421yes:)
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424ac_tool_warned=yes ;;
6425esac
6426 CXX=$ac_ct_CXX
6427 fi
6428fi
6429
6430 fi
6431fi
6432# Provide some information about the compiler.
6433$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6434set X $ac_compile
6435ac_compiler=$2
6436for ac_option in --version -v -V -qversion; do
6437 { { ac_try="$ac_compiler $ac_option >&5"
6438case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441esac
6442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6443$as_echo "$ac_try_echo"; } >&5
6444 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6445 ac_status=$?
6446 if test -s conftest.err; then
6447 sed '10a\
6448... rest of stderr output deleted ...
6449 10q' conftest.err >conftest.er1
6450 cat conftest.er1 >&5
6451 fi
6452 rm -f conftest.er1 conftest.err
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }
6455done
6456
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6458$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006459if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006460 $as_echo_n "(cached) " >&6
6461else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h. */
6464
6465int
6466main ()
6467{
6468#ifndef __GNUC__
6469 choke me
6470#endif
6471
6472 ;
6473 return 0;
6474}
6475_ACEOF
6476if ac_fn_cxx_try_compile "$LINENO"; then :
6477 ac_compiler_gnu=yes
6478else
6479 ac_compiler_gnu=no
6480fi
6481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6483
6484fi
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6486$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6487if test $ac_compiler_gnu = yes; then
6488 GXX=yes
6489else
6490 GXX=
6491fi
6492ac_test_CXXFLAGS=${CXXFLAGS+set}
6493ac_save_CXXFLAGS=$CXXFLAGS
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6495$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006496if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006497 $as_echo_n "(cached) " >&6
6498else
6499 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6500 ac_cxx_werror_flag=yes
6501 ac_cv_prog_cxx_g=no
6502 CXXFLAGS="-g"
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h. */
6505
6506int
6507main ()
6508{
6509
6510 ;
6511 return 0;
6512}
6513_ACEOF
6514if ac_fn_cxx_try_compile "$LINENO"; then :
6515 ac_cv_prog_cxx_g=yes
6516else
6517 CXXFLAGS=""
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519/* end confdefs.h. */
6520
6521int
6522main ()
6523{
6524
6525 ;
6526 return 0;
6527}
6528_ACEOF
6529if ac_fn_cxx_try_compile "$LINENO"; then :
6530
6531else
6532 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6533 CXXFLAGS="-g"
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h. */
6536
6537int
6538main ()
6539{
6540
6541 ;
6542 return 0;
6543}
6544_ACEOF
6545if ac_fn_cxx_try_compile "$LINENO"; then :
6546 ac_cv_prog_cxx_g=yes
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549fi
6550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551fi
6552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6554fi
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6556$as_echo "$ac_cv_prog_cxx_g" >&6; }
6557if test "$ac_test_CXXFLAGS" = set; then
6558 CXXFLAGS=$ac_save_CXXFLAGS
6559elif test $ac_cv_prog_cxx_g = yes; then
6560 if test "$GXX" = yes; then
6561 CXXFLAGS="-g -O2"
6562 else
6563 CXXFLAGS="-g"
6564 fi
6565else
6566 if test "$GXX" = yes; then
6567 CXXFLAGS="-O2"
6568 else
6569 CXXFLAGS=
6570 fi
6571fi
6572ac_ext=c
6573ac_cpp='$CPP $CPPFLAGS'
6574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6576ac_compiler_gnu=$ac_cv_c_compiler_gnu
6577
cristy73bd4a52010-10-05 11:24:23 +00006578depcc="$CXX" am_compiler_list=
6579
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6581$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006582if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006583 $as_echo_n "(cached) " >&6
6584else
6585 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6586 # We make a subdir and do the tests there. Otherwise we can end up
6587 # making bogus files that we don't know about and never remove. For
6588 # instance it was reported that on HP-UX the gcc test will end up
6589 # making a dummy file named `D' -- because `-MD' means `put the output
6590 # in D'.
6591 mkdir conftest.dir
6592 # Copy depcomp to subdir because otherwise we won't find it if we're
6593 # using a relative directory.
6594 cp "$am_depcomp" conftest.dir
6595 cd conftest.dir
6596 # We will build objects and dependencies in a subdirectory because
6597 # it helps to detect inapplicable dependency modes. For instance
6598 # both Tru64's cc and ICC support -MD to output dependencies as a
6599 # side effect of compilation, but ICC will put the dependencies in
6600 # the current directory while Tru64 will put them in the object
6601 # directory.
6602 mkdir sub
6603
6604 am_cv_CXX_dependencies_compiler_type=none
6605 if test "$am_compiler_list" = ""; then
6606 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6607 fi
6608 am__universal=false
6609 case " $depcc " in #(
6610 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6611 esac
6612
6613 for depmode in $am_compiler_list; do
6614 # Setup a source with many dependencies, because some compilers
6615 # like to wrap large dependency lists on column 80 (with \), and
6616 # we should not choose a depcomp mode which is confused by this.
6617 #
6618 # We need to recreate these files for each test, as the compiler may
6619 # overwrite some of them when testing with obscure command lines.
6620 # This happens at least with the AIX C compiler.
6621 : > sub/conftest.c
6622 for i in 1 2 3 4 5 6; do
6623 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6624 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6625 # Solaris 8's {/usr,}/bin/sh.
6626 touch sub/conftst$i.h
6627 done
6628 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6629
6630 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6631 # mode. It turns out that the SunPro C++ compiler does not properly
6632 # handle `-M -o', and we need to detect this. Also, some Intel
6633 # versions had trouble with output in subdirs
6634 am__obj=sub/conftest.${OBJEXT-o}
6635 am__minus_obj="-o $am__obj"
6636 case $depmode in
6637 gcc)
6638 # This depmode causes a compiler race in universal mode.
6639 test "$am__universal" = false || continue
6640 ;;
6641 nosideeffect)
6642 # after this tag, mechanisms are not by side-effect, so they'll
6643 # only be used when explicitly requested
6644 if test "x$enable_dependency_tracking" = xyes; then
6645 continue
6646 else
6647 break
6648 fi
6649 ;;
6650 msvisualcpp | msvcmsys)
6651 # This compiler won't grok `-c -o', but also, the minuso test has
6652 # not run yet. These depmodes are late enough in the game, and
6653 # so weak that their functioning should not be impacted.
6654 am__obj=conftest.${OBJEXT-o}
6655 am__minus_obj=
6656 ;;
6657 none) break ;;
6658 esac
6659 if depmode=$depmode \
6660 source=sub/conftest.c object=$am__obj \
6661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6662 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6663 >/dev/null 2>conftest.err &&
6664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6666 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6668 # icc doesn't choke on unknown options, it will just issue warnings
6669 # or remarks (even with -Werror). So we grep stderr for any message
6670 # that says an option was ignored or not supported.
6671 # When given -MP, icc 7.0 and 7.1 complain thusly:
6672 # icc: Command line warning: ignoring option '-M'; no argument required
6673 # The diagnosis changed in icc 8.0:
6674 # icc: Command line remark: option '-MP' not supported
6675 if (grep 'ignoring option' conftest.err ||
6676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6677 am_cv_CXX_dependencies_compiler_type=$depmode
6678 break
6679 fi
6680 fi
6681 done
6682
6683 cd ..
6684 rm -rf conftest.dir
6685else
6686 am_cv_CXX_dependencies_compiler_type=none
6687fi
6688
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6691$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6692CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6693
6694 if
6695 test "x$enable_dependency_tracking" != xno \
6696 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6697 am__fastdepCXX_TRUE=
6698 am__fastdepCXX_FALSE='#'
6699else
6700 am__fastdepCXX_TRUE='#'
6701 am__fastdepCXX_FALSE=
6702fi
6703
6704
cristy8b350f62009-11-15 23:12:43 +00006705 case $ac_cv_prog_cc_stdc in #(
6706 no) :
6707 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6708 *) :
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006710$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006711if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006712 $as_echo_n "(cached) " >&6
6713else
6714 ac_cv_prog_cc_c99=no
6715ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006717/* end confdefs.h. */
6718#include <stdarg.h>
6719#include <stdbool.h>
6720#include <stdlib.h>
6721#include <wchar.h>
6722#include <stdio.h>
6723
6724// Check varargs macros. These examples are taken from C99 6.10.3.5.
6725#define debug(...) fprintf (stderr, __VA_ARGS__)
6726#define showlist(...) puts (#__VA_ARGS__)
6727#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6728static void
6729test_varargs_macros (void)
6730{
6731 int x = 1234;
6732 int y = 5678;
6733 debug ("Flag");
6734 debug ("X = %d\n", x);
6735 showlist (The first, second, and third items.);
6736 report (x>y, "x is %d but y is %d", x, y);
6737}
6738
6739// Check long long types.
6740#define BIG64 18446744073709551615ull
6741#define BIG32 4294967295ul
6742#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6743#if !BIG_OK
6744 your preprocessor is broken;
6745#endif
6746#if BIG_OK
6747#else
6748 your preprocessor is broken;
6749#endif
6750static long long int bignum = -9223372036854775807LL;
6751static unsigned long long int ubignum = BIG64;
6752
6753struct incomplete_array
6754{
6755 int datasize;
6756 double data[];
6757};
6758
6759struct named_init {
6760 int number;
6761 const wchar_t *name;
6762 double average;
6763};
6764
6765typedef const char *ccp;
6766
6767static inline int
6768test_restrict (ccp restrict text)
6769{
6770 // See if C++-style comments work.
6771 // Iterate through items via the restricted pointer.
6772 // Also check for declarations in for loops.
6773 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6774 continue;
6775 return 0;
6776}
6777
6778// Check varargs and va_copy.
6779static void
6780test_varargs (const char *format, ...)
6781{
6782 va_list args;
6783 va_start (args, format);
6784 va_list args_copy;
6785 va_copy (args_copy, args);
6786
6787 const char *str;
6788 int number;
6789 float fnumber;
6790
6791 while (*format)
6792 {
6793 switch (*format++)
6794 {
6795 case 's': // string
6796 str = va_arg (args_copy, const char *);
6797 break;
6798 case 'd': // int
6799 number = va_arg (args_copy, int);
6800 break;
6801 case 'f': // float
6802 fnumber = va_arg (args_copy, double);
6803 break;
6804 default:
6805 break;
6806 }
6807 }
6808 va_end (args_copy);
6809 va_end (args);
6810}
6811
6812int
6813main ()
6814{
6815
6816 // Check bool.
6817 _Bool success = false;
6818
6819 // Check restrict.
6820 if (test_restrict ("String literal") == 0)
6821 success = true;
6822 char *restrict newvar = "Another string";
6823
6824 // Check varargs.
6825 test_varargs ("s, d' f .", "string", 65, 34.234);
6826 test_varargs_macros ();
6827
6828 // Check flexible array members.
6829 struct incomplete_array *ia =
6830 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6831 ia->datasize = 10;
6832 for (int i = 0; i < ia->datasize; ++i)
6833 ia->data[i] = i * 1.234;
6834
6835 // Check named initializers.
6836 struct named_init ni = {
6837 .number = 34,
6838 .name = L"Test wide string",
6839 .average = 543.34343,
6840 };
6841
6842 ni.number = 58;
6843
6844 int dynamic_array[ni.number];
6845 dynamic_array[ni.number - 1] = 543;
6846
6847 // work around unused variable warnings
6848 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6849 || dynamic_array[ni.number - 1] != 543);
6850
6851 ;
6852 return 0;
6853}
6854_ACEOF
6855for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6856do
6857 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006858 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006859 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006860fi
cristy3ed852e2009-09-05 21:47:34 +00006861rm -f core conftest.err conftest.$ac_objext
6862 test "x$ac_cv_prog_cc_c99" != "xno" && break
6863done
6864rm -f conftest.$ac_ext
6865CC=$ac_save_CC
6866
6867fi
6868# AC_CACHE_VAL
6869case "x$ac_cv_prog_cc_c99" in
6870 x)
cristy8b350f62009-11-15 23:12:43 +00006871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006872$as_echo "none needed" >&6; } ;;
6873 xno)
cristy8b350f62009-11-15 23:12:43 +00006874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006875$as_echo "unsupported" >&6; } ;;
6876 *)
6877 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006879$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6880esac
cristy8b350f62009-11-15 23:12:43 +00006881if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006882 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6883else
cristy8b350f62009-11-15 23:12:43 +00006884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006885$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006886if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006887 $as_echo_n "(cached) " >&6
6888else
6889 ac_cv_prog_cc_c89=no
6890ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006892/* end confdefs.h. */
6893#include <stdarg.h>
6894#include <stdio.h>
6895#include <sys/types.h>
6896#include <sys/stat.h>
6897/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6898struct buf { int x; };
6899FILE * (*rcsopen) (struct buf *, struct stat *, int);
6900static char *e (p, i)
6901 char **p;
6902 int i;
6903{
6904 return p[i];
6905}
6906static char *f (char * (*g) (char **, int), char **p, ...)
6907{
6908 char *s;
6909 va_list v;
6910 va_start (v,p);
6911 s = g (p, va_arg (v,int));
6912 va_end (v);
6913 return s;
6914}
6915
6916/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6917 function prototypes and stuff, but not '\xHH' hex character constants.
6918 These don't provoke an error unfortunately, instead are silently treated
6919 as 'x'. The following induces an error, until -std is added to get
6920 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6921 array size at least. It's necessary to write '\x00'==0 to get something
6922 that's true only with -std. */
6923int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6924
6925/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6926 inside strings and character constants. */
6927#define FOO(x) 'x'
6928int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6929
6930int test (int i, double x);
6931struct s1 {int (*f) (int a);};
6932struct s2 {int (*f) (double a);};
6933int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6934int argc;
6935char **argv;
6936int
6937main ()
6938{
6939return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6940 ;
6941 return 0;
6942}
6943_ACEOF
6944for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6945 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6946do
6947 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006948 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006949 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006950fi
cristy3ed852e2009-09-05 21:47:34 +00006951rm -f core conftest.err conftest.$ac_objext
6952 test "x$ac_cv_prog_cc_c89" != "xno" && break
6953done
6954rm -f conftest.$ac_ext
6955CC=$ac_save_CC
6956
6957fi
6958# AC_CACHE_VAL
6959case "x$ac_cv_prog_cc_c89" in
6960 x)
cristy8b350f62009-11-15 23:12:43 +00006961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006962$as_echo "none needed" >&6; } ;;
6963 xno)
cristy8b350f62009-11-15 23:12:43 +00006964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006965$as_echo "unsupported" >&6; } ;;
6966 *)
6967 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006969$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6970esac
cristy8b350f62009-11-15 23:12:43 +00006971if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006972 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6973else
6974 ac_cv_prog_cc_stdc=no
6975fi
6976
cristy3ed852e2009-09-05 21:47:34 +00006977fi
cristy3ed852e2009-09-05 21:47:34 +00006978 ;;
6979esac
cristy8b350f62009-11-15 23:12:43 +00006980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006981$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006982 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006983 $as_echo_n "(cached) " >&6
6984fi
6985
cristy8b350f62009-11-15 23:12:43 +00006986 case $ac_cv_prog_cc_stdc in #(
6987 no) :
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6989$as_echo "unsupported" >&6; } ;; #(
6990 '') :
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6992$as_echo "none needed" >&6; } ;; #(
6993 *) :
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006995$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6996esac
6997
cristy3ed852e2009-09-05 21:47:34 +00006998ac_ext=c
6999ac_cpp='$CPP $CPPFLAGS'
7000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007004$as_echo_n "checking how to run the C preprocessor... " >&6; }
7005# On Suns, sometimes $CPP names a directory.
7006if test -n "$CPP" && test -d "$CPP"; then
7007 CPP=
7008fi
7009if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007010 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007011 $as_echo_n "(cached) " >&6
7012else
7013 # Double quotes because CPP needs to be expanded
7014 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7015 do
7016 ac_preproc_ok=false
7017for ac_c_preproc_warn_flag in '' yes
7018do
7019 # Use a header file that comes with gcc, so configuring glibc
7020 # with a fresh cross-compiler works.
7021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7022 # <limits.h> exists even on freestanding compilers.
7023 # On the NeXT, cc -E runs the code through the compiler's parser,
7024 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007026/* end confdefs.h. */
7027#ifdef __STDC__
7028# include <limits.h>
7029#else
7030# include <assert.h>
7031#endif
7032 Syntax error
7033_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007034if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007035
cristy8b350f62009-11-15 23:12:43 +00007036else
cristy3ed852e2009-09-05 21:47:34 +00007037 # Broken: fails on valid input.
7038continue
7039fi
cristyda16f162011-02-19 23:52:17 +00007040rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007041
7042 # OK, works on sane cases. Now check whether nonexistent headers
7043 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007045/* end confdefs.h. */
7046#include <ac_nonexistent.h>
7047_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007048if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007049 # Broken: success on invalid input.
7050continue
7051else
cristy3ed852e2009-09-05 21:47:34 +00007052 # Passes both tests.
7053ac_preproc_ok=:
7054break
7055fi
cristyda16f162011-02-19 23:52:17 +00007056rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007057
7058done
7059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007060rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007061if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007062 break
7063fi
7064
7065 done
7066 ac_cv_prog_CPP=$CPP
7067
7068fi
7069 CPP=$ac_cv_prog_CPP
7070else
7071 ac_cv_prog_CPP=$CPP
7072fi
cristy8b350f62009-11-15 23:12:43 +00007073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007074$as_echo "$CPP" >&6; }
7075ac_preproc_ok=false
7076for ac_c_preproc_warn_flag in '' yes
7077do
7078 # Use a header file that comes with gcc, so configuring glibc
7079 # with a fresh cross-compiler works.
7080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081 # <limits.h> exists even on freestanding compilers.
7082 # On the NeXT, cc -E runs the code through the compiler's parser,
7083 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007085/* end confdefs.h. */
7086#ifdef __STDC__
7087# include <limits.h>
7088#else
7089# include <assert.h>
7090#endif
7091 Syntax error
7092_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007093if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007094
cristy8b350f62009-11-15 23:12:43 +00007095else
cristy3ed852e2009-09-05 21:47:34 +00007096 # Broken: fails on valid input.
7097continue
7098fi
cristyda16f162011-02-19 23:52:17 +00007099rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007100
7101 # OK, works on sane cases. Now check whether nonexistent headers
7102 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007104/* end confdefs.h. */
7105#include <ac_nonexistent.h>
7106_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007107if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007108 # Broken: success on invalid input.
7109continue
7110else
cristy3ed852e2009-09-05 21:47:34 +00007111 # Passes both tests.
7112ac_preproc_ok=:
7113break
7114fi
cristyda16f162011-02-19 23:52:17 +00007115rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007116
7117done
7118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007119rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007120if $ac_preproc_ok; then :
7121
cristy3ed852e2009-09-05 21:47:34 +00007122else
cristy8b350f62009-11-15 23:12:43 +00007123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007125as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7126See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007127fi
7128
7129ac_ext=c
7130ac_cpp='$CPP $CPPFLAGS'
7131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7133ac_compiler_gnu=$ac_cv_c_compiler_gnu
7134
cristy73bd4a52010-10-05 11:24:23 +00007135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7136$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007137if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007138 $as_echo_n "(cached) " >&6
7139else
7140 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7141 for ac_i in 1 2 3 4 5 6 7; do
7142 ac_script="$ac_script$as_nl$ac_script"
7143 done
7144 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7145 { ac_script=; unset ac_script;}
7146 if test -z "$SED"; then
7147 ac_path_SED_found=false
7148 # Loop through the user's path and test for each of PROGNAME-LIST
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_prog in sed gsed; do
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7157 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7158# Check for GNU ac_path_SED and select it if it is found.
7159 # Check for GNU $ac_path_SED
7160case `"$ac_path_SED" --version 2>&1` in
7161*GNU*)
7162 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7163*)
7164 ac_count=0
7165 $as_echo_n 0123456789 >"conftest.in"
7166 while :
7167 do
7168 cat "conftest.in" "conftest.in" >"conftest.tmp"
7169 mv "conftest.tmp" "conftest.in"
7170 cp "conftest.in" "conftest.nl"
7171 $as_echo '' >> "conftest.nl"
7172 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7174 as_fn_arith $ac_count + 1 && ac_count=$as_val
7175 if test $ac_count -gt ${ac_path_SED_max-0}; then
7176 # Best one so far, save it but keep looking for a better one
7177 ac_cv_path_SED="$ac_path_SED"
7178 ac_path_SED_max=$ac_count
7179 fi
7180 # 10*(2^10) chars as input seems more than enough
7181 test $ac_count -gt 10 && break
7182 done
7183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7184esac
7185
7186 $ac_path_SED_found && break 3
7187 done
7188 done
7189 done
7190IFS=$as_save_IFS
7191 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007192 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007193 fi
7194else
7195 ac_cv_path_SED=$SED
7196fi
7197
7198fi
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7200$as_echo "$ac_cv_path_SED" >&6; }
7201 SED="$ac_cv_path_SED"
7202 rm -f conftest.sed
7203
7204test -z "$SED" && SED=sed
7205Xsed="$SED -e 1s/^X//"
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7218$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007219if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007220 $as_echo_n "(cached) " >&6
7221else
7222 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7223 then ac_cv_path_FGREP="$GREP -F"
7224 else
7225 if test -z "$FGREP"; then
7226 ac_path_FGREP_found=false
7227 # Loop through the user's path and test for each of PROGNAME-LIST
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_prog in fgrep; do
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7236 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7237# Check for GNU ac_path_FGREP and select it if it is found.
7238 # Check for GNU $ac_path_FGREP
7239case `"$ac_path_FGREP" --version 2>&1` in
7240*GNU*)
7241 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7242*)
7243 ac_count=0
7244 $as_echo_n 0123456789 >"conftest.in"
7245 while :
7246 do
7247 cat "conftest.in" "conftest.in" >"conftest.tmp"
7248 mv "conftest.tmp" "conftest.in"
7249 cp "conftest.in" "conftest.nl"
7250 $as_echo 'FGREP' >> "conftest.nl"
7251 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7253 as_fn_arith $ac_count + 1 && ac_count=$as_val
7254 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7255 # Best one so far, save it but keep looking for a better one
7256 ac_cv_path_FGREP="$ac_path_FGREP"
7257 ac_path_FGREP_max=$ac_count
7258 fi
7259 # 10*(2^10) chars as input seems more than enough
7260 test $ac_count -gt 10 && break
7261 done
7262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7263esac
7264
7265 $ac_path_FGREP_found && break 3
7266 done
7267 done
7268 done
7269IFS=$as_save_IFS
7270 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007271 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007272 fi
7273else
7274 ac_cv_path_FGREP=$FGREP
7275fi
7276
7277 fi
7278fi
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7280$as_echo "$ac_cv_path_FGREP" >&6; }
7281 FGREP="$ac_cv_path_FGREP"
7282
7283
7284test -z "$GREP" && GREP=grep
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
cristy0c60a692010-11-04 01:09:47 +00007302ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7303ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7304ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7305
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7307$as_echo_n "checking how to print strings... " >&6; }
7308# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007309if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007310 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7311 ECHO='print -r --'
7312elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7313 ECHO='printf %s\n'
7314else
7315 # Use this function as a fallback that always works.
7316 func_fallback_echo ()
7317 {
7318 eval 'cat <<_LTECHO_EOF
7319$1
7320_LTECHO_EOF'
7321 }
7322 ECHO='func_fallback_echo'
7323fi
7324
7325# func_echo_all arg...
7326# Invoke $ECHO with all args, space-separated.
7327func_echo_all ()
7328{
7329 $ECHO ""
7330}
7331
7332case "$ECHO" in
7333 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7334$as_echo "printf" >&6; } ;;
7335 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7336$as_echo "print -r" >&6; } ;;
7337 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7338$as_echo "cat" >&6; } ;;
7339esac
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
cristy73bd4a52010-10-05 11:24:23 +00007354
7355
7356# Check whether --with-gnu-ld was given.
7357if test "${with_gnu_ld+set}" = set; then :
7358 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7359else
7360 with_gnu_ld=no
7361fi
7362
7363ac_prog=ld
7364if test "$GCC" = yes; then
7365 # Check if gcc -print-prog-name=ld gives a path.
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7367$as_echo_n "checking for ld used by $CC... " >&6; }
7368 case $host in
7369 *-*-mingw*)
7370 # gcc leaves a trailing carriage return which upsets mingw
7371 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7372 *)
7373 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7374 esac
7375 case $ac_prog in
7376 # Accept absolute paths.
7377 [\\/]* | ?:[\\/]*)
7378 re_direlt='/[^/][^/]*/\.\./'
7379 # Canonicalize the pathname of ld
7380 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7381 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7382 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7383 done
7384 test -z "$LD" && LD="$ac_prog"
7385 ;;
7386 "")
7387 # If it fails, then pretend we aren't using GCC.
7388 ac_prog=ld
7389 ;;
7390 *)
7391 # If it is relative, then search for the first ld in PATH.
7392 with_gnu_ld=unknown
7393 ;;
7394 esac
7395elif test "$with_gnu_ld" = yes; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7397$as_echo_n "checking for GNU ld... " >&6; }
7398else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7400$as_echo_n "checking for non-GNU ld... " >&6; }
7401fi
cristyda16f162011-02-19 23:52:17 +00007402if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007403 $as_echo_n "(cached) " >&6
7404else
7405 if test -z "$LD"; then
7406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7407 for ac_dir in $PATH; do
7408 IFS="$lt_save_ifs"
7409 test -z "$ac_dir" && ac_dir=.
7410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7411 lt_cv_path_LD="$ac_dir/$ac_prog"
7412 # Check to see if the program is GNU ld. I'd rather use --version,
7413 # but apparently some variants of GNU ld only accept -v.
7414 # Break only if it was the GNU/non-GNU ld that we prefer.
7415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7416 *GNU* | *'with BFD'*)
7417 test "$with_gnu_ld" != no && break
7418 ;;
7419 *)
7420 test "$with_gnu_ld" != yes && break
7421 ;;
7422 esac
7423 fi
7424 done
7425 IFS="$lt_save_ifs"
7426else
7427 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7428fi
7429fi
7430
7431LD="$lt_cv_path_LD"
7432if test -n "$LD"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7434$as_echo "$LD" >&6; }
7435else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
cristy98dddb52010-11-04 00:30:15 +00007439test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7441$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007442if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007443 $as_echo_n "(cached) " >&6
7444else
7445 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7446case `$LD -v 2>&1 </dev/null` in
7447*GNU* | *'with BFD'*)
7448 lt_cv_prog_gnu_ld=yes
7449 ;;
7450*)
7451 lt_cv_prog_gnu_ld=no
7452 ;;
7453esac
7454fi
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7456$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7457with_gnu_ld=$lt_cv_prog_gnu_ld
7458
7459
7460
7461
7462
7463
7464
7465
7466
cristy3ed852e2009-09-05 21:47:34 +00007467
cristy837d6dc2010-02-27 01:16:57 +00007468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7469$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007470if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007471 $as_echo_n "(cached) " >&6
7472else
7473 ac_cv_prog_cc_c99=no
7474ac_save_CC=$CC
7475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476/* end confdefs.h. */
7477#include <stdarg.h>
7478#include <stdbool.h>
7479#include <stdlib.h>
7480#include <wchar.h>
7481#include <stdio.h>
7482
7483// Check varargs macros. These examples are taken from C99 6.10.3.5.
7484#define debug(...) fprintf (stderr, __VA_ARGS__)
7485#define showlist(...) puts (#__VA_ARGS__)
7486#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7487static void
7488test_varargs_macros (void)
7489{
7490 int x = 1234;
7491 int y = 5678;
7492 debug ("Flag");
7493 debug ("X = %d\n", x);
7494 showlist (The first, second, and third items.);
7495 report (x>y, "x is %d but y is %d", x, y);
7496}
7497
7498// Check long long types.
7499#define BIG64 18446744073709551615ull
7500#define BIG32 4294967295ul
7501#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7502#if !BIG_OK
7503 your preprocessor is broken;
7504#endif
7505#if BIG_OK
7506#else
7507 your preprocessor is broken;
7508#endif
7509static long long int bignum = -9223372036854775807LL;
7510static unsigned long long int ubignum = BIG64;
7511
7512struct incomplete_array
7513{
7514 int datasize;
7515 double data[];
7516};
7517
7518struct named_init {
7519 int number;
7520 const wchar_t *name;
7521 double average;
7522};
7523
7524typedef const char *ccp;
7525
7526static inline int
7527test_restrict (ccp restrict text)
7528{
7529 // See if C++-style comments work.
7530 // Iterate through items via the restricted pointer.
7531 // Also check for declarations in for loops.
7532 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7533 continue;
7534 return 0;
7535}
7536
7537// Check varargs and va_copy.
7538static void
7539test_varargs (const char *format, ...)
7540{
7541 va_list args;
7542 va_start (args, format);
7543 va_list args_copy;
7544 va_copy (args_copy, args);
7545
7546 const char *str;
7547 int number;
7548 float fnumber;
7549
7550 while (*format)
7551 {
7552 switch (*format++)
7553 {
7554 case 's': // string
7555 str = va_arg (args_copy, const char *);
7556 break;
7557 case 'd': // int
7558 number = va_arg (args_copy, int);
7559 break;
7560 case 'f': // float
7561 fnumber = va_arg (args_copy, double);
7562 break;
7563 default:
7564 break;
7565 }
7566 }
7567 va_end (args_copy);
7568 va_end (args);
7569}
7570
7571int
7572main ()
7573{
7574
7575 // Check bool.
7576 _Bool success = false;
7577
7578 // Check restrict.
7579 if (test_restrict ("String literal") == 0)
7580 success = true;
7581 char *restrict newvar = "Another string";
7582
7583 // Check varargs.
7584 test_varargs ("s, d' f .", "string", 65, 34.234);
7585 test_varargs_macros ();
7586
7587 // Check flexible array members.
7588 struct incomplete_array *ia =
7589 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7590 ia->datasize = 10;
7591 for (int i = 0; i < ia->datasize; ++i)
7592 ia->data[i] = i * 1.234;
7593
7594 // Check named initializers.
7595 struct named_init ni = {
7596 .number = 34,
7597 .name = L"Test wide string",
7598 .average = 543.34343,
7599 };
7600
7601 ni.number = 58;
7602
7603 int dynamic_array[ni.number];
7604 dynamic_array[ni.number - 1] = 543;
7605
7606 // work around unused variable warnings
7607 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7608 || dynamic_array[ni.number - 1] != 543);
7609
7610 ;
7611 return 0;
7612}
7613_ACEOF
7614for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7615do
7616 CC="$ac_save_CC $ac_arg"
7617 if ac_fn_c_try_compile "$LINENO"; then :
7618 ac_cv_prog_cc_c99=$ac_arg
7619fi
7620rm -f core conftest.err conftest.$ac_objext
7621 test "x$ac_cv_prog_cc_c99" != "xno" && break
7622done
7623rm -f conftest.$ac_ext
7624CC=$ac_save_CC
7625
7626fi
7627# AC_CACHE_VAL
7628case "x$ac_cv_prog_cc_c99" in
7629 x)
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7631$as_echo "none needed" >&6; } ;;
7632 xno)
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7634$as_echo "unsupported" >&6; } ;;
7635 *)
7636 CC="$CC $ac_cv_prog_cc_c99"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7638$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7639esac
7640if test "x$ac_cv_prog_cc_c99" != xno; then :
7641
7642fi
7643
7644
cristy73bd4a52010-10-05 11:24:23 +00007645if test "x$CC" != xcc; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7647$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7650$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7651fi
7652set dummy $CC; ac_cc=`$as_echo "$2" |
7653 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007654if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007655 $as_echo_n "(cached) " >&6
7656else
cristy73bd4a52010-10-05 11:24:23 +00007657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658/* end confdefs.h. */
7659
7660int
7661main ()
7662{
7663
7664 ;
7665 return 0;
7666}
7667_ACEOF
7668# Make sure it works both with $CC and with simple cc.
7669# We do the test twice because some compilers refuse to overwrite an
7670# existing .o file with -o, though they will create one.
7671ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7672rm -f conftest2.*
7673if { { case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676esac
7677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7678$as_echo "$ac_try_echo"; } >&5
7679 (eval "$ac_try") 2>&5
7680 ac_status=$?
7681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7682 test $ac_status = 0; } &&
7683 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686esac
7687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7688$as_echo "$ac_try_echo"; } >&5
7689 (eval "$ac_try") 2>&5
7690 ac_status=$?
7691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7692 test $ac_status = 0; };
7693then
7694 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7695 if test "x$CC" != xcc; then
7696 # Test first that cc exists at all.
7697 if { ac_try='cc -c conftest.$ac_ext >&5'
7698 { { case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701esac
7702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7703$as_echo "$ac_try_echo"; } >&5
7704 (eval "$ac_try") 2>&5
7705 ac_status=$?
7706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; }; }; then
7708 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7709 rm -f conftest2.*
7710 if { { case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713esac
7714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7715$as_echo "$ac_try_echo"; } >&5
7716 (eval "$ac_try") 2>&5
7717 ac_status=$?
7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; } &&
7720 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7723esac
7724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7725$as_echo "$ac_try_echo"; } >&5
7726 (eval "$ac_try") 2>&5
7727 ac_status=$?
7728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729 test $ac_status = 0; };
7730 then
7731 # cc works too.
7732 :
7733 else
7734 # cc exists but doesn't like -o.
7735 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7736 fi
7737 fi
7738 fi
7739else
7740 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7741fi
7742rm -f core conftest*
7743
7744fi
7745if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7747$as_echo "yes" >&6; }
7748else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
7751
7752$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7753
7754fi
7755
7756# FIXME: we rely on the cache variable name because
7757# there is no other way.
7758set dummy $CC
7759am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7760eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7761if test "$am_t" != yes; then
7762 # Losing compiler, so override with the script.
7763 # FIXME: It is wrong to rewrite CC.
7764 # But if we don't then we get into trouble of one sort or another.
7765 # A longer-term fix would be to have automake use am__CC in this case,
7766 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7767 CC="$am_aux_dir/compile $CC"
7768fi
7769
7770
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7772$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007773if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007774 $as_echo_n "(cached) " >&6
7775else
7776 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007777 ac_ext=c
7778ac_cpp='$CPP $CPPFLAGS'
7779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782
7783 ac_save_CFLAGS="$CFLAGS"
7784for 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" #
7785do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h. */
7788
7789int
7790main ()
7791{
cristy24fc1fe2010-10-23 21:13:01 +00007792
cristy73bd4a52010-10-05 11:24:23 +00007793 ;
7794 return 0;
7795}
7796_ACEOF
7797if ac_fn_c_try_compile "$LINENO"; then :
7798 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7799fi
7800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801done
7802 CFLAGS="$ac_save_CFLAGS"
7803 ac_ext=c
7804ac_cpp='$CPP $CPPFLAGS'
7805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809
7810fi
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7812$as_echo "$ac_cv_cflags_warn_all" >&6; }
7813case ".$ac_cv_cflags_warn_all" in
7814 .ok|.ok,*) ;;
7815 .|.no|.no,*)
7816 ;;
7817 *)
7818 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7819 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7820 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7821 ac_status=$?
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823 test $ac_status = 0; }
7824 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7825 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7826 ac_status=$?
7827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7828 test $ac_status = 0; }
7829 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7830 fi
7831 ;;
nicolas6237c462010-10-05 06:11:49 +00007832esac
cristy3ed852e2009-09-05 21:47:34 +00007833
cristya0b81c32010-01-22 02:54:33 +00007834
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7836$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7837set x ${MAKE-make}
7838ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007839if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007840 $as_echo_n "(cached) " >&6
7841else
7842 cat >conftest.make <<\_ACEOF
7843SHELL = /bin/sh
7844all:
7845 @echo '@@@%%%=$(MAKE)=@@@%%%'
7846_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007847# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007848case `${MAKE-make} -f conftest.make 2>/dev/null` in
7849 *@@@%%%=?*=@@@%%%*)
7850 eval ac_cv_prog_make_${ac_make}_set=yes;;
7851 *)
7852 eval ac_cv_prog_make_${ac_make}_set=no;;
7853esac
7854rm -f conftest.make
7855fi
7856if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7858$as_echo "yes" >&6; }
7859 SET_MAKE=
7860else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863 SET_MAKE="MAKE=${MAKE-make}"
7864fi
7865
cristy8b350f62009-11-15 23:12:43 +00007866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007867$as_echo_n "checking whether ln -s works... " >&6; }
7868LN_S=$as_ln_s
7869if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007871$as_echo "yes" >&6; }
7872else
cristy8b350f62009-11-15 23:12:43 +00007873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007874$as_echo "no, using $LN_S" >&6; }
7875fi
7876
cristy73bd4a52010-10-05 11:24:23 +00007877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7878$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7879
7880# Check whether --with-dmalloc was given.
7881if test "${with_dmalloc+set}" = set; then :
7882 withval=$with_dmalloc; if test "$withval" = yes; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7884$as_echo "yes" >&6; }
7885
7886$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7887
7888 LIBS="$LIBS -ldmalloc"
7889 LDFLAGS="$LDFLAGS -g"
7890else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892$as_echo "no" >&6; }
7893fi
7894else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896$as_echo "no" >&6; }
7897fi
7898
7899
7900
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7902$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007903if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007904 $as_echo_n "(cached) " >&6
7905else
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907/* end confdefs.h. */
7908#include <stdlib.h>
7909 static void foo(void) __attribute__ ((unused));
7910 static void
7911 foo(void) {
7912 exit(1);
7913 }
7914
7915int
7916main ()
7917{
7918
7919 ;
7920 return 0;
7921}
7922_ACEOF
7923if ac_fn_c_try_compile "$LINENO"; then :
7924 ax_cv___attribute__=yes
7925else
7926 ax_cv___attribute__=no
7927
7928fi
7929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930
7931fi
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7933$as_echo "$ax_cv___attribute__" >&6; }
7934 if test "$ax_cv___attribute__" = "yes"; then
7935
7936$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7937
7938 fi
7939
7940
7941
7942if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7943 if test -n "$ac_tool_prefix"; then
7944 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7945set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007948if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007949 $as_echo_n "(cached) " >&6
7950else
7951 case $PKG_CONFIG in
7952 [\\/]* | ?:[\\/]*)
7953 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7954 ;;
7955 *)
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967done
7968 done
7969IFS=$as_save_IFS
7970
7971 ;;
7972esac
7973fi
7974PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7975if test -n "$PKG_CONFIG"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7977$as_echo "$PKG_CONFIG" >&6; }
7978else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980$as_echo "no" >&6; }
7981fi
7982
7983
7984fi
7985if test -z "$ac_cv_path_PKG_CONFIG"; then
7986 ac_pt_PKG_CONFIG=$PKG_CONFIG
7987 # Extract the first word of "pkg-config", so it can be a program name with args.
7988set dummy pkg-config; ac_word=$2
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007991if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007992 $as_echo_n "(cached) " >&6
7993else
7994 case $ac_pt_PKG_CONFIG in
7995 [\\/]* | ?:[\\/]*)
7996 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7997 ;;
7998 *)
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000for as_dir in $PATH
8001do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8009 fi
8010done
8011 done
8012IFS=$as_save_IFS
8013
8014 ;;
8015esac
8016fi
8017ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8018if test -n "$ac_pt_PKG_CONFIG"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8020$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8021else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023$as_echo "no" >&6; }
8024fi
8025
8026 if test "x$ac_pt_PKG_CONFIG" = x; then
8027 PKG_CONFIG=""
8028 else
8029 case $cross_compiling:$ac_tool_warned in
8030yes:)
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8033ac_tool_warned=yes ;;
8034esac
8035 PKG_CONFIG=$ac_pt_PKG_CONFIG
8036 fi
8037else
8038 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8039fi
8040
8041fi
8042if test -n "$PKG_CONFIG"; then
8043 _pkg_min_version=0.9.0
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8045$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8046 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8048$as_echo "yes" >&6; }
8049 else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
8052 PKG_CONFIG=""
8053 fi
8054
8055fi
cristy3ed852e2009-09-05 21:47:34 +00008056
8057#
cristy3ed852e2009-09-05 21:47:34 +00008058# Enable run-time checking.
8059#
8060# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008061if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008062 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8063else
8064 enable_bounds_checking='no'
8065fi
8066
8067
8068if test "$enable_bounds_checking" = yes; then
8069
cristy8b350f62009-11-15 23:12:43 +00008070$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008071
8072fi
8073
8074#
8075# Tests for Windows
8076#
8077
8078
cristy73bd4a52010-10-05 11:24:23 +00008079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8080$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008081if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008082 $as_echo_n "(cached) " >&6
8083else
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085/* end confdefs.h. */
8086
8087int
8088main ()
8089{
8090#ifndef _MSC_VER
8091 choke me
8092#endif
8093
8094 ;
8095 return 0;
8096}
8097_ACEOF
8098if ac_fn_c_try_compile "$LINENO"; then :
8099 ax_compiler_ms=yes
8100else
8101 ax_compiler_ms=no
8102fi
8103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104ax_cv_c_compiler_ms=$ax_compiler_ms
8105
8106fi
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8108$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008109
8110GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008111native_win32_build='no'
8112cygwin_build='no'
8113case "${host_os}" in
8114 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008115 cygwin_build='yes'
8116 GDI32_LIBS='-lgdi32'
8117 ;;
8118 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008119 native_win32_build='yes'
8120 GDI32_LIBS='-lgdi32'
8121 ;;
8122esac
8123if test "${GDI32_LIBS}x" != 'x'; then
8124
cristy8b350f62009-11-15 23:12:43 +00008125$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008126
8127fi
8128
cristy73bd4a52010-10-05 11:24:23 +00008129 if test "${GDI32_LIBS}x" != 'x' ; then
8130 WINGDI32_DELEGATE_TRUE=
8131 WINGDI32_DELEGATE_FALSE='#'
8132else
8133 WINGDI32_DELEGATE_TRUE='#'
8134 WINGDI32_DELEGATE_FALSE=
8135fi
8136
8137 if test "${native_win32_build}" = 'yes' ; then
8138 WIN32_NATIVE_BUILD_TRUE=
8139 WIN32_NATIVE_BUILD_FALSE='#'
8140else
8141 WIN32_NATIVE_BUILD_TRUE='#'
8142 WIN32_NATIVE_BUILD_FALSE=
8143fi
8144
8145 if test "${cygwin_build}" = 'yes' ; then
8146 CYGWIN_BUILD_TRUE=
8147 CYGWIN_BUILD_FALSE='#'
8148else
8149 CYGWIN_BUILD_TRUE='#'
8150 CYGWIN_BUILD_FALSE=
8151fi
8152
8153 if test "x${CC}" = 'xcl.exe' ; then
8154 USING_CL_TRUE=
8155 USING_CL_FALSE='#'
8156else
8157 USING_CL_TRUE='#'
8158 USING_CL_FALSE=
8159fi
8160
cristy3ed852e2009-09-05 21:47:34 +00008161
8162WinPathScript="${srcdirfull}/winpath.sh"
8163
8164
8165#
8166# Compiler flags tweaks
8167#
8168if test "${GCC}" != "yes"; then
8169 case "${host}" in
8170 *-*-hpux* )
8171 # aCC: HP ANSI C++ B3910B A.03.34
8172 CFLAGS="${CFLAGS} -Wp,-H30000"
8173 if test -n "${CXXFLAGS}"; then
8174 CXXFLAGS='-AA'
8175 else
8176 CXXFLAGS="${CXXFLAGS} -AA"
8177 fi
8178 ;;
8179 *-dec-osf5.* )
8180 # Compaq alphaev68-dec-osf5.1 compiler
8181 if test -n "${CXXFLAGS}"; then
8182 CXXFLAGS='-std strict_ansi -noimplicit_include'
8183 else
8184 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8185 fi
8186 esac
8187fi
8188
8189# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008191$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008192if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008193 $as_echo_n "(cached) " >&6
8194else
8195
8196im_cv_ld_lazyload='none'
8197case "${host}" in
8198 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8199 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8200 im_cv_ld_lazyload='-Wl,-zlazyload'
8201 fi
8202 ;;
8203esac
8204
8205fi
cristy8b350f62009-11-15 23:12:43 +00008206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008207$as_echo "$im_cv_ld_lazyload" >&6; }
8208if test "${im_cv_ld_lazyload}" != 'none' ; then
8209 if test -z "${LDFLAGS}" ; then
8210 LDFLAGS="${im_cv_ld_lazyload}"
8211 else
8212 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8213 fi
8214fi
8215
8216case "$host" in
8217*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008218 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008219if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008220 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8221else
8222 build_osxuniversal=no
8223fi
8224
8225
8226 if test "${build_osxuniversal}" != no ; then
8227 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008228 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008229Please re-run configure with these options:
8230 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008231 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008232 fi
8233 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8234 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8235 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8236 fi
8237 ;;
8238esac
8239
8240# Enable support for threads
8241
8242# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008243if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008244 withval=$with_threads; with_threads=$withval
8245else
8246 with_threads='yes'
8247fi
8248
8249
8250have_threads=no
8251if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008252
8253
8254
8255ac_ext=c
8256ac_cpp='$CPP $CPPFLAGS'
8257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260
8261ax_pthread_ok=no
8262
8263# We used to check for pthread.h first, but this fails if pthread.h
8264# requires special compiler flags (e.g. on True64 or Sequent).
8265# It gets checked for in the link test anyway.
8266
8267# First of all, check if the user has set any of the PTHREAD_LIBS,
8268# etcetera environment variables, and if threads linking works using
8269# them:
8270if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8271 save_CFLAGS="$CFLAGS"
8272 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8273 save_LIBS="$LIBS"
8274 LIBS="$PTHREAD_LIBS $LIBS"
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8276$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278/* end confdefs.h. */
8279
8280/* Override any GCC internal prototype to avoid an error.
8281 Use char because int might match the return type of a GCC
8282 builtin and then its argument prototype would still apply. */
8283#ifdef __cplusplus
8284extern "C"
8285#endif
8286char pthread_join ();
8287int
8288main ()
8289{
8290return pthread_join ();
8291 ;
8292 return 0;
8293}
8294_ACEOF
8295if ac_fn_c_try_link "$LINENO"; then :
8296 ax_pthread_ok=yes
8297fi
8298rm -f core conftest.err conftest.$ac_objext \
8299 conftest$ac_exeext conftest.$ac_ext
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8301$as_echo "$ax_pthread_ok" >&6; }
8302 if test x"$ax_pthread_ok" = xno; then
8303 PTHREAD_LIBS=""
8304 PTHREAD_CFLAGS=""
8305 fi
8306 LIBS="$save_LIBS"
8307 CFLAGS="$save_CFLAGS"
8308fi
8309
8310# We must check for the threads library under a number of different
8311# names; the ordering is very important because some systems
8312# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8313# libraries is broken (non-POSIX).
8314
8315# Create a list of thread flags to try. Items starting with a "-" are
8316# C compiler flags, and other items are library names, except for "none"
8317# which indicates that we try without any flags at all, and "pthread-config"
8318# which is a program returning the flags for the Pth emulation library.
8319
8320ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8321
8322# The ordering *is* (sometimes) important. Some notes on the
8323# individual items follow:
8324
8325# pthreads: AIX (must check this before -lpthread)
8326# none: in case threads are in libc; should be tried before -Kthread and
8327# other compiler flags to prevent continual compiler warnings
8328# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8329# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8330# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8331# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8332# -pthreads: Solaris/gcc
8333# -mthreads: Mingw32/gcc, Lynx/gcc
8334# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8335# doesn't hurt to check since this sometimes defines pthreads too;
8336# also defines -D_REENTRANT)
8337# ... -mt is also the pthreads flag for HP/aCC
8338# pthread: Linux, etcetera
8339# --thread-safe: KAI C++
8340# pthread-config: use pthread-config program (for GNU Pth library)
8341
8342case "${host_cpu}-${host_os}" in
8343 *solaris*)
8344
8345 # On Solaris (at least, for some versions), libc contains stubbed
8346 # (non-functional) versions of the pthreads routines, so link-based
8347 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8348 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8349 # a function called by this macro, so we could check for that, but
8350 # who knows whether they'll stub that too in a future libc.) So,
8351 # we'll just look for -pthreads and -lpthread first:
8352
8353 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8354 ;;
8355
8356 *-darwin*)
8357 ax_pthread_flags="-pthread $ax_pthread_flags"
8358 ;;
8359esac
8360
8361if test x"$ax_pthread_ok" = xno; then
8362for flag in $ax_pthread_flags; do
8363
8364 case $flag in
8365 none)
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8367$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8368 ;;
8369
8370 -*)
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8372$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8373 PTHREAD_CFLAGS="$flag"
8374 ;;
8375
8376 pthread-config)
8377 # Extract the first word of "pthread-config", so it can be a program name with args.
8378set dummy pthread-config; ac_word=$2
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008381if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008382 $as_echo_n "(cached) " >&6
8383else
8384 if test -n "$ax_pthread_config"; then
8385 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8386else
8387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388for as_dir in $PATH
8389do
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_ax_pthread_config="yes"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8397 fi
8398done
8399 done
8400IFS=$as_save_IFS
8401
8402 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8403fi
8404fi
8405ax_pthread_config=$ac_cv_prog_ax_pthread_config
8406if test -n "$ax_pthread_config"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8408$as_echo "$ax_pthread_config" >&6; }
8409else
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411$as_echo "no" >&6; }
8412fi
8413
8414
8415 if test x"$ax_pthread_config" = xno; then continue; fi
8416 PTHREAD_CFLAGS="`pthread-config --cflags`"
8417 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8418 ;;
8419
8420 *)
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8422$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8423 PTHREAD_LIBS="-l$flag"
8424 ;;
8425 esac
8426
8427 save_LIBS="$LIBS"
8428 save_CFLAGS="$CFLAGS"
8429 LIBS="$PTHREAD_LIBS $LIBS"
8430 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8431
8432 # Check for various functions. We must include pthread.h,
8433 # since some functions may be macros. (On the Sequent, we
8434 # need a special flag -Kthread to make this header compile.)
8435 # We check for pthread_join because it is in -lpthread on IRIX
8436 # while pthread_create is in libc. We check for pthread_attr_init
8437 # due to DEC craziness with -lpthreads. We check for
8438 # pthread_cleanup_push because it is one of the few pthread
8439 # functions on Solaris that doesn't have a non-functional libc stub.
8440 # We try pthread_create on general principles.
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442/* end confdefs.h. */
8443#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008444 static void routine(void* a) {a=0;}
8445 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008446int
8447main ()
8448{
8449pthread_t th; pthread_attr_t attr;
8450 pthread_create(&th,0,start_routine,0);
8451 pthread_join(th, 0);
8452 pthread_attr_init(&attr);
8453 pthread_cleanup_push(routine, 0);
8454 pthread_cleanup_pop(0);
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459if ac_fn_c_try_link "$LINENO"; then :
8460 ax_pthread_ok=yes
8461fi
8462rm -f core conftest.err conftest.$ac_objext \
8463 conftest$ac_exeext conftest.$ac_ext
8464
8465 LIBS="$save_LIBS"
8466 CFLAGS="$save_CFLAGS"
8467
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8469$as_echo "$ax_pthread_ok" >&6; }
8470 if test "x$ax_pthread_ok" = xyes; then
8471 break;
8472 fi
8473
8474 PTHREAD_LIBS=""
8475 PTHREAD_CFLAGS=""
8476done
8477fi
8478
8479# Various other checks:
8480if test "x$ax_pthread_ok" = xyes; then
8481 save_LIBS="$LIBS"
8482 LIBS="$PTHREAD_LIBS $LIBS"
8483 save_CFLAGS="$CFLAGS"
8484 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8485
8486 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8488$as_echo_n "checking for joinable pthread attribute... " >&6; }
8489 attr_name=unknown
8490 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h. */
8493#include <pthread.h>
8494int
8495main ()
8496{
8497int attr=$attr; return attr;
8498 ;
8499 return 0;
8500}
8501_ACEOF
8502if ac_fn_c_try_link "$LINENO"; then :
8503 attr_name=$attr; break
8504fi
8505rm -f core conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
8507 done
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8509$as_echo "$attr_name" >&6; }
8510 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8511
8512cat >>confdefs.h <<_ACEOF
8513#define PTHREAD_CREATE_JOINABLE $attr_name
8514_ACEOF
8515
8516 fi
8517
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8519$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8520 flag=no
8521 case "${host_cpu}-${host_os}" in
8522 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8523 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8524 esac
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8526$as_echo "${flag}" >&6; }
8527 if test "x$flag" != xno; then
8528 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8529 fi
8530
8531 LIBS="$save_LIBS"
8532 CFLAGS="$save_CFLAGS"
8533
8534 # More AIX lossage: must compile with xlc_r or cc_r
8535 if test x"$GCC" != xyes; then
8536 for ac_prog in xlc_r cc_r
8537do
8538 # Extract the first word of "$ac_prog", so it can be a program name with args.
8539set dummy $ac_prog; ac_word=$2
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008542if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008543 $as_echo_n "(cached) " >&6
8544else
8545 if test -n "$PTHREAD_CC"; then
8546 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8547else
8548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549for as_dir in $PATH
8550do
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_prog_PTHREAD_CC="$ac_prog"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8558 fi
8559done
8560 done
8561IFS=$as_save_IFS
8562
8563fi
8564fi
8565PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8566if test -n "$PTHREAD_CC"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8568$as_echo "$PTHREAD_CC" >&6; }
8569else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571$as_echo "no" >&6; }
8572fi
8573
8574
8575 test -n "$PTHREAD_CC" && break
8576done
8577test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8578
8579 else
8580 PTHREAD_CC=$CC
8581 fi
8582else
8583 PTHREAD_CC="$CC"
8584fi
8585
8586
8587
8588
8589
8590# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8591if test x"$ax_pthread_ok" = xyes; then
8592
8593$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8594
8595 :
8596else
8597 ax_pthread_ok=no
8598
8599fi
8600ac_ext=c
8601ac_cpp='$CPP $CPPFLAGS'
8602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8604ac_compiler_gnu=$ac_cv_c_compiler_gnu
8605
8606
cristy7acf8fb2010-09-23 19:58:53 +00008607 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008608 have_threads=yes
8609 DEF_THREAD="$PTHREAD_CFLAGS"
8610 CFLAGS="$CFLAGS $DEF_THREAD"
8611 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8612 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008613 { $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 +00008614$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8615 CC="$PTHREAD_CC"
8616 fi
cristy55bf91c2010-09-24 00:29:41 +00008617
8618$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8619
cristy3ed852e2009-09-05 21:47:34 +00008620 fi
8621fi
8622
8623# Enable support for OpenMP
8624if test "$have_threads" != 'yes'; then
8625 ac_cv_prog_c_openmp=unsupported
8626fi
8627
8628 OPENMP_CFLAGS=
8629 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008630if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008631 enableval=$enable_openmp;
8632fi
8633
8634 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008636$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008637if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008638 $as_echo_n "(cached) " >&6
8639else
cristy8b350f62009-11-15 23:12:43 +00008640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008642
8643#ifndef _OPENMP
8644 choke me
8645#endif
8646#include <omp.h>
8647int main () { return omp_get_num_threads (); }
8648
8649_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008650if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008651 ac_cv_prog_c_openmp='none needed'
8652else
cristy8b350f62009-11-15 23:12:43 +00008653 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008654 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8655 ac_save_CFLAGS=$CFLAGS
8656 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008659
8660#ifndef _OPENMP
8661 choke me
8662#endif
8663#include <omp.h>
8664int main () { return omp_get_num_threads (); }
8665
8666_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008667if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008668 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008669fi
cristy8b350f62009-11-15 23:12:43 +00008670rm -f core conftest.err conftest.$ac_objext \
8671 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008672 CFLAGS=$ac_save_CFLAGS
8673 if test "$ac_cv_prog_c_openmp" != unsupported; then
8674 break
8675 fi
8676 done
8677fi
cristy8b350f62009-11-15 23:12:43 +00008678rm -f core conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008680fi
cristy8b350f62009-11-15 23:12:43 +00008681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008682$as_echo "$ac_cv_prog_c_openmp" >&6; }
8683 case $ac_cv_prog_c_openmp in #(
8684 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008685 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008686 *)
cristy8b350f62009-11-15 23:12:43 +00008687 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008688 esac
8689 fi
8690
8691
8692CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8693MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8694
cristy391f1ce2010-09-09 17:23:28 +00008695if test "$enable_openmp" != no; then
8696 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8697 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8698 fi
8699fi
cristy3ed852e2009-09-05 21:47:34 +00008700
cristy736173a2009-09-20 21:18:22 +00008701# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008702
8703
8704
8705ac_ext=c
8706ac_cpp='$CPP $CPPFLAGS'
8707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709ac_compiler_gnu=$ac_cv_c_compiler_gnu
8710
8711ax_pthread_ok=no
8712
8713# We used to check for pthread.h first, but this fails if pthread.h
8714# requires special compiler flags (e.g. on True64 or Sequent).
8715# It gets checked for in the link test anyway.
8716
8717# First of all, check if the user has set any of the PTHREAD_LIBS,
8718# etcetera environment variables, and if threads linking works using
8719# them:
8720if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8721 save_CFLAGS="$CFLAGS"
8722 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8723 save_LIBS="$LIBS"
8724 LIBS="$PTHREAD_LIBS $LIBS"
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8726$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h. */
8729
8730/* Override any GCC internal prototype to avoid an error.
8731 Use char because int might match the return type of a GCC
8732 builtin and then its argument prototype would still apply. */
8733#ifdef __cplusplus
8734extern "C"
8735#endif
8736char pthread_join ();
8737int
8738main ()
8739{
8740return pthread_join ();
8741 ;
8742 return 0;
8743}
8744_ACEOF
8745if ac_fn_c_try_link "$LINENO"; then :
8746 ax_pthread_ok=yes
8747fi
8748rm -f core conftest.err conftest.$ac_objext \
8749 conftest$ac_exeext conftest.$ac_ext
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8751$as_echo "$ax_pthread_ok" >&6; }
8752 if test x"$ax_pthread_ok" = xno; then
8753 PTHREAD_LIBS=""
8754 PTHREAD_CFLAGS=""
8755 fi
8756 LIBS="$save_LIBS"
8757 CFLAGS="$save_CFLAGS"
8758fi
8759
8760# We must check for the threads library under a number of different
8761# names; the ordering is very important because some systems
8762# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8763# libraries is broken (non-POSIX).
8764
8765# Create a list of thread flags to try. Items starting with a "-" are
8766# C compiler flags, and other items are library names, except for "none"
8767# which indicates that we try without any flags at all, and "pthread-config"
8768# which is a program returning the flags for the Pth emulation library.
8769
8770ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8771
8772# The ordering *is* (sometimes) important. Some notes on the
8773# individual items follow:
8774
8775# pthreads: AIX (must check this before -lpthread)
8776# none: in case threads are in libc; should be tried before -Kthread and
8777# other compiler flags to prevent continual compiler warnings
8778# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8779# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8780# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8781# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8782# -pthreads: Solaris/gcc
8783# -mthreads: Mingw32/gcc, Lynx/gcc
8784# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8785# doesn't hurt to check since this sometimes defines pthreads too;
8786# also defines -D_REENTRANT)
8787# ... -mt is also the pthreads flag for HP/aCC
8788# pthread: Linux, etcetera
8789# --thread-safe: KAI C++
8790# pthread-config: use pthread-config program (for GNU Pth library)
8791
8792case "${host_cpu}-${host_os}" in
8793 *solaris*)
8794
8795 # On Solaris (at least, for some versions), libc contains stubbed
8796 # (non-functional) versions of the pthreads routines, so link-based
8797 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8798 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8799 # a function called by this macro, so we could check for that, but
8800 # who knows whether they'll stub that too in a future libc.) So,
8801 # we'll just look for -pthreads and -lpthread first:
8802
8803 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8804 ;;
8805
8806 *-darwin*)
8807 ax_pthread_flags="-pthread $ax_pthread_flags"
8808 ;;
8809esac
8810
8811if test x"$ax_pthread_ok" = xno; then
8812for flag in $ax_pthread_flags; do
8813
8814 case $flag in
8815 none)
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8817$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8818 ;;
8819
8820 -*)
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8822$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8823 PTHREAD_CFLAGS="$flag"
8824 ;;
8825
8826 pthread-config)
8827 # Extract the first word of "pthread-config", so it can be a program name with args.
8828set dummy pthread-config; ac_word=$2
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008831if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008832 $as_echo_n "(cached) " >&6
8833else
8834 if test -n "$ax_pthread_config"; then
8835 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8836else
8837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838for as_dir in $PATH
8839do
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8844 ac_cv_prog_ax_pthread_config="yes"
8845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 break 2
8847 fi
8848done
8849 done
8850IFS=$as_save_IFS
8851
8852 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8853fi
8854fi
8855ax_pthread_config=$ac_cv_prog_ax_pthread_config
8856if test -n "$ax_pthread_config"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8858$as_echo "$ax_pthread_config" >&6; }
8859else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
8862fi
8863
8864
8865 if test x"$ax_pthread_config" = xno; then continue; fi
8866 PTHREAD_CFLAGS="`pthread-config --cflags`"
8867 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8868 ;;
8869
8870 *)
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8872$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8873 PTHREAD_LIBS="-l$flag"
8874 ;;
8875 esac
8876
8877 save_LIBS="$LIBS"
8878 save_CFLAGS="$CFLAGS"
8879 LIBS="$PTHREAD_LIBS $LIBS"
8880 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8881
8882 # Check for various functions. We must include pthread.h,
8883 # since some functions may be macros. (On the Sequent, we
8884 # need a special flag -Kthread to make this header compile.)
8885 # We check for pthread_join because it is in -lpthread on IRIX
8886 # while pthread_create is in libc. We check for pthread_attr_init
8887 # due to DEC craziness with -lpthreads. We check for
8888 # pthread_cleanup_push because it is one of the few pthread
8889 # functions on Solaris that doesn't have a non-functional libc stub.
8890 # We try pthread_create on general principles.
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892/* end confdefs.h. */
8893#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008894 static void routine(void* a) {a=0;}
8895 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008896int
8897main ()
8898{
8899pthread_t th; pthread_attr_t attr;
8900 pthread_create(&th,0,start_routine,0);
8901 pthread_join(th, 0);
8902 pthread_attr_init(&attr);
8903 pthread_cleanup_push(routine, 0);
8904 pthread_cleanup_pop(0);
8905 ;
8906 return 0;
8907}
8908_ACEOF
8909if ac_fn_c_try_link "$LINENO"; then :
8910 ax_pthread_ok=yes
8911fi
8912rm -f core conftest.err conftest.$ac_objext \
8913 conftest$ac_exeext conftest.$ac_ext
8914
8915 LIBS="$save_LIBS"
8916 CFLAGS="$save_CFLAGS"
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8919$as_echo "$ax_pthread_ok" >&6; }
8920 if test "x$ax_pthread_ok" = xyes; then
8921 break;
8922 fi
8923
8924 PTHREAD_LIBS=""
8925 PTHREAD_CFLAGS=""
8926done
8927fi
8928
8929# Various other checks:
8930if test "x$ax_pthread_ok" = xyes; then
8931 save_LIBS="$LIBS"
8932 LIBS="$PTHREAD_LIBS $LIBS"
8933 save_CFLAGS="$CFLAGS"
8934 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8935
8936 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8938$as_echo_n "checking for joinable pthread attribute... " >&6; }
8939 attr_name=unknown
8940 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942/* end confdefs.h. */
8943#include <pthread.h>
8944int
8945main ()
8946{
8947int attr=$attr; return attr;
8948 ;
8949 return 0;
8950}
8951_ACEOF
8952if ac_fn_c_try_link "$LINENO"; then :
8953 attr_name=$attr; break
8954fi
8955rm -f core conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext conftest.$ac_ext
8957 done
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8959$as_echo "$attr_name" >&6; }
8960 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8961
8962cat >>confdefs.h <<_ACEOF
8963#define PTHREAD_CREATE_JOINABLE $attr_name
8964_ACEOF
8965
8966 fi
8967
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8969$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8970 flag=no
8971 case "${host_cpu}-${host_os}" in
8972 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8973 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8974 esac
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8976$as_echo "${flag}" >&6; }
8977 if test "x$flag" != xno; then
8978 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8979 fi
8980
8981 LIBS="$save_LIBS"
8982 CFLAGS="$save_CFLAGS"
8983
8984 # More AIX lossage: must compile with xlc_r or cc_r
8985 if test x"$GCC" != xyes; then
8986 for ac_prog in xlc_r cc_r
8987do
8988 # Extract the first word of "$ac_prog", so it can be a program name with args.
8989set dummy $ac_prog; ac_word=$2
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008992if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008993 $as_echo_n "(cached) " >&6
8994else
8995 if test -n "$PTHREAD_CC"; then
8996 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8997else
8998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999for as_dir in $PATH
9000do
9001 IFS=$as_save_IFS
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9005 ac_cv_prog_PTHREAD_CC="$ac_prog"
9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007 break 2
9008 fi
9009done
9010 done
9011IFS=$as_save_IFS
9012
9013fi
9014fi
9015PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9016if test -n "$PTHREAD_CC"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9018$as_echo "$PTHREAD_CC" >&6; }
9019else
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021$as_echo "no" >&6; }
9022fi
9023
9024
9025 test -n "$PTHREAD_CC" && break
9026done
9027test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9028
9029 else
9030 PTHREAD_CC=$CC
9031 fi
9032else
9033 PTHREAD_CC="$CC"
9034fi
9035
9036
9037
9038
9039
9040# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9041if test x"$ax_pthread_ok" = xyes; then
9042
9043$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9044
9045 :
9046else
9047 ax_pthread_ok=no
9048
9049fi
9050ac_ext=c
9051ac_cpp='$CPP $CPPFLAGS'
9052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9054ac_compiler_gnu=$ac_cv_c_compiler_gnu
9055
9056
9057
9058# Check whether --enable-opencl was given.
9059if test "${enable_opencl+set}" = set; then :
9060 enableval=$enable_opencl; disable_opencl=$enableval
9061else
9062 disable_opencl='yes'
9063fi
9064
9065
9066if test "$disable_opencl" = 'yes'; then
9067 ac_ext=c
9068ac_cpp='$CPP $CPPFLAGS'
9069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9071ac_compiler_gnu=$ac_cv_c_compiler_gnu
9072
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9074$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009075if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009076 $as_echo_n "(cached) " >&6
9077else
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h. */
9080
9081int
9082main ()
9083{
9084#ifndef _MSC_VER
9085 choke me
9086#endif
9087
9088 ;
9089 return 0;
9090}
9091_ACEOF
9092if ac_fn_c_try_compile "$LINENO"; then :
9093 ax_compiler_ms=yes
9094else
9095 ax_compiler_ms=no
9096fi
9097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098ax_cv_c_compiler_ms=$ax_compiler_ms
9099
9100fi
9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9102$as_echo "$ax_cv_c_compiler_ms" >&6; }
9103 if test X$ax_compiler_ms = Xno; then :
9104 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9105fi
9106
9107 ax_save_CPPFLAGS=$CPPFLAGS
9108 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9109 for ac_header in CL/cl.h OpenCL/cl.h
9110do :
9111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9112ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009113if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009114 cat >>confdefs.h <<_ACEOF
9115#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9116_ACEOF
9117
9118fi
9119
9120done
9121
9122 CPPFLAGS=$ax_save_CPPFLAGS
9123
9124 for ac_header in windows.h
9125do :
9126 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009127if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009128 cat >>confdefs.h <<_ACEOF
9129#define HAVE_WINDOWS_H 1
9130_ACEOF
9131
9132fi
9133
9134done
9135
9136
9137
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9140$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009141if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009142 $as_echo_n "(cached) " >&6
9143else
9144 ax_cv_check_cl_libcl=no
9145 case $host_cpu in
9146 x86_64) ax_check_cl_libdir=lib64 ;;
9147 *) ax_check_cl_libdir=lib ;;
9148 esac
9149 ax_save_CPPFLAGS=$CPPFLAGS
9150 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9151 ax_save_LIBS=$LIBS
9152 LIBS=""
9153 ax_check_libs="-lOpenCL -lCL -lclparser"
9154 for ax_lib in $ax_check_libs; do
9155 if test X$ax_compiler_ms = Xyes; then :
9156 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9157else
9158 ax_try_lib=$ax_lib
9159fi
9160 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162/* end confdefs.h. */
9163
9164 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9165 # include <windows.h>
9166 # endif
9167 # ifdef HAVE_CL_CL_H
9168 # include <CL/cl.h>
9169 # elif defined(HAVE_OPENCL_CL_H)
9170 # include <OpenCL/cl.h>
9171 # else
9172 # error no CL.h
9173 # endif
9174int
9175main ()
9176{
9177clCreateContextFromType(0,0,0,0,0)
9178 ;
9179 return 0;
9180}
9181_ACEOF
9182if ac_fn_c_try_link "$LINENO"; then :
9183 ax_cv_check_cl_libcl=$ax_try_lib; break
9184else
9185 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"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187/* end confdefs.h. */
9188
9189 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9190 # include <windows.h>
9191 # endif
9192 # ifdef HAVE_CL_CL_H
9193 # include <CL/cl.h>
9194 # elif defined(HAVE_OPENCL_CL_H)
9195 # include <OpenCL/cl.h>
9196 # else
9197 # error no CL.h
9198 # endif
9199int
9200main ()
9201{
9202clCreateContextFromType(0,0,0,0,0)
9203 ;
9204 return 0;
9205}
9206_ACEOF
9207if ac_fn_c_try_link "$LINENO"; then :
9208 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9209else
cristy78c5a0c2010-12-04 20:00:59 +00009210 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 +00009211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h. */
9213
9214 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9215 # include <windows.h>
9216 # endif
9217 # ifdef HAVE_CL_CL_H
9218 # include <CL/cl.h>
9219 # elif defined(HAVE_OPENCL_CL_H)
9220 # include <OpenCL/cl.h>
9221 # else
9222 # error no CL.h
9223 # endif
9224int
9225main ()
9226{
9227clCreateContextFromType(0,0,0,0,0)
9228 ;
9229 return 0;
9230}
9231_ACEOF
9232if ac_fn_c_try_link "$LINENO"; then :
9233 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9234fi
9235rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9237fi
9238rm -f core conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9240fi
9241rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 done
9244
9245 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009246 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248/* end confdefs.h. */
9249
9250 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9251 # include <windows.h>
9252 # endif
9253 # ifdef HAVE_CL_CL_H
9254 # include <CL/cl.h>
9255 # elif defined(HAVE_OPENCL_CL_H)
9256 # include <OpenCL/cl.h>
9257 # else
9258 # error no CL.h
9259 # endif
9260int
9261main ()
9262{
9263clCreateContextFromType(0,0,0,0,0)
9264 ;
9265 return 0;
9266}
9267_ACEOF
9268if ac_fn_c_try_link "$LINENO"; then :
9269 ax_cv_check_cl_libcl=$LIBS
9270fi
9271rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273fi
9274
9275 LIBS=$ax_save_LIBS
9276 CPPFLAGS=$ax_save_CPPFLAGS
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9279$as_echo "$ax_cv_check_cl_libcl" >&6; }
9280
9281 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9282 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9283else
9284 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9285$as_echo "#define _OPENCL 1" >>confdefs.h
9286
9287fi
9288 ac_ext=c
9289ac_cpp='$CPP $CPPFLAGS'
9290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9292ac_compiler_gnu=$ac_cv_c_compiler_gnu
9293
9294fi
9295
9296
9297
9298
cristyc7083c12009-10-14 03:16:55 +00009299CFLAGS="$CL_CFLAGS $CFLAGS"
9300LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009301
cristy391f1ce2010-09-09 17:23:28 +00009302if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009303 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009304 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9305 fi
cristyfd9dcd42010-08-08 18:07:02 +00009306fi
cristy2e8b51d2009-10-17 18:26:15 +00009307
cristy3ed852e2009-09-05 21:47:34 +00009308########
9309#
9310# Check for large file support
9311#
9312########
9313# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009314if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009315 enableval=$enable_largefile;
9316fi
9317
9318if test "$enable_largefile" != no; then
9319
cristy8b350f62009-11-15 23:12:43 +00009320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009321$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009322if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009323 $as_echo_n "(cached) " >&6
9324else
9325 ac_cv_sys_largefile_CC=no
9326 if test "$GCC" != yes; then
9327 ac_save_CC=$CC
9328 while :; do
9329 # IRIX 6.2 and later do not support large files by default,
9330 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009332/* end confdefs.h. */
9333#include <sys/types.h>
9334 /* Check that off_t can represent 2**63 - 1 correctly.
9335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9336 since some C++ compilers masquerading as C compilers
9337 incorrectly reject 9223372036854775807. */
9338#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9340 && LARGE_OFF_T % 2147483647 == 1)
9341 ? 1 : -1];
9342int
9343main ()
9344{
9345
9346 ;
9347 return 0;
9348}
9349_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009350 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009351 break
cristy3ed852e2009-09-05 21:47:34 +00009352fi
cristy3ed852e2009-09-05 21:47:34 +00009353rm -f core conftest.err conftest.$ac_objext
9354 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009355 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009356 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009357fi
cristy3ed852e2009-09-05 21:47:34 +00009358rm -f core conftest.err conftest.$ac_objext
9359 break
9360 done
9361 CC=$ac_save_CC
9362 rm -f conftest.$ac_ext
9363 fi
9364fi
cristy8b350f62009-11-15 23:12:43 +00009365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009366$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9367 if test "$ac_cv_sys_largefile_CC" != no; then
9368 CC=$CC$ac_cv_sys_largefile_CC
9369 fi
9370
cristy8b350f62009-11-15 23:12:43 +00009371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009372$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009373if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009374 $as_echo_n "(cached) " >&6
9375else
9376 while :; do
cristy8b350f62009-11-15 23:12:43 +00009377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009378/* end confdefs.h. */
9379#include <sys/types.h>
9380 /* Check that off_t can represent 2**63 - 1 correctly.
9381 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9382 since some C++ compilers masquerading as C compilers
9383 incorrectly reject 9223372036854775807. */
9384#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9386 && LARGE_OFF_T % 2147483647 == 1)
9387 ? 1 : -1];
9388int
9389main ()
9390{
9391
9392 ;
9393 return 0;
9394}
9395_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009396if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009397 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009398fi
cristy3ed852e2009-09-05 21:47:34 +00009399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009401/* end confdefs.h. */
9402#define _FILE_OFFSET_BITS 64
9403#include <sys/types.h>
9404 /* Check that off_t can represent 2**63 - 1 correctly.
9405 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9406 since some C++ compilers masquerading as C compilers
9407 incorrectly reject 9223372036854775807. */
9408#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9409 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9410 && LARGE_OFF_T % 2147483647 == 1)
9411 ? 1 : -1];
9412int
9413main ()
9414{
9415
9416 ;
9417 return 0;
9418}
9419_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009420if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009421 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009422fi
cristy3ed852e2009-09-05 21:47:34 +00009423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 ac_cv_sys_file_offset_bits=unknown
9425 break
9426done
9427fi
cristy8b350f62009-11-15 23:12:43 +00009428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009429$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9430case $ac_cv_sys_file_offset_bits in #(
9431 no | unknown) ;;
9432 *)
9433cat >>confdefs.h <<_ACEOF
9434#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9435_ACEOF
9436;;
9437esac
9438rm -rf conftest*
9439 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009441$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009442if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009443 $as_echo_n "(cached) " >&6
9444else
9445 while :; do
cristy8b350f62009-11-15 23:12:43 +00009446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009447/* end confdefs.h. */
9448#include <sys/types.h>
9449 /* Check that off_t can represent 2**63 - 1 correctly.
9450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9451 since some C++ compilers masquerading as C compilers
9452 incorrectly reject 9223372036854775807. */
9453#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9455 && LARGE_OFF_T % 2147483647 == 1)
9456 ? 1 : -1];
9457int
9458main ()
9459{
9460
9461 ;
9462 return 0;
9463}
9464_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009465if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009466 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009467fi
cristy3ed852e2009-09-05 21:47:34 +00009468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009470/* end confdefs.h. */
9471#define _LARGE_FILES 1
9472#include <sys/types.h>
9473 /* Check that off_t can represent 2**63 - 1 correctly.
9474 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9475 since some C++ compilers masquerading as C compilers
9476 incorrectly reject 9223372036854775807. */
9477#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9478 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9479 && LARGE_OFF_T % 2147483647 == 1)
9480 ? 1 : -1];
9481int
9482main ()
9483{
9484
9485 ;
9486 return 0;
9487}
9488_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009489if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009490 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009491fi
cristy3ed852e2009-09-05 21:47:34 +00009492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9493 ac_cv_sys_large_files=unknown
9494 break
9495done
9496fi
cristy8b350f62009-11-15 23:12:43 +00009497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009498$as_echo "$ac_cv_sys_large_files" >&6; }
9499case $ac_cv_sys_large_files in #(
9500 no | unknown) ;;
9501 *)
9502cat >>confdefs.h <<_ACEOF
9503#define _LARGE_FILES $ac_cv_sys_large_files
9504_ACEOF
9505;;
9506esac
9507rm -rf conftest*
9508 fi
9509fi
9510
cristy8b350f62009-11-15 23:12:43 +00009511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009512$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009513if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009514 $as_echo_n "(cached) " >&6
9515else
9516 while :; do
cristy8b350f62009-11-15 23:12:43 +00009517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009518/* end confdefs.h. */
9519#include <sys/types.h> /* for off_t */
9520 #include <stdio.h>
9521int
9522main ()
9523{
9524int (*fp) (FILE *, off_t, int) = fseeko;
9525 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9526 ;
9527 return 0;
9528}
9529_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009530if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009531 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009532fi
cristy8b350f62009-11-15 23:12:43 +00009533rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009536/* end confdefs.h. */
9537#define _LARGEFILE_SOURCE 1
9538#include <sys/types.h> /* for off_t */
9539 #include <stdio.h>
9540int
9541main ()
9542{
9543int (*fp) (FILE *, off_t, int) = fseeko;
9544 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9545 ;
9546 return 0;
9547}
9548_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009549if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009550 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009551fi
cristy8b350f62009-11-15 23:12:43 +00009552rm -f core conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009554 ac_cv_sys_largefile_source=unknown
9555 break
9556done
9557fi
cristy8b350f62009-11-15 23:12:43 +00009558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009559$as_echo "$ac_cv_sys_largefile_source" >&6; }
9560case $ac_cv_sys_largefile_source in #(
9561 no | unknown) ;;
9562 *)
9563cat >>confdefs.h <<_ACEOF
9564#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9565_ACEOF
9566;;
9567esac
9568rm -rf conftest*
9569
9570# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9571# in glibc 2.1.3, but that breaks too many other things.
9572# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9573if test $ac_cv_sys_largefile_source != unknown; then
9574
cristy8b350f62009-11-15 23:12:43 +00009575$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009576
9577fi
9578
9579LFS_CPPFLAGS=''
9580if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009581 case $ac_cv_sys_file_offset_bits in
9582 no)
9583 # nothing to do here as the host supports LFS fine
9584 ;;
9585 unknown)
cristy8b350f62009-11-15 23:12:43 +00009586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009587$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009588 if test "$cross_compiling" = yes; then :
9589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009591as_fn_error $? "cannot run test program while cross compiling
9592See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009593else
cristy8b350f62009-11-15 23:12:43 +00009594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009596#include <unistd.h>
9597 main () {
9598 exit(!(sizeof(off_t) == 8));
9599 }
cristyda16f162011-02-19 23:52:17 +00009600int
9601main ()
9602{
9603
9604 ;
9605 return 0;
9606}
cristy3ed852e2009-09-05 21:47:34 +00009607_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009608if ac_fn_c_try_run "$LINENO"; then :
9609 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009610
cristy8b350f62009-11-15 23:12:43 +00009611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009612$as_echo "yes" >&6; }
9613else
cristy8b350f62009-11-15 23:12:43 +00009614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009615$as_echo "no" >&6; }
9616fi
cristy8b350f62009-11-15 23:12:43 +00009617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9618 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009619fi
9620
cristyc1e0cc12011-09-21 16:41:16 +00009621 ;;
9622 *)
9623 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9624 ;;
9625 esac
cristy3ed852e2009-09-05 21:47:34 +00009626 if test "$ac_cv_sys_large_files" != 'no'; then
9627 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9628 fi
9629 if test "$ac_cv_sys_largefile_source" != 'no'; then
9630 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9631 fi
9632fi
9633
9634
9635#
9636# Configure libtool & libltdl
9637#
9638# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009639enable_dlopen=yes
9640
9641
9642
9643case `pwd` in
9644 *\ * | *\ *)
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9646$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9647esac
9648
9649
9650
cristyda16f162011-02-19 23:52:17 +00009651macro_version='2.4'
9652macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666ltmain="$ac_aux_dir/ltmain.sh"
9667
cristy0c60a692010-11-04 01:09:47 +00009668# Backslashify metacharacters that are still active within
9669# double-quoted strings.
9670sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9671
9672# Same as above, but do not quote variable references.
9673double_quote_subst='s/\(["`\\]\)/\\\1/g'
9674
9675# Sed substitution to delay expansion of an escaped shell variable in a
9676# double_quote_subst'ed string.
9677delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9678
9679# Sed substitution to delay expansion of an escaped single quote.
9680delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9681
9682# Sed substitution to avoid accidental globbing in evaled expressions
9683no_glob_subst='s/\*/\\\*/g'
9684
cristy73bd4a52010-10-05 11:24:23 +00009685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9686$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009687if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009688 $as_echo_n "(cached) " >&6
9689else
9690 if test -n "$NM"; then
9691 # Let the user override the test.
9692 lt_cv_path_NM="$NM"
9693else
9694 lt_nm_to_check="${ac_tool_prefix}nm"
9695 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9696 lt_nm_to_check="$lt_nm_to_check nm"
9697 fi
9698 for lt_tmp_nm in $lt_nm_to_check; do
9699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9700 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9701 IFS="$lt_save_ifs"
9702 test -z "$ac_dir" && ac_dir=.
9703 tmp_nm="$ac_dir/$lt_tmp_nm"
9704 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9705 # Check to see if the nm accepts a BSD-compat flag.
9706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9707 # nm: unknown option "B" ignored
9708 # Tru64's nm complains that /dev/null is an invalid object file
9709 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9710 */dev/null* | *'Invalid file or object type'*)
9711 lt_cv_path_NM="$tmp_nm -B"
9712 break
9713 ;;
9714 *)
9715 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9716 */dev/null*)
9717 lt_cv_path_NM="$tmp_nm -p"
9718 break
9719 ;;
9720 *)
9721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9722 continue # so that we can try to find one that supports BSD flags
9723 ;;
9724 esac
9725 ;;
9726 esac
9727 fi
9728 done
9729 IFS="$lt_save_ifs"
9730 done
9731 : ${lt_cv_path_NM=no}
9732fi
9733fi
9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9735$as_echo "$lt_cv_path_NM" >&6; }
9736if test "$lt_cv_path_NM" != "no"; then
9737 NM="$lt_cv_path_NM"
9738else
9739 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009740 if test -n "$DUMPBIN"; then :
9741 # Let the user override the test.
9742 else
9743 if test -n "$ac_tool_prefix"; then
9744 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009745 do
9746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009750if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009751 $as_echo_n "(cached) " >&6
9752else
9753 if test -n "$DUMPBIN"; then
9754 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9755else
9756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757for as_dir in $PATH
9758do
9759 IFS=$as_save_IFS
9760 test -z "$as_dir" && as_dir=.
9761 for ac_exec_ext in '' $ac_executable_extensions; do
9762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9763 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9765 break 2
9766 fi
9767done
9768 done
9769IFS=$as_save_IFS
9770
9771fi
9772fi
9773DUMPBIN=$ac_cv_prog_DUMPBIN
9774if test -n "$DUMPBIN"; then
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9776$as_echo "$DUMPBIN" >&6; }
9777else
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9779$as_echo "no" >&6; }
9780fi
9781
9782
9783 test -n "$DUMPBIN" && break
9784 done
9785fi
9786if test -z "$DUMPBIN"; then
9787 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009788 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009789do
9790 # Extract the first word of "$ac_prog", so it can be a program name with args.
9791set dummy $ac_prog; ac_word=$2
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009794if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009795 $as_echo_n "(cached) " >&6
9796else
9797 if test -n "$ac_ct_DUMPBIN"; then
9798 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9799else
9800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801for as_dir in $PATH
9802do
9803 IFS=$as_save_IFS
9804 test -z "$as_dir" && as_dir=.
9805 for ac_exec_ext in '' $ac_executable_extensions; do
9806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9807 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9809 break 2
9810 fi
9811done
9812 done
9813IFS=$as_save_IFS
9814
9815fi
9816fi
9817ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9818if test -n "$ac_ct_DUMPBIN"; then
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9820$as_echo "$ac_ct_DUMPBIN" >&6; }
9821else
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9823$as_echo "no" >&6; }
9824fi
9825
9826
9827 test -n "$ac_ct_DUMPBIN" && break
9828done
9829
9830 if test "x$ac_ct_DUMPBIN" = x; then
9831 DUMPBIN=":"
9832 else
9833 case $cross_compiling:$ac_tool_warned in
9834yes:)
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9837ac_tool_warned=yes ;;
9838esac
9839 DUMPBIN=$ac_ct_DUMPBIN
9840 fi
9841fi
9842
cristy0c60a692010-11-04 01:09:47 +00009843 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9844 *COFF*)
9845 DUMPBIN="$DUMPBIN -symbols"
9846 ;;
9847 *)
9848 DUMPBIN=:
9849 ;;
9850 esac
9851 fi
cristy73bd4a52010-10-05 11:24:23 +00009852
9853 if test "$DUMPBIN" != ":"; then
9854 NM="$DUMPBIN"
9855 fi
9856fi
9857test -z "$NM" && NM=nm
9858
9859
9860
9861
9862
9863
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9865$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009866if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009867 $as_echo_n "(cached) " >&6
9868else
9869 lt_cv_nm_interface="BSD nm"
9870 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009871 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009872 (eval "$ac_compile" 2>conftest.err)
9873 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009874 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009875 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9876 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009877 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009878 cat conftest.out >&5
9879 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9880 lt_cv_nm_interface="MS dumpbin"
9881 fi
9882 rm -f conftest*
9883fi
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9885$as_echo "$lt_cv_nm_interface" >&6; }
9886
9887# find the maximum length of command line arguments
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9889$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009890if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009891 $as_echo_n "(cached) " >&6
9892else
9893 i=0
9894 teststring="ABCD"
9895
9896 case $build_os in
9897 msdosdjgpp*)
9898 # On DJGPP, this test can blow up pretty badly due to problems in libc
9899 # (any single argument exceeding 2000 bytes causes a buffer overrun
9900 # during glob expansion). Even if it were fixed, the result of this
9901 # check would be larger than it should be.
9902 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9903 ;;
9904
9905 gnu*)
9906 # Under GNU Hurd, this test is not required because there is
9907 # no limit to the length of command line arguments.
9908 # Libtool will interpret -1 as no limit whatsoever
9909 lt_cv_sys_max_cmd_len=-1;
9910 ;;
9911
9912 cygwin* | mingw* | cegcc*)
9913 # On Win9x/ME, this test blows up -- it succeeds, but takes
9914 # about 5 minutes as the teststring grows exponentially.
9915 # Worse, since 9x/ME are not pre-emptively multitasking,
9916 # you end up with a "frozen" computer, even though with patience
9917 # the test eventually succeeds (with a max line length of 256k).
9918 # Instead, let's just punt: use the minimum linelength reported by
9919 # all of the supported platforms: 8192 (on NT/2K/XP).
9920 lt_cv_sys_max_cmd_len=8192;
9921 ;;
9922
cristy0c60a692010-11-04 01:09:47 +00009923 mint*)
9924 # On MiNT this can take a long time and run out of memory.
9925 lt_cv_sys_max_cmd_len=8192;
9926 ;;
9927
cristy73bd4a52010-10-05 11:24:23 +00009928 amigaos*)
9929 # On AmigaOS with pdksh, this test takes hours, literally.
9930 # So we just punt and use a minimum line length of 8192.
9931 lt_cv_sys_max_cmd_len=8192;
9932 ;;
9933
9934 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9935 # This has been around since 386BSD, at least. Likely further.
9936 if test -x /sbin/sysctl; then
9937 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9938 elif test -x /usr/sbin/sysctl; then
9939 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9940 else
9941 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9942 fi
9943 # And add a safety zone
9944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9946 ;;
9947
9948 interix*)
9949 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9950 lt_cv_sys_max_cmd_len=196608
9951 ;;
9952
9953 osf*)
9954 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9955 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9956 # nice to cause kernel panics so lets avoid the loop below.
9957 # First set a reasonable default.
9958 lt_cv_sys_max_cmd_len=16384
9959 #
9960 if test -x /sbin/sysconfig; then
9961 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9962 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9963 esac
9964 fi
9965 ;;
9966 sco3.2v5*)
9967 lt_cv_sys_max_cmd_len=102400
9968 ;;
9969 sysv5* | sco5v6* | sysv4.2uw2*)
9970 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9971 if test -n "$kargmax"; then
9972 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9973 else
9974 lt_cv_sys_max_cmd_len=32768
9975 fi
9976 ;;
9977 *)
9978 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9979 if test -n "$lt_cv_sys_max_cmd_len"; then
9980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9982 else
9983 # Make teststring a little bigger before we do anything with it.
9984 # a 1K string should be a reasonable start.
9985 for i in 1 2 3 4 5 6 7 8 ; do
9986 teststring=$teststring$teststring
9987 done
9988 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9989 # If test is not a shell built-in, we'll probably end up computing a
9990 # maximum length that is only half of the actual maximum length, but
9991 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009992 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9993 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009994 test $i != 17 # 1/2 MB should be enough
9995 do
9996 i=`expr $i + 1`
9997 teststring=$teststring$teststring
9998 done
9999 # Only check the string length outside the loop.
10000 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10001 teststring=
10002 # Add a significant safety factor because C++ compilers can tack on
10003 # massive amounts of additional arguments before passing them to the
10004 # linker. It appears as though 1/2 is a usable value.
10005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10006 fi
10007 ;;
10008 esac
10009
10010fi
10011
10012if test -n $lt_cv_sys_max_cmd_len ; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10014$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10015else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10017$as_echo "none" >&6; }
10018fi
10019max_cmd_len=$lt_cv_sys_max_cmd_len
10020
10021
10022
10023
10024
10025
10026: ${CP="cp -f"}
10027: ${MV="mv -f"}
10028: ${RM="rm -f"}
10029
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10031$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10032# Try some XSI features
10033xsi_shell=no
10034( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010035 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10036 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010037 && eval 'test $(( 1 + 1 )) -eq 2 \
10038 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10039 && xsi_shell=yes
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10041$as_echo "$xsi_shell" >&6; }
10042
10043
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10045$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10046lt_shell_append=no
10047( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10048 >/dev/null 2>&1 \
10049 && lt_shell_append=yes
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10051$as_echo "$lt_shell_append" >&6; }
10052
10053
10054if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10055 lt_unset=unset
10056else
10057 lt_unset=false
10058fi
10059
10060
10061
10062
10063
10064# test EBCDIC or ASCII
10065case `echo X|tr X '\101'` in
10066 A) # ASCII based system
10067 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10068 lt_SP2NL='tr \040 \012'
10069 lt_NL2SP='tr \015\012 \040\040'
10070 ;;
10071 *) # EBCDIC based system
10072 lt_SP2NL='tr \100 \n'
10073 lt_NL2SP='tr \r\n \100\100'
10074 ;;
10075esac
10076
10077
10078
10079
10080
10081
10082
10083
10084
cristyda16f162011-02-19 23:52:17 +000010085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10086$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10087if ${lt_cv_to_host_file_cmd+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089else
10090 case $host in
10091 *-*-mingw* )
10092 case $build in
10093 *-*-mingw* ) # actually msys
10094 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10095 ;;
10096 *-*-cygwin* )
10097 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10098 ;;
10099 * ) # otherwise, assume *nix
10100 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10101 ;;
10102 esac
10103 ;;
10104 *-*-cygwin* )
10105 case $build in
10106 *-*-mingw* ) # actually msys
10107 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10108 ;;
10109 *-*-cygwin* )
10110 lt_cv_to_host_file_cmd=func_convert_file_noop
10111 ;;
10112 * ) # otherwise, assume *nix
10113 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10114 ;;
10115 esac
10116 ;;
10117 * ) # unhandled hosts (and "normal" native builds)
10118 lt_cv_to_host_file_cmd=func_convert_file_noop
10119 ;;
10120esac
10121
10122fi
10123
10124to_host_file_cmd=$lt_cv_to_host_file_cmd
10125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10126$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10127
10128
10129
10130
10131
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10133$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10134if ${lt_cv_to_tool_file_cmd+:} false; then :
10135 $as_echo_n "(cached) " >&6
10136else
10137 #assume ordinary cross tools, or native build.
10138lt_cv_to_tool_file_cmd=func_convert_file_noop
10139case $host in
10140 *-*-mingw* )
10141 case $build in
10142 *-*-mingw* ) # actually msys
10143 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10144 ;;
10145 esac
10146 ;;
10147esac
10148
10149fi
10150
10151to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10153$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10154
10155
10156
10157
10158
cristy73bd4a52010-10-05 11:24:23 +000010159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10160$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010161if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010162 $as_echo_n "(cached) " >&6
10163else
10164 lt_cv_ld_reload_flag='-r'
10165fi
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10167$as_echo "$lt_cv_ld_reload_flag" >&6; }
10168reload_flag=$lt_cv_ld_reload_flag
10169case $reload_flag in
10170"" | " "*) ;;
10171*) reload_flag=" $reload_flag" ;;
10172esac
10173reload_cmds='$LD$reload_flag -o $output$reload_objs'
10174case $host_os in
cristyda16f162011-02-19 23:52:17 +000010175 cygwin* | mingw* | pw32* | cegcc*)
10176 if test "$GCC" != yes; then
10177 reload_cmds=false
10178 fi
10179 ;;
cristy73bd4a52010-10-05 11:24:23 +000010180 darwin*)
10181 if test "$GCC" = yes; then
10182 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10183 else
10184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10185 fi
10186 ;;
10187esac
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197if test -n "$ac_tool_prefix"; then
10198 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10199set dummy ${ac_tool_prefix}objdump; ac_word=$2
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010202if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010203 $as_echo_n "(cached) " >&6
10204else
10205 if test -n "$OBJDUMP"; then
10206 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10207else
10208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209for as_dir in $PATH
10210do
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10218 fi
10219done
10220 done
10221IFS=$as_save_IFS
10222
10223fi
10224fi
10225OBJDUMP=$ac_cv_prog_OBJDUMP
10226if test -n "$OBJDUMP"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10228$as_echo "$OBJDUMP" >&6; }
10229else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231$as_echo "no" >&6; }
10232fi
10233
10234
10235fi
10236if test -z "$ac_cv_prog_OBJDUMP"; then
10237 ac_ct_OBJDUMP=$OBJDUMP
10238 # Extract the first word of "objdump", so it can be a program name with args.
10239set dummy objdump; ac_word=$2
10240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010242if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010243 $as_echo_n "(cached) " >&6
10244else
10245 if test -n "$ac_ct_OBJDUMP"; then
10246 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10247else
10248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249for as_dir in $PATH
10250do
10251 IFS=$as_save_IFS
10252 test -z "$as_dir" && as_dir=.
10253 for ac_exec_ext in '' $ac_executable_extensions; do
10254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10255 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10257 break 2
10258 fi
10259done
10260 done
10261IFS=$as_save_IFS
10262
10263fi
10264fi
10265ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10266if test -n "$ac_ct_OBJDUMP"; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10268$as_echo "$ac_ct_OBJDUMP" >&6; }
10269else
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271$as_echo "no" >&6; }
10272fi
10273
10274 if test "x$ac_ct_OBJDUMP" = x; then
10275 OBJDUMP="false"
10276 else
10277 case $cross_compiling:$ac_tool_warned in
10278yes:)
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10281ac_tool_warned=yes ;;
10282esac
10283 OBJDUMP=$ac_ct_OBJDUMP
10284 fi
10285else
10286 OBJDUMP="$ac_cv_prog_OBJDUMP"
10287fi
10288
10289test -z "$OBJDUMP" && OBJDUMP=objdump
10290
10291
10292
10293
10294
10295
10296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10297$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010298if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010299 $as_echo_n "(cached) " >&6
10300else
10301 lt_cv_file_magic_cmd='$MAGIC_CMD'
10302lt_cv_file_magic_test_file=
10303lt_cv_deplibs_check_method='unknown'
10304# Need to set the preceding variable on all platforms that support
10305# interlibrary dependencies.
10306# 'none' -- dependencies not supported.
10307# `unknown' -- same as none, but documents that we really don't know.
10308# 'pass_all' -- all dependencies passed with no checks.
10309# 'test_compile' -- check by making test program.
10310# 'file_magic [[regex]]' -- check by looking for files in library path
10311# which responds to the $file_magic_cmd with a given extended regex.
10312# If you have `file' or equivalent on your system and you're not sure
10313# whether `pass_all' will *always* work, you probably want this one.
10314
10315case $host_os in
10316aix[4-9]*)
10317 lt_cv_deplibs_check_method=pass_all
10318 ;;
10319
10320beos*)
10321 lt_cv_deplibs_check_method=pass_all
10322 ;;
10323
10324bsdi[45]*)
10325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10326 lt_cv_file_magic_cmd='/usr/bin/file -L'
10327 lt_cv_file_magic_test_file=/shlib/libc.so
10328 ;;
10329
10330cygwin*)
10331 # func_win32_libid is a shell function defined in ltmain.sh
10332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10333 lt_cv_file_magic_cmd='func_win32_libid'
10334 ;;
10335
10336mingw* | pw32*)
10337 # Base MSYS/MinGW do not provide the 'file' command needed by
10338 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10339 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010340 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10341 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10343 lt_cv_file_magic_cmd='func_win32_libid'
10344 else
cristy0c60a692010-11-04 01:09:47 +000010345 # Keep this pattern in sync with the one in func_win32_libid.
10346 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 +000010347 lt_cv_file_magic_cmd='$OBJDUMP -f'
10348 fi
10349 ;;
10350
cristy0c60a692010-11-04 01:09:47 +000010351cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010352 # use the weaker test based on 'objdump'. See mingw*.
10353 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10354 lt_cv_file_magic_cmd='$OBJDUMP -f'
10355 ;;
10356
10357darwin* | rhapsody*)
10358 lt_cv_deplibs_check_method=pass_all
10359 ;;
10360
10361freebsd* | dragonfly*)
10362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10363 case $host_cpu in
10364 i*86 )
10365 # Not sure whether the presence of OpenBSD here was a mistake.
10366 # Let's accept both of them until this is cleared up.
10367 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10368 lt_cv_file_magic_cmd=/usr/bin/file
10369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10370 ;;
10371 esac
10372 else
10373 lt_cv_deplibs_check_method=pass_all
10374 fi
10375 ;;
10376
10377gnu*)
10378 lt_cv_deplibs_check_method=pass_all
10379 ;;
10380
cristy0c60a692010-11-04 01:09:47 +000010381haiku*)
10382 lt_cv_deplibs_check_method=pass_all
10383 ;;
10384
cristy73bd4a52010-10-05 11:24:23 +000010385hpux10.20* | hpux11*)
10386 lt_cv_file_magic_cmd=/usr/bin/file
10387 case $host_cpu in
10388 ia64*)
10389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10390 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10391 ;;
10392 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010393 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 +000010394 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10395 ;;
10396 *)
cristy0c60a692010-11-04 01:09:47 +000010397 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 +000010398 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10399 ;;
10400 esac
10401 ;;
10402
10403interix[3-9]*)
10404 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10406 ;;
10407
10408irix5* | irix6* | nonstopux*)
10409 case $LD in
10410 *-32|*"-32 ") libmagic=32-bit;;
10411 *-n32|*"-n32 ") libmagic=N32;;
10412 *-64|*"-64 ") libmagic=64-bit;;
10413 *) libmagic=never-match;;
10414 esac
10415 lt_cv_deplibs_check_method=pass_all
10416 ;;
10417
10418# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010419linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010420 lt_cv_deplibs_check_method=pass_all
10421 ;;
10422
10423netbsd*)
10424 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10426 else
10427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10428 fi
10429 ;;
10430
10431newos6*)
10432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10433 lt_cv_file_magic_cmd=/usr/bin/file
10434 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10435 ;;
10436
10437*nto* | *qnx*)
10438 lt_cv_deplibs_check_method=pass_all
10439 ;;
10440
10441openbsd*)
10442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10444 else
10445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10446 fi
10447 ;;
10448
10449osf3* | osf4* | osf5*)
10450 lt_cv_deplibs_check_method=pass_all
10451 ;;
10452
10453rdos*)
10454 lt_cv_deplibs_check_method=pass_all
10455 ;;
10456
10457solaris*)
10458 lt_cv_deplibs_check_method=pass_all
10459 ;;
10460
10461sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10462 lt_cv_deplibs_check_method=pass_all
10463 ;;
10464
10465sysv4 | sysv4.3*)
10466 case $host_vendor in
10467 motorola)
10468 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]'
10469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10470 ;;
10471 ncr)
10472 lt_cv_deplibs_check_method=pass_all
10473 ;;
10474 sequent)
10475 lt_cv_file_magic_cmd='/bin/file'
10476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10477 ;;
10478 sni)
10479 lt_cv_file_magic_cmd='/bin/file'
10480 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10481 lt_cv_file_magic_test_file=/lib/libc.so
10482 ;;
10483 siemens)
10484 lt_cv_deplibs_check_method=pass_all
10485 ;;
10486 pc)
10487 lt_cv_deplibs_check_method=pass_all
10488 ;;
10489 esac
10490 ;;
10491
10492tpf*)
10493 lt_cv_deplibs_check_method=pass_all
10494 ;;
10495esac
10496
10497fi
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10499$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010500
10501file_magic_glob=
10502want_nocaseglob=no
10503if test "$build" = "$host"; then
10504 case $host_os in
10505 mingw* | pw32*)
10506 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10507 want_nocaseglob=yes
10508 else
10509 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10510 fi
10511 ;;
10512 esac
10513fi
10514
cristy73bd4a52010-10-05 11:24:23 +000010515file_magic_cmd=$lt_cv_file_magic_cmd
10516deplibs_check_method=$lt_cv_deplibs_check_method
10517test -z "$deplibs_check_method" && deplibs_check_method=unknown
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
cristyda16f162011-02-19 23:52:17 +000010530
10531
10532
10533
10534
10535
10536
10537
10538
10539
cristy73bd4a52010-10-05 11:24:23 +000010540if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010541 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10542set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010545if ${ac_cv_prog_DLLTOOL+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547else
10548 if test -n "$DLLTOOL"; then
10549 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10550else
10551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552for as_dir in $PATH
10553do
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10561 fi
10562done
10563 done
10564IFS=$as_save_IFS
10565
10566fi
10567fi
10568DLLTOOL=$ac_cv_prog_DLLTOOL
10569if test -n "$DLLTOOL"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10571$as_echo "$DLLTOOL" >&6; }
10572else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574$as_echo "no" >&6; }
10575fi
10576
10577
10578fi
10579if test -z "$ac_cv_prog_DLLTOOL"; then
10580 ac_ct_DLLTOOL=$DLLTOOL
10581 # Extract the first word of "dlltool", so it can be a program name with args.
10582set dummy dlltool; ac_word=$2
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584$as_echo_n "checking for $ac_word... " >&6; }
10585if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10586 $as_echo_n "(cached) " >&6
10587else
10588 if test -n "$ac_ct_DLLTOOL"; then
10589 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10590else
10591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $PATH
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10598 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
10602done
10603 done
10604IFS=$as_save_IFS
10605
10606fi
10607fi
10608ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10609if test -n "$ac_ct_DLLTOOL"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10611$as_echo "$ac_ct_DLLTOOL" >&6; }
10612else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614$as_echo "no" >&6; }
10615fi
10616
10617 if test "x$ac_ct_DLLTOOL" = x; then
10618 DLLTOOL="false"
10619 else
10620 case $cross_compiling:$ac_tool_warned in
10621yes:)
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10624ac_tool_warned=yes ;;
10625esac
10626 DLLTOOL=$ac_ct_DLLTOOL
10627 fi
10628else
10629 DLLTOOL="$ac_cv_prog_DLLTOOL"
10630fi
10631
10632test -z "$DLLTOOL" && DLLTOOL=dlltool
10633
10634
10635
10636
10637
10638
10639
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10641$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10642if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644else
10645 lt_cv_sharedlib_from_linklib_cmd='unknown'
10646
10647case $host_os in
10648cygwin* | mingw* | pw32* | cegcc*)
10649 # two different shell functions defined in ltmain.sh
10650 # decide which to use based on capabilities of $DLLTOOL
10651 case `$DLLTOOL --help 2>&1` in
10652 *--identify-strict*)
10653 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10654 ;;
10655 *)
10656 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10657 ;;
10658 esac
10659 ;;
10660*)
10661 # fallback: assume linklib IS sharedlib
10662 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10663 ;;
10664esac
10665
10666fi
10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10668$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10669sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10670test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10671
10672
10673
10674
10675
10676
10677
10678if test -n "$ac_tool_prefix"; then
10679 for ac_prog in ar
10680 do
10681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10682set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10684$as_echo_n "checking for $ac_word... " >&6; }
10685if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010686 $as_echo_n "(cached) " >&6
10687else
10688 if test -n "$AR"; then
10689 ac_cv_prog_AR="$AR" # Let the user override the test.
10690else
10691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10692for as_dir in $PATH
10693do
10694 IFS=$as_save_IFS
10695 test -z "$as_dir" && as_dir=.
10696 for ac_exec_ext in '' $ac_executable_extensions; do
10697 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 +000010698 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10700 break 2
10701 fi
10702done
10703 done
10704IFS=$as_save_IFS
10705
10706fi
10707fi
10708AR=$ac_cv_prog_AR
10709if test -n "$AR"; then
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10711$as_echo "$AR" >&6; }
10712else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714$as_echo "no" >&6; }
10715fi
10716
10717
cristyda16f162011-02-19 23:52:17 +000010718 test -n "$AR" && break
10719 done
cristy73bd4a52010-10-05 11:24:23 +000010720fi
cristyda16f162011-02-19 23:52:17 +000010721if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010722 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010723 for ac_prog in ar
10724do
10725 # Extract the first word of "$ac_prog", so it can be a program name with args.
10726set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010729if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010730 $as_echo_n "(cached) " >&6
10731else
10732 if test -n "$ac_ct_AR"; then
10733 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10734else
10735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736for as_dir in $PATH
10737do
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
10740 for ac_exec_ext in '' $ac_executable_extensions; do
10741 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 +000010742 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10744 break 2
10745 fi
10746done
10747 done
10748IFS=$as_save_IFS
10749
10750fi
10751fi
10752ac_ct_AR=$ac_cv_prog_ac_ct_AR
10753if test -n "$ac_ct_AR"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10755$as_echo "$ac_ct_AR" >&6; }
10756else
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758$as_echo "no" >&6; }
10759fi
10760
cristyda16f162011-02-19 23:52:17 +000010761
10762 test -n "$ac_ct_AR" && break
10763done
10764
cristy73bd4a52010-10-05 11:24:23 +000010765 if test "x$ac_ct_AR" = x; then
10766 AR="false"
10767 else
10768 case $cross_compiling:$ac_tool_warned in
10769yes:)
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10772ac_tool_warned=yes ;;
10773esac
10774 AR=$ac_ct_AR
10775 fi
cristy73bd4a52010-10-05 11:24:23 +000010776fi
10777
cristyda16f162011-02-19 23:52:17 +000010778: ${AR=ar}
10779: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
cristyda16f162011-02-19 23:52:17 +000010791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10792$as_echo_n "checking for archiver @FILE support... " >&6; }
10793if ${lt_cv_ar_at_file+:} false; then :
10794 $as_echo_n "(cached) " >&6
10795else
10796 lt_cv_ar_at_file=no
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798/* end confdefs.h. */
10799
10800int
10801main ()
10802{
10803
10804 ;
10805 return 0;
10806}
10807_ACEOF
10808if ac_fn_c_try_compile "$LINENO"; then :
10809 echo conftest.$ac_objext > conftest.lst
10810 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10812 (eval $lt_ar_try) 2>&5
10813 ac_status=$?
10814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10815 test $ac_status = 0; }
10816 if test "$ac_status" -eq 0; then
10817 # Ensure the archiver fails upon bogus file names.
10818 rm -f conftest.$ac_objext libconftest.a
10819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10820 (eval $lt_ar_try) 2>&5
10821 ac_status=$?
10822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10823 test $ac_status = 0; }
10824 if test "$ac_status" -ne 0; then
10825 lt_cv_ar_at_file=@
10826 fi
10827 fi
10828 rm -f conftest.* libconftest.a
10829
10830fi
10831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832
10833fi
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10835$as_echo "$lt_cv_ar_at_file" >&6; }
10836
10837if test "x$lt_cv_ar_at_file" = xno; then
10838 archiver_list_spec=
10839else
10840 archiver_list_spec=$lt_cv_ar_at_file
10841fi
10842
10843
10844
10845
10846
10847
10848
cristy73bd4a52010-10-05 11:24:23 +000010849if test -n "$ac_tool_prefix"; then
10850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10851set dummy ${ac_tool_prefix}strip; ac_word=$2
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010854if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010855 $as_echo_n "(cached) " >&6
10856else
10857 if test -n "$STRIP"; then
10858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10859else
10860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861for as_dir in $PATH
10862do
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10867 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 break 2
10870 fi
10871done
10872 done
10873IFS=$as_save_IFS
10874
10875fi
10876fi
10877STRIP=$ac_cv_prog_STRIP
10878if test -n "$STRIP"; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10880$as_echo "$STRIP" >&6; }
10881else
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883$as_echo "no" >&6; }
10884fi
10885
10886
10887fi
10888if test -z "$ac_cv_prog_STRIP"; then
10889 ac_ct_STRIP=$STRIP
10890 # Extract the first word of "strip", so it can be a program name with args.
10891set dummy strip; ac_word=$2
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010894if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010895 $as_echo_n "(cached) " >&6
10896else
10897 if test -n "$ac_ct_STRIP"; then
10898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10899else
10900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901for as_dir in $PATH
10902do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10907 ac_cv_prog_ac_ct_STRIP="strip"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10910 fi
10911done
10912 done
10913IFS=$as_save_IFS
10914
10915fi
10916fi
10917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10918if test -n "$ac_ct_STRIP"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10920$as_echo "$ac_ct_STRIP" >&6; }
10921else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923$as_echo "no" >&6; }
10924fi
10925
10926 if test "x$ac_ct_STRIP" = x; then
10927 STRIP=":"
10928 else
10929 case $cross_compiling:$ac_tool_warned in
10930yes:)
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10933ac_tool_warned=yes ;;
10934esac
10935 STRIP=$ac_ct_STRIP
10936 fi
10937else
10938 STRIP="$ac_cv_prog_STRIP"
10939fi
10940
10941test -z "$STRIP" && STRIP=:
10942
10943
10944
10945
10946
10947
10948if test -n "$ac_tool_prefix"; then
10949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10950set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010953if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010954 $as_echo_n "(cached) " >&6
10955else
10956 if test -n "$RANLIB"; then
10957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10958else
10959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960for as_dir in $PATH
10961do
10962 IFS=$as_save_IFS
10963 test -z "$as_dir" && as_dir=.
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 break 2
10969 fi
10970done
10971 done
10972IFS=$as_save_IFS
10973
10974fi
10975fi
10976RANLIB=$ac_cv_prog_RANLIB
10977if test -n "$RANLIB"; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10979$as_echo "$RANLIB" >&6; }
10980else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982$as_echo "no" >&6; }
10983fi
10984
10985
10986fi
10987if test -z "$ac_cv_prog_RANLIB"; then
10988 ac_ct_RANLIB=$RANLIB
10989 # Extract the first word of "ranlib", so it can be a program name with args.
10990set dummy ranlib; ac_word=$2
10991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010993if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010994 $as_echo_n "(cached) " >&6
10995else
10996 if test -n "$ac_ct_RANLIB"; then
10997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10998else
10999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000for as_dir in $PATH
11001do
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11006 ac_cv_prog_ac_ct_RANLIB="ranlib"
11007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11009 fi
11010done
11011 done
11012IFS=$as_save_IFS
11013
11014fi
11015fi
11016ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11017if test -n "$ac_ct_RANLIB"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11019$as_echo "$ac_ct_RANLIB" >&6; }
11020else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022$as_echo "no" >&6; }
11023fi
11024
11025 if test "x$ac_ct_RANLIB" = x; then
11026 RANLIB=":"
11027 else
11028 case $cross_compiling:$ac_tool_warned in
11029yes:)
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11032ac_tool_warned=yes ;;
11033esac
11034 RANLIB=$ac_ct_RANLIB
11035 fi
11036else
11037 RANLIB="$ac_cv_prog_RANLIB"
11038fi
11039
11040test -z "$RANLIB" && RANLIB=:
11041
11042
11043
11044
11045
11046
11047# Determine commands to create old-style static archives.
11048old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11049old_postinstall_cmds='chmod 644 $oldlib'
11050old_postuninstall_cmds=
11051
11052if test -n "$RANLIB"; then
11053 case $host_os in
11054 openbsd*)
11055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11056 ;;
11057 *)
11058 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11059 ;;
11060 esac
11061 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11062fi
11063
cristy0c60a692010-11-04 01:09:47 +000011064case $host_os in
11065 darwin*)
11066 lock_old_archive_extraction=yes ;;
11067 *)
11068 lock_old_archive_extraction=no ;;
11069esac
11070
11071
11072
11073
11074
11075
cristy73bd4a52010-10-05 11:24:23 +000011076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109# If no C compiler was specified, use CC.
11110LTCC=${LTCC-"$CC"}
11111
11112# If no C compiler flags were specified, use CFLAGS.
11113LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11114
11115# Allow CC to be a program name with arguments.
11116compiler=$CC
11117
11118
11119# Check for command to grab the raw symbol name followed by C symbol from nm.
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11121$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011122if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011123 $as_echo_n "(cached) " >&6
11124else
11125
11126# These are sane defaults that work on at least a few old systems.
11127# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11128
11129# Character class describing NM global symbol codes.
11130symcode='[BCDEGRST]'
11131
11132# Regexp to match symbols that can be accessed directly from C.
11133sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11134
11135# Define system-specific variables.
11136case $host_os in
11137aix*)
11138 symcode='[BCDT]'
11139 ;;
11140cygwin* | mingw* | pw32* | cegcc*)
11141 symcode='[ABCDGISTW]'
11142 ;;
11143hpux*)
11144 if test "$host_cpu" = ia64; then
11145 symcode='[ABCDEGRST]'
11146 fi
11147 ;;
11148irix* | nonstopux*)
11149 symcode='[BCDEGRST]'
11150 ;;
11151osf*)
11152 symcode='[BCDEGQRST]'
11153 ;;
11154solaris*)
11155 symcode='[BDRT]'
11156 ;;
11157sco3.2v5*)
11158 symcode='[DT]'
11159 ;;
11160sysv4.2uw2*)
11161 symcode='[DT]'
11162 ;;
11163sysv5* | sco5v6* | unixware* | OpenUNIX*)
11164 symcode='[ABDT]'
11165 ;;
11166sysv4)
11167 symcode='[DFNSTU]'
11168 ;;
11169esac
11170
11171# If we're using GNU nm, then use its standard symbol codes.
11172case `$NM -V 2>&1` in
11173*GNU* | *'with BFD'*)
11174 symcode='[ABCDGIRSTW]' ;;
11175esac
11176
11177# Transform an extracted symbol line into a proper C declaration.
11178# Some systems (esp. on ia64) link data and code symbols differently,
11179# so use this general approach.
11180lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11181
11182# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011183lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11184lt_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 +000011185
11186# Handle CRLF in mingw tool chain
11187opt_cr=
11188case $build_os in
11189mingw*)
11190 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11191 ;;
11192esac
11193
11194# Try without a prefix underscore, then with it.
11195for ac_symprfx in "" "_"; do
11196
11197 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11198 symxfrm="\\1 $ac_symprfx\\2 \\2"
11199
11200 # Write the raw and C identifiers.
11201 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11202 # Fake it for dumpbin and say T for any non-static function
11203 # and D for any global variable.
11204 # Also find C++ and __fastcall symbols from MSVC++,
11205 # which start with @ or ?.
11206 lt_cv_sys_global_symbol_pipe="$AWK '"\
11207" {last_section=section; section=\$ 3};"\
11208" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11209" \$ 0!~/External *\|/{next};"\
11210" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11211" {if(hide[section]) next};"\
11212" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11213" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11214" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11215" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11216" ' prfx=^$ac_symprfx"
11217 else
11218 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11219 fi
cristyda16f162011-02-19 23:52:17 +000011220 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011221
11222 # Check to see that the pipe works correctly.
11223 pipe_works=no
11224
11225 rm -f conftest*
11226 cat > conftest.$ac_ext <<_LT_EOF
11227#ifdef __cplusplus
11228extern "C" {
11229#endif
11230char nm_test_var;
11231void nm_test_func(void);
11232void nm_test_func(void){}
11233#ifdef __cplusplus
11234}
11235#endif
11236int main(){nm_test_var='a';nm_test_func();return(0);}
11237_LT_EOF
11238
11239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11240 (eval $ac_compile) 2>&5
11241 ac_status=$?
11242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11243 test $ac_status = 0; }; then
11244 # Now try to grab the symbols.
11245 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11247 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011248 ac_status=$?
11249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11250 test $ac_status = 0; } && test -s "$nlist"; then
11251 # Try sorting and uniquifying the output.
11252 if sort "$nlist" | uniq > "$nlist"T; then
11253 mv -f "$nlist"T "$nlist"
11254 else
11255 rm -f "$nlist"T
11256 fi
11257
11258 # Make sure that we snagged all the symbols we need.
11259 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11260 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11261 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011262/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11263#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11264/* DATA imports from DLLs on WIN32 con't be const, because runtime
11265 relocations are performed -- see ld's documentation on pseudo-relocs. */
11266# define LT_DLSYM_CONST
11267#elif defined(__osf__)
11268/* This system does not cope well with relocations in const data. */
11269# define LT_DLSYM_CONST
11270#else
11271# define LT_DLSYM_CONST const
11272#endif
11273
cristy73bd4a52010-10-05 11:24:23 +000011274#ifdef __cplusplus
11275extern "C" {
11276#endif
11277
11278_LT_EOF
11279 # Now generate the symbol file.
11280 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11281
11282 cat <<_LT_EOF >> conftest.$ac_ext
11283
11284/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011285LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011286 const char *name;
11287 void *address;
11288}
11289lt__PROGRAM__LTX_preloaded_symbols[] =
11290{
11291 { "@PROGRAM@", (void *) 0 },
11292_LT_EOF
11293 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11294 cat <<\_LT_EOF >> conftest.$ac_ext
11295 {0, (void *) 0}
11296};
11297
11298/* This works around a problem in FreeBSD linker */
11299#ifdef FREEBSD_WORKAROUND
11300static const void *lt_preloaded_setup() {
11301 return lt__PROGRAM__LTX_preloaded_symbols;
11302}
11303#endif
11304
11305#ifdef __cplusplus
11306}
11307#endif
11308_LT_EOF
11309 # Now try linking the two files.
11310 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011311 lt_globsym_save_LIBS=$LIBS
11312 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011313 LIBS="conftstm.$ac_objext"
11314 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11316 (eval $ac_link) 2>&5
11317 ac_status=$?
11318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11319 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11320 pipe_works=yes
11321 fi
cristyda16f162011-02-19 23:52:17 +000011322 LIBS=$lt_globsym_save_LIBS
11323 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011324 else
11325 echo "cannot find nm_test_func in $nlist" >&5
11326 fi
11327 else
11328 echo "cannot find nm_test_var in $nlist" >&5
11329 fi
11330 else
11331 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11332 fi
11333 else
11334 echo "$progname: failed program was:" >&5
11335 cat conftest.$ac_ext >&5
11336 fi
11337 rm -rf conftest* conftst*
11338
11339 # Do not use the global_symbol_pipe unless it works.
11340 if test "$pipe_works" = yes; then
11341 break
11342 else
11343 lt_cv_sys_global_symbol_pipe=
11344 fi
11345done
11346
11347fi
11348
11349if test -z "$lt_cv_sys_global_symbol_pipe"; then
11350 lt_cv_sys_global_symbol_to_cdecl=
11351fi
11352if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11354$as_echo "failed" >&6; }
11355else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11357$as_echo "ok" >&6; }
11358fi
11359
cristyda16f162011-02-19 23:52:17 +000011360# Response file support.
11361if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11362 nm_file_list_spec='@'
11363elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11364 nm_file_list_spec='@'
11365fi
cristy73bd4a52010-10-05 11:24:23 +000011366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
cristyda16f162011-02-19 23:52:17 +000011387
11388
11389
11390
11391
11392
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11394$as_echo_n "checking for sysroot... " >&6; }
11395
11396# Check whether --with-sysroot was given.
11397if test "${with_sysroot+set}" = set; then :
11398 withval=$with_sysroot;
11399else
11400 with_sysroot=no
11401fi
11402
11403
11404lt_sysroot=
11405case ${with_sysroot} in #(
11406 yes)
11407 if test "$GCC" = yes; then
11408 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11409 fi
11410 ;; #(
11411 /*)
11412 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11413 ;; #(
11414 no|'')
11415 ;; #(
11416 *)
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11418$as_echo "${with_sysroot}" >&6; }
11419 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11420 ;;
11421esac
11422
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11424$as_echo "${lt_sysroot:-no}" >&6; }
11425
11426
11427
11428
11429
cristy73bd4a52010-10-05 11:24:23 +000011430# Check whether --enable-libtool-lock was given.
11431if test "${enable_libtool_lock+set}" = set; then :
11432 enableval=$enable_libtool_lock;
11433fi
11434
11435test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11436
11437# Some flags need to be propagated to the compiler or linker for good
11438# libtool support.
11439case $host in
11440ia64-*-hpux*)
11441 # Find out which ABI we are using.
11442 echo 'int i;' > conftest.$ac_ext
11443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11444 (eval $ac_compile) 2>&5
11445 ac_status=$?
11446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447 test $ac_status = 0; }; then
11448 case `/usr/bin/file conftest.$ac_objext` in
11449 *ELF-32*)
11450 HPUX_IA64_MODE="32"
11451 ;;
11452 *ELF-64*)
11453 HPUX_IA64_MODE="64"
11454 ;;
11455 esac
11456 fi
11457 rm -rf conftest*
11458 ;;
11459*-*-irix6*)
11460 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011461 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11463 (eval $ac_compile) 2>&5
11464 ac_status=$?
11465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11466 test $ac_status = 0; }; then
11467 if test "$lt_cv_prog_gnu_ld" = yes; then
11468 case `/usr/bin/file conftest.$ac_objext` in
11469 *32-bit*)
11470 LD="${LD-ld} -melf32bsmip"
11471 ;;
11472 *N32*)
11473 LD="${LD-ld} -melf32bmipn32"
11474 ;;
11475 *64-bit*)
11476 LD="${LD-ld} -melf64bmip"
11477 ;;
11478 esac
11479 else
11480 case `/usr/bin/file conftest.$ac_objext` in
11481 *32-bit*)
11482 LD="${LD-ld} -32"
11483 ;;
11484 *N32*)
11485 LD="${LD-ld} -n32"
11486 ;;
11487 *64-bit*)
11488 LD="${LD-ld} -64"
11489 ;;
11490 esac
11491 fi
11492 fi
11493 rm -rf conftest*
11494 ;;
11495
11496x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11497s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11498 # Find out which ABI we are using.
11499 echo 'int i;' > conftest.$ac_ext
11500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11501 (eval $ac_compile) 2>&5
11502 ac_status=$?
11503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11504 test $ac_status = 0; }; then
11505 case `/usr/bin/file conftest.o` in
11506 *32-bit*)
11507 case $host in
11508 x86_64-*kfreebsd*-gnu)
11509 LD="${LD-ld} -m elf_i386_fbsd"
11510 ;;
11511 x86_64-*linux*)
11512 LD="${LD-ld} -m elf_i386"
11513 ;;
11514 ppc64-*linux*|powerpc64-*linux*)
11515 LD="${LD-ld} -m elf32ppclinux"
11516 ;;
11517 s390x-*linux*)
11518 LD="${LD-ld} -m elf_s390"
11519 ;;
11520 sparc64-*linux*)
11521 LD="${LD-ld} -m elf32_sparc"
11522 ;;
11523 esac
11524 ;;
11525 *64-bit*)
11526 case $host in
11527 x86_64-*kfreebsd*-gnu)
11528 LD="${LD-ld} -m elf_x86_64_fbsd"
11529 ;;
11530 x86_64-*linux*)
11531 LD="${LD-ld} -m elf_x86_64"
11532 ;;
11533 ppc*-*linux*|powerpc*-*linux*)
11534 LD="${LD-ld} -m elf64ppc"
11535 ;;
11536 s390*-*linux*|s390*-*tpf*)
11537 LD="${LD-ld} -m elf64_s390"
11538 ;;
11539 sparc*-*linux*)
11540 LD="${LD-ld} -m elf64_sparc"
11541 ;;
11542 esac
11543 ;;
11544 esac
11545 fi
11546 rm -rf conftest*
11547 ;;
11548
11549*-*-sco3.2v5*)
11550 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11551 SAVE_CFLAGS="$CFLAGS"
11552 CFLAGS="$CFLAGS -belf"
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11554$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011555if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011556 $as_echo_n "(cached) " >&6
11557else
11558 ac_ext=c
11559ac_cpp='$CPP $CPPFLAGS'
11560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11562ac_compiler_gnu=$ac_cv_c_compiler_gnu
11563
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565/* end confdefs.h. */
11566
11567int
11568main ()
11569{
11570
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575if ac_fn_c_try_link "$LINENO"; then :
11576 lt_cv_cc_needs_belf=yes
11577else
11578 lt_cv_cc_needs_belf=no
11579fi
11580rm -f core conftest.err conftest.$ac_objext \
11581 conftest$ac_exeext conftest.$ac_ext
11582 ac_ext=c
11583ac_cpp='$CPP $CPPFLAGS'
11584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11586ac_compiler_gnu=$ac_cv_c_compiler_gnu
11587
11588fi
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11590$as_echo "$lt_cv_cc_needs_belf" >&6; }
11591 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11592 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11593 CFLAGS="$SAVE_CFLAGS"
11594 fi
11595 ;;
11596sparc*-*solaris*)
11597 # Find out which ABI we are using.
11598 echo 'int i;' > conftest.$ac_ext
11599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11600 (eval $ac_compile) 2>&5
11601 ac_status=$?
11602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11603 test $ac_status = 0; }; then
11604 case `/usr/bin/file conftest.o` in
11605 *64-bit*)
11606 case $lt_cv_prog_gnu_ld in
11607 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11608 *)
11609 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11610 LD="${LD-ld} -64"
11611 fi
11612 ;;
11613 esac
11614 ;;
11615 esac
11616 fi
11617 rm -rf conftest*
11618 ;;
11619esac
11620
11621need_locks="$enable_libtool_lock"
11622
cristyda16f162011-02-19 23:52:17 +000011623if test -n "$ac_tool_prefix"; then
11624 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11625set dummy ${ac_tool_prefix}mt; ac_word=$2
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627$as_echo_n "checking for $ac_word... " >&6; }
11628if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630else
11631 if test -n "$MANIFEST_TOOL"; then
11632 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11633else
11634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635for as_dir in $PATH
11636do
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11644 fi
11645done
11646 done
11647IFS=$as_save_IFS
11648
11649fi
11650fi
11651MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11652if test -n "$MANIFEST_TOOL"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11654$as_echo "$MANIFEST_TOOL" >&6; }
11655else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
11658fi
11659
11660
11661fi
11662if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11663 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11664 # Extract the first word of "mt", so it can be a program name with args.
11665set dummy mt; ac_word=$2
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667$as_echo_n "checking for $ac_word... " >&6; }
11668if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670else
11671 if test -n "$ac_ct_MANIFEST_TOOL"; then
11672 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11673else
11674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675for as_dir in $PATH
11676do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11681 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11684 fi
11685done
11686 done
11687IFS=$as_save_IFS
11688
11689fi
11690fi
11691ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11692if test -n "$ac_ct_MANIFEST_TOOL"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11694$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11695else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697$as_echo "no" >&6; }
11698fi
11699
11700 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11701 MANIFEST_TOOL=":"
11702 else
11703 case $cross_compiling:$ac_tool_warned in
11704yes:)
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11707ac_tool_warned=yes ;;
11708esac
11709 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11710 fi
11711else
11712 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11713fi
11714
11715test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11717$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11718if ${lt_cv_path_mainfest_tool+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720else
11721 lt_cv_path_mainfest_tool=no
11722 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11723 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11724 cat conftest.err >&5
11725 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11726 lt_cv_path_mainfest_tool=yes
11727 fi
11728 rm -f conftest*
11729fi
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11731$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11732if test "x$lt_cv_path_mainfest_tool" != xyes; then
11733 MANIFEST_TOOL=:
11734fi
11735
11736
11737
11738
11739
cristy73bd4a52010-10-05 11:24:23 +000011740
11741 case $host_os in
11742 rhapsody* | darwin*)
11743 if test -n "$ac_tool_prefix"; then
11744 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11745set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011748if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011749 $as_echo_n "(cached) " >&6
11750else
11751 if test -n "$DSYMUTIL"; then
11752 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11753else
11754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755for as_dir in $PATH
11756do
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11761 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 break 2
11764 fi
11765done
11766 done
11767IFS=$as_save_IFS
11768
11769fi
11770fi
11771DSYMUTIL=$ac_cv_prog_DSYMUTIL
11772if test -n "$DSYMUTIL"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11774$as_echo "$DSYMUTIL" >&6; }
11775else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777$as_echo "no" >&6; }
11778fi
11779
11780
11781fi
11782if test -z "$ac_cv_prog_DSYMUTIL"; then
11783 ac_ct_DSYMUTIL=$DSYMUTIL
11784 # Extract the first word of "dsymutil", so it can be a program name with args.
11785set dummy dsymutil; ac_word=$2
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011788if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011789 $as_echo_n "(cached) " >&6
11790else
11791 if test -n "$ac_ct_DSYMUTIL"; then
11792 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11793else
11794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795for as_dir in $PATH
11796do
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11804 fi
11805done
11806 done
11807IFS=$as_save_IFS
11808
11809fi
11810fi
11811ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11812if test -n "$ac_ct_DSYMUTIL"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11814$as_echo "$ac_ct_DSYMUTIL" >&6; }
11815else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817$as_echo "no" >&6; }
11818fi
11819
11820 if test "x$ac_ct_DSYMUTIL" = x; then
11821 DSYMUTIL=":"
11822 else
11823 case $cross_compiling:$ac_tool_warned in
11824yes:)
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11827ac_tool_warned=yes ;;
11828esac
11829 DSYMUTIL=$ac_ct_DSYMUTIL
11830 fi
11831else
11832 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11833fi
11834
11835 if test -n "$ac_tool_prefix"; then
11836 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11837set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011840if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011841 $as_echo_n "(cached) " >&6
11842else
11843 if test -n "$NMEDIT"; then
11844 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11845else
11846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847for as_dir in $PATH
11848do
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11853 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11856 fi
11857done
11858 done
11859IFS=$as_save_IFS
11860
11861fi
11862fi
11863NMEDIT=$ac_cv_prog_NMEDIT
11864if test -n "$NMEDIT"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11866$as_echo "$NMEDIT" >&6; }
11867else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869$as_echo "no" >&6; }
11870fi
11871
11872
11873fi
11874if test -z "$ac_cv_prog_NMEDIT"; then
11875 ac_ct_NMEDIT=$NMEDIT
11876 # Extract the first word of "nmedit", so it can be a program name with args.
11877set dummy nmedit; ac_word=$2
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011880if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011881 $as_echo_n "(cached) " >&6
11882else
11883 if test -n "$ac_ct_NMEDIT"; then
11884 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11885else
11886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887for as_dir in $PATH
11888do
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11893 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11896 fi
11897done
11898 done
11899IFS=$as_save_IFS
11900
11901fi
11902fi
11903ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11904if test -n "$ac_ct_NMEDIT"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11906$as_echo "$ac_ct_NMEDIT" >&6; }
11907else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909$as_echo "no" >&6; }
11910fi
11911
11912 if test "x$ac_ct_NMEDIT" = x; then
11913 NMEDIT=":"
11914 else
11915 case $cross_compiling:$ac_tool_warned in
11916yes:)
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11919ac_tool_warned=yes ;;
11920esac
11921 NMEDIT=$ac_ct_NMEDIT
11922 fi
11923else
11924 NMEDIT="$ac_cv_prog_NMEDIT"
11925fi
11926
11927 if test -n "$ac_tool_prefix"; then
11928 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11929set dummy ${ac_tool_prefix}lipo; ac_word=$2
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011932if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011933 $as_echo_n "(cached) " >&6
11934else
11935 if test -n "$LIPO"; then
11936 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11937else
11938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939for as_dir in $PATH
11940do
11941 IFS=$as_save_IFS
11942 test -z "$as_dir" && as_dir=.
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11945 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11947 break 2
11948 fi
11949done
11950 done
11951IFS=$as_save_IFS
11952
11953fi
11954fi
11955LIPO=$ac_cv_prog_LIPO
11956if test -n "$LIPO"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11958$as_echo "$LIPO" >&6; }
11959else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961$as_echo "no" >&6; }
11962fi
11963
11964
11965fi
11966if test -z "$ac_cv_prog_LIPO"; then
11967 ac_ct_LIPO=$LIPO
11968 # Extract the first word of "lipo", so it can be a program name with args.
11969set dummy lipo; ac_word=$2
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011972if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011973 $as_echo_n "(cached) " >&6
11974else
11975 if test -n "$ac_ct_LIPO"; then
11976 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11977else
11978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11979for as_dir in $PATH
11980do
11981 IFS=$as_save_IFS
11982 test -z "$as_dir" && as_dir=.
11983 for ac_exec_ext in '' $ac_executable_extensions; do
11984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11985 ac_cv_prog_ac_ct_LIPO="lipo"
11986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11987 break 2
11988 fi
11989done
11990 done
11991IFS=$as_save_IFS
11992
11993fi
11994fi
11995ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11996if test -n "$ac_ct_LIPO"; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11998$as_echo "$ac_ct_LIPO" >&6; }
11999else
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001$as_echo "no" >&6; }
12002fi
12003
12004 if test "x$ac_ct_LIPO" = x; then
12005 LIPO=":"
12006 else
12007 case $cross_compiling:$ac_tool_warned in
12008yes:)
12009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12011ac_tool_warned=yes ;;
12012esac
12013 LIPO=$ac_ct_LIPO
12014 fi
12015else
12016 LIPO="$ac_cv_prog_LIPO"
12017fi
12018
12019 if test -n "$ac_tool_prefix"; then
12020 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12021set dummy ${ac_tool_prefix}otool; ac_word=$2
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012024if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012025 $as_echo_n "(cached) " >&6
12026else
12027 if test -n "$OTOOL"; then
12028 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12029else
12030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031for as_dir in $PATH
12032do
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12037 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 break 2
12040 fi
12041done
12042 done
12043IFS=$as_save_IFS
12044
12045fi
12046fi
12047OTOOL=$ac_cv_prog_OTOOL
12048if test -n "$OTOOL"; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12050$as_echo "$OTOOL" >&6; }
12051else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053$as_echo "no" >&6; }
12054fi
12055
12056
12057fi
12058if test -z "$ac_cv_prog_OTOOL"; then
12059 ac_ct_OTOOL=$OTOOL
12060 # Extract the first word of "otool", so it can be a program name with args.
12061set dummy otool; ac_word=$2
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12063$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012064if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012065 $as_echo_n "(cached) " >&6
12066else
12067 if test -n "$ac_ct_OTOOL"; then
12068 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12069else
12070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071for as_dir in $PATH
12072do
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077 ac_cv_prog_ac_ct_OTOOL="otool"
12078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 break 2
12080 fi
12081done
12082 done
12083IFS=$as_save_IFS
12084
12085fi
12086fi
12087ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12088if test -n "$ac_ct_OTOOL"; then
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12090$as_echo "$ac_ct_OTOOL" >&6; }
12091else
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093$as_echo "no" >&6; }
12094fi
12095
12096 if test "x$ac_ct_OTOOL" = x; then
12097 OTOOL=":"
12098 else
12099 case $cross_compiling:$ac_tool_warned in
12100yes:)
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12103ac_tool_warned=yes ;;
12104esac
12105 OTOOL=$ac_ct_OTOOL
12106 fi
12107else
12108 OTOOL="$ac_cv_prog_OTOOL"
12109fi
12110
12111 if test -n "$ac_tool_prefix"; then
12112 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12113set dummy ${ac_tool_prefix}otool64; ac_word=$2
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012116if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012117 $as_echo_n "(cached) " >&6
12118else
12119 if test -n "$OTOOL64"; then
12120 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12121else
12122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123for as_dir in $PATH
12124do
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12129 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 break 2
12132 fi
12133done
12134 done
12135IFS=$as_save_IFS
12136
12137fi
12138fi
12139OTOOL64=$ac_cv_prog_OTOOL64
12140if test -n "$OTOOL64"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12142$as_echo "$OTOOL64" >&6; }
12143else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
12146fi
12147
12148
12149fi
12150if test -z "$ac_cv_prog_OTOOL64"; then
12151 ac_ct_OTOOL64=$OTOOL64
12152 # Extract the first word of "otool64", so it can be a program name with args.
12153set dummy otool64; ac_word=$2
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012156if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012157 $as_echo_n "(cached) " >&6
12158else
12159 if test -n "$ac_ct_OTOOL64"; then
12160 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12161else
12162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163for as_dir in $PATH
12164do
12165 IFS=$as_save_IFS
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12169 ac_cv_prog_ac_ct_OTOOL64="otool64"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 break 2
12172 fi
12173done
12174 done
12175IFS=$as_save_IFS
12176
12177fi
12178fi
12179ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12180if test -n "$ac_ct_OTOOL64"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12182$as_echo "$ac_ct_OTOOL64" >&6; }
12183else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185$as_echo "no" >&6; }
12186fi
12187
12188 if test "x$ac_ct_OTOOL64" = x; then
12189 OTOOL64=":"
12190 else
12191 case $cross_compiling:$ac_tool_warned in
12192yes:)
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12195ac_tool_warned=yes ;;
12196esac
12197 OTOOL64=$ac_ct_OTOOL64
12198 fi
12199else
12200 OTOOL64="$ac_cv_prog_OTOOL64"
12201fi
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12230$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012231if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012232 $as_echo_n "(cached) " >&6
12233else
12234 lt_cv_apple_cc_single_mod=no
12235 if test -z "${LT_MULTI_MODULE}"; then
12236 # By default we will add the -single_module flag. You can override
12237 # by either setting the environment variable LT_MULTI_MODULE
12238 # non-empty at configure time, or by adding -multi_module to the
12239 # link flags.
12240 rm -rf libconftest.dylib*
12241 echo "int foo(void){return 1;}" > conftest.c
12242 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12243-dynamiclib -Wl,-single_module conftest.c" >&5
12244 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12245 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12246 _lt_result=$?
12247 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12248 lt_cv_apple_cc_single_mod=yes
12249 else
12250 cat conftest.err >&5
12251 fi
12252 rm -rf libconftest.dylib*
12253 rm -f conftest.*
12254 fi
12255fi
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12257$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12259$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012260if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012261 $as_echo_n "(cached) " >&6
12262else
12263 lt_cv_ld_exported_symbols_list=no
12264 save_LDFLAGS=$LDFLAGS
12265 echo "_main" > conftest.sym
12266 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268/* end confdefs.h. */
12269
12270int
12271main ()
12272{
12273
12274 ;
12275 return 0;
12276}
12277_ACEOF
12278if ac_fn_c_try_link "$LINENO"; then :
12279 lt_cv_ld_exported_symbols_list=yes
12280else
12281 lt_cv_ld_exported_symbols_list=no
12282fi
12283rm -f core conftest.err conftest.$ac_objext \
12284 conftest$ac_exeext conftest.$ac_ext
12285 LDFLAGS="$save_LDFLAGS"
12286
12287fi
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12289$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12291$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012292if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012293 $as_echo_n "(cached) " >&6
12294else
12295 lt_cv_ld_force_load=no
12296 cat > conftest.c << _LT_EOF
12297int forced_loaded() { return 2;}
12298_LT_EOF
12299 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12300 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12301 echo "$AR cru libconftest.a conftest.o" >&5
12302 $AR cru libconftest.a conftest.o 2>&5
12303 echo "$RANLIB libconftest.a" >&5
12304 $RANLIB libconftest.a 2>&5
12305 cat > conftest.c << _LT_EOF
12306int main() { return 0;}
12307_LT_EOF
12308 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12309 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12310 _lt_result=$?
12311 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12312 lt_cv_ld_force_load=yes
12313 else
12314 cat conftest.err >&5
12315 fi
12316 rm -f conftest.err libconftest.a conftest conftest.c
12317 rm -rf conftest.dSYM
12318
12319fi
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12321$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012322 case $host_os in
12323 rhapsody* | darwin1.[012])
12324 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12325 darwin1.*)
12326 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12327 darwin*) # darwin 5.x on
12328 # if running on 10.5 or later, the deployment target defaults
12329 # to the OS version, if on x86, and 10.4, the deployment
12330 # target defaults to 10.4. Don't you love it?
12331 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12332 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12333 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12334 10.[012]*)
12335 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12336 10.*)
12337 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12338 esac
12339 ;;
12340 esac
12341 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12342 _lt_dar_single_mod='$single_module'
12343 fi
12344 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12345 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12346 else
12347 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12348 fi
cristy0c60a692010-11-04 01:09:47 +000012349 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012350 _lt_dsymutil='~$DSYMUTIL $lib || :'
12351 else
12352 _lt_dsymutil=
12353 fi
12354 ;;
12355 esac
12356
12357for ac_header in dlfcn.h
12358do :
12359 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12360"
cristyda16f162011-02-19 23:52:17 +000012361if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012362 cat >>confdefs.h <<_ACEOF
12363#define HAVE_DLFCN_H 1
12364_ACEOF
12365
12366fi
12367
12368done
12369
12370
12371
cristy73bd4a52010-10-05 11:24:23 +000012372
cristyda16f162011-02-19 23:52:17 +000012373func_stripname_cnf ()
12374{
12375 case ${2} in
12376 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12377 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12378 esac
12379} # func_stripname_cnf
12380
12381
12382
cristy73bd4a52010-10-05 11:24:23 +000012383
12384
12385# Set options
12386enable_win32_dll=yes
12387
12388case $host in
cristy0c60a692010-11-04 01:09:47 +000012389*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012390 if test -n "$ac_tool_prefix"; then
12391 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12392set dummy ${ac_tool_prefix}as; ac_word=$2
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012395if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012396 $as_echo_n "(cached) " >&6
12397else
12398 if test -n "$AS"; then
12399 ac_cv_prog_AS="$AS" # Let the user override the test.
12400else
12401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402for as_dir in $PATH
12403do
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_prog_AS="${ac_tool_prefix}as"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12411 fi
12412done
12413 done
12414IFS=$as_save_IFS
12415
12416fi
12417fi
12418AS=$ac_cv_prog_AS
12419if test -n "$AS"; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12421$as_echo "$AS" >&6; }
12422else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424$as_echo "no" >&6; }
12425fi
12426
12427
12428fi
12429if test -z "$ac_cv_prog_AS"; then
12430 ac_ct_AS=$AS
12431 # Extract the first word of "as", so it can be a program name with args.
12432set dummy as; ac_word=$2
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012435if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012436 $as_echo_n "(cached) " >&6
12437else
12438 if test -n "$ac_ct_AS"; then
12439 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12440else
12441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442for as_dir in $PATH
12443do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12448 ac_cv_prog_ac_ct_AS="as"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 break 2
12451 fi
12452done
12453 done
12454IFS=$as_save_IFS
12455
12456fi
12457fi
12458ac_ct_AS=$ac_cv_prog_ac_ct_AS
12459if test -n "$ac_ct_AS"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12461$as_echo "$ac_ct_AS" >&6; }
12462else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
12465fi
12466
12467 if test "x$ac_ct_AS" = x; then
12468 AS="false"
12469 else
12470 case $cross_compiling:$ac_tool_warned in
12471yes:)
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12474ac_tool_warned=yes ;;
12475esac
12476 AS=$ac_ct_AS
12477 fi
12478else
12479 AS="$ac_cv_prog_AS"
12480fi
12481
12482 if test -n "$ac_tool_prefix"; then
12483 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12484set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012487if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012488 $as_echo_n "(cached) " >&6
12489else
12490 if test -n "$DLLTOOL"; then
12491 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12492else
12493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494for as_dir in $PATH
12495do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12500 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502 break 2
12503 fi
12504done
12505 done
12506IFS=$as_save_IFS
12507
12508fi
12509fi
12510DLLTOOL=$ac_cv_prog_DLLTOOL
12511if test -n "$DLLTOOL"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12513$as_echo "$DLLTOOL" >&6; }
12514else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516$as_echo "no" >&6; }
12517fi
12518
12519
12520fi
12521if test -z "$ac_cv_prog_DLLTOOL"; then
12522 ac_ct_DLLTOOL=$DLLTOOL
12523 # Extract the first word of "dlltool", so it can be a program name with args.
12524set dummy dlltool; ac_word=$2
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012527if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012528 $as_echo_n "(cached) " >&6
12529else
12530 if test -n "$ac_ct_DLLTOOL"; then
12531 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12532else
12533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534for as_dir in $PATH
12535do
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
12538 for ac_exec_ext in '' $ac_executable_extensions; do
12539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12540 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 break 2
12543 fi
12544done
12545 done
12546IFS=$as_save_IFS
12547
12548fi
12549fi
12550ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12551if test -n "$ac_ct_DLLTOOL"; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12553$as_echo "$ac_ct_DLLTOOL" >&6; }
12554else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556$as_echo "no" >&6; }
12557fi
12558
12559 if test "x$ac_ct_DLLTOOL" = x; then
12560 DLLTOOL="false"
12561 else
12562 case $cross_compiling:$ac_tool_warned in
12563yes:)
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12566ac_tool_warned=yes ;;
12567esac
12568 DLLTOOL=$ac_ct_DLLTOOL
12569 fi
12570else
12571 DLLTOOL="$ac_cv_prog_DLLTOOL"
12572fi
12573
12574 if test -n "$ac_tool_prefix"; then
12575 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12576set dummy ${ac_tool_prefix}objdump; ac_word=$2
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012579if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012580 $as_echo_n "(cached) " >&6
12581else
12582 if test -n "$OBJDUMP"; then
12583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12584else
12585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586for as_dir in $PATH
12587do
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12592 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12595 fi
12596done
12597 done
12598IFS=$as_save_IFS
12599
12600fi
12601fi
12602OBJDUMP=$ac_cv_prog_OBJDUMP
12603if test -n "$OBJDUMP"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12605$as_echo "$OBJDUMP" >&6; }
12606else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608$as_echo "no" >&6; }
12609fi
12610
12611
12612fi
12613if test -z "$ac_cv_prog_OBJDUMP"; then
12614 ac_ct_OBJDUMP=$OBJDUMP
12615 # Extract the first word of "objdump", so it can be a program name with args.
12616set dummy objdump; ac_word=$2
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012619if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012620 $as_echo_n "(cached) " >&6
12621else
12622 if test -n "$ac_ct_OBJDUMP"; then
12623 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12624else
12625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626for as_dir in $PATH
12627do
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12632 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 break 2
12635 fi
12636done
12637 done
12638IFS=$as_save_IFS
12639
12640fi
12641fi
12642ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12643if test -n "$ac_ct_OBJDUMP"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12645$as_echo "$ac_ct_OBJDUMP" >&6; }
12646else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648$as_echo "no" >&6; }
12649fi
12650
12651 if test "x$ac_ct_OBJDUMP" = x; then
12652 OBJDUMP="false"
12653 else
12654 case $cross_compiling:$ac_tool_warned in
12655yes:)
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12658ac_tool_warned=yes ;;
12659esac
12660 OBJDUMP=$ac_ct_OBJDUMP
12661 fi
12662else
12663 OBJDUMP="$ac_cv_prog_OBJDUMP"
12664fi
12665
12666 ;;
12667esac
12668
12669test -z "$AS" && AS=as
12670
12671
12672
12673
12674
12675test -z "$DLLTOOL" && DLLTOOL=dlltool
12676
12677
12678
12679
12680
12681test -z "$OBJDUMP" && OBJDUMP=objdump
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691 # Check whether --enable-shared was given.
12692if test "${enable_shared+set}" = set; then :
12693 enableval=$enable_shared; p=${PACKAGE-default}
12694 case $enableval in
12695 yes) enable_shared=yes ;;
12696 no) enable_shared=no ;;
12697 *)
12698 enable_shared=no
12699 # Look at the argument we got. We use all the common list separators.
12700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12701 for pkg in $enableval; do
12702 IFS="$lt_save_ifs"
12703 if test "X$pkg" = "X$p"; then
12704 enable_shared=yes
12705 fi
12706 done
12707 IFS="$lt_save_ifs"
12708 ;;
12709 esac
12710else
12711 enable_shared=yes
12712fi
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722 # Check whether --enable-static was given.
12723if test "${enable_static+set}" = set; then :
12724 enableval=$enable_static; p=${PACKAGE-default}
12725 case $enableval in
12726 yes) enable_static=yes ;;
12727 no) enable_static=no ;;
12728 *)
12729 enable_static=no
12730 # Look at the argument we got. We use all the common list separators.
12731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12732 for pkg in $enableval; do
12733 IFS="$lt_save_ifs"
12734 if test "X$pkg" = "X$p"; then
12735 enable_static=yes
12736 fi
12737 done
12738 IFS="$lt_save_ifs"
12739 ;;
12740 esac
12741else
12742 enable_static=yes
12743fi
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754# Check whether --with-pic was given.
12755if test "${with_pic+set}" = set; then :
12756 withval=$with_pic; pic_mode="$withval"
12757else
12758 pic_mode=default
12759fi
12760
12761
12762test -z "$pic_mode" && pic_mode=default
12763
12764
12765
12766
12767
12768
12769
12770 # Check whether --enable-fast-install was given.
12771if test "${enable_fast_install+set}" = set; then :
12772 enableval=$enable_fast_install; p=${PACKAGE-default}
12773 case $enableval in
12774 yes) enable_fast_install=yes ;;
12775 no) enable_fast_install=no ;;
12776 *)
12777 enable_fast_install=no
12778 # Look at the argument we got. We use all the common list separators.
12779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12780 for pkg in $enableval; do
12781 IFS="$lt_save_ifs"
12782 if test "X$pkg" = "X$p"; then
12783 enable_fast_install=yes
12784 fi
12785 done
12786 IFS="$lt_save_ifs"
12787 ;;
12788 esac
12789else
12790 enable_fast_install=yes
12791fi
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803# This can be used to rebuild libtool when needed
12804LIBTOOL_DEPS="$ltmain"
12805
12806# Always use our own libtool.
12807LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
cristy0c60a692010-11-04 01:09:47 +000012833
cristy73bd4a52010-10-05 11:24:23 +000012834test -z "$LN_S" && LN_S="ln -s"
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849if test -n "${ZSH_VERSION+set}" ; then
12850 setopt NO_GLOB_SUBST
12851fi
12852
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12854$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012855if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012856 $as_echo_n "(cached) " >&6
12857else
12858 rm -f .libs 2>/dev/null
12859mkdir .libs 2>/dev/null
12860if test -d .libs; then
12861 lt_cv_objdir=.libs
12862else
12863 # MS-DOS does not allow filenames that begin with a dot.
12864 lt_cv_objdir=_libs
12865fi
12866rmdir .libs 2>/dev/null
12867fi
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12869$as_echo "$lt_cv_objdir" >&6; }
12870objdir=$lt_cv_objdir
12871
12872
12873
12874
12875
12876cat >>confdefs.h <<_ACEOF
12877#define LT_OBJDIR "$lt_cv_objdir/"
12878_ACEOF
12879
12880
12881
12882
cristy73bd4a52010-10-05 11:24:23 +000012883case $host_os in
12884aix3*)
12885 # AIX sometimes has problems with the GCC collect2 program. For some
12886 # reason, if we set the COLLECT_NAMES environment variable, the problems
12887 # vanish in a puff of smoke.
12888 if test "X${COLLECT_NAMES+set}" != Xset; then
12889 COLLECT_NAMES=
12890 export COLLECT_NAMES
12891 fi
12892 ;;
12893esac
12894
cristy73bd4a52010-10-05 11:24:23 +000012895# Global variables:
12896ofile=libtool
12897can_build_shared=yes
12898
12899# All known linkers require a `.a' archive for static linking (except MSVC,
12900# which needs '.lib').
12901libext=a
12902
12903with_gnu_ld="$lt_cv_prog_gnu_ld"
12904
12905old_CC="$CC"
12906old_CFLAGS="$CFLAGS"
12907
12908# Set sane defaults for various variables
12909test -z "$CC" && CC=cc
12910test -z "$LTCC" && LTCC=$CC
12911test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12912test -z "$LD" && LD=ld
12913test -z "$ac_objext" && ac_objext=o
12914
12915for cc_temp in $compiler""; do
12916 case $cc_temp in
12917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12919 \-*) ;;
12920 *) break;;
12921 esac
12922done
cristy0c60a692010-11-04 01:09:47 +000012923cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012924
12925
12926# Only perform the check for file, if the check method requires it
12927test -z "$MAGIC_CMD" && MAGIC_CMD=file
12928case $deplibs_check_method in
12929file_magic*)
12930 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12932$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012933if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012934 $as_echo_n "(cached) " >&6
12935else
12936 case $MAGIC_CMD in
12937[\\/*] | ?:[\\/]*)
12938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12939 ;;
12940*)
12941 lt_save_MAGIC_CMD="$MAGIC_CMD"
12942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12943 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12944 for ac_dir in $ac_dummy; do
12945 IFS="$lt_save_ifs"
12946 test -z "$ac_dir" && ac_dir=.
12947 if test -f $ac_dir/${ac_tool_prefix}file; then
12948 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12949 if test -n "$file_magic_test_file"; then
12950 case $deplibs_check_method in
12951 "file_magic "*)
12952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12955 $EGREP "$file_magic_regex" > /dev/null; then
12956 :
12957 else
12958 cat <<_LT_EOF 1>&2
12959
12960*** Warning: the command libtool uses to detect shared libraries,
12961*** $file_magic_cmd, produces output that libtool cannot recognize.
12962*** The result is that libtool may fail to recognize shared libraries
12963*** as such. This will affect the creation of libtool libraries that
12964*** depend on shared libraries, but programs linked with such libtool
12965*** libraries will work regardless of this problem. Nevertheless, you
12966*** may want to report the problem to your system manager and/or to
12967*** bug-libtool@gnu.org
12968
12969_LT_EOF
12970 fi ;;
12971 esac
12972 fi
12973 break
12974 fi
12975 done
12976 IFS="$lt_save_ifs"
12977 MAGIC_CMD="$lt_save_MAGIC_CMD"
12978 ;;
12979esac
12980fi
12981
12982MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12983if test -n "$MAGIC_CMD"; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12985$as_echo "$MAGIC_CMD" >&6; }
12986else
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988$as_echo "no" >&6; }
12989fi
12990
12991
12992
12993
12994
12995if test -z "$lt_cv_path_MAGIC_CMD"; then
12996 if test -n "$ac_tool_prefix"; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12998$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012999if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013000 $as_echo_n "(cached) " >&6
13001else
13002 case $MAGIC_CMD in
13003[\\/*] | ?:[\\/]*)
13004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13005 ;;
13006*)
13007 lt_save_MAGIC_CMD="$MAGIC_CMD"
13008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13010 for ac_dir in $ac_dummy; do
13011 IFS="$lt_save_ifs"
13012 test -z "$ac_dir" && ac_dir=.
13013 if test -f $ac_dir/file; then
13014 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13015 if test -n "$file_magic_test_file"; then
13016 case $deplibs_check_method in
13017 "file_magic "*)
13018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13021 $EGREP "$file_magic_regex" > /dev/null; then
13022 :
13023 else
13024 cat <<_LT_EOF 1>&2
13025
13026*** Warning: the command libtool uses to detect shared libraries,
13027*** $file_magic_cmd, produces output that libtool cannot recognize.
13028*** The result is that libtool may fail to recognize shared libraries
13029*** as such. This will affect the creation of libtool libraries that
13030*** depend on shared libraries, but programs linked with such libtool
13031*** libraries will work regardless of this problem. Nevertheless, you
13032*** may want to report the problem to your system manager and/or to
13033*** bug-libtool@gnu.org
13034
13035_LT_EOF
13036 fi ;;
13037 esac
13038 fi
13039 break
13040 fi
13041 done
13042 IFS="$lt_save_ifs"
13043 MAGIC_CMD="$lt_save_MAGIC_CMD"
13044 ;;
13045esac
13046fi
13047
13048MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13049if test -n "$MAGIC_CMD"; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13051$as_echo "$MAGIC_CMD" >&6; }
13052else
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054$as_echo "no" >&6; }
13055fi
13056
13057
13058 else
13059 MAGIC_CMD=:
13060 fi
13061fi
13062
13063 fi
13064 ;;
13065esac
13066
13067# Use C for the default configuration in the libtool script
13068
13069lt_save_CC="$CC"
13070ac_ext=c
13071ac_cpp='$CPP $CPPFLAGS'
13072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13074ac_compiler_gnu=$ac_cv_c_compiler_gnu
13075
13076
13077# Source file extension for C test sources.
13078ac_ext=c
13079
13080# Object file extension for compiled C test sources.
13081objext=o
13082objext=$objext
13083
13084# Code to be used in simple compile tests
13085lt_simple_compile_test_code="int some_variable = 0;"
13086
13087# Code to be used in simple link tests
13088lt_simple_link_test_code='int main(){return(0);}'
13089
13090
13091
13092
13093
13094
13095
13096# If no C compiler was specified, use CC.
13097LTCC=${LTCC-"$CC"}
13098
13099# If no C compiler flags were specified, use CFLAGS.
13100LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13101
13102# Allow CC to be a program name with arguments.
13103compiler=$CC
13104
13105# Save the default compiler, since it gets overwritten when the other
13106# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13107compiler_DEFAULT=$CC
13108
13109# save warnings/boilerplate of simple test code
13110ac_outfile=conftest.$ac_objext
13111echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13112eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13113_lt_compiler_boilerplate=`cat conftest.err`
13114$RM conftest*
13115
13116ac_outfile=conftest.$ac_objext
13117echo "$lt_simple_link_test_code" >conftest.$ac_ext
13118eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13119_lt_linker_boilerplate=`cat conftest.err`
13120$RM -r conftest*
13121
13122
13123## CAVEAT EMPTOR:
13124## There is no encapsulation within the following macros, do not change
13125## the running order or otherwise move them around unless you know exactly
13126## what you are doing...
13127if test -n "$compiler"; then
13128
13129lt_prog_compiler_no_builtin_flag=
13130
13131if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013132 case $cc_basename in
13133 nvcc*)
13134 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13135 *)
13136 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13137 esac
cristy73bd4a52010-10-05 11:24:23 +000013138
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13140$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013141if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013142 $as_echo_n "(cached) " >&6
13143else
13144 lt_cv_prog_compiler_rtti_exceptions=no
13145 ac_outfile=conftest.$ac_objext
13146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13147 lt_compiler_flag="-fno-rtti -fno-exceptions"
13148 # Insert the option either (1) after the last *FLAGS variable, or
13149 # (2) before a word containing "conftest.", or (3) at the end.
13150 # Note that $ac_compile itself does not contain backslashes and begins
13151 # with a dollar sign (not a hyphen), so the echo should work correctly.
13152 # The option is referenced via a variable to avoid confusing sed.
13153 lt_compile=`echo "$ac_compile" | $SED \
13154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13156 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013158 (eval "$lt_compile" 2>conftest.err)
13159 ac_status=$?
13160 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013162 if (exit $ac_status) && test -s "$ac_outfile"; then
13163 # The compiler can only warn and ignore the option if not recognized
13164 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013165 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13168 lt_cv_prog_compiler_rtti_exceptions=yes
13169 fi
13170 fi
13171 $RM conftest*
13172
13173fi
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13175$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13176
13177if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13178 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13179else
13180 :
13181fi
13182
13183fi
13184
13185
13186
13187
13188
13189
13190 lt_prog_compiler_wl=
13191lt_prog_compiler_pic=
13192lt_prog_compiler_static=
13193
cristy73bd4a52010-10-05 11:24:23 +000013194
13195 if test "$GCC" = yes; then
13196 lt_prog_compiler_wl='-Wl,'
13197 lt_prog_compiler_static='-static'
13198
13199 case $host_os in
13200 aix*)
13201 # All AIX code is PIC.
13202 if test "$host_cpu" = ia64; then
13203 # AIX 5 now supports IA64 processor
13204 lt_prog_compiler_static='-Bstatic'
13205 fi
13206 ;;
13207
13208 amigaos*)
13209 case $host_cpu in
13210 powerpc)
13211 # see comment about AmigaOS4 .so support
13212 lt_prog_compiler_pic='-fPIC'
13213 ;;
13214 m68k)
13215 # FIXME: we need at least 68020 code to build shared libraries, but
13216 # adding the `-m68020' flag to GCC prevents building anything better,
13217 # like `-m68040'.
13218 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13219 ;;
13220 esac
13221 ;;
13222
13223 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13224 # PIC is the default for these OSes.
13225 ;;
13226
13227 mingw* | cygwin* | pw32* | os2* | cegcc*)
13228 # This hack is so that the source file can tell whether it is being
13229 # built for inclusion in a dll (and should export symbols for example).
13230 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13231 # (--disable-auto-import) libraries
13232 lt_prog_compiler_pic='-DDLL_EXPORT'
13233 ;;
13234
13235 darwin* | rhapsody*)
13236 # PIC is the default on this platform
13237 # Common symbols not allowed in MH_DYLIB files
13238 lt_prog_compiler_pic='-fno-common'
13239 ;;
13240
cristy0c60a692010-11-04 01:09:47 +000013241 haiku*)
13242 # PIC is the default for Haiku.
13243 # The "-static" flag exists, but is broken.
13244 lt_prog_compiler_static=
13245 ;;
13246
cristy73bd4a52010-10-05 11:24:23 +000013247 hpux*)
13248 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13249 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13250 # sets the default TLS model and affects inlining.
13251 case $host_cpu in
13252 hppa*64*)
13253 # +Z the default
13254 ;;
13255 *)
13256 lt_prog_compiler_pic='-fPIC'
13257 ;;
13258 esac
13259 ;;
13260
13261 interix[3-9]*)
13262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13263 # Instead, we relocate shared libraries at runtime.
13264 ;;
13265
13266 msdosdjgpp*)
13267 # Just because we use GCC doesn't mean we suddenly get shared libraries
13268 # on systems that don't support them.
13269 lt_prog_compiler_can_build_shared=no
13270 enable_shared=no
13271 ;;
13272
13273 *nto* | *qnx*)
13274 # QNX uses GNU C++, but need to define -shared option too, otherwise
13275 # it will coredump.
13276 lt_prog_compiler_pic='-fPIC -shared'
13277 ;;
13278
13279 sysv4*MP*)
13280 if test -d /usr/nec; then
13281 lt_prog_compiler_pic=-Kconform_pic
13282 fi
13283 ;;
13284
13285 *)
13286 lt_prog_compiler_pic='-fPIC'
13287 ;;
13288 esac
cristy0c60a692010-11-04 01:09:47 +000013289
13290 case $cc_basename in
13291 nvcc*) # Cuda Compiler Driver 2.2
13292 lt_prog_compiler_wl='-Xlinker '
13293 lt_prog_compiler_pic='-Xcompiler -fPIC'
13294 ;;
13295 esac
cristy73bd4a52010-10-05 11:24:23 +000013296 else
13297 # PORTME Check for flag to pass linker flags through the system compiler.
13298 case $host_os in
13299 aix*)
13300 lt_prog_compiler_wl='-Wl,'
13301 if test "$host_cpu" = ia64; then
13302 # AIX 5 now supports IA64 processor
13303 lt_prog_compiler_static='-Bstatic'
13304 else
13305 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13306 fi
13307 ;;
13308
13309 mingw* | cygwin* | pw32* | os2* | cegcc*)
13310 # This hack is so that the source file can tell whether it is being
13311 # built for inclusion in a dll (and should export symbols for example).
13312 lt_prog_compiler_pic='-DDLL_EXPORT'
13313 ;;
13314
13315 hpux9* | hpux10* | hpux11*)
13316 lt_prog_compiler_wl='-Wl,'
13317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13318 # not for PA HP-UX.
13319 case $host_cpu in
13320 hppa*64*|ia64*)
13321 # +Z the default
13322 ;;
13323 *)
13324 lt_prog_compiler_pic='+Z'
13325 ;;
13326 esac
13327 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13328 lt_prog_compiler_static='${wl}-a ${wl}archive'
13329 ;;
13330
13331 irix5* | irix6* | nonstopux*)
13332 lt_prog_compiler_wl='-Wl,'
13333 # PIC (with -KPIC) is the default.
13334 lt_prog_compiler_static='-non_shared'
13335 ;;
13336
cristy0c60a692010-11-04 01:09:47 +000013337 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013338 case $cc_basename in
13339 # old Intel for x86_64 which still supported -KPIC.
13340 ecc*)
13341 lt_prog_compiler_wl='-Wl,'
13342 lt_prog_compiler_pic='-KPIC'
13343 lt_prog_compiler_static='-static'
13344 ;;
13345 # icc used to be incompatible with GCC.
13346 # ICC 10 doesn't accept -KPIC any more.
13347 icc* | ifort*)
13348 lt_prog_compiler_wl='-Wl,'
13349 lt_prog_compiler_pic='-fPIC'
13350 lt_prog_compiler_static='-static'
13351 ;;
13352 # Lahey Fortran 8.1.
13353 lf95*)
13354 lt_prog_compiler_wl='-Wl,'
13355 lt_prog_compiler_pic='--shared'
13356 lt_prog_compiler_static='--static'
13357 ;;
cristyda16f162011-02-19 23:52:17 +000013358 nagfor*)
13359 # NAG Fortran compiler
13360 lt_prog_compiler_wl='-Wl,-Wl,,'
13361 lt_prog_compiler_pic='-PIC'
13362 lt_prog_compiler_static='-Bstatic'
13363 ;;
cristy0c60a692010-11-04 01:09:47 +000013364 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013365 # Portland Group compilers (*not* the Pentium gcc compiler,
13366 # which looks to be a dead project)
13367 lt_prog_compiler_wl='-Wl,'
13368 lt_prog_compiler_pic='-fpic'
13369 lt_prog_compiler_static='-Bstatic'
13370 ;;
13371 ccc*)
13372 lt_prog_compiler_wl='-Wl,'
13373 # All Alpha code is PIC.
13374 lt_prog_compiler_static='-non_shared'
13375 ;;
cristy0c60a692010-11-04 01:09:47 +000013376 xl* | bgxl* | bgf* | mpixl*)
13377 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013378 lt_prog_compiler_wl='-Wl,'
13379 lt_prog_compiler_pic='-qpic'
13380 lt_prog_compiler_static='-qstaticlink'
13381 ;;
13382 *)
13383 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013384 *Sun\ F* | *Sun*Fortran*)
13385 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13386 lt_prog_compiler_pic='-KPIC'
13387 lt_prog_compiler_static='-Bstatic'
13388 lt_prog_compiler_wl=''
13389 ;;
cristy73bd4a52010-10-05 11:24:23 +000013390 *Sun\ C*)
13391 # Sun C 5.9
13392 lt_prog_compiler_pic='-KPIC'
13393 lt_prog_compiler_static='-Bstatic'
13394 lt_prog_compiler_wl='-Wl,'
13395 ;;
cristy73bd4a52010-10-05 11:24:23 +000013396 esac
13397 ;;
13398 esac
13399 ;;
13400
13401 newsos6)
13402 lt_prog_compiler_pic='-KPIC'
13403 lt_prog_compiler_static='-Bstatic'
13404 ;;
13405
13406 *nto* | *qnx*)
13407 # QNX uses GNU C++, but need to define -shared option too, otherwise
13408 # it will coredump.
13409 lt_prog_compiler_pic='-fPIC -shared'
13410 ;;
13411
13412 osf3* | osf4* | osf5*)
13413 lt_prog_compiler_wl='-Wl,'
13414 # All OSF/1 code is PIC.
13415 lt_prog_compiler_static='-non_shared'
13416 ;;
13417
13418 rdos*)
13419 lt_prog_compiler_static='-non_shared'
13420 ;;
13421
13422 solaris*)
13423 lt_prog_compiler_pic='-KPIC'
13424 lt_prog_compiler_static='-Bstatic'
13425 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013426 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013427 lt_prog_compiler_wl='-Qoption ld ';;
13428 *)
13429 lt_prog_compiler_wl='-Wl,';;
13430 esac
13431 ;;
13432
13433 sunos4*)
13434 lt_prog_compiler_wl='-Qoption ld '
13435 lt_prog_compiler_pic='-PIC'
13436 lt_prog_compiler_static='-Bstatic'
13437 ;;
13438
13439 sysv4 | sysv4.2uw2* | sysv4.3*)
13440 lt_prog_compiler_wl='-Wl,'
13441 lt_prog_compiler_pic='-KPIC'
13442 lt_prog_compiler_static='-Bstatic'
13443 ;;
13444
13445 sysv4*MP*)
13446 if test -d /usr/nec ;then
13447 lt_prog_compiler_pic='-Kconform_pic'
13448 lt_prog_compiler_static='-Bstatic'
13449 fi
13450 ;;
13451
13452 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13453 lt_prog_compiler_wl='-Wl,'
13454 lt_prog_compiler_pic='-KPIC'
13455 lt_prog_compiler_static='-Bstatic'
13456 ;;
13457
13458 unicos*)
13459 lt_prog_compiler_wl='-Wl,'
13460 lt_prog_compiler_can_build_shared=no
13461 ;;
13462
13463 uts4*)
13464 lt_prog_compiler_pic='-pic'
13465 lt_prog_compiler_static='-Bstatic'
13466 ;;
13467
13468 *)
13469 lt_prog_compiler_can_build_shared=no
13470 ;;
13471 esac
13472 fi
13473
13474case $host_os in
13475 # For platforms which do not support PIC, -DPIC is meaningless:
13476 *djgpp*)
13477 lt_prog_compiler_pic=
13478 ;;
13479 *)
13480 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13481 ;;
13482esac
cristy73bd4a52010-10-05 11:24:23 +000013483
cristyda16f162011-02-19 23:52:17 +000013484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13485$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13486if ${lt_cv_prog_compiler_pic+:} false; then :
13487 $as_echo_n "(cached) " >&6
13488else
13489 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13490fi
13491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13492$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13493lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013494
13495#
13496# Check to make sure the PIC flag actually works.
13497#
13498if test -n "$lt_prog_compiler_pic"; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13500$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013501if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013502 $as_echo_n "(cached) " >&6
13503else
13504 lt_cv_prog_compiler_pic_works=no
13505 ac_outfile=conftest.$ac_objext
13506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13507 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13508 # Insert the option either (1) after the last *FLAGS variable, or
13509 # (2) before a word containing "conftest.", or (3) at the end.
13510 # Note that $ac_compile itself does not contain backslashes and begins
13511 # with a dollar sign (not a hyphen), so the echo should work correctly.
13512 # The option is referenced via a variable to avoid confusing sed.
13513 lt_compile=`echo "$ac_compile" | $SED \
13514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13516 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013517 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013518 (eval "$lt_compile" 2>conftest.err)
13519 ac_status=$?
13520 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013522 if (exit $ac_status) && test -s "$ac_outfile"; then
13523 # The compiler can only warn and ignore the option if not recognized
13524 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13527 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13528 lt_cv_prog_compiler_pic_works=yes
13529 fi
13530 fi
13531 $RM conftest*
13532
13533fi
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13535$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13536
13537if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13538 case $lt_prog_compiler_pic in
13539 "" | " "*) ;;
13540 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13541 esac
13542else
13543 lt_prog_compiler_pic=
13544 lt_prog_compiler_can_build_shared=no
13545fi
13546
13547fi
13548
13549
13550
13551
13552
13553
cristyda16f162011-02-19 23:52:17 +000013554
13555
13556
13557
13558
cristy73bd4a52010-10-05 11:24:23 +000013559#
13560# Check to make sure the static flag actually works.
13561#
13562wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13564$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013565if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013566 $as_echo_n "(cached) " >&6
13567else
13568 lt_cv_prog_compiler_static_works=no
13569 save_LDFLAGS="$LDFLAGS"
13570 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13571 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13572 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13573 # The linker can only warn and ignore the option if not recognized
13574 # So say no if there are warnings
13575 if test -s conftest.err; then
13576 # Append any errors to the config.log.
13577 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013578 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13580 if diff conftest.exp conftest.er2 >/dev/null; then
13581 lt_cv_prog_compiler_static_works=yes
13582 fi
13583 else
13584 lt_cv_prog_compiler_static_works=yes
13585 fi
13586 fi
13587 $RM -r conftest*
13588 LDFLAGS="$save_LDFLAGS"
13589
13590fi
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13592$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13593
13594if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13595 :
13596else
13597 lt_prog_compiler_static=
13598fi
13599
13600
13601
13602
13603
13604
13605
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13607$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013608if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013609 $as_echo_n "(cached) " >&6
13610else
13611 lt_cv_prog_compiler_c_o=no
13612 $RM -r conftest 2>/dev/null
13613 mkdir conftest
13614 cd conftest
13615 mkdir out
13616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13617
13618 lt_compiler_flag="-o out/conftest2.$ac_objext"
13619 # Insert the option either (1) after the last *FLAGS variable, or
13620 # (2) before a word containing "conftest.", or (3) at the end.
13621 # Note that $ac_compile itself does not contain backslashes and begins
13622 # with a dollar sign (not a hyphen), so the echo should work correctly.
13623 lt_compile=`echo "$ac_compile" | $SED \
13624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13626 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013628 (eval "$lt_compile" 2>out/conftest.err)
13629 ac_status=$?
13630 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13633 then
13634 # The compiler can only warn and ignore the option if not recognized
13635 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013637 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13638 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13639 lt_cv_prog_compiler_c_o=yes
13640 fi
13641 fi
13642 chmod u+w . 2>&5
13643 $RM conftest*
13644 # SGI C++ compiler will create directory out/ii_files/ for
13645 # template instantiation
13646 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13647 $RM out/* && rmdir out
13648 cd ..
13649 $RM -r conftest
13650 $RM conftest*
13651
13652fi
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13654$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13655
13656
13657
13658
13659
13660
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13662$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013663if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013664 $as_echo_n "(cached) " >&6
13665else
13666 lt_cv_prog_compiler_c_o=no
13667 $RM -r conftest 2>/dev/null
13668 mkdir conftest
13669 cd conftest
13670 mkdir out
13671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13672
13673 lt_compiler_flag="-o out/conftest2.$ac_objext"
13674 # Insert the option either (1) after the last *FLAGS variable, or
13675 # (2) before a word containing "conftest.", or (3) at the end.
13676 # Note that $ac_compile itself does not contain backslashes and begins
13677 # with a dollar sign (not a hyphen), so the echo should work correctly.
13678 lt_compile=`echo "$ac_compile" | $SED \
13679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13681 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013682 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013683 (eval "$lt_compile" 2>out/conftest.err)
13684 ac_status=$?
13685 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013687 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13688 then
13689 # The compiler can only warn and ignore the option if not recognized
13690 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013692 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13693 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13694 lt_cv_prog_compiler_c_o=yes
13695 fi
13696 fi
13697 chmod u+w . 2>&5
13698 $RM conftest*
13699 # SGI C++ compiler will create directory out/ii_files/ for
13700 # template instantiation
13701 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13702 $RM out/* && rmdir out
13703 cd ..
13704 $RM -r conftest
13705 $RM conftest*
13706
13707fi
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13709$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13710
13711
13712
13713
13714hard_links="nottested"
13715if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13716 # do not overwrite the value of need_locks provided by the user
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13718$as_echo_n "checking if we can lock with hard links... " >&6; }
13719 hard_links=yes
13720 $RM conftest*
13721 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13722 touch conftest.a
13723 ln conftest.a conftest.b 2>&5 || hard_links=no
13724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13726$as_echo "$hard_links" >&6; }
13727 if test "$hard_links" = no; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13729$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13730 need_locks=warn
13731 fi
13732else
13733 need_locks=no
13734fi
13735
13736
13737
13738
13739
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13742$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13743
13744 runpath_var=
13745 allow_undefined_flag=
13746 always_export_symbols=no
13747 archive_cmds=
13748 archive_expsym_cmds=
13749 compiler_needs_object=no
13750 enable_shared_with_static_runtimes=no
13751 export_dynamic_flag_spec=
13752 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13753 hardcode_automatic=no
13754 hardcode_direct=no
13755 hardcode_direct_absolute=no
13756 hardcode_libdir_flag_spec=
13757 hardcode_libdir_flag_spec_ld=
13758 hardcode_libdir_separator=
13759 hardcode_minus_L=no
13760 hardcode_shlibpath_var=unsupported
13761 inherit_rpath=no
13762 link_all_deplibs=unknown
13763 module_cmds=
13764 module_expsym_cmds=
13765 old_archive_from_new_cmds=
13766 old_archive_from_expsyms_cmds=
13767 thread_safe_flag_spec=
13768 whole_archive_flag_spec=
13769 # include_expsyms should be a list of space-separated symbols to be *always*
13770 # included in the symbol list
13771 include_expsyms=
13772 # exclude_expsyms can be an extended regexp of symbols to exclude
13773 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13774 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13775 # as well as any symbol that contains `d'.
13776 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13777 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13778 # platforms (ab)use it in PIC code, but their linkers get confused if
13779 # the symbol is explicitly referenced. Since portable code cannot
13780 # rely on this symbol name, it's probably fine to never include it in
13781 # preloaded symbol tables.
13782 # Exclude shared library initialization/finalization symbols.
13783 extract_expsyms_cmds=
13784
13785 case $host_os in
13786 cygwin* | mingw* | pw32* | cegcc*)
13787 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13788 # When not using gcc, we currently assume that we are using
13789 # Microsoft Visual C++.
13790 if test "$GCC" != yes; then
13791 with_gnu_ld=no
13792 fi
13793 ;;
13794 interix*)
13795 # we just hope/assume this is gcc and not c89 (= MSVC++)
13796 with_gnu_ld=yes
13797 ;;
13798 openbsd*)
13799 with_gnu_ld=no
13800 ;;
13801 esac
13802
13803 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013804
13805 # On some targets, GNU ld is compatible enough with the native linker
13806 # that we're better off using the native interface for both.
13807 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013808 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013809 case $host_os in
13810 aix*)
13811 # The AIX port of GNU ld has always aspired to compatibility
13812 # with the native linker. However, as the warning in the GNU ld
13813 # block says, versions before 2.19.5* couldn't really create working
13814 # shared libraries, regardless of the interface used.
13815 case `$LD -v 2>&1` in
13816 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13817 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13818 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13819 *)
13820 lt_use_gnu_ld_interface=yes
13821 ;;
13822 esac
13823 ;;
13824 *)
13825 lt_use_gnu_ld_interface=yes
13826 ;;
13827 esac
13828 fi
13829
13830 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013831 # If archive_cmds runs LD, not CC, wlarc should be empty
13832 wlarc='${wl}'
13833
13834 # Set some defaults for GNU ld with shared library support. These
13835 # are reset later if shared libraries are not supported. Putting them
13836 # here allows them to be overridden if necessary.
13837 runpath_var=LD_RUN_PATH
13838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13839 export_dynamic_flag_spec='${wl}--export-dynamic'
13840 # ancient GNU ld didn't support --whole-archive et. al.
13841 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13842 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13843 else
13844 whole_archive_flag_spec=
13845 fi
13846 supports_anon_versioning=no
13847 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013848 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013849 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13850 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13851 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13852 *\ 2.11.*) ;; # other 2.11 versions
13853 *) supports_anon_versioning=yes ;;
13854 esac
13855
13856 # See if GNU ld supports shared libraries.
13857 case $host_os in
13858 aix[3-9]*)
13859 # On AIX/PPC, the GNU linker is very broken
13860 if test "$host_cpu" != ia64; then
13861 ld_shlibs=no
13862 cat <<_LT_EOF 1>&2
13863
cristy0c60a692010-11-04 01:09:47 +000013864*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013865*** to be unable to reliably create shared libraries on AIX.
13866*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013867*** really care for shared libraries, you may want to install binutils
13868*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13869*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013870
13871_LT_EOF
13872 fi
13873 ;;
13874
13875 amigaos*)
13876 case $host_cpu in
13877 powerpc)
13878 # see comment about AmigaOS4 .so support
13879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13880 archive_expsym_cmds=''
13881 ;;
13882 m68k)
13883 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)'
13884 hardcode_libdir_flag_spec='-L$libdir'
13885 hardcode_minus_L=yes
13886 ;;
13887 esac
13888 ;;
13889
13890 beos*)
13891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13892 allow_undefined_flag=unsupported
13893 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13894 # support --undefined. This deserves some investigation. FIXME
13895 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13896 else
13897 ld_shlibs=no
13898 fi
13899 ;;
13900
13901 cygwin* | mingw* | pw32* | cegcc*)
13902 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13903 # as there is no search path for DLLs.
13904 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013905 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013906 allow_undefined_flag=unsupported
13907 always_export_symbols=no
13908 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013909 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'
13910 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 +000013911
13912 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13914 # If the export-symbols file already is a .def file (1st line
13915 # is EXPORTS), use it as is; otherwise, prepend...
13916 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13917 cp $export_symbols $output_objdir/$soname.def;
13918 else
13919 echo EXPORTS > $output_objdir/$soname.def;
13920 cat $export_symbols >> $output_objdir/$soname.def;
13921 fi~
13922 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13923 else
13924 ld_shlibs=no
13925 fi
13926 ;;
13927
cristy0c60a692010-11-04 01:09:47 +000013928 haiku*)
13929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13930 link_all_deplibs=yes
13931 ;;
13932
cristy73bd4a52010-10-05 11:24:23 +000013933 interix[3-9]*)
13934 hardcode_direct=no
13935 hardcode_shlibpath_var=no
13936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13937 export_dynamic_flag_spec='${wl}-E'
13938 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13939 # Instead, shared libraries are loaded at an image base (0x10000000 by
13940 # default) and relocated if they conflict, which is a slow very memory
13941 # consuming and fragmenting process. To avoid this, we pick a random,
13942 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13943 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13944 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13945 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'
13946 ;;
13947
cristy0c60a692010-11-04 01:09:47 +000013948 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013949 tmp_diet=no
13950 if test "$host_os" = linux-dietlibc; then
13951 case $cc_basename in
13952 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13953 esac
13954 fi
13955 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13956 && test "$tmp_diet" = no
13957 then
cristyda16f162011-02-19 23:52:17 +000013958 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013959 tmp_sharedflag='-shared'
13960 case $cc_basename,$host_cpu in
13961 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013962 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 +000013963 tmp_addflag=' $pic_flag'
13964 ;;
cristy0c60a692010-11-04 01:09:47 +000013965 pgf77* | pgf90* | pgf95* | pgfortran*)
13966 # Portland Group f77 and f90 compilers
13967 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 +000013968 tmp_addflag=' $pic_flag -Mnomain' ;;
13969 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13970 tmp_addflag=' -i_dynamic' ;;
13971 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13972 tmp_addflag=' -i_dynamic -nofor_main' ;;
13973 ifc* | ifort*) # Intel Fortran compiler
13974 tmp_addflag=' -nofor_main' ;;
13975 lf95*) # Lahey Fortran 8.1
13976 whole_archive_flag_spec=
13977 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013978 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013979 tmp_sharedflag='-qmkshrobj'
13980 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013981 nvcc*) # Cuda Compiler Driver 2.2
13982 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'
13983 compiler_needs_object=yes
13984 ;;
cristy73bd4a52010-10-05 11:24:23 +000013985 esac
13986 case `$CC -V 2>&1 | sed 5q` in
13987 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013988 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 +000013989 compiler_needs_object=yes
13990 tmp_sharedflag='-G' ;;
13991 *Sun\ F*) # Sun Fortran 8.3
13992 tmp_sharedflag='-G' ;;
13993 esac
13994 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13995
13996 if test "x$supports_anon_versioning" = xyes; then
13997 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13999 echo "local: *; };" >> $output_objdir/$libname.ver~
14000 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14001 fi
14002
14003 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014004 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014005 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14006 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14007 hardcode_libdir_flag_spec=
14008 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014009 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014010 if test "x$supports_anon_versioning" = xyes; then
14011 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14013 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014014 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014015 fi
14016 ;;
14017 esac
14018 else
14019 ld_shlibs=no
14020 fi
14021 ;;
14022
14023 netbsd*)
14024 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14025 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14026 wlarc=
14027 else
cristyda16f162011-02-19 23:52:17 +000014028 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14029 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 +000014030 fi
14031 ;;
14032
14033 solaris*)
14034 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14035 ld_shlibs=no
14036 cat <<_LT_EOF 1>&2
14037
14038*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14039*** create shared libraries on Solaris systems. Therefore, libtool
14040*** is disabling shared libraries support. We urge you to upgrade GNU
14041*** binutils to release 2.9.1 or newer. Another option is to modify
14042*** your PATH or compiler configuration so that the native linker is
14043*** used, and then restart.
14044
14045_LT_EOF
14046 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014047 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048 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 +000014049 else
14050 ld_shlibs=no
14051 fi
14052 ;;
14053
14054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14055 case `$LD -v 2>&1` in
14056 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14057 ld_shlibs=no
14058 cat <<_LT_EOF 1>&2
14059
14060*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14061*** reliably create shared libraries on SCO systems. Therefore, libtool
14062*** is disabling shared libraries support. We urge you to upgrade GNU
14063*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14064*** your PATH or compiler configuration so that the native linker is
14065*** used, and then restart.
14066
14067_LT_EOF
14068 ;;
14069 *)
14070 # For security reasons, it is highly recommended that you always
14071 # use absolute paths for naming shared libraries, and exclude the
14072 # DT_RUNPATH tag from executables and libraries. But doing so
14073 # requires that you compile everything twice, which is a pain.
14074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14075 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14078 else
14079 ld_shlibs=no
14080 fi
14081 ;;
14082 esac
14083 ;;
14084
14085 sunos4*)
14086 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14087 wlarc=
14088 hardcode_direct=yes
14089 hardcode_shlibpath_var=no
14090 ;;
14091
14092 *)
14093 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14095 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 +000014096 else
14097 ld_shlibs=no
14098 fi
14099 ;;
14100 esac
14101
14102 if test "$ld_shlibs" = no; then
14103 runpath_var=
14104 hardcode_libdir_flag_spec=
14105 export_dynamic_flag_spec=
14106 whole_archive_flag_spec=
14107 fi
14108 else
14109 # PORTME fill in a description of your system's linker (not GNU ld)
14110 case $host_os in
14111 aix3*)
14112 allow_undefined_flag=unsupported
14113 always_export_symbols=yes
14114 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'
14115 # Note: this linker hardcodes the directories in LIBPATH if there
14116 # are no directories specified by -L.
14117 hardcode_minus_L=yes
14118 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14119 # Neither direct hardcoding nor static linking is supported with a
14120 # broken collect2.
14121 hardcode_direct=unsupported
14122 fi
14123 ;;
14124
14125 aix[4-9]*)
14126 if test "$host_cpu" = ia64; then
14127 # On IA64, the linker does run time linking by default, so we don't
14128 # have to do anything special.
14129 aix_use_runtimelinking=no
14130 exp_sym_flag='-Bexport'
14131 no_entry_flag=""
14132 else
14133 # If we're using GNU nm, then we don't want the "-C" option.
14134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014135 # Also, AIX nm treats weak defined symbols like other global
14136 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014137 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014138 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 +000014139 else
14140 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'
14141 fi
14142 aix_use_runtimelinking=no
14143
14144 # Test if we are trying to use run time linking or normal
14145 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14146 # need to do runtime linking.
14147 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14148 for ld_flag in $LDFLAGS; do
14149 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14150 aix_use_runtimelinking=yes
14151 break
14152 fi
14153 done
14154 ;;
14155 esac
14156
14157 exp_sym_flag='-bexport'
14158 no_entry_flag='-bnoentry'
14159 fi
14160
14161 # When large executables or shared objects are built, AIX ld can
14162 # have problems creating the table of contents. If linking a library
14163 # or program results in "error TOC overflow" add -mminimal-toc to
14164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14166
14167 archive_cmds=''
14168 hardcode_direct=yes
14169 hardcode_direct_absolute=yes
14170 hardcode_libdir_separator=':'
14171 link_all_deplibs=yes
14172 file_list_spec='${wl}-f,'
14173
14174 if test "$GCC" = yes; then
14175 case $host_os in aix4.[012]|aix4.[012].*)
14176 # We only want to do this on AIX 4.2 and lower, the check
14177 # below for broken collect2 doesn't work under 4.3+
14178 collect2name=`${CC} -print-prog-name=collect2`
14179 if test -f "$collect2name" &&
14180 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14181 then
14182 # We have reworked collect2
14183 :
14184 else
14185 # We have old collect2
14186 hardcode_direct=unsupported
14187 # It fails to find uninstalled libraries when the uninstalled
14188 # path is not listed in the libpath. Setting hardcode_minus_L
14189 # to unsupported forces relinking
14190 hardcode_minus_L=yes
14191 hardcode_libdir_flag_spec='-L$libdir'
14192 hardcode_libdir_separator=
14193 fi
14194 ;;
14195 esac
14196 shared_flag='-shared'
14197 if test "$aix_use_runtimelinking" = yes; then
14198 shared_flag="$shared_flag "'${wl}-G'
14199 fi
14200 else
14201 # not using gcc
14202 if test "$host_cpu" = ia64; then
14203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14204 # chokes on -Wl,-G. The following line is correct:
14205 shared_flag='-G'
14206 else
14207 if test "$aix_use_runtimelinking" = yes; then
14208 shared_flag='${wl}-G'
14209 else
14210 shared_flag='${wl}-bM:SRE'
14211 fi
14212 fi
14213 fi
14214
14215 export_dynamic_flag_spec='${wl}-bexpall'
14216 # It seems that -bexpall does not export symbols beginning with
14217 # underscore (_), so it is better to generate a list of symbols to export.
14218 always_export_symbols=yes
14219 if test "$aix_use_runtimelinking" = yes; then
14220 # Warning - without using the other runtime loading flags (-brtl),
14221 # -berok will link without error, but may produce a broken library.
14222 allow_undefined_flag='-berok'
14223 # Determine the default libpath from the value encoded in an
14224 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014225 if test "${lt_cv_aix_libpath+set}" = set; then
14226 aix_libpath=$lt_cv_aix_libpath
14227else
14228 if ${lt_cv_aix_libpath_+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230else
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014232/* end confdefs.h. */
14233
14234int
14235main ()
14236{
14237
14238 ;
14239 return 0;
14240}
14241_ACEOF
14242if ac_fn_c_try_link "$LINENO"; then :
14243
cristyda16f162011-02-19 23:52:17 +000014244 lt_aix_libpath_sed='
14245 /Import File Strings/,/^$/ {
14246 /^0/ {
14247 s/^0 *\([^ ]*\) *$/\1/
14248 p
14249 }
14250 }'
14251 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14252 # Check for a 64-bit object if we didn't find anything.
14253 if test -z "$lt_cv_aix_libpath_"; then
14254 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14255 fi
cristy73bd4a52010-10-05 11:24:23 +000014256fi
14257rm -f core conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014259 if test -z "$lt_cv_aix_libpath_"; then
14260 lt_cv_aix_libpath_="/usr/lib:/lib"
14261 fi
14262
14263fi
14264
14265 aix_libpath=$lt_cv_aix_libpath_
14266fi
cristy73bd4a52010-10-05 11:24:23 +000014267
14268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014269 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 +000014270 else
14271 if test "$host_cpu" = ia64; then
14272 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14273 allow_undefined_flag="-z nodefs"
14274 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"
14275 else
14276 # Determine the default libpath from the value encoded in an
14277 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014278 if test "${lt_cv_aix_libpath+set}" = set; then
14279 aix_libpath=$lt_cv_aix_libpath
14280else
14281 if ${lt_cv_aix_libpath_+:} false; then :
14282 $as_echo_n "(cached) " >&6
14283else
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014285/* end confdefs.h. */
14286
14287int
14288main ()
14289{
14290
14291 ;
14292 return 0;
14293}
14294_ACEOF
14295if ac_fn_c_try_link "$LINENO"; then :
14296
cristyda16f162011-02-19 23:52:17 +000014297 lt_aix_libpath_sed='
14298 /Import File Strings/,/^$/ {
14299 /^0/ {
14300 s/^0 *\([^ ]*\) *$/\1/
14301 p
14302 }
14303 }'
14304 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14305 # Check for a 64-bit object if we didn't find anything.
14306 if test -z "$lt_cv_aix_libpath_"; then
14307 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14308 fi
cristy73bd4a52010-10-05 11:24:23 +000014309fi
14310rm -f core conftest.err conftest.$ac_objext \
14311 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014312 if test -z "$lt_cv_aix_libpath_"; then
14313 lt_cv_aix_libpath_="/usr/lib:/lib"
14314 fi
14315
14316fi
14317
14318 aix_libpath=$lt_cv_aix_libpath_
14319fi
cristy73bd4a52010-10-05 11:24:23 +000014320
14321 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14322 # Warning - without using the other run time loading flags,
14323 # -berok will link without error, but may produce a broken library.
14324 no_undefined_flag=' ${wl}-bernotok'
14325 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014326 if test "$with_gnu_ld" = yes; then
14327 # We only use this code for GNU lds that support --whole-archive.
14328 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14329 else
14330 # Exported symbols can be pulled into shared objects from archives
14331 whole_archive_flag_spec='$convenience'
14332 fi
cristy73bd4a52010-10-05 11:24:23 +000014333 archive_cmds_need_lc=yes
14334 # This is similar to how AIX traditionally builds its shared libraries.
14335 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'
14336 fi
14337 fi
14338 ;;
14339
14340 amigaos*)
14341 case $host_cpu in
14342 powerpc)
14343 # see comment about AmigaOS4 .so support
14344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14345 archive_expsym_cmds=''
14346 ;;
14347 m68k)
14348 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)'
14349 hardcode_libdir_flag_spec='-L$libdir'
14350 hardcode_minus_L=yes
14351 ;;
14352 esac
14353 ;;
14354
14355 bsdi[45]*)
14356 export_dynamic_flag_spec=-rdynamic
14357 ;;
14358
14359 cygwin* | mingw* | pw32* | cegcc*)
14360 # When not using gcc, we currently assume that we are using
14361 # Microsoft Visual C++.
14362 # hardcode_libdir_flag_spec is actually meaningless, as there is
14363 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014364 case $cc_basename in
14365 cl*)
14366 # Native MSVC
14367 hardcode_libdir_flag_spec=' '
14368 allow_undefined_flag=unsupported
14369 always_export_symbols=yes
14370 file_list_spec='@'
14371 # Tell ltmain to make .lib files, not .a files.
14372 libext=lib
14373 # Tell ltmain to make .dll files, not .so files.
14374 shrext_cmds=".dll"
14375 # FIXME: Setting linknames here is a bad hack.
14376 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14377 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14378 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14379 else
14380 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14381 fi~
14382 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14383 linknames='
14384 # The linker will not automatically build a static lib if we build a DLL.
14385 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14386 enable_shared_with_static_runtimes=yes
14387 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14388 # Don't use ranlib
14389 old_postinstall_cmds='chmod 644 $oldlib'
14390 postlink_cmds='lt_outputfile="@OUTPUT@"~
14391 lt_tool_outputfile="@TOOL_OUTPUT@"~
14392 case $lt_outputfile in
14393 *.exe|*.EXE) ;;
14394 *)
14395 lt_outputfile="$lt_outputfile.exe"
14396 lt_tool_outputfile="$lt_tool_outputfile.exe"
14397 ;;
14398 esac~
14399 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14400 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14401 $RM "$lt_outputfile.manifest";
14402 fi'
14403 ;;
14404 *)
14405 # Assume MSVC wrapper
14406 hardcode_libdir_flag_spec=' '
14407 allow_undefined_flag=unsupported
14408 # Tell ltmain to make .lib files, not .a files.
14409 libext=lib
14410 # Tell ltmain to make .dll files, not .so files.
14411 shrext_cmds=".dll"
14412 # FIXME: Setting linknames here is a bad hack.
14413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14414 # The linker will automatically build a .lib file if we build a DLL.
14415 old_archive_from_new_cmds='true'
14416 # FIXME: Should let the user specify the lib program.
14417 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14418 enable_shared_with_static_runtimes=yes
14419 ;;
14420 esac
cristy73bd4a52010-10-05 11:24:23 +000014421 ;;
14422
14423 darwin* | rhapsody*)
14424
14425
14426 archive_cmds_need_lc=no
14427 hardcode_direct=no
14428 hardcode_automatic=yes
14429 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014430 if test "$lt_cv_ld_force_load" = "yes"; then
14431 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\"`'
14432 else
14433 whole_archive_flag_spec=''
14434 fi
cristy73bd4a52010-10-05 11:24:23 +000014435 link_all_deplibs=yes
14436 allow_undefined_flag="$_lt_dar_allow_undefined"
14437 case $cc_basename in
14438 ifort*) _lt_dar_can_shared=yes ;;
14439 *) _lt_dar_can_shared=$GCC ;;
14440 esac
14441 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014442 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014443 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14444 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14445 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}"
14446 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}"
14447
14448 else
14449 ld_shlibs=no
14450 fi
14451
14452 ;;
14453
14454 dgux*)
14455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14456 hardcode_libdir_flag_spec='-L$libdir'
14457 hardcode_shlibpath_var=no
14458 ;;
14459
14460 freebsd1*)
14461 ld_shlibs=no
14462 ;;
14463
14464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14465 # support. Future versions do this automatically, but an explicit c++rt0.o
14466 # does not break anything, and helps significantly (at the cost of a little
14467 # extra space).
14468 freebsd2.2*)
14469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14470 hardcode_libdir_flag_spec='-R$libdir'
14471 hardcode_direct=yes
14472 hardcode_shlibpath_var=no
14473 ;;
14474
14475 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14476 freebsd2*)
14477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14478 hardcode_direct=yes
14479 hardcode_minus_L=yes
14480 hardcode_shlibpath_var=no
14481 ;;
14482
14483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14484 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014486 hardcode_libdir_flag_spec='-R$libdir'
14487 hardcode_direct=yes
14488 hardcode_shlibpath_var=no
14489 ;;
14490
14491 hpux9*)
14492 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014493 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 +000014494 else
14495 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'
14496 fi
14497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14498 hardcode_libdir_separator=:
14499 hardcode_direct=yes
14500
14501 # hardcode_minus_L: Not really in the search PATH,
14502 # but as the default location of the library.
14503 hardcode_minus_L=yes
14504 export_dynamic_flag_spec='${wl}-E'
14505 ;;
14506
14507 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014508 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014509 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 +000014510 else
14511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14512 fi
14513 if test "$with_gnu_ld" = no; then
14514 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14515 hardcode_libdir_flag_spec_ld='+b $libdir'
14516 hardcode_libdir_separator=:
14517 hardcode_direct=yes
14518 hardcode_direct_absolute=yes
14519 export_dynamic_flag_spec='${wl}-E'
14520 # hardcode_minus_L: Not really in the search PATH,
14521 # but as the default location of the library.
14522 hardcode_minus_L=yes
14523 fi
14524 ;;
14525
14526 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014527 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014528 case $host_cpu in
14529 hppa*64*)
14530 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14531 ;;
14532 ia64*)
cristyda16f162011-02-19 23:52:17 +000014533 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014534 ;;
14535 *)
cristyda16f162011-02-19 23:52:17 +000014536 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 +000014537 ;;
14538 esac
14539 else
14540 case $host_cpu in
14541 hppa*64*)
14542 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14543 ;;
14544 ia64*)
14545 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14546 ;;
14547 *)
cristy0c60a692010-11-04 01:09:47 +000014548
14549 # Older versions of the 11.00 compiler do not understand -b yet
14550 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14552$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014553if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014554 $as_echo_n "(cached) " >&6
14555else
14556 lt_cv_prog_compiler__b=no
14557 save_LDFLAGS="$LDFLAGS"
14558 LDFLAGS="$LDFLAGS -b"
14559 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14561 # The linker can only warn and ignore the option if not recognized
14562 # So say no if there are warnings
14563 if test -s conftest.err; then
14564 # Append any errors to the config.log.
14565 cat conftest.err 1>&5
14566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14568 if diff conftest.exp conftest.er2 >/dev/null; then
14569 lt_cv_prog_compiler__b=yes
14570 fi
14571 else
14572 lt_cv_prog_compiler__b=yes
14573 fi
14574 fi
14575 $RM -r conftest*
14576 LDFLAGS="$save_LDFLAGS"
14577
14578fi
14579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14580$as_echo "$lt_cv_prog_compiler__b" >&6; }
14581
14582if test x"$lt_cv_prog_compiler__b" = xyes; then
14583 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14584else
14585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14586fi
14587
cristy73bd4a52010-10-05 11:24:23 +000014588 ;;
14589 esac
14590 fi
14591 if test "$with_gnu_ld" = no; then
14592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14593 hardcode_libdir_separator=:
14594
14595 case $host_cpu in
14596 hppa*64*|ia64*)
14597 hardcode_direct=no
14598 hardcode_shlibpath_var=no
14599 ;;
14600 *)
14601 hardcode_direct=yes
14602 hardcode_direct_absolute=yes
14603 export_dynamic_flag_spec='${wl}-E'
14604
14605 # hardcode_minus_L: Not really in the search PATH,
14606 # but as the default location of the library.
14607 hardcode_minus_L=yes
14608 ;;
14609 esac
14610 fi
14611 ;;
14612
14613 irix5* | irix6* | nonstopux*)
14614 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014615 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 +000014616 # Try to use the -exported_symbol ld option, if it does not
14617 # work, assume that -exports_file does not work either and
14618 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014619 # This should be the same for all languages, so no per-tag cache variable.
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14621$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14622if ${lt_cv_irix_exported_symbol+:} false; then :
14623 $as_echo_n "(cached) " >&6
14624else
14625 save_LDFLAGS="$LDFLAGS"
14626 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014628/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014629int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014630_ACEOF
14631if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014632 lt_cv_irix_exported_symbol=yes
14633else
14634 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014635fi
14636rm -f core conftest.err conftest.$ac_objext \
14637 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014638 LDFLAGS="$save_LDFLAGS"
14639fi
14640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14641$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14642 if test "$lt_cv_irix_exported_symbol" = yes; then
14643 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'
14644 fi
cristy73bd4a52010-10-05 11:24:23 +000014645 else
cristy0c60a692010-11-04 01:09:47 +000014646 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'
14647 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 +000014648 fi
14649 archive_cmds_need_lc='no'
14650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14651 hardcode_libdir_separator=:
14652 inherit_rpath=yes
14653 link_all_deplibs=yes
14654 ;;
14655
14656 netbsd*)
14657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14659 else
14660 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14661 fi
14662 hardcode_libdir_flag_spec='-R$libdir'
14663 hardcode_direct=yes
14664 hardcode_shlibpath_var=no
14665 ;;
14666
14667 newsos6)
14668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669 hardcode_direct=yes
14670 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14671 hardcode_libdir_separator=:
14672 hardcode_shlibpath_var=no
14673 ;;
14674
14675 *nto* | *qnx*)
14676 ;;
14677
14678 openbsd*)
14679 if test -f /usr/libexec/ld.so; then
14680 hardcode_direct=yes
14681 hardcode_shlibpath_var=no
14682 hardcode_direct_absolute=yes
14683 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14684 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14685 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14687 export_dynamic_flag_spec='${wl}-E'
14688 else
14689 case $host_os in
14690 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14692 hardcode_libdir_flag_spec='-R$libdir'
14693 ;;
14694 *)
14695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14696 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14697 ;;
14698 esac
14699 fi
14700 else
14701 ld_shlibs=no
14702 fi
14703 ;;
14704
14705 os2*)
14706 hardcode_libdir_flag_spec='-L$libdir'
14707 hardcode_minus_L=yes
14708 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014709 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 +000014710 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14711 ;;
14712
14713 osf3*)
14714 if test "$GCC" = yes; then
14715 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014716 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 +000014717 else
14718 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014719 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 +000014720 fi
14721 archive_cmds_need_lc='no'
14722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14723 hardcode_libdir_separator=:
14724 ;;
14725
14726 osf4* | osf5*) # as osf3* with the addition of -msym flag
14727 if test "$GCC" = yes; then
14728 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014729 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 +000014730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14731 else
14732 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014733 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 +000014734 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 +000014735 $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 +000014736
14737 # Both c and cxx compiler support -rpath directly
14738 hardcode_libdir_flag_spec='-rpath $libdir'
14739 fi
14740 archive_cmds_need_lc='no'
14741 hardcode_libdir_separator=:
14742 ;;
14743
14744 solaris*)
14745 no_undefined_flag=' -z defs'
14746 if test "$GCC" = yes; then
14747 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014748 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 +000014749 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 +000014750 $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 +000014751 else
14752 case `$CC -V 2>&1` in
14753 *"Compilers 5.0"*)
14754 wlarc=''
14755 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14757 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14758 ;;
14759 *)
14760 wlarc='${wl}'
14761 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14762 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14763 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14764 ;;
14765 esac
14766 fi
14767 hardcode_libdir_flag_spec='-R$libdir'
14768 hardcode_shlibpath_var=no
14769 case $host_os in
14770 solaris2.[0-5] | solaris2.[0-5].*) ;;
14771 *)
14772 # The compiler driver will combine and reorder linker options,
14773 # but understands `-z linker_flag'. GCC discards it without `$wl',
14774 # but is careful enough not to reorder.
14775 # Supported since Solaris 2.6 (maybe 2.5.1?)
14776 if test "$GCC" = yes; then
14777 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14778 else
14779 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14780 fi
14781 ;;
14782 esac
14783 link_all_deplibs=yes
14784 ;;
14785
14786 sunos4*)
14787 if test "x$host_vendor" = xsequent; then
14788 # Use $CC to link under sequent, because it throws in some extra .o
14789 # files that make .init and .fini sections work.
14790 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14791 else
14792 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14793 fi
14794 hardcode_libdir_flag_spec='-L$libdir'
14795 hardcode_direct=yes
14796 hardcode_minus_L=yes
14797 hardcode_shlibpath_var=no
14798 ;;
14799
14800 sysv4)
14801 case $host_vendor in
14802 sni)
14803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14804 hardcode_direct=yes # is this really true???
14805 ;;
14806 siemens)
14807 ## LD is ld it makes a PLAMLIB
14808 ## CC just makes a GrossModule.
14809 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14810 reload_cmds='$CC -r -o $output$reload_objs'
14811 hardcode_direct=no
14812 ;;
14813 motorola)
14814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14815 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14816 ;;
14817 esac
14818 runpath_var='LD_RUN_PATH'
14819 hardcode_shlibpath_var=no
14820 ;;
14821
14822 sysv4.3*)
14823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14824 hardcode_shlibpath_var=no
14825 export_dynamic_flag_spec='-Bexport'
14826 ;;
14827
14828 sysv4*MP*)
14829 if test -d /usr/nec; then
14830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14831 hardcode_shlibpath_var=no
14832 runpath_var=LD_RUN_PATH
14833 hardcode_runpath_var=yes
14834 ld_shlibs=yes
14835 fi
14836 ;;
14837
14838 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14839 no_undefined_flag='${wl}-z,text'
14840 archive_cmds_need_lc=no
14841 hardcode_shlibpath_var=no
14842 runpath_var='LD_RUN_PATH'
14843
14844 if test "$GCC" = yes; then
14845 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 else
14848 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14849 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14850 fi
14851 ;;
14852
14853 sysv5* | sco3.2v5* | sco5v6*)
14854 # Note: We can NOT use -z defs as we might desire, because we do not
14855 # link with -lc, and that would cause any symbols used from libc to
14856 # always be unresolved, which means just about no library would
14857 # ever link correctly. If we're not using GNU ld we use -z text
14858 # though, which does catch some bad symbols but isn't as heavy-handed
14859 # as -z defs.
14860 no_undefined_flag='${wl}-z,text'
14861 allow_undefined_flag='${wl}-z,nodefs'
14862 archive_cmds_need_lc=no
14863 hardcode_shlibpath_var=no
14864 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14865 hardcode_libdir_separator=':'
14866 link_all_deplibs=yes
14867 export_dynamic_flag_spec='${wl}-Bexport'
14868 runpath_var='LD_RUN_PATH'
14869
14870 if test "$GCC" = yes; then
14871 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14872 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14873 else
14874 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14875 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14876 fi
14877 ;;
14878
14879 uts4*)
14880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14881 hardcode_libdir_flag_spec='-L$libdir'
14882 hardcode_shlibpath_var=no
14883 ;;
14884
14885 *)
14886 ld_shlibs=no
14887 ;;
14888 esac
14889
14890 if test x$host_vendor = xsni; then
14891 case $host in
14892 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14893 export_dynamic_flag_spec='${wl}-Blargedynsym'
14894 ;;
14895 esac
14896 fi
14897 fi
14898
14899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14900$as_echo "$ld_shlibs" >&6; }
14901test "$ld_shlibs" = no && can_build_shared=no
14902
14903with_gnu_ld=$with_gnu_ld
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919#
14920# Do we need to explicitly link libc?
14921#
14922case "x$archive_cmds_need_lc" in
14923x|xyes)
14924 # Assume -lc should be added
14925 archive_cmds_need_lc=yes
14926
14927 if test "$enable_shared" = yes && test "$GCC" = yes; then
14928 case $archive_cmds in
14929 *'~'*)
14930 # FIXME: we may have to deal with multi-command sequences.
14931 ;;
14932 '$CC '*)
14933 # Test whether the compiler implicitly links with -lc since on some
14934 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14935 # to ld, don't add -lc before -lgcc.
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14937$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014938if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014939 $as_echo_n "(cached) " >&6
14940else
14941 $RM conftest*
14942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014943
cristy0c60a692010-11-04 01:09:47 +000014944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014945 (eval $ac_compile) 2>&5
14946 ac_status=$?
14947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14948 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014949 soname=conftest
14950 lib=conftest
14951 libobjs=conftest.$ac_objext
14952 deplibs=
14953 wl=$lt_prog_compiler_wl
14954 pic_flag=$lt_prog_compiler_pic
14955 compiler_flags=-v
14956 linker_flags=-v
14957 verstring=
14958 output_objdir=.
14959 libname=conftest
14960 lt_save_allow_undefined_flag=$allow_undefined_flag
14961 allow_undefined_flag=
14962 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 +000014963 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14964 ac_status=$?
14965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14966 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014967 then
14968 lt_cv_archive_cmds_need_lc=no
14969 else
14970 lt_cv_archive_cmds_need_lc=yes
14971 fi
14972 allow_undefined_flag=$lt_save_allow_undefined_flag
14973 else
14974 cat conftest.err 1>&5
14975 fi
14976 $RM conftest*
14977
14978fi
14979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14980$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14981 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014982 ;;
14983 esac
14984 fi
14985 ;;
14986esac
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15145$as_echo_n "checking dynamic linker characteristics... " >&6; }
15146
15147if test "$GCC" = yes; then
15148 case $host_os in
15149 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15150 *) lt_awk_arg="/^libraries:/" ;;
15151 esac
cristy0c60a692010-11-04 01:09:47 +000015152 case $host_os in
15153 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15154 *) lt_sed_strip_eq="s,=/,/,g" ;;
15155 esac
15156 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15157 case $lt_search_path_spec in
15158 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015159 # if the path contains ";" then we assume it to be the separator
15160 # otherwise default to the standard path separator (i.e. ":") - it is
15161 # assumed that no part of a normal pathname contains ";" but that should
15162 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15164 ;;
15165 *)
15166 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15167 ;;
15168 esac
cristy73bd4a52010-10-05 11:24:23 +000015169 # Ok, now we have the path, separated by spaces, we can step through it
15170 # and add multilib dir if necessary.
15171 lt_tmp_lt_search_path_spec=
15172 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15173 for lt_sys_path in $lt_search_path_spec; do
15174 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15175 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15176 else
15177 test -d "$lt_sys_path" && \
15178 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15179 fi
15180 done
cristy0c60a692010-11-04 01:09:47 +000015181 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015182BEGIN {RS=" "; FS="/|\n";} {
15183 lt_foo="";
15184 lt_count=0;
15185 for (lt_i = NF; lt_i > 0; lt_i--) {
15186 if ($lt_i != "" && $lt_i != ".") {
15187 if ($lt_i == "..") {
15188 lt_count++;
15189 } else {
15190 if (lt_count == 0) {
15191 lt_foo="/" $lt_i lt_foo;
15192 } else {
15193 lt_count--;
15194 }
15195 }
15196 }
15197 }
15198 if (lt_foo != "") { lt_freq[lt_foo]++; }
15199 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15200}'`
cristy0c60a692010-11-04 01:09:47 +000015201 # AWK program above erroneously prepends '/' to C:/dos/paths
15202 # for these hosts.
15203 case $host_os in
15204 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15205 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15206 esac
15207 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015208else
15209 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15210fi
15211library_names_spec=
15212libname_spec='lib$name'
15213soname_spec=
15214shrext_cmds=".so"
15215postinstall_cmds=
15216postuninstall_cmds=
15217finish_cmds=
15218finish_eval=
15219shlibpath_var=
15220shlibpath_overrides_runpath=unknown
15221version_type=none
15222dynamic_linker="$host_os ld.so"
15223sys_lib_dlsearch_path_spec="/lib /usr/lib"
15224need_lib_prefix=unknown
15225hardcode_into_libs=no
15226
15227# when you set need_version to no, make sure it does not cause -set_version
15228# flags to be left without arguments
15229need_version=unknown
15230
15231case $host_os in
15232aix3*)
15233 version_type=linux
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15235 shlibpath_var=LIBPATH
15236
15237 # AIX 3 has no versioning support, so we append a major version to the name.
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 ;;
15240
15241aix[4-9]*)
15242 version_type=linux
15243 need_lib_prefix=no
15244 need_version=no
15245 hardcode_into_libs=yes
15246 if test "$host_cpu" = ia64; then
15247 # AIX 5 supports IA64
15248 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 else
15251 # With GCC up to 2.95.x, collect2 would create an import file
15252 # for dependence libraries. The import file would start with
15253 # the line `#! .'. This would cause the generated library to
15254 # depend on `.', always an invalid library. This was fixed in
15255 # development snapshots of GCC prior to 3.0.
15256 case $host_os in
15257 aix4 | aix4.[01] | aix4.[01].*)
15258 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15259 echo ' yes '
15260 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15261 :
15262 else
15263 can_build_shared=no
15264 fi
15265 ;;
15266 esac
15267 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15268 # soname into executable. Probably we can add versioning support to
15269 # collect2, so additional links can be useful in future.
15270 if test "$aix_use_runtimelinking" = yes; then
15271 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15272 # instead of lib<name>.a to let people know that these are not
15273 # typical AIX shared libraries.
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15275 else
15276 # We preserve .a as extension for shared libraries through AIX4.2
15277 # and later when we are not doing run time linking.
15278 library_names_spec='${libname}${release}.a $libname.a'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 fi
15281 shlibpath_var=LIBPATH
15282 fi
15283 ;;
15284
15285amigaos*)
15286 case $host_cpu in
15287 powerpc)
15288 # Since July 2007 AmigaOS4 officially supports .so libraries.
15289 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291 ;;
15292 m68k)
15293 library_names_spec='$libname.ixlibrary $libname.a'
15294 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015295 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 +000015296 ;;
15297 esac
15298 ;;
15299
15300beos*)
15301 library_names_spec='${libname}${shared_ext}'
15302 dynamic_linker="$host_os ld.so"
15303 shlibpath_var=LIBRARY_PATH
15304 ;;
15305
15306bsdi[45]*)
15307 version_type=linux
15308 need_version=no
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310 soname_spec='${libname}${release}${shared_ext}$major'
15311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15312 shlibpath_var=LD_LIBRARY_PATH
15313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15315 # the default ld.so.conf also contains /usr/contrib/lib and
15316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15317 # libtool to hard-code these into programs
15318 ;;
15319
15320cygwin* | mingw* | pw32* | cegcc*)
15321 version_type=windows
15322 shrext_cmds=".dll"
15323 need_version=no
15324 need_lib_prefix=no
15325
cristyda16f162011-02-19 23:52:17 +000015326 case $GCC,$cc_basename in
15327 yes,*)
15328 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015329 library_names_spec='$libname.dll.a'
15330 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15331 postinstall_cmds='base_file=`basename \${file}`~
15332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15333 dldir=$destdir/`dirname \$dlpath`~
15334 test -d \$dldir || mkdir -p \$dldir~
15335 $install_prog $dir/$dlname \$dldir/$dlname~
15336 chmod a+x \$dldir/$dlname~
15337 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15338 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15339 fi'
15340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15341 dlpath=$dir/\$dldll~
15342 $RM \$dlpath'
15343 shlibpath_overrides_runpath=yes
15344
15345 case $host_os in
15346 cygwin*)
15347 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15348 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015349
15350 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015351 ;;
15352 mingw* | cegcc*)
15353 # MinGW DLLs use traditional 'lib' prefix
15354 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015355 ;;
15356 pw32*)
15357 # pw32 DLLs use 'pw' prefix rather than 'lib'
15358 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15359 ;;
15360 esac
cristyda16f162011-02-19 23:52:17 +000015361 dynamic_linker='Win32 ld.exe'
15362 ;;
15363
15364 *,cl*)
15365 # Native MSVC
15366 libname_spec='$name'
15367 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15368 library_names_spec='${libname}.dll.lib'
15369
15370 case $build_os in
15371 mingw*)
15372 sys_lib_search_path_spec=
15373 lt_save_ifs=$IFS
15374 IFS=';'
15375 for lt_path in $LIB
15376 do
15377 IFS=$lt_save_ifs
15378 # Let DOS variable expansion print the short 8.3 style file name.
15379 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15380 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15381 done
15382 IFS=$lt_save_ifs
15383 # Convert to MSYS style.
15384 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15385 ;;
15386 cygwin*)
15387 # Convert to unix form, then to dos form, then back to unix form
15388 # but this time dos style (no spaces!) so that the unix form looks
15389 # like /cygdrive/c/PROGRA~1:/cygdr...
15390 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15391 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15392 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15393 ;;
15394 *)
15395 sys_lib_search_path_spec="$LIB"
15396 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15397 # It is most probably a Windows format PATH.
15398 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15399 else
15400 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15401 fi
15402 # FIXME: find the short name or the path components, as spaces are
15403 # common. (e.g. "Program Files" -> "PROGRA~1")
15404 ;;
15405 esac
15406
15407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15408 postinstall_cmds='base_file=`basename \${file}`~
15409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15410 dldir=$destdir/`dirname \$dlpath`~
15411 test -d \$dldir || mkdir -p \$dldir~
15412 $install_prog $dir/$dlname \$dldir/$dlname'
15413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15414 dlpath=$dir/\$dldll~
15415 $RM \$dlpath'
15416 shlibpath_overrides_runpath=yes
15417 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015418 ;;
15419
15420 *)
cristyda16f162011-02-19 23:52:17 +000015421 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015422 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015423 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015424 ;;
15425 esac
cristy73bd4a52010-10-05 11:24:23 +000015426 # FIXME: first we should search . and the directory the executable is in
15427 shlibpath_var=PATH
15428 ;;
15429
15430darwin* | rhapsody*)
15431 dynamic_linker="$host_os dyld"
15432 version_type=darwin
15433 need_lib_prefix=no
15434 need_version=no
15435 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15436 soname_spec='${libname}${release}${major}$shared_ext'
15437 shlibpath_overrides_runpath=yes
15438 shlibpath_var=DYLD_LIBRARY_PATH
15439 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15440
15441 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15443 ;;
15444
15445dgux*)
15446 version_type=linux
15447 need_lib_prefix=no
15448 need_version=no
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 shlibpath_var=LD_LIBRARY_PATH
15452 ;;
15453
15454freebsd1*)
15455 dynamic_linker=no
15456 ;;
15457
15458freebsd* | dragonfly*)
15459 # DragonFly does not have aout. When/if they implement a new
15460 # versioning mechanism, adjust this.
15461 if test -x /usr/bin/objformat; then
15462 objformat=`/usr/bin/objformat`
15463 else
15464 case $host_os in
15465 freebsd[123]*) objformat=aout ;;
15466 *) objformat=elf ;;
15467 esac
15468 fi
15469 version_type=freebsd-$objformat
15470 case $version_type in
15471 freebsd-elf*)
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15473 need_version=no
15474 need_lib_prefix=no
15475 ;;
15476 freebsd-*)
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15478 need_version=yes
15479 ;;
15480 esac
15481 shlibpath_var=LD_LIBRARY_PATH
15482 case $host_os in
15483 freebsd2*)
15484 shlibpath_overrides_runpath=yes
15485 ;;
15486 freebsd3.[01]* | freebsdelf3.[01]*)
15487 shlibpath_overrides_runpath=yes
15488 hardcode_into_libs=yes
15489 ;;
15490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15492 shlibpath_overrides_runpath=no
15493 hardcode_into_libs=yes
15494 ;;
15495 *) # from 4.6 on, and DragonFly
15496 shlibpath_overrides_runpath=yes
15497 hardcode_into_libs=yes
15498 ;;
15499 esac
15500 ;;
15501
15502gnu*)
15503 version_type=linux
15504 need_lib_prefix=no
15505 need_version=no
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15507 soname_spec='${libname}${release}${shared_ext}$major'
15508 shlibpath_var=LD_LIBRARY_PATH
15509 hardcode_into_libs=yes
15510 ;;
15511
cristy0c60a692010-11-04 01:09:47 +000015512haiku*)
15513 version_type=linux
15514 need_lib_prefix=no
15515 need_version=no
15516 dynamic_linker="$host_os runtime_loader"
15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15518 soname_spec='${libname}${release}${shared_ext}$major'
15519 shlibpath_var=LIBRARY_PATH
15520 shlibpath_overrides_runpath=yes
15521 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15522 hardcode_into_libs=yes
15523 ;;
15524
cristy73bd4a52010-10-05 11:24:23 +000015525hpux9* | hpux10* | hpux11*)
15526 # Give a soname corresponding to the major version so that dld.sl refuses to
15527 # link against other versions.
15528 version_type=sunos
15529 need_lib_prefix=no
15530 need_version=no
15531 case $host_cpu in
15532 ia64*)
15533 shrext_cmds='.so'
15534 hardcode_into_libs=yes
15535 dynamic_linker="$host_os dld.so"
15536 shlibpath_var=LD_LIBRARY_PATH
15537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 if test "X$HPUX_IA64_MODE" = X32; then
15541 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15542 else
15543 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15544 fi
15545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15546 ;;
15547 hppa*64*)
15548 shrext_cmds='.sl'
15549 hardcode_into_libs=yes
15550 dynamic_linker="$host_os dld.sl"
15551 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15557 ;;
15558 *)
15559 shrext_cmds='.sl'
15560 dynamic_linker="$host_os dld.sl"
15561 shlibpath_var=SHLIB_PATH
15562 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564 soname_spec='${libname}${release}${shared_ext}$major'
15565 ;;
15566 esac
cristy0c60a692010-11-04 01:09:47 +000015567 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015568 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015569 # or fails outright, so override atomically:
15570 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015571 ;;
15572
15573interix[3-9]*)
15574 version_type=linux
15575 need_lib_prefix=no
15576 need_version=no
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15580 shlibpath_var=LD_LIBRARY_PATH
15581 shlibpath_overrides_runpath=no
15582 hardcode_into_libs=yes
15583 ;;
15584
15585irix5* | irix6* | nonstopux*)
15586 case $host_os in
15587 nonstopux*) version_type=nonstopux ;;
15588 *)
15589 if test "$lt_cv_prog_gnu_ld" = yes; then
15590 version_type=linux
15591 else
15592 version_type=irix
15593 fi ;;
15594 esac
15595 need_lib_prefix=no
15596 need_version=no
15597 soname_spec='${libname}${release}${shared_ext}$major'
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15599 case $host_os in
15600 irix5* | nonstopux*)
15601 libsuff= shlibsuff=
15602 ;;
15603 *)
15604 case $LD in # libtool.m4 will add one of these switches to LD
15605 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15606 libsuff= shlibsuff= libmagic=32-bit;;
15607 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15608 libsuff=32 shlibsuff=N32 libmagic=N32;;
15609 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15610 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15611 *) libsuff= shlibsuff= libmagic=never-match;;
15612 esac
15613 ;;
15614 esac
15615 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15616 shlibpath_overrides_runpath=no
15617 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15618 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15619 hardcode_into_libs=yes
15620 ;;
15621
15622# No shared lib support for Linux oldld, aout, or coff.
15623linux*oldld* | linux*aout* | linux*coff*)
15624 dynamic_linker=no
15625 ;;
15626
15627# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015628linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015629 version_type=linux
15630 need_lib_prefix=no
15631 need_version=no
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633 soname_spec='${libname}${release}${shared_ext}$major'
15634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015637
cristy73bd4a52010-10-05 11:24:23 +000015638 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015639 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015640 $as_echo_n "(cached) " >&6
15641else
15642 lt_cv_shlibpath_overrides_runpath=no
15643 save_LDFLAGS=$LDFLAGS
15644 save_libdir=$libdir
15645 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15646 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015648/* end confdefs.h. */
15649
15650int
15651main ()
15652{
15653
15654 ;
15655 return 0;
15656}
15657_ACEOF
15658if ac_fn_c_try_link "$LINENO"; then :
15659 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015660 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015661fi
15662fi
15663rm -f core conftest.err conftest.$ac_objext \
15664 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015665 LDFLAGS=$save_LDFLAGS
15666 libdir=$save_libdir
15667
15668fi
15669
15670 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015671
15672 # This implies no fast_install, which is unacceptable.
15673 # Some rework will be needed to allow for fast_install
15674 # before this can be enabled.
15675 hardcode_into_libs=yes
15676
15677 # Add ABI-specific directories to the system library path.
15678 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15679
15680 # Append ld.so.conf contents to the search path
15681 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015682 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 +000015683 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015684
cristy73bd4a52010-10-05 11:24:23 +000015685 fi
15686
15687 # We used to test for /lib/ld.so.1 and disable shared libraries on
15688 # powerpc, because MkLinux only supported shared libraries with the
15689 # GNU dynamic linker. Since this was broken with cross compilers,
15690 # most powerpc-linux boxes support dynamic linking these days and
15691 # people can always --disable-shared, the test was removed, and we
15692 # assume the GNU/Linux dynamic linker is in use.
15693 dynamic_linker='GNU/Linux ld.so'
15694 ;;
15695
15696netbsd*)
15697 version_type=sunos
15698 need_lib_prefix=no
15699 need_version=no
15700 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15703 dynamic_linker='NetBSD (a.out) ld.so'
15704 else
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 dynamic_linker='NetBSD ld.elf_so'
15708 fi
15709 shlibpath_var=LD_LIBRARY_PATH
15710 shlibpath_overrides_runpath=yes
15711 hardcode_into_libs=yes
15712 ;;
15713
15714newsos6)
15715 version_type=linux
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 shlibpath_overrides_runpath=yes
15719 ;;
15720
15721*nto* | *qnx*)
15722 version_type=qnx
15723 need_lib_prefix=no
15724 need_version=no
15725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726 soname_spec='${libname}${release}${shared_ext}$major'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 shlibpath_overrides_runpath=no
15729 hardcode_into_libs=yes
15730 dynamic_linker='ldqnx.so'
15731 ;;
15732
15733openbsd*)
15734 version_type=sunos
15735 sys_lib_dlsearch_path_spec="/usr/lib"
15736 need_lib_prefix=no
15737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15738 case $host_os in
15739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15740 *) need_version=no ;;
15741 esac
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15744 shlibpath_var=LD_LIBRARY_PATH
15745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15746 case $host_os in
15747 openbsd2.[89] | openbsd2.[89].*)
15748 shlibpath_overrides_runpath=no
15749 ;;
15750 *)
15751 shlibpath_overrides_runpath=yes
15752 ;;
15753 esac
15754 else
15755 shlibpath_overrides_runpath=yes
15756 fi
15757 ;;
15758
15759os2*)
15760 libname_spec='$name'
15761 shrext_cmds=".dll"
15762 need_lib_prefix=no
15763 library_names_spec='$libname${shared_ext} $libname.a'
15764 dynamic_linker='OS/2 ld.exe'
15765 shlibpath_var=LIBPATH
15766 ;;
15767
15768osf3* | osf4* | osf5*)
15769 version_type=osf
15770 need_lib_prefix=no
15771 need_version=no
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 shlibpath_var=LD_LIBRARY_PATH
15775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15777 ;;
15778
15779rdos*)
15780 dynamic_linker=no
15781 ;;
15782
15783solaris*)
15784 version_type=linux
15785 need_lib_prefix=no
15786 need_version=no
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec='${libname}${release}${shared_ext}$major'
15789 shlibpath_var=LD_LIBRARY_PATH
15790 shlibpath_overrides_runpath=yes
15791 hardcode_into_libs=yes
15792 # ldd complains unless libraries are executable
15793 postinstall_cmds='chmod +x $lib'
15794 ;;
15795
15796sunos4*)
15797 version_type=sunos
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 shlibpath_overrides_runpath=yes
15802 if test "$with_gnu_ld" = yes; then
15803 need_lib_prefix=no
15804 fi
15805 need_version=yes
15806 ;;
15807
15808sysv4 | sysv4.3*)
15809 version_type=linux
15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811 soname_spec='${libname}${release}${shared_ext}$major'
15812 shlibpath_var=LD_LIBRARY_PATH
15813 case $host_vendor in
15814 sni)
15815 shlibpath_overrides_runpath=no
15816 need_lib_prefix=no
15817 runpath_var=LD_RUN_PATH
15818 ;;
15819 siemens)
15820 need_lib_prefix=no
15821 ;;
15822 motorola)
15823 need_lib_prefix=no
15824 need_version=no
15825 shlibpath_overrides_runpath=no
15826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15827 ;;
15828 esac
15829 ;;
15830
15831sysv4*MP*)
15832 if test -d /usr/nec ;then
15833 version_type=linux
15834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15835 soname_spec='$libname${shared_ext}.$major'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 fi
15838 ;;
15839
15840sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15841 version_type=freebsd-elf
15842 need_lib_prefix=no
15843 need_version=no
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15845 soname_spec='${libname}${release}${shared_ext}$major'
15846 shlibpath_var=LD_LIBRARY_PATH
15847 shlibpath_overrides_runpath=yes
15848 hardcode_into_libs=yes
15849 if test "$with_gnu_ld" = yes; then
15850 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15851 else
15852 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15853 case $host_os in
15854 sco3.2v5*)
15855 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15856 ;;
15857 esac
15858 fi
15859 sys_lib_dlsearch_path_spec='/usr/lib'
15860 ;;
15861
15862tpf*)
15863 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15864 version_type=linux
15865 need_lib_prefix=no
15866 need_version=no
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15868 shlibpath_var=LD_LIBRARY_PATH
15869 shlibpath_overrides_runpath=no
15870 hardcode_into_libs=yes
15871 ;;
15872
15873uts4*)
15874 version_type=linux
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15876 soname_spec='${libname}${release}${shared_ext}$major'
15877 shlibpath_var=LD_LIBRARY_PATH
15878 ;;
15879
15880*)
15881 dynamic_linker=no
15882 ;;
15883esac
15884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15885$as_echo "$dynamic_linker" >&6; }
15886test "$dynamic_linker" = no && can_build_shared=no
15887
15888variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15889if test "$GCC" = yes; then
15890 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15891fi
15892
15893if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15894 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15895fi
15896if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15897 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15898fi
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
cristy0c60a692010-11-04 01:09:47 +000015986
15987
15988
15989
15990
cristy73bd4a52010-10-05 11:24:23 +000015991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15992$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15993hardcode_action=
15994if test -n "$hardcode_libdir_flag_spec" ||
15995 test -n "$runpath_var" ||
15996 test "X$hardcode_automatic" = "Xyes" ; then
15997
15998 # We can hardcode non-existent directories.
15999 if test "$hardcode_direct" != no &&
16000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16001 # have to relink, otherwise we might link with an installed library
16002 # when we should be linking with a yet-to-be-installed one
16003 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16004 test "$hardcode_minus_L" != no; then
16005 # Linking always hardcodes the temporary library directory.
16006 hardcode_action=relink
16007 else
16008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16009 hardcode_action=immediate
16010 fi
16011else
16012 # We cannot hardcode anything, or else we can only hardcode existing
16013 # directories.
16014 hardcode_action=unsupported
16015fi
16016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16017$as_echo "$hardcode_action" >&6; }
16018
16019if test "$hardcode_action" = relink ||
16020 test "$inherit_rpath" = yes; then
16021 # Fast installation is not supported
16022 enable_fast_install=no
16023elif test "$shlibpath_overrides_runpath" = yes ||
16024 test "$enable_shared" = no; then
16025 # Fast installation is not necessary
16026 enable_fast_install=needless
16027fi
16028
16029
16030
16031
16032
16033
16034 if test "x$enable_dlopen" != xyes; then
16035 enable_dlopen=unknown
16036 enable_dlopen_self=unknown
16037 enable_dlopen_self_static=unknown
16038else
16039 lt_cv_dlopen=no
16040 lt_cv_dlopen_libs=
16041
16042 case $host_os in
16043 beos*)
16044 lt_cv_dlopen="load_add_on"
16045 lt_cv_dlopen_libs=
16046 lt_cv_dlopen_self=yes
16047 ;;
16048
16049 mingw* | pw32* | cegcc*)
16050 lt_cv_dlopen="LoadLibrary"
16051 lt_cv_dlopen_libs=
16052 ;;
16053
16054 cygwin*)
16055 lt_cv_dlopen="dlopen"
16056 lt_cv_dlopen_libs=
16057 ;;
16058
16059 darwin*)
16060 # if libdl is installed we need to link against it
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16062$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016063if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016064 $as_echo_n "(cached) " >&6
16065else
16066 ac_check_lib_save_LIBS=$LIBS
16067LIBS="-ldl $LIBS"
16068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069/* end confdefs.h. */
16070
16071/* Override any GCC internal prototype to avoid an error.
16072 Use char because int might match the return type of a GCC
16073 builtin and then its argument prototype would still apply. */
16074#ifdef __cplusplus
16075extern "C"
16076#endif
16077char dlopen ();
16078int
16079main ()
16080{
16081return dlopen ();
16082 ;
16083 return 0;
16084}
16085_ACEOF
16086if ac_fn_c_try_link "$LINENO"; then :
16087 ac_cv_lib_dl_dlopen=yes
16088else
16089 ac_cv_lib_dl_dlopen=no
16090fi
16091rm -f core conftest.err conftest.$ac_objext \
16092 conftest$ac_exeext conftest.$ac_ext
16093LIBS=$ac_check_lib_save_LIBS
16094fi
16095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16096$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016097if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16099else
16100
16101 lt_cv_dlopen="dyld"
16102 lt_cv_dlopen_libs=
16103 lt_cv_dlopen_self=yes
16104
16105fi
16106
16107 ;;
16108
16109 *)
16110 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016111if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016112 lt_cv_dlopen="shl_load"
16113else
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16115$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016116if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016117 $as_echo_n "(cached) " >&6
16118else
16119 ac_check_lib_save_LIBS=$LIBS
16120LIBS="-ldld $LIBS"
16121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122/* end confdefs.h. */
16123
16124/* Override any GCC internal prototype to avoid an error.
16125 Use char because int might match the return type of a GCC
16126 builtin and then its argument prototype would still apply. */
16127#ifdef __cplusplus
16128extern "C"
16129#endif
16130char shl_load ();
16131int
16132main ()
16133{
16134return shl_load ();
16135 ;
16136 return 0;
16137}
16138_ACEOF
16139if ac_fn_c_try_link "$LINENO"; then :
16140 ac_cv_lib_dld_shl_load=yes
16141else
16142 ac_cv_lib_dld_shl_load=no
16143fi
16144rm -f core conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext conftest.$ac_ext
16146LIBS=$ac_check_lib_save_LIBS
16147fi
16148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16149$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016150if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016151 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16152else
16153 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016154if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016155 lt_cv_dlopen="dlopen"
16156else
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16158$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016159if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016160 $as_echo_n "(cached) " >&6
16161else
16162 ac_check_lib_save_LIBS=$LIBS
16163LIBS="-ldl $LIBS"
16164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165/* end confdefs.h. */
16166
16167/* Override any GCC internal prototype to avoid an error.
16168 Use char because int might match the return type of a GCC
16169 builtin and then its argument prototype would still apply. */
16170#ifdef __cplusplus
16171extern "C"
16172#endif
16173char dlopen ();
16174int
16175main ()
16176{
16177return dlopen ();
16178 ;
16179 return 0;
16180}
16181_ACEOF
16182if ac_fn_c_try_link "$LINENO"; then :
16183 ac_cv_lib_dl_dlopen=yes
16184else
16185 ac_cv_lib_dl_dlopen=no
16186fi
16187rm -f core conftest.err conftest.$ac_objext \
16188 conftest$ac_exeext conftest.$ac_ext
16189LIBS=$ac_check_lib_save_LIBS
16190fi
16191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16192$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016193if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016194 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16195else
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16197$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016198if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016199 $as_echo_n "(cached) " >&6
16200else
16201 ac_check_lib_save_LIBS=$LIBS
16202LIBS="-lsvld $LIBS"
16203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204/* end confdefs.h. */
16205
16206/* Override any GCC internal prototype to avoid an error.
16207 Use char because int might match the return type of a GCC
16208 builtin and then its argument prototype would still apply. */
16209#ifdef __cplusplus
16210extern "C"
16211#endif
16212char dlopen ();
16213int
16214main ()
16215{
16216return dlopen ();
16217 ;
16218 return 0;
16219}
16220_ACEOF
16221if ac_fn_c_try_link "$LINENO"; then :
16222 ac_cv_lib_svld_dlopen=yes
16223else
16224 ac_cv_lib_svld_dlopen=no
16225fi
16226rm -f core conftest.err conftest.$ac_objext \
16227 conftest$ac_exeext conftest.$ac_ext
16228LIBS=$ac_check_lib_save_LIBS
16229fi
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16231$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016232if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016233 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16234else
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16236$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016237if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016238 $as_echo_n "(cached) " >&6
16239else
16240 ac_check_lib_save_LIBS=$LIBS
16241LIBS="-ldld $LIBS"
16242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243/* end confdefs.h. */
16244
16245/* Override any GCC internal prototype to avoid an error.
16246 Use char because int might match the return type of a GCC
16247 builtin and then its argument prototype would still apply. */
16248#ifdef __cplusplus
16249extern "C"
16250#endif
16251char dld_link ();
16252int
16253main ()
16254{
16255return dld_link ();
16256 ;
16257 return 0;
16258}
16259_ACEOF
16260if ac_fn_c_try_link "$LINENO"; then :
16261 ac_cv_lib_dld_dld_link=yes
16262else
16263 ac_cv_lib_dld_dld_link=no
16264fi
16265rm -f core conftest.err conftest.$ac_objext \
16266 conftest$ac_exeext conftest.$ac_ext
16267LIBS=$ac_check_lib_save_LIBS
16268fi
16269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16270$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016271if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016272 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16273fi
16274
16275
16276fi
16277
16278
16279fi
16280
16281
16282fi
16283
16284
16285fi
16286
16287
16288fi
16289
16290 ;;
16291 esac
16292
16293 if test "x$lt_cv_dlopen" != xno; then
16294 enable_dlopen=yes
16295 else
16296 enable_dlopen=no
16297 fi
16298
16299 case $lt_cv_dlopen in
16300 dlopen)
16301 save_CPPFLAGS="$CPPFLAGS"
16302 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16303
16304 save_LDFLAGS="$LDFLAGS"
16305 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16306
16307 save_LIBS="$LIBS"
16308 LIBS="$lt_cv_dlopen_libs $LIBS"
16309
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16311$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016312if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016313 $as_echo_n "(cached) " >&6
16314else
16315 if test "$cross_compiling" = yes; then :
16316 lt_cv_dlopen_self=cross
16317else
16318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16319 lt_status=$lt_dlunknown
16320 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016321#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016322#include "confdefs.h"
16323
16324#if HAVE_DLFCN_H
16325#include <dlfcn.h>
16326#endif
16327
16328#include <stdio.h>
16329
16330#ifdef RTLD_GLOBAL
16331# define LT_DLGLOBAL RTLD_GLOBAL
16332#else
16333# ifdef DL_GLOBAL
16334# define LT_DLGLOBAL DL_GLOBAL
16335# else
16336# define LT_DLGLOBAL 0
16337# endif
16338#endif
16339
16340/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16341 find out it does not work in some platform. */
16342#ifndef LT_DLLAZY_OR_NOW
16343# ifdef RTLD_LAZY
16344# define LT_DLLAZY_OR_NOW RTLD_LAZY
16345# else
16346# ifdef DL_LAZY
16347# define LT_DLLAZY_OR_NOW DL_LAZY
16348# else
16349# ifdef RTLD_NOW
16350# define LT_DLLAZY_OR_NOW RTLD_NOW
16351# else
16352# ifdef DL_NOW
16353# define LT_DLLAZY_OR_NOW DL_NOW
16354# else
16355# define LT_DLLAZY_OR_NOW 0
16356# endif
16357# endif
16358# endif
16359# endif
16360#endif
16361
cristy0c60a692010-11-04 01:09:47 +000016362/* When -fvisbility=hidden is used, assume the code has been annotated
16363 correspondingly for the symbols needed. */
16364#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016365int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016366#endif
16367
cristyda16f162011-02-19 23:52:17 +000016368int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016369int main ()
16370{
16371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16372 int status = $lt_dlunknown;
16373
16374 if (self)
16375 {
16376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016377 else
16378 {
16379 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16380 else puts (dlerror ());
16381 }
cristy73bd4a52010-10-05 11:24:23 +000016382 /* dlclose (self); */
16383 }
16384 else
16385 puts (dlerror ());
16386
16387 return status;
16388}
16389_LT_EOF
16390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16391 (eval $ac_link) 2>&5
16392 ac_status=$?
16393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16394 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16395 (./conftest; exit; ) >&5 2>/dev/null
16396 lt_status=$?
16397 case x$lt_status in
16398 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16399 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16400 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16401 esac
16402 else :
16403 # compilation failed
16404 lt_cv_dlopen_self=no
16405 fi
16406fi
16407rm -fr conftest*
16408
16409
16410fi
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16412$as_echo "$lt_cv_dlopen_self" >&6; }
16413
16414 if test "x$lt_cv_dlopen_self" = xyes; then
16415 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16417$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016418if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016419 $as_echo_n "(cached) " >&6
16420else
16421 if test "$cross_compiling" = yes; then :
16422 lt_cv_dlopen_self_static=cross
16423else
16424 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16425 lt_status=$lt_dlunknown
16426 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016427#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016428#include "confdefs.h"
16429
16430#if HAVE_DLFCN_H
16431#include <dlfcn.h>
16432#endif
16433
16434#include <stdio.h>
16435
16436#ifdef RTLD_GLOBAL
16437# define LT_DLGLOBAL RTLD_GLOBAL
16438#else
16439# ifdef DL_GLOBAL
16440# define LT_DLGLOBAL DL_GLOBAL
16441# else
16442# define LT_DLGLOBAL 0
16443# endif
16444#endif
16445
16446/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16447 find out it does not work in some platform. */
16448#ifndef LT_DLLAZY_OR_NOW
16449# ifdef RTLD_LAZY
16450# define LT_DLLAZY_OR_NOW RTLD_LAZY
16451# else
16452# ifdef DL_LAZY
16453# define LT_DLLAZY_OR_NOW DL_LAZY
16454# else
16455# ifdef RTLD_NOW
16456# define LT_DLLAZY_OR_NOW RTLD_NOW
16457# else
16458# ifdef DL_NOW
16459# define LT_DLLAZY_OR_NOW DL_NOW
16460# else
16461# define LT_DLLAZY_OR_NOW 0
16462# endif
16463# endif
16464# endif
16465# endif
16466#endif
16467
cristy0c60a692010-11-04 01:09:47 +000016468/* When -fvisbility=hidden is used, assume the code has been annotated
16469 correspondingly for the symbols needed. */
16470#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016471int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016472#endif
16473
cristyda16f162011-02-19 23:52:17 +000016474int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016475int main ()
16476{
16477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16478 int status = $lt_dlunknown;
16479
16480 if (self)
16481 {
16482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016483 else
16484 {
16485 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16486 else puts (dlerror ());
16487 }
cristy73bd4a52010-10-05 11:24:23 +000016488 /* dlclose (self); */
16489 }
16490 else
16491 puts (dlerror ());
16492
16493 return status;
16494}
16495_LT_EOF
16496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16497 (eval $ac_link) 2>&5
16498 ac_status=$?
16499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16500 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16501 (./conftest; exit; ) >&5 2>/dev/null
16502 lt_status=$?
16503 case x$lt_status in
16504 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16505 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16506 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16507 esac
16508 else :
16509 # compilation failed
16510 lt_cv_dlopen_self_static=no
16511 fi
16512fi
16513rm -fr conftest*
16514
16515
16516fi
16517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16518$as_echo "$lt_cv_dlopen_self_static" >&6; }
16519 fi
16520
16521 CPPFLAGS="$save_CPPFLAGS"
16522 LDFLAGS="$save_LDFLAGS"
16523 LIBS="$save_LIBS"
16524 ;;
16525 esac
16526
16527 case $lt_cv_dlopen_self in
16528 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16529 *) enable_dlopen_self=unknown ;;
16530 esac
16531
16532 case $lt_cv_dlopen_self_static in
16533 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16534 *) enable_dlopen_self_static=unknown ;;
16535 esac
16536fi
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554striplib=
16555old_striplib=
16556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16557$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16558if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16559 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16560 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16562$as_echo "yes" >&6; }
16563else
16564# FIXME - insert some real tests, host_os isn't really good enough
16565 case $host_os in
16566 darwin*)
16567 if test -n "$STRIP" ; then
16568 striplib="$STRIP -x"
16569 old_striplib="$STRIP -S"
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16571$as_echo "yes" >&6; }
16572 else
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16574$as_echo "no" >&6; }
16575 fi
16576 ;;
16577 *)
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579$as_echo "no" >&6; }
16580 ;;
16581 esac
16582fi
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595 # Report which library types will actually be built
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16597$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16599$as_echo "$can_build_shared" >&6; }
16600
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16602$as_echo_n "checking whether to build shared libraries... " >&6; }
16603 test "$can_build_shared" = "no" && enable_shared=no
16604
16605 # On AIX, shared libraries and static libraries use the same namespace, and
16606 # are all built from PIC.
16607 case $host_os in
16608 aix3*)
16609 test "$enable_shared" = yes && enable_static=no
16610 if test -n "$RANLIB"; then
16611 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16612 postinstall_cmds='$RANLIB $lib'
16613 fi
16614 ;;
16615
16616 aix[4-9]*)
16617 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16618 test "$enable_shared" = yes && enable_static=no
16619 fi
16620 ;;
16621 esac
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16623$as_echo "$enable_shared" >&6; }
16624
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16626$as_echo_n "checking whether to build static libraries... " >&6; }
16627 # Make sure either enable_shared or enable_static is yes.
16628 test "$enable_shared" = yes || enable_static=yes
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16630$as_echo "$enable_static" >&6; }
16631
16632
16633
16634
16635fi
16636ac_ext=c
16637ac_cpp='$CPP $CPPFLAGS'
16638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16640ac_compiler_gnu=$ac_cv_c_compiler_gnu
16641
16642CC="$lt_save_CC"
16643
cristy0c60a692010-11-04 01:09:47 +000016644 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16645 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16646 (test "X$CXX" != "Xg++"))) ; then
16647 ac_ext=cpp
16648ac_cpp='$CXXCPP $CPPFLAGS'
16649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16653$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16654if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016655 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016656 $as_echo_n "(cached) " >&6
16657else
16658 # Double quotes because CXXCPP needs to be expanded
16659 for CXXCPP in "$CXX -E" "/lib/cpp"
16660 do
16661 ac_preproc_ok=false
16662for ac_cxx_preproc_warn_flag in '' yes
16663do
16664 # Use a header file that comes with gcc, so configuring glibc
16665 # with a fresh cross-compiler works.
16666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16667 # <limits.h> exists even on freestanding compilers.
16668 # On the NeXT, cc -E runs the code through the compiler's parser,
16669 # not just through cpp. "Syntax error" is here to catch this case.
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671/* end confdefs.h. */
16672#ifdef __STDC__
16673# include <limits.h>
16674#else
16675# include <assert.h>
16676#endif
16677 Syntax error
16678_ACEOF
16679if ac_fn_cxx_try_cpp "$LINENO"; then :
16680
16681else
16682 # Broken: fails on valid input.
16683continue
16684fi
cristyda16f162011-02-19 23:52:17 +000016685rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016686
16687 # OK, works on sane cases. Now check whether nonexistent headers
16688 # can be detected and how.
16689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690/* end confdefs.h. */
16691#include <ac_nonexistent.h>
16692_ACEOF
16693if ac_fn_cxx_try_cpp "$LINENO"; then :
16694 # Broken: success on invalid input.
16695continue
16696else
16697 # Passes both tests.
16698ac_preproc_ok=:
16699break
16700fi
cristyda16f162011-02-19 23:52:17 +000016701rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016702
16703done
16704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016705rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016706if $ac_preproc_ok; then :
16707 break
16708fi
16709
16710 done
16711 ac_cv_prog_CXXCPP=$CXXCPP
16712
16713fi
16714 CXXCPP=$ac_cv_prog_CXXCPP
16715else
16716 ac_cv_prog_CXXCPP=$CXXCPP
16717fi
16718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16719$as_echo "$CXXCPP" >&6; }
16720ac_preproc_ok=false
16721for ac_cxx_preproc_warn_flag in '' yes
16722do
16723 # Use a header file that comes with gcc, so configuring glibc
16724 # with a fresh cross-compiler works.
16725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16726 # <limits.h> exists even on freestanding compilers.
16727 # On the NeXT, cc -E runs the code through the compiler's parser,
16728 # not just through cpp. "Syntax error" is here to catch this case.
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730/* end confdefs.h. */
16731#ifdef __STDC__
16732# include <limits.h>
16733#else
16734# include <assert.h>
16735#endif
16736 Syntax error
16737_ACEOF
16738if ac_fn_cxx_try_cpp "$LINENO"; then :
16739
16740else
16741 # Broken: fails on valid input.
16742continue
16743fi
cristyda16f162011-02-19 23:52:17 +000016744rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016745
16746 # OK, works on sane cases. Now check whether nonexistent headers
16747 # can be detected and how.
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749/* end confdefs.h. */
16750#include <ac_nonexistent.h>
16751_ACEOF
16752if ac_fn_cxx_try_cpp "$LINENO"; then :
16753 # Broken: success on invalid input.
16754continue
16755else
16756 # Passes both tests.
16757ac_preproc_ok=:
16758break
16759fi
cristyda16f162011-02-19 23:52:17 +000016760rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016761
16762done
16763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016764rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016765if $ac_preproc_ok; then :
16766
16767else
16768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16770as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16771See \`config.log' for more details" "$LINENO" 5; }
16772fi
16773
16774ac_ext=c
16775ac_cpp='$CPP $CPPFLAGS'
16776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16778ac_compiler_gnu=$ac_cv_c_compiler_gnu
16779
16780else
16781 _lt_caught_CXX_error=yes
16782fi
cristy73bd4a52010-10-05 11:24:23 +000016783
16784ac_ext=cpp
16785ac_cpp='$CXXCPP $CPPFLAGS'
16786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16789
16790archive_cmds_need_lc_CXX=no
16791allow_undefined_flag_CXX=
16792always_export_symbols_CXX=no
16793archive_expsym_cmds_CXX=
16794compiler_needs_object_CXX=no
16795export_dynamic_flag_spec_CXX=
16796hardcode_direct_CXX=no
16797hardcode_direct_absolute_CXX=no
16798hardcode_libdir_flag_spec_CXX=
16799hardcode_libdir_flag_spec_ld_CXX=
16800hardcode_libdir_separator_CXX=
16801hardcode_minus_L_CXX=no
16802hardcode_shlibpath_var_CXX=unsupported
16803hardcode_automatic_CXX=no
16804inherit_rpath_CXX=no
16805module_cmds_CXX=
16806module_expsym_cmds_CXX=
16807link_all_deplibs_CXX=unknown
16808old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016809reload_flag_CXX=$reload_flag
16810reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016811no_undefined_flag_CXX=
16812whole_archive_flag_spec_CXX=
16813enable_shared_with_static_runtimes_CXX=no
16814
16815# Source file extension for C++ test sources.
16816ac_ext=cpp
16817
16818# Object file extension for compiled C++ test sources.
16819objext=o
16820objext_CXX=$objext
16821
16822# No sense in running all these tests if we already determined that
16823# the CXX compiler isn't working. Some variables (like enable_shared)
16824# are currently assumed to apply to all compilers on this platform,
16825# and will be corrupted by setting them based on a non-working compiler.
16826if test "$_lt_caught_CXX_error" != yes; then
16827 # Code to be used in simple compile tests
16828 lt_simple_compile_test_code="int some_variable = 0;"
16829
16830 # Code to be used in simple link tests
16831 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16832
16833 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16834
16835
16836
16837
16838
16839
16840# If no C compiler was specified, use CC.
16841LTCC=${LTCC-"$CC"}
16842
16843# If no C compiler flags were specified, use CFLAGS.
16844LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16845
16846# Allow CC to be a program name with arguments.
16847compiler=$CC
16848
16849
16850 # save warnings/boilerplate of simple test code
16851 ac_outfile=conftest.$ac_objext
16852echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16854_lt_compiler_boilerplate=`cat conftest.err`
16855$RM conftest*
16856
16857 ac_outfile=conftest.$ac_objext
16858echo "$lt_simple_link_test_code" >conftest.$ac_ext
16859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16860_lt_linker_boilerplate=`cat conftest.err`
16861$RM -r conftest*
16862
16863
16864 # Allow CC to be a program name with arguments.
16865 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016866 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016867 lt_save_LD=$LD
16868 lt_save_GCC=$GCC
16869 GCC=$GXX
16870 lt_save_with_gnu_ld=$with_gnu_ld
16871 lt_save_path_LD=$lt_cv_path_LD
16872 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16873 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16874 else
16875 $as_unset lt_cv_prog_gnu_ld
16876 fi
16877 if test -n "${lt_cv_path_LDCXX+set}"; then
16878 lt_cv_path_LD=$lt_cv_path_LDCXX
16879 else
16880 $as_unset lt_cv_path_LD
16881 fi
16882 test -z "${LDCXX+set}" || LD=$LDCXX
16883 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016884 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016885 compiler=$CC
16886 compiler_CXX=$CC
16887 for cc_temp in $compiler""; do
16888 case $cc_temp in
16889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16891 \-*) ;;
16892 *) break;;
16893 esac
16894done
cristy0c60a692010-11-04 01:09:47 +000016895cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016896
16897
16898 if test -n "$compiler"; then
16899 # We don't want -fno-exception when compiling C++ code, so set the
16900 # no_builtin_flag separately
16901 if test "$GXX" = yes; then
16902 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16903 else
16904 lt_prog_compiler_no_builtin_flag_CXX=
16905 fi
16906
16907 if test "$GXX" = yes; then
16908 # Set up default GNU C++ configuration
16909
16910
16911
16912# Check whether --with-gnu-ld was given.
16913if test "${with_gnu_ld+set}" = set; then :
16914 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16915else
16916 with_gnu_ld=no
16917fi
16918
16919ac_prog=ld
16920if test "$GCC" = yes; then
16921 # Check if gcc -print-prog-name=ld gives a path.
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16923$as_echo_n "checking for ld used by $CC... " >&6; }
16924 case $host in
16925 *-*-mingw*)
16926 # gcc leaves a trailing carriage return which upsets mingw
16927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16928 *)
16929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16930 esac
16931 case $ac_prog in
16932 # Accept absolute paths.
16933 [\\/]* | ?:[\\/]*)
16934 re_direlt='/[^/][^/]*/\.\./'
16935 # Canonicalize the pathname of ld
16936 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16937 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16938 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16939 done
16940 test -z "$LD" && LD="$ac_prog"
16941 ;;
16942 "")
16943 # If it fails, then pretend we aren't using GCC.
16944 ac_prog=ld
16945 ;;
16946 *)
16947 # If it is relative, then search for the first ld in PATH.
16948 with_gnu_ld=unknown
16949 ;;
16950 esac
16951elif test "$with_gnu_ld" = yes; then
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16953$as_echo_n "checking for GNU ld... " >&6; }
16954else
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16956$as_echo_n "checking for non-GNU ld... " >&6; }
16957fi
cristyda16f162011-02-19 23:52:17 +000016958if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016959 $as_echo_n "(cached) " >&6
16960else
16961 if test -z "$LD"; then
16962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16963 for ac_dir in $PATH; do
16964 IFS="$lt_save_ifs"
16965 test -z "$ac_dir" && ac_dir=.
16966 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16967 lt_cv_path_LD="$ac_dir/$ac_prog"
16968 # Check to see if the program is GNU ld. I'd rather use --version,
16969 # but apparently some variants of GNU ld only accept -v.
16970 # Break only if it was the GNU/non-GNU ld that we prefer.
16971 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16972 *GNU* | *'with BFD'*)
16973 test "$with_gnu_ld" != no && break
16974 ;;
16975 *)
16976 test "$with_gnu_ld" != yes && break
16977 ;;
16978 esac
16979 fi
16980 done
16981 IFS="$lt_save_ifs"
16982else
16983 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16984fi
16985fi
16986
16987LD="$lt_cv_path_LD"
16988if test -n "$LD"; then
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16990$as_echo "$LD" >&6; }
16991else
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16993$as_echo "no" >&6; }
16994fi
cristy98dddb52010-11-04 00:30:15 +000016995test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16997$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016998if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016999 $as_echo_n "(cached) " >&6
17000else
17001 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17002case `$LD -v 2>&1 </dev/null` in
17003*GNU* | *'with BFD'*)
17004 lt_cv_prog_gnu_ld=yes
17005 ;;
17006*)
17007 lt_cv_prog_gnu_ld=no
17008 ;;
17009esac
17010fi
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17012$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17013with_gnu_ld=$lt_cv_prog_gnu_ld
17014
17015
17016
17017
17018
17019
17020
17021 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17022 # archiving commands below assume that GNU ld is being used.
17023 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017024 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17025 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 +000017026
17027 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17029
17030 # If archive_cmds runs LD, not CC, wlarc should be empty
17031 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17032 # investigate it a little bit more. (MM)
17033 wlarc='${wl}'
17034
17035 # ancient GNU ld didn't support --whole-archive et. al.
17036 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17037 $GREP 'no-whole-archive' > /dev/null; then
17038 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17039 else
17040 whole_archive_flag_spec_CXX=
17041 fi
17042 else
17043 with_gnu_ld=no
17044 wlarc=
17045
17046 # A generic and very simple default shared library creation
17047 # command for GNU C++ for the case where it uses the native
17048 # linker, instead of GNU ld. If possible, this setting should
17049 # overridden to take advantage of the native linker features on
17050 # the platform it is being used on.
17051 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17052 fi
17053
17054 # Commands to make compiler produce verbose output that lists
17055 # what "hidden" libraries, object files and flags are used when
17056 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017058
17059 else
17060 GXX=no
17061 with_gnu_ld=no
17062 wlarc=
17063 fi
17064
17065 # PORTME: fill in a description of your system's C++ link characteristics
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17067$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17068 ld_shlibs_CXX=yes
17069 case $host_os in
17070 aix3*)
17071 # FIXME: insert proper C++ library support
17072 ld_shlibs_CXX=no
17073 ;;
17074 aix[4-9]*)
17075 if test "$host_cpu" = ia64; then
17076 # On IA64, the linker does run time linking by default, so we don't
17077 # have to do anything special.
17078 aix_use_runtimelinking=no
17079 exp_sym_flag='-Bexport'
17080 no_entry_flag=""
17081 else
17082 aix_use_runtimelinking=no
17083
17084 # Test if we are trying to use run time linking or normal
17085 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17086 # need to do runtime linking.
17087 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17088 for ld_flag in $LDFLAGS; do
17089 case $ld_flag in
17090 *-brtl*)
17091 aix_use_runtimelinking=yes
17092 break
17093 ;;
17094 esac
17095 done
17096 ;;
17097 esac
17098
17099 exp_sym_flag='-bexport'
17100 no_entry_flag='-bnoentry'
17101 fi
17102
17103 # When large executables or shared objects are built, AIX ld can
17104 # have problems creating the table of contents. If linking a library
17105 # or program results in "error TOC overflow" add -mminimal-toc to
17106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17108
17109 archive_cmds_CXX=''
17110 hardcode_direct_CXX=yes
17111 hardcode_direct_absolute_CXX=yes
17112 hardcode_libdir_separator_CXX=':'
17113 link_all_deplibs_CXX=yes
17114 file_list_spec_CXX='${wl}-f,'
17115
17116 if test "$GXX" = yes; then
17117 case $host_os in aix4.[012]|aix4.[012].*)
17118 # We only want to do this on AIX 4.2 and lower, the check
17119 # below for broken collect2 doesn't work under 4.3+
17120 collect2name=`${CC} -print-prog-name=collect2`
17121 if test -f "$collect2name" &&
17122 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17123 then
17124 # We have reworked collect2
17125 :
17126 else
17127 # We have old collect2
17128 hardcode_direct_CXX=unsupported
17129 # It fails to find uninstalled libraries when the uninstalled
17130 # path is not listed in the libpath. Setting hardcode_minus_L
17131 # to unsupported forces relinking
17132 hardcode_minus_L_CXX=yes
17133 hardcode_libdir_flag_spec_CXX='-L$libdir'
17134 hardcode_libdir_separator_CXX=
17135 fi
17136 esac
17137 shared_flag='-shared'
17138 if test "$aix_use_runtimelinking" = yes; then
17139 shared_flag="$shared_flag "'${wl}-G'
17140 fi
17141 else
17142 # not using gcc
17143 if test "$host_cpu" = ia64; then
17144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17145 # chokes on -Wl,-G. The following line is correct:
17146 shared_flag='-G'
17147 else
17148 if test "$aix_use_runtimelinking" = yes; then
17149 shared_flag='${wl}-G'
17150 else
17151 shared_flag='${wl}-bM:SRE'
17152 fi
17153 fi
17154 fi
17155
17156 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17157 # It seems that -bexpall does not export symbols beginning with
17158 # underscore (_), so it is better to generate a list of symbols to
17159 # export.
17160 always_export_symbols_CXX=yes
17161 if test "$aix_use_runtimelinking" = yes; then
17162 # Warning - without using the other runtime loading flags (-brtl),
17163 # -berok will link without error, but may produce a broken library.
17164 allow_undefined_flag_CXX='-berok'
17165 # Determine the default libpath from the value encoded in an empty
17166 # executable.
cristyda16f162011-02-19 23:52:17 +000017167 if test "${lt_cv_aix_libpath+set}" = set; then
17168 aix_libpath=$lt_cv_aix_libpath
17169else
17170 if ${lt_cv_aix_libpath__CXX+:} false; then :
17171 $as_echo_n "(cached) " >&6
17172else
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017174/* end confdefs.h. */
17175
17176int
17177main ()
17178{
17179
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184if ac_fn_cxx_try_link "$LINENO"; then :
17185
cristyda16f162011-02-19 23:52:17 +000017186 lt_aix_libpath_sed='
17187 /Import File Strings/,/^$/ {
17188 /^0/ {
17189 s/^0 *\([^ ]*\) *$/\1/
17190 p
17191 }
17192 }'
17193 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17194 # Check for a 64-bit object if we didn't find anything.
17195 if test -z "$lt_cv_aix_libpath__CXX"; then
17196 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17197 fi
cristy73bd4a52010-10-05 11:24:23 +000017198fi
17199rm -f core conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017201 if test -z "$lt_cv_aix_libpath__CXX"; then
17202 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17203 fi
17204
17205fi
17206
17207 aix_libpath=$lt_cv_aix_libpath__CXX
17208fi
cristy73bd4a52010-10-05 11:24:23 +000017209
17210 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17211
cristy0c60a692010-11-04 01:09:47 +000017212 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 +000017213 else
17214 if test "$host_cpu" = ia64; then
17215 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17216 allow_undefined_flag_CXX="-z nodefs"
17217 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"
17218 else
17219 # Determine the default libpath from the value encoded in an
17220 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017221 if test "${lt_cv_aix_libpath+set}" = set; then
17222 aix_libpath=$lt_cv_aix_libpath
17223else
17224 if ${lt_cv_aix_libpath__CXX+:} false; then :
17225 $as_echo_n "(cached) " >&6
17226else
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017228/* end confdefs.h. */
17229
17230int
17231main ()
17232{
17233
17234 ;
17235 return 0;
17236}
17237_ACEOF
17238if ac_fn_cxx_try_link "$LINENO"; then :
17239
cristyda16f162011-02-19 23:52:17 +000017240 lt_aix_libpath_sed='
17241 /Import File Strings/,/^$/ {
17242 /^0/ {
17243 s/^0 *\([^ ]*\) *$/\1/
17244 p
17245 }
17246 }'
17247 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17248 # Check for a 64-bit object if we didn't find anything.
17249 if test -z "$lt_cv_aix_libpath__CXX"; then
17250 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17251 fi
cristy73bd4a52010-10-05 11:24:23 +000017252fi
17253rm -f core conftest.err conftest.$ac_objext \
17254 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017255 if test -z "$lt_cv_aix_libpath__CXX"; then
17256 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17257 fi
17258
17259fi
17260
17261 aix_libpath=$lt_cv_aix_libpath__CXX
17262fi
cristy73bd4a52010-10-05 11:24:23 +000017263
17264 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17265 # Warning - without using the other run time loading flags,
17266 # -berok will link without error, but may produce a broken library.
17267 no_undefined_flag_CXX=' ${wl}-bernotok'
17268 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017269 if test "$with_gnu_ld" = yes; then
17270 # We only use this code for GNU lds that support --whole-archive.
17271 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17272 else
17273 # Exported symbols can be pulled into shared objects from archives
17274 whole_archive_flag_spec_CXX='$convenience'
17275 fi
cristy73bd4a52010-10-05 11:24:23 +000017276 archive_cmds_need_lc_CXX=yes
17277 # This is similar to how AIX traditionally builds its shared
17278 # libraries.
17279 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'
17280 fi
17281 fi
17282 ;;
17283
17284 beos*)
17285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17286 allow_undefined_flag_CXX=unsupported
17287 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17288 # support --undefined. This deserves some investigation. FIXME
17289 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17290 else
17291 ld_shlibs_CXX=no
17292 fi
17293 ;;
17294
17295 chorus*)
17296 case $cc_basename in
17297 *)
17298 # FIXME: insert proper C++ library support
17299 ld_shlibs_CXX=no
17300 ;;
17301 esac
17302 ;;
17303
17304 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017305 case $GXX,$cc_basename in
17306 ,cl* | no,cl*)
17307 # Native MSVC
17308 # hardcode_libdir_flag_spec is actually meaningless, as there is
17309 # no search path for DLLs.
17310 hardcode_libdir_flag_spec_CXX=' '
17311 allow_undefined_flag_CXX=unsupported
17312 always_export_symbols_CXX=yes
17313 file_list_spec_CXX='@'
17314 # Tell ltmain to make .lib files, not .a files.
17315 libext=lib
17316 # Tell ltmain to make .dll files, not .so files.
17317 shrext_cmds=".dll"
17318 # FIXME: Setting linknames here is a bad hack.
17319 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17320 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17321 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17322 else
17323 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17324 fi~
17325 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17326 linknames='
17327 # The linker will not automatically build a static lib if we build a DLL.
17328 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17329 enable_shared_with_static_runtimes_CXX=yes
17330 # Don't use ranlib
17331 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17332 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17333 lt_tool_outputfile="@TOOL_OUTPUT@"~
17334 case $lt_outputfile in
17335 *.exe|*.EXE) ;;
17336 *)
17337 lt_outputfile="$lt_outputfile.exe"
17338 lt_tool_outputfile="$lt_tool_outputfile.exe"
17339 ;;
17340 esac~
17341 func_to_tool_file "$lt_outputfile"~
17342 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17343 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17344 $RM "$lt_outputfile.manifest";
17345 fi'
17346 ;;
17347 *)
17348 # g++
17349 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17350 # as there is no search path for DLLs.
17351 hardcode_libdir_flag_spec_CXX='-L$libdir'
17352 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17353 allow_undefined_flag_CXX=unsupported
17354 always_export_symbols_CXX=no
17355 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017356
cristyda16f162011-02-19 23:52:17 +000017357 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17358 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'
17359 # If the export-symbols file already is a .def file (1st line
17360 # is EXPORTS), use it as is; otherwise, prepend...
17361 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17362 cp $export_symbols $output_objdir/$soname.def;
17363 else
17364 echo EXPORTS > $output_objdir/$soname.def;
17365 cat $export_symbols >> $output_objdir/$soname.def;
17366 fi~
17367 $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'
17368 else
17369 ld_shlibs_CXX=no
17370 fi
17371 ;;
17372 esac
17373 ;;
cristy73bd4a52010-10-05 11:24:23 +000017374 darwin* | rhapsody*)
17375
17376
17377 archive_cmds_need_lc_CXX=no
17378 hardcode_direct_CXX=no
17379 hardcode_automatic_CXX=yes
17380 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017381 if test "$lt_cv_ld_force_load" = "yes"; then
17382 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\"`'
17383 else
17384 whole_archive_flag_spec_CXX=''
17385 fi
cristy73bd4a52010-10-05 11:24:23 +000017386 link_all_deplibs_CXX=yes
17387 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17388 case $cc_basename in
17389 ifort*) _lt_dar_can_shared=yes ;;
17390 *) _lt_dar_can_shared=$GCC ;;
17391 esac
17392 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017393 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017394 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}"
17395 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17396 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}"
17397 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}"
17398 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17399 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}"
17400 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}"
17401 fi
17402
17403 else
17404 ld_shlibs_CXX=no
17405 fi
17406
17407 ;;
17408
17409 dgux*)
17410 case $cc_basename in
17411 ec++*)
17412 # FIXME: insert proper C++ library support
17413 ld_shlibs_CXX=no
17414 ;;
17415 ghcx*)
17416 # Green Hills C++ Compiler
17417 # FIXME: insert proper C++ library support
17418 ld_shlibs_CXX=no
17419 ;;
17420 *)
17421 # FIXME: insert proper C++ library support
17422 ld_shlibs_CXX=no
17423 ;;
17424 esac
17425 ;;
17426
17427 freebsd[12]*)
17428 # C++ shared libraries reported to be fairly broken before
17429 # switch to ELF
17430 ld_shlibs_CXX=no
17431 ;;
17432
17433 freebsd-elf*)
17434 archive_cmds_need_lc_CXX=no
17435 ;;
17436
17437 freebsd* | dragonfly*)
17438 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17439 # conventions
17440 ld_shlibs_CXX=yes
17441 ;;
17442
17443 gnu*)
17444 ;;
17445
cristy0c60a692010-11-04 01:09:47 +000017446 haiku*)
17447 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17448 link_all_deplibs_CXX=yes
17449 ;;
17450
cristy73bd4a52010-10-05 11:24:23 +000017451 hpux9*)
17452 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17453 hardcode_libdir_separator_CXX=:
17454 export_dynamic_flag_spec_CXX='${wl}-E'
17455 hardcode_direct_CXX=yes
17456 hardcode_minus_L_CXX=yes # Not in the search PATH,
17457 # but as the default
17458 # location of the library.
17459
17460 case $cc_basename in
17461 CC*)
17462 # FIXME: insert proper C++ library support
17463 ld_shlibs_CXX=no
17464 ;;
17465 aCC*)
17466 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'
17467 # Commands to make compiler produce verbose output that lists
17468 # what "hidden" libraries, object files and flags are used when
17469 # linking a shared library.
17470 #
17471 # There doesn't appear to be a way to prevent this compiler from
17472 # explicitly linking system object files so we need to strip them
17473 # from the output so that they don't get included in the library
17474 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017475 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 +000017476 ;;
17477 *)
17478 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017479 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 +000017480 else
17481 # FIXME: insert proper C++ library support
17482 ld_shlibs_CXX=no
17483 fi
17484 ;;
17485 esac
17486 ;;
17487
17488 hpux10*|hpux11*)
17489 if test $with_gnu_ld = no; then
17490 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17491 hardcode_libdir_separator_CXX=:
17492
17493 case $host_cpu in
17494 hppa*64*|ia64*)
17495 ;;
17496 *)
17497 export_dynamic_flag_spec_CXX='${wl}-E'
17498 ;;
17499 esac
17500 fi
17501 case $host_cpu in
17502 hppa*64*|ia64*)
17503 hardcode_direct_CXX=no
17504 hardcode_shlibpath_var_CXX=no
17505 ;;
17506 *)
17507 hardcode_direct_CXX=yes
17508 hardcode_direct_absolute_CXX=yes
17509 hardcode_minus_L_CXX=yes # Not in the search PATH,
17510 # but as the default
17511 # location of the library.
17512 ;;
17513 esac
17514
17515 case $cc_basename in
17516 CC*)
17517 # FIXME: insert proper C++ library support
17518 ld_shlibs_CXX=no
17519 ;;
17520 aCC*)
17521 case $host_cpu in
17522 hppa*64*)
17523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17524 ;;
17525 ia64*)
17526 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17527 ;;
17528 *)
17529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17530 ;;
17531 esac
17532 # Commands to make compiler produce verbose output that lists
17533 # what "hidden" libraries, object files and flags are used when
17534 # linking a shared library.
17535 #
17536 # There doesn't appear to be a way to prevent this compiler from
17537 # explicitly linking system object files so we need to strip them
17538 # from the output so that they don't get included in the library
17539 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017540 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 +000017541 ;;
17542 *)
17543 if test "$GXX" = yes; then
17544 if test $with_gnu_ld = no; then
17545 case $host_cpu in
17546 hppa*64*)
17547 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17548 ;;
17549 ia64*)
cristyda16f162011-02-19 23:52:17 +000017550 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 +000017551 ;;
17552 *)
cristyda16f162011-02-19 23:52:17 +000017553 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 +000017554 ;;
17555 esac
17556 fi
17557 else
17558 # FIXME: insert proper C++ library support
17559 ld_shlibs_CXX=no
17560 fi
17561 ;;
17562 esac
17563 ;;
17564
17565 interix[3-9]*)
17566 hardcode_direct_CXX=no
17567 hardcode_shlibpath_var_CXX=no
17568 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17569 export_dynamic_flag_spec_CXX='${wl}-E'
17570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17571 # Instead, shared libraries are loaded at an image base (0x10000000 by
17572 # default) and relocated if they conflict, which is a slow very memory
17573 # consuming and fragmenting process. To avoid this, we pick a random,
17574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17576 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'
17577 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'
17578 ;;
17579 irix5* | irix6*)
17580 case $cc_basename in
17581 CC*)
17582 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017583 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 +000017584
17585 # Archives containing C++ object files must be created using
17586 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17587 # necessary to make sure instantiated templates are included
17588 # in the archive.
17589 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17590 ;;
17591 *)
17592 if test "$GXX" = yes; then
17593 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017594 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 +000017595 else
cristyda16f162011-02-19 23:52:17 +000017596 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 +000017597 fi
17598 fi
17599 link_all_deplibs_CXX=yes
17600 ;;
17601 esac
17602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17603 hardcode_libdir_separator_CXX=:
17604 inherit_rpath_CXX=yes
17605 ;;
17606
cristy0c60a692010-11-04 01:09:47 +000017607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017608 case $cc_basename in
17609 KCC*)
17610 # Kuck and Associates, Inc. (KAI) C++ Compiler
17611
17612 # KCC will only create a shared library if the output file
17613 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17614 # to its proper name (with version) after linking.
17615 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'
17616 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'
17617 # Commands to make compiler produce verbose output that lists
17618 # what "hidden" libraries, object files and flags are used when
17619 # linking a shared library.
17620 #
17621 # There doesn't appear to be a way to prevent this compiler from
17622 # explicitly linking system object files so we need to strip them
17623 # from the output so that they don't get included in the library
17624 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017625 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 +000017626
17627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17628 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17629
17630 # Archives containing C++ object files must be created using
17631 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17632 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17633 ;;
17634 icpc* | ecpc* )
17635 # Intel C++
17636 with_gnu_ld=yes
17637 # version 8.0 and above of icpc choke on multiply defined symbols
17638 # if we add $predep_objects and $postdep_objects, however 7.1 and
17639 # earlier do not add the objects themselves.
17640 case `$CC -V 2>&1` in
17641 *"Version 7."*)
17642 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17643 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'
17644 ;;
17645 *) # Version 8.0 or newer
17646 tmp_idyn=
17647 case $host_cpu in
17648 ia64*) tmp_idyn=' -i_dynamic';;
17649 esac
17650 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17651 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'
17652 ;;
17653 esac
17654 archive_cmds_need_lc_CXX=no
17655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17657 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17658 ;;
17659 pgCC* | pgcpp*)
17660 # Portland Group C++ compiler
17661 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017662 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017663 prelink_cmds_CXX='tpldir=Template.dir~
17664 rm -rf $tpldir~
17665 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017666 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017667 old_archive_cmds_CXX='tpldir=Template.dir~
17668 rm -rf $tpldir~
17669 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017670 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017671 $RANLIB $oldlib'
17672 archive_cmds_CXX='tpldir=Template.dir~
17673 rm -rf $tpldir~
17674 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017675 $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 +000017676 archive_expsym_cmds_CXX='tpldir=Template.dir~
17677 rm -rf $tpldir~
17678 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017679 $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 +000017680 ;;
cristy0c60a692010-11-04 01:09:47 +000017681 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017682 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17683 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'
17684 ;;
17685 esac
17686
17687 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017689 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 +000017690 ;;
17691 cxx*)
17692 # Compaq C++
17693 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17694 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'
17695
17696 runpath_var=LD_RUN_PATH
17697 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17698 hardcode_libdir_separator_CXX=:
17699
17700 # Commands to make compiler produce verbose output that lists
17701 # what "hidden" libraries, object files and flags are used when
17702 # linking a shared library.
17703 #
17704 # There doesn't appear to be a way to prevent this compiler from
17705 # explicitly linking system object files so we need to strip them
17706 # from the output so that they don't get included in the library
17707 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017708 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; 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 +000017709 ;;
cristy0c60a692010-11-04 01:09:47 +000017710 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017711 # IBM XL 8.0 on PPC, with GNU ld
17712 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17713 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17714 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17715 if test "x$supports_anon_versioning" = xyes; then
17716 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17718 echo "local: *; };" >> $output_objdir/$libname.ver~
17719 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17720 fi
17721 ;;
17722 *)
17723 case `$CC -V 2>&1 | sed 5q` in
17724 *Sun\ C*)
17725 # Sun C++ 5.9
17726 no_undefined_flag_CXX=' -zdefs'
17727 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17728 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'
17729 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017730 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 +000017731 compiler_needs_object_CXX=yes
17732
17733 # Not sure whether something based on
17734 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17735 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017736 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017737
17738 # Archives containing C++ object files must be created using
17739 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17740 # necessary to make sure instantiated templates are included
17741 # in the archive.
17742 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17743 ;;
17744 esac
17745 ;;
17746 esac
17747 ;;
17748
17749 lynxos*)
17750 # FIXME: insert proper C++ library support
17751 ld_shlibs_CXX=no
17752 ;;
17753
17754 m88k*)
17755 # FIXME: insert proper C++ library support
17756 ld_shlibs_CXX=no
17757 ;;
17758
17759 mvs*)
17760 case $cc_basename in
17761 cxx*)
17762 # FIXME: insert proper C++ library support
17763 ld_shlibs_CXX=no
17764 ;;
17765 *)
17766 # FIXME: insert proper C++ library support
17767 ld_shlibs_CXX=no
17768 ;;
17769 esac
17770 ;;
17771
17772 netbsd*)
17773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17774 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17775 wlarc=
17776 hardcode_libdir_flag_spec_CXX='-R$libdir'
17777 hardcode_direct_CXX=yes
17778 hardcode_shlibpath_var_CXX=no
17779 fi
17780 # Workaround some broken pre-1.5 toolchains
17781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17782 ;;
17783
17784 *nto* | *qnx*)
17785 ld_shlibs_CXX=yes
17786 ;;
17787
17788 openbsd2*)
17789 # C++ shared libraries are fairly broken
17790 ld_shlibs_CXX=no
17791 ;;
17792
17793 openbsd*)
17794 if test -f /usr/libexec/ld.so; then
17795 hardcode_direct_CXX=yes
17796 hardcode_shlibpath_var_CXX=no
17797 hardcode_direct_absolute_CXX=yes
17798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17801 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17802 export_dynamic_flag_spec_CXX='${wl}-E'
17803 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17804 fi
cristy0c60a692010-11-04 01:09:47 +000017805 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017806 else
17807 ld_shlibs_CXX=no
17808 fi
17809 ;;
17810
17811 osf3* | osf4* | osf5*)
17812 case $cc_basename in
17813 KCC*)
17814 # Kuck and Associates, Inc. (KAI) C++ Compiler
17815
17816 # KCC will only create a shared library if the output file
17817 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17818 # to its proper name (with version) after linking.
17819 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'
17820
17821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17822 hardcode_libdir_separator_CXX=:
17823
17824 # Archives containing C++ object files must be created using
17825 # the KAI C++ compiler.
17826 case $host in
17827 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17828 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17829 esac
17830 ;;
17831 RCC*)
17832 # Rational C++ 2.4.1
17833 # FIXME: insert proper C++ library support
17834 ld_shlibs_CXX=no
17835 ;;
17836 cxx*)
17837 case $host in
17838 osf3*)
17839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017840 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 +000017841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17842 ;;
17843 *)
17844 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017845 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 +000017846 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17847 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017848 $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 +000017849 $RM $lib.exp'
17850 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17851 ;;
17852 esac
17853
17854 hardcode_libdir_separator_CXX=:
17855
17856 # Commands to make compiler produce verbose output that lists
17857 # what "hidden" libraries, object files and flags are used when
17858 # linking a shared library.
17859 #
17860 # There doesn't appear to be a way to prevent this compiler from
17861 # explicitly linking system object files so we need to strip them
17862 # from the output so that they don't get included in the library
17863 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017864 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 +000017865 ;;
17866 *)
17867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17869 case $host in
17870 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017871 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 +000017872 ;;
17873 *)
cristyda16f162011-02-19 23:52:17 +000017874 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 +000017875 ;;
17876 esac
17877
17878 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17879 hardcode_libdir_separator_CXX=:
17880
17881 # Commands to make compiler produce verbose output that lists
17882 # what "hidden" libraries, object files and flags are used when
17883 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017884 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017885
17886 else
17887 # FIXME: insert proper C++ library support
17888 ld_shlibs_CXX=no
17889 fi
17890 ;;
17891 esac
17892 ;;
17893
17894 psos*)
17895 # FIXME: insert proper C++ library support
17896 ld_shlibs_CXX=no
17897 ;;
17898
17899 sunos4*)
17900 case $cc_basename in
17901 CC*)
17902 # Sun C++ 4.x
17903 # FIXME: insert proper C++ library support
17904 ld_shlibs_CXX=no
17905 ;;
17906 lcc*)
17907 # Lucid
17908 # FIXME: insert proper C++ library support
17909 ld_shlibs_CXX=no
17910 ;;
17911 *)
17912 # FIXME: insert proper C++ library support
17913 ld_shlibs_CXX=no
17914 ;;
17915 esac
17916 ;;
17917
17918 solaris*)
17919 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017920 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017921 # Sun C++ 4.2, 5.x and Centerline C++
17922 archive_cmds_need_lc_CXX=yes
17923 no_undefined_flag_CXX=' -zdefs'
17924 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17925 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17926 $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'
17927
17928 hardcode_libdir_flag_spec_CXX='-R$libdir'
17929 hardcode_shlibpath_var_CXX=no
17930 case $host_os in
17931 solaris2.[0-5] | solaris2.[0-5].*) ;;
17932 *)
17933 # The compiler driver will combine and reorder linker options,
17934 # but understands `-z linker_flag'.
17935 # Supported since Solaris 2.6 (maybe 2.5.1?)
17936 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17937 ;;
17938 esac
17939 link_all_deplibs_CXX=yes
17940
cristy0c60a692010-11-04 01:09:47 +000017941 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017942
17943 # Archives containing C++ object files must be created using
17944 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17945 # necessary to make sure instantiated templates are included
17946 # in the archive.
17947 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17948 ;;
17949 gcx*)
17950 # Green Hills C++ Compiler
17951 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17952
17953 # The C++ compiler must be used to create the archive.
17954 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17955 ;;
17956 *)
17957 # GNU C++ compiler with Solaris linker
17958 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17959 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17960 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017961 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 +000017962 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 +000017963 $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 +000017964
17965 # Commands to make compiler produce verbose output that lists
17966 # what "hidden" libraries, object files and flags are used when
17967 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017968 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017969 else
17970 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17971 # platform.
17972 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17973 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17974 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17975
17976 # Commands to make compiler produce verbose output that lists
17977 # what "hidden" libraries, object files and flags are used when
17978 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017979 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017980 fi
17981
17982 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17983 case $host_os in
17984 solaris2.[0-5] | solaris2.[0-5].*) ;;
17985 *)
17986 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17987 ;;
17988 esac
17989 fi
17990 ;;
17991 esac
17992 ;;
17993
17994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17995 no_undefined_flag_CXX='${wl}-z,text'
17996 archive_cmds_need_lc_CXX=no
17997 hardcode_shlibpath_var_CXX=no
17998 runpath_var='LD_RUN_PATH'
17999
18000 case $cc_basename in
18001 CC*)
18002 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18004 ;;
18005 *)
18006 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18007 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18008 ;;
18009 esac
18010 ;;
18011
18012 sysv5* | sco3.2v5* | sco5v6*)
18013 # Note: We can NOT use -z defs as we might desire, because we do not
18014 # link with -lc, and that would cause any symbols used from libc to
18015 # always be unresolved, which means just about no library would
18016 # ever link correctly. If we're not using GNU ld we use -z text
18017 # though, which does catch some bad symbols but isn't as heavy-handed
18018 # as -z defs.
18019 no_undefined_flag_CXX='${wl}-z,text'
18020 allow_undefined_flag_CXX='${wl}-z,nodefs'
18021 archive_cmds_need_lc_CXX=no
18022 hardcode_shlibpath_var_CXX=no
18023 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18024 hardcode_libdir_separator_CXX=':'
18025 link_all_deplibs_CXX=yes
18026 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18027 runpath_var='LD_RUN_PATH'
18028
18029 case $cc_basename in
18030 CC*)
18031 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18032 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 +000018033 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18034 '"$old_archive_cmds_CXX"
18035 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18036 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018037 ;;
18038 *)
18039 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18040 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18041 ;;
18042 esac
18043 ;;
18044
18045 tandem*)
18046 case $cc_basename in
18047 NCC*)
18048 # NonStop-UX NCC 3.20
18049 # FIXME: insert proper C++ library support
18050 ld_shlibs_CXX=no
18051 ;;
18052 *)
18053 # FIXME: insert proper C++ library support
18054 ld_shlibs_CXX=no
18055 ;;
18056 esac
18057 ;;
18058
18059 vxworks*)
18060 # FIXME: insert proper C++ library support
18061 ld_shlibs_CXX=no
18062 ;;
18063
18064 *)
18065 # FIXME: insert proper C++ library support
18066 ld_shlibs_CXX=no
18067 ;;
18068 esac
18069
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18071$as_echo "$ld_shlibs_CXX" >&6; }
18072 test "$ld_shlibs_CXX" = no && can_build_shared=no
18073
18074 GCC_CXX="$GXX"
18075 LD_CXX="$LD"
18076
18077 ## CAVEAT EMPTOR:
18078 ## There is no encapsulation within the following macros, do not change
18079 ## the running order or otherwise move them around unless you know exactly
18080 ## what you are doing...
18081 # Dependencies to place before and after the object being linked:
18082predep_objects_CXX=
18083postdep_objects_CXX=
18084predeps_CXX=
18085postdeps_CXX=
18086compiler_lib_search_path_CXX=
18087
18088cat > conftest.$ac_ext <<_LT_EOF
18089class Foo
18090{
18091public:
18092 Foo (void) { a = 0; }
18093private:
18094 int a;
18095};
18096_LT_EOF
18097
cristyda16f162011-02-19 23:52:17 +000018098
18099_lt_libdeps_save_CFLAGS=$CFLAGS
18100case "$CC $CFLAGS " in #(
18101*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18102*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18103esac
18104
cristy73bd4a52010-10-05 11:24:23 +000018105if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18106 (eval $ac_compile) 2>&5
18107 ac_status=$?
18108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18109 test $ac_status = 0; }; then
18110 # Parse the compiler output and extract the necessary
18111 # objects, libraries and library flags.
18112
18113 # Sentinel used to keep track of whether or not we are before
18114 # the conftest object file.
18115 pre_test_object_deps_done=no
18116
18117 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018118 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018119
18120 -L* | -R* | -l*)
18121 # Some compilers place space between "-{L,R}" and the path.
18122 # Remove the space.
18123 if test $p = "-L" ||
18124 test $p = "-R"; then
18125 prev=$p
18126 continue
cristy73bd4a52010-10-05 11:24:23 +000018127 fi
18128
cristyda16f162011-02-19 23:52:17 +000018129 # Expand the sysroot to ease extracting the directories later.
18130 if test -z "$prev"; then
18131 case $p in
18132 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18133 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18134 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18135 esac
18136 fi
18137 case $p in
18138 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18139 esac
cristy73bd4a52010-10-05 11:24:23 +000018140 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018141 case ${prev} in
18142 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018143 # Internal compiler library paths should come after those
18144 # provided the user. The postdeps already come after the
18145 # user supplied libs so there is no need to process them.
18146 if test -z "$compiler_lib_search_path_CXX"; then
18147 compiler_lib_search_path_CXX="${prev}${p}"
18148 else
18149 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18150 fi
18151 ;;
18152 # The "-l" case would never come before the object being
18153 # linked, so don't bother handling this case.
18154 esac
18155 else
18156 if test -z "$postdeps_CXX"; then
18157 postdeps_CXX="${prev}${p}"
18158 else
18159 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18160 fi
18161 fi
cristyda16f162011-02-19 23:52:17 +000018162 prev=
cristy73bd4a52010-10-05 11:24:23 +000018163 ;;
18164
cristyda16f162011-02-19 23:52:17 +000018165 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018166 *.$objext)
18167 # This assumes that the test object file only shows up
18168 # once in the compiler output.
18169 if test "$p" = "conftest.$objext"; then
18170 pre_test_object_deps_done=yes
18171 continue
18172 fi
18173
18174 if test "$pre_test_object_deps_done" = no; then
18175 if test -z "$predep_objects_CXX"; then
18176 predep_objects_CXX="$p"
18177 else
18178 predep_objects_CXX="$predep_objects_CXX $p"
18179 fi
18180 else
18181 if test -z "$postdep_objects_CXX"; then
18182 postdep_objects_CXX="$p"
18183 else
18184 postdep_objects_CXX="$postdep_objects_CXX $p"
18185 fi
18186 fi
18187 ;;
18188
18189 *) ;; # Ignore the rest.
18190
18191 esac
18192 done
18193
18194 # Clean up.
18195 rm -f a.out a.exe
18196else
18197 echo "libtool.m4: error: problem compiling CXX test program"
18198fi
18199
18200$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018201CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018202
18203# PORTME: override above test on systems where it is broken
18204case $host_os in
18205interix[3-9]*)
18206 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18207 # hack all around it, let's just trust "g++" to DTRT.
18208 predep_objects_CXX=
18209 postdep_objects_CXX=
18210 postdeps_CXX=
18211 ;;
18212
18213linux*)
18214 case `$CC -V 2>&1 | sed 5q` in
18215 *Sun\ C*)
18216 # Sun C++ 5.9
18217
18218 # The more standards-conforming stlport4 library is
18219 # incompatible with the Cstd library. Avoid specifying
18220 # it if it's in CXXFLAGS. Ignore libCrun as
18221 # -library=stlport4 depends on it.
18222 case " $CXX $CXXFLAGS " in
18223 *" -library=stlport4 "*)
18224 solaris_use_stlport4=yes
18225 ;;
18226 esac
18227
18228 if test "$solaris_use_stlport4" != yes; then
18229 postdeps_CXX='-library=Cstd -library=Crun'
18230 fi
18231 ;;
18232 esac
18233 ;;
18234
18235solaris*)
18236 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018237 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018238 # The more standards-conforming stlport4 library is
18239 # incompatible with the Cstd library. Avoid specifying
18240 # it if it's in CXXFLAGS. Ignore libCrun as
18241 # -library=stlport4 depends on it.
18242 case " $CXX $CXXFLAGS " in
18243 *" -library=stlport4 "*)
18244 solaris_use_stlport4=yes
18245 ;;
18246 esac
18247
18248 # Adding this requires a known-good setup of shared libraries for
18249 # Sun compiler versions before 5.6, else PIC objects from an old
18250 # archive will be linked into the output, leading to subtle bugs.
18251 if test "$solaris_use_stlport4" != yes; then
18252 postdeps_CXX='-library=Cstd -library=Crun'
18253 fi
18254 ;;
18255 esac
18256 ;;
18257esac
18258
18259
18260case " $postdeps_CXX " in
18261*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18262esac
18263 compiler_lib_search_dirs_CXX=
18264if test -n "${compiler_lib_search_path_CXX}"; then
18265 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18266fi
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298 lt_prog_compiler_wl_CXX=
18299lt_prog_compiler_pic_CXX=
18300lt_prog_compiler_static_CXX=
18301
cristy73bd4a52010-10-05 11:24:23 +000018302
18303 # C++ specific cases for pic, static, wl, etc.
18304 if test "$GXX" = yes; then
18305 lt_prog_compiler_wl_CXX='-Wl,'
18306 lt_prog_compiler_static_CXX='-static'
18307
18308 case $host_os in
18309 aix*)
18310 # All AIX code is PIC.
18311 if test "$host_cpu" = ia64; then
18312 # AIX 5 now supports IA64 processor
18313 lt_prog_compiler_static_CXX='-Bstatic'
18314 fi
18315 ;;
18316
18317 amigaos*)
18318 case $host_cpu in
18319 powerpc)
18320 # see comment about AmigaOS4 .so support
18321 lt_prog_compiler_pic_CXX='-fPIC'
18322 ;;
18323 m68k)
18324 # FIXME: we need at least 68020 code to build shared libraries, but
18325 # adding the `-m68020' flag to GCC prevents building anything better,
18326 # like `-m68040'.
18327 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18328 ;;
18329 esac
18330 ;;
18331
18332 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18333 # PIC is the default for these OSes.
18334 ;;
18335 mingw* | cygwin* | os2* | pw32* | cegcc*)
18336 # This hack is so that the source file can tell whether it is being
18337 # built for inclusion in a dll (and should export symbols for example).
18338 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18339 # (--disable-auto-import) libraries
18340 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18341 ;;
18342 darwin* | rhapsody*)
18343 # PIC is the default on this platform
18344 # Common symbols not allowed in MH_DYLIB files
18345 lt_prog_compiler_pic_CXX='-fno-common'
18346 ;;
18347 *djgpp*)
18348 # DJGPP does not support shared libraries at all
18349 lt_prog_compiler_pic_CXX=
18350 ;;
cristy0c60a692010-11-04 01:09:47 +000018351 haiku*)
18352 # PIC is the default for Haiku.
18353 # The "-static" flag exists, but is broken.
18354 lt_prog_compiler_static_CXX=
18355 ;;
cristy73bd4a52010-10-05 11:24:23 +000018356 interix[3-9]*)
18357 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18358 # Instead, we relocate shared libraries at runtime.
18359 ;;
18360 sysv4*MP*)
18361 if test -d /usr/nec; then
18362 lt_prog_compiler_pic_CXX=-Kconform_pic
18363 fi
18364 ;;
18365 hpux*)
18366 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18367 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18368 # sets the default TLS model and affects inlining.
18369 case $host_cpu in
18370 hppa*64*)
18371 ;;
18372 *)
18373 lt_prog_compiler_pic_CXX='-fPIC'
18374 ;;
18375 esac
18376 ;;
18377 *qnx* | *nto*)
18378 # QNX uses GNU C++, but need to define -shared option too, otherwise
18379 # it will coredump.
18380 lt_prog_compiler_pic_CXX='-fPIC -shared'
18381 ;;
18382 *)
18383 lt_prog_compiler_pic_CXX='-fPIC'
18384 ;;
18385 esac
18386 else
18387 case $host_os in
18388 aix[4-9]*)
18389 # All AIX code is PIC.
18390 if test "$host_cpu" = ia64; then
18391 # AIX 5 now supports IA64 processor
18392 lt_prog_compiler_static_CXX='-Bstatic'
18393 else
18394 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18395 fi
18396 ;;
18397 chorus*)
18398 case $cc_basename in
18399 cxch68*)
18400 # Green Hills C++ Compiler
18401 # _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"
18402 ;;
18403 esac
18404 ;;
cristyda16f162011-02-19 23:52:17 +000018405 mingw* | cygwin* | os2* | pw32* | cegcc*)
18406 # This hack is so that the source file can tell whether it is being
18407 # built for inclusion in a dll (and should export symbols for example).
18408 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18409 ;;
cristy73bd4a52010-10-05 11:24:23 +000018410 dgux*)
18411 case $cc_basename in
18412 ec++*)
18413 lt_prog_compiler_pic_CXX='-KPIC'
18414 ;;
18415 ghcx*)
18416 # Green Hills C++ Compiler
18417 lt_prog_compiler_pic_CXX='-pic'
18418 ;;
18419 *)
18420 ;;
18421 esac
18422 ;;
18423 freebsd* | dragonfly*)
18424 # FreeBSD uses GNU C++
18425 ;;
18426 hpux9* | hpux10* | hpux11*)
18427 case $cc_basename in
18428 CC*)
18429 lt_prog_compiler_wl_CXX='-Wl,'
18430 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18431 if test "$host_cpu" != ia64; then
18432 lt_prog_compiler_pic_CXX='+Z'
18433 fi
18434 ;;
18435 aCC*)
18436 lt_prog_compiler_wl_CXX='-Wl,'
18437 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18438 case $host_cpu in
18439 hppa*64*|ia64*)
18440 # +Z the default
18441 ;;
18442 *)
18443 lt_prog_compiler_pic_CXX='+Z'
18444 ;;
18445 esac
18446 ;;
18447 *)
18448 ;;
18449 esac
18450 ;;
18451 interix*)
18452 # This is c89, which is MS Visual C++ (no shared libs)
18453 # Anyone wants to do a port?
18454 ;;
18455 irix5* | irix6* | nonstopux*)
18456 case $cc_basename in
18457 CC*)
18458 lt_prog_compiler_wl_CXX='-Wl,'
18459 lt_prog_compiler_static_CXX='-non_shared'
18460 # CC pic flag -KPIC is the default.
18461 ;;
18462 *)
18463 ;;
18464 esac
18465 ;;
cristy0c60a692010-11-04 01:09:47 +000018466 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018467 case $cc_basename in
18468 KCC*)
18469 # KAI C++ Compiler
18470 lt_prog_compiler_wl_CXX='--backend -Wl,'
18471 lt_prog_compiler_pic_CXX='-fPIC'
18472 ;;
18473 ecpc* )
18474 # old Intel C++ for x86_64 which still supported -KPIC.
18475 lt_prog_compiler_wl_CXX='-Wl,'
18476 lt_prog_compiler_pic_CXX='-KPIC'
18477 lt_prog_compiler_static_CXX='-static'
18478 ;;
18479 icpc* )
18480 # Intel C++, used to be incompatible with GCC.
18481 # ICC 10 doesn't accept -KPIC any more.
18482 lt_prog_compiler_wl_CXX='-Wl,'
18483 lt_prog_compiler_pic_CXX='-fPIC'
18484 lt_prog_compiler_static_CXX='-static'
18485 ;;
18486 pgCC* | pgcpp*)
18487 # Portland Group C++ compiler
18488 lt_prog_compiler_wl_CXX='-Wl,'
18489 lt_prog_compiler_pic_CXX='-fpic'
18490 lt_prog_compiler_static_CXX='-Bstatic'
18491 ;;
18492 cxx*)
18493 # Compaq C++
18494 # Make sure the PIC flag is empty. It appears that all Alpha
18495 # Linux and Compaq Tru64 Unix objects are PIC.
18496 lt_prog_compiler_pic_CXX=
18497 lt_prog_compiler_static_CXX='-non_shared'
18498 ;;
cristy0c60a692010-11-04 01:09:47 +000018499 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18500 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018501 lt_prog_compiler_wl_CXX='-Wl,'
18502 lt_prog_compiler_pic_CXX='-qpic'
18503 lt_prog_compiler_static_CXX='-qstaticlink'
18504 ;;
18505 *)
18506 case `$CC -V 2>&1 | sed 5q` in
18507 *Sun\ C*)
18508 # Sun C++ 5.9
18509 lt_prog_compiler_pic_CXX='-KPIC'
18510 lt_prog_compiler_static_CXX='-Bstatic'
18511 lt_prog_compiler_wl_CXX='-Qoption ld '
18512 ;;
18513 esac
18514 ;;
18515 esac
18516 ;;
18517 lynxos*)
18518 ;;
18519 m88k*)
18520 ;;
18521 mvs*)
18522 case $cc_basename in
18523 cxx*)
18524 lt_prog_compiler_pic_CXX='-W c,exportall'
18525 ;;
18526 *)
18527 ;;
18528 esac
18529 ;;
18530 netbsd*)
18531 ;;
18532 *qnx* | *nto*)
18533 # QNX uses GNU C++, but need to define -shared option too, otherwise
18534 # it will coredump.
18535 lt_prog_compiler_pic_CXX='-fPIC -shared'
18536 ;;
18537 osf3* | osf4* | osf5*)
18538 case $cc_basename in
18539 KCC*)
18540 lt_prog_compiler_wl_CXX='--backend -Wl,'
18541 ;;
18542 RCC*)
18543 # Rational C++ 2.4.1
18544 lt_prog_compiler_pic_CXX='-pic'
18545 ;;
18546 cxx*)
18547 # Digital/Compaq C++
18548 lt_prog_compiler_wl_CXX='-Wl,'
18549 # Make sure the PIC flag is empty. It appears that all Alpha
18550 # Linux and Compaq Tru64 Unix objects are PIC.
18551 lt_prog_compiler_pic_CXX=
18552 lt_prog_compiler_static_CXX='-non_shared'
18553 ;;
18554 *)
18555 ;;
18556 esac
18557 ;;
18558 psos*)
18559 ;;
18560 solaris*)
18561 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018562 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018563 # Sun C++ 4.2, 5.x and Centerline C++
18564 lt_prog_compiler_pic_CXX='-KPIC'
18565 lt_prog_compiler_static_CXX='-Bstatic'
18566 lt_prog_compiler_wl_CXX='-Qoption ld '
18567 ;;
18568 gcx*)
18569 # Green Hills C++ Compiler
18570 lt_prog_compiler_pic_CXX='-PIC'
18571 ;;
18572 *)
18573 ;;
18574 esac
18575 ;;
18576 sunos4*)
18577 case $cc_basename in
18578 CC*)
18579 # Sun C++ 4.x
18580 lt_prog_compiler_pic_CXX='-pic'
18581 lt_prog_compiler_static_CXX='-Bstatic'
18582 ;;
18583 lcc*)
18584 # Lucid
18585 lt_prog_compiler_pic_CXX='-pic'
18586 ;;
18587 *)
18588 ;;
18589 esac
18590 ;;
18591 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18592 case $cc_basename in
18593 CC*)
18594 lt_prog_compiler_wl_CXX='-Wl,'
18595 lt_prog_compiler_pic_CXX='-KPIC'
18596 lt_prog_compiler_static_CXX='-Bstatic'
18597 ;;
18598 esac
18599 ;;
18600 tandem*)
18601 case $cc_basename in
18602 NCC*)
18603 # NonStop-UX NCC 3.20
18604 lt_prog_compiler_pic_CXX='-KPIC'
18605 ;;
18606 *)
18607 ;;
18608 esac
18609 ;;
18610 vxworks*)
18611 ;;
18612 *)
18613 lt_prog_compiler_can_build_shared_CXX=no
18614 ;;
18615 esac
18616 fi
18617
18618case $host_os in
18619 # For platforms which do not support PIC, -DPIC is meaningless:
18620 *djgpp*)
18621 lt_prog_compiler_pic_CXX=
18622 ;;
18623 *)
18624 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18625 ;;
18626esac
cristy73bd4a52010-10-05 11:24:23 +000018627
cristyda16f162011-02-19 23:52:17 +000018628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18629$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18630if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18631 $as_echo_n "(cached) " >&6
18632else
18633 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18634fi
18635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18636$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18637lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018638
18639#
18640# Check to make sure the PIC flag actually works.
18641#
18642if test -n "$lt_prog_compiler_pic_CXX"; then
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18644$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018645if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018646 $as_echo_n "(cached) " >&6
18647else
18648 lt_cv_prog_compiler_pic_works_CXX=no
18649 ac_outfile=conftest.$ac_objext
18650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18651 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18652 # Insert the option either (1) after the last *FLAGS variable, or
18653 # (2) before a word containing "conftest.", or (3) at the end.
18654 # Note that $ac_compile itself does not contain backslashes and begins
18655 # with a dollar sign (not a hyphen), so the echo should work correctly.
18656 # The option is referenced via a variable to avoid confusing sed.
18657 lt_compile=`echo "$ac_compile" | $SED \
18658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18660 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018662 (eval "$lt_compile" 2>conftest.err)
18663 ac_status=$?
18664 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018666 if (exit $ac_status) && test -s "$ac_outfile"; then
18667 # The compiler can only warn and ignore the option if not recognized
18668 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18671 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18672 lt_cv_prog_compiler_pic_works_CXX=yes
18673 fi
18674 fi
18675 $RM conftest*
18676
18677fi
18678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18679$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18680
18681if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18682 case $lt_prog_compiler_pic_CXX in
18683 "" | " "*) ;;
18684 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18685 esac
18686else
18687 lt_prog_compiler_pic_CXX=
18688 lt_prog_compiler_can_build_shared_CXX=no
18689fi
18690
18691fi
18692
18693
18694
cristyda16f162011-02-19 23:52:17 +000018695
18696
cristy73bd4a52010-10-05 11:24:23 +000018697#
18698# Check to make sure the static flag actually works.
18699#
18700wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18702$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018703if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018704 $as_echo_n "(cached) " >&6
18705else
18706 lt_cv_prog_compiler_static_works_CXX=no
18707 save_LDFLAGS="$LDFLAGS"
18708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18711 # The linker can only warn and ignore the option if not recognized
18712 # So say no if there are warnings
18713 if test -s conftest.err; then
18714 # Append any errors to the config.log.
18715 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18718 if diff conftest.exp conftest.er2 >/dev/null; then
18719 lt_cv_prog_compiler_static_works_CXX=yes
18720 fi
18721 else
18722 lt_cv_prog_compiler_static_works_CXX=yes
18723 fi
18724 fi
18725 $RM -r conftest*
18726 LDFLAGS="$save_LDFLAGS"
18727
18728fi
18729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18730$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18731
18732if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18733 :
18734else
18735 lt_prog_compiler_static_CXX=
18736fi
18737
18738
18739
18740
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18742$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018743if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018744 $as_echo_n "(cached) " >&6
18745else
18746 lt_cv_prog_compiler_c_o_CXX=no
18747 $RM -r conftest 2>/dev/null
18748 mkdir conftest
18749 cd conftest
18750 mkdir out
18751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18752
18753 lt_compiler_flag="-o out/conftest2.$ac_objext"
18754 # Insert the option either (1) after the last *FLAGS variable, or
18755 # (2) before a word containing "conftest.", or (3) at the end.
18756 # Note that $ac_compile itself does not contain backslashes and begins
18757 # with a dollar sign (not a hyphen), so the echo should work correctly.
18758 lt_compile=`echo "$ac_compile" | $SED \
18759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18761 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018763 (eval "$lt_compile" 2>out/conftest.err)
18764 ac_status=$?
18765 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18768 then
18769 # The compiler can only warn and ignore the option if not recognized
18770 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18774 lt_cv_prog_compiler_c_o_CXX=yes
18775 fi
18776 fi
18777 chmod u+w . 2>&5
18778 $RM conftest*
18779 # SGI C++ compiler will create directory out/ii_files/ for
18780 # template instantiation
18781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18782 $RM out/* && rmdir out
18783 cd ..
18784 $RM -r conftest
18785 $RM conftest*
18786
18787fi
18788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18789$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18790
18791
18792
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18794$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018795if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018796 $as_echo_n "(cached) " >&6
18797else
18798 lt_cv_prog_compiler_c_o_CXX=no
18799 $RM -r conftest 2>/dev/null
18800 mkdir conftest
18801 cd conftest
18802 mkdir out
18803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18804
18805 lt_compiler_flag="-o out/conftest2.$ac_objext"
18806 # Insert the option either (1) after the last *FLAGS variable, or
18807 # (2) before a word containing "conftest.", or (3) at the end.
18808 # Note that $ac_compile itself does not contain backslashes and begins
18809 # with a dollar sign (not a hyphen), so the echo should work correctly.
18810 lt_compile=`echo "$ac_compile" | $SED \
18811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18813 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018815 (eval "$lt_compile" 2>out/conftest.err)
18816 ac_status=$?
18817 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18820 then
18821 # The compiler can only warn and ignore the option if not recognized
18822 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18826 lt_cv_prog_compiler_c_o_CXX=yes
18827 fi
18828 fi
18829 chmod u+w . 2>&5
18830 $RM conftest*
18831 # SGI C++ compiler will create directory out/ii_files/ for
18832 # template instantiation
18833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18834 $RM out/* && rmdir out
18835 cd ..
18836 $RM -r conftest
18837 $RM conftest*
18838
18839fi
18840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18841$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18842
18843
18844
18845
18846hard_links="nottested"
18847if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18848 # do not overwrite the value of need_locks provided by the user
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18850$as_echo_n "checking if we can lock with hard links... " >&6; }
18851 hard_links=yes
18852 $RM conftest*
18853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18854 touch conftest.a
18855 ln conftest.a conftest.b 2>&5 || hard_links=no
18856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18858$as_echo "$hard_links" >&6; }
18859 if test "$hard_links" = no; then
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18861$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18862 need_locks=warn
18863 fi
18864else
18865 need_locks=no
18866fi
18867
18868
18869
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18871$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18872
18873 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018874 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018875 case $host_os in
18876 aix[4-9]*)
18877 # If we're using GNU nm, then we don't want the "-C" option.
18878 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018879 # Also, AIX nm treats weak defined symbols like other global defined
18880 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018881 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018882 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 +000018883 else
18884 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'
18885 fi
18886 ;;
18887 pw32*)
18888 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018889 ;;
cristy73bd4a52010-10-05 11:24:23 +000018890 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018891 case $cc_basename in
18892 cl*) ;;
18893 *)
18894 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'
18895 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18896 ;;
18897 esac
18898 ;;
cristy73bd4a52010-10-05 11:24:23 +000018899 *)
18900 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018901 ;;
cristy73bd4a52010-10-05 11:24:23 +000018902 esac
cristy73bd4a52010-10-05 11:24:23 +000018903
18904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18905$as_echo "$ld_shlibs_CXX" >&6; }
18906test "$ld_shlibs_CXX" = no && can_build_shared=no
18907
18908with_gnu_ld_CXX=$with_gnu_ld
18909
18910
18911
18912
18913
18914
18915#
18916# Do we need to explicitly link libc?
18917#
18918case "x$archive_cmds_need_lc_CXX" in
18919x|xyes)
18920 # Assume -lc should be added
18921 archive_cmds_need_lc_CXX=yes
18922
18923 if test "$enable_shared" = yes && test "$GCC" = yes; then
18924 case $archive_cmds_CXX in
18925 *'~'*)
18926 # FIXME: we may have to deal with multi-command sequences.
18927 ;;
18928 '$CC '*)
18929 # Test whether the compiler implicitly links with -lc since on some
18930 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18931 # to ld, don't add -lc before -lgcc.
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18933$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018934if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018935 $as_echo_n "(cached) " >&6
18936else
18937 $RM conftest*
18938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018939
cristy0c60a692010-11-04 01:09:47 +000018940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018941 (eval $ac_compile) 2>&5
18942 ac_status=$?
18943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18944 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018945 soname=conftest
18946 lib=conftest
18947 libobjs=conftest.$ac_objext
18948 deplibs=
18949 wl=$lt_prog_compiler_wl_CXX
18950 pic_flag=$lt_prog_compiler_pic_CXX
18951 compiler_flags=-v
18952 linker_flags=-v
18953 verstring=
18954 output_objdir=.
18955 libname=conftest
18956 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18957 allow_undefined_flag_CXX=
18958 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 +000018959 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18960 ac_status=$?
18961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18962 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018963 then
18964 lt_cv_archive_cmds_need_lc_CXX=no
18965 else
18966 lt_cv_archive_cmds_need_lc_CXX=yes
18967 fi
18968 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18969 else
18970 cat conftest.err 1>&5
18971 fi
18972 $RM conftest*
18973
18974fi
18975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18976$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18977 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018978 ;;
18979 esac
18980 fi
18981 ;;
18982esac
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19048$as_echo_n "checking dynamic linker characteristics... " >&6; }
19049
19050library_names_spec=
19051libname_spec='lib$name'
19052soname_spec=
19053shrext_cmds=".so"
19054postinstall_cmds=
19055postuninstall_cmds=
19056finish_cmds=
19057finish_eval=
19058shlibpath_var=
19059shlibpath_overrides_runpath=unknown
19060version_type=none
19061dynamic_linker="$host_os ld.so"
19062sys_lib_dlsearch_path_spec="/lib /usr/lib"
19063need_lib_prefix=unknown
19064hardcode_into_libs=no
19065
19066# when you set need_version to no, make sure it does not cause -set_version
19067# flags to be left without arguments
19068need_version=unknown
19069
19070case $host_os in
19071aix3*)
19072 version_type=linux
19073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19074 shlibpath_var=LIBPATH
19075
19076 # AIX 3 has no versioning support, so we append a major version to the name.
19077 soname_spec='${libname}${release}${shared_ext}$major'
19078 ;;
19079
19080aix[4-9]*)
19081 version_type=linux
19082 need_lib_prefix=no
19083 need_version=no
19084 hardcode_into_libs=yes
19085 if test "$host_cpu" = ia64; then
19086 # AIX 5 supports IA64
19087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19088 shlibpath_var=LD_LIBRARY_PATH
19089 else
19090 # With GCC up to 2.95.x, collect2 would create an import file
19091 # for dependence libraries. The import file would start with
19092 # the line `#! .'. This would cause the generated library to
19093 # depend on `.', always an invalid library. This was fixed in
19094 # development snapshots of GCC prior to 3.0.
19095 case $host_os in
19096 aix4 | aix4.[01] | aix4.[01].*)
19097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19098 echo ' yes '
19099 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19100 :
19101 else
19102 can_build_shared=no
19103 fi
19104 ;;
19105 esac
19106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19107 # soname into executable. Probably we can add versioning support to
19108 # collect2, so additional links can be useful in future.
19109 if test "$aix_use_runtimelinking" = yes; then
19110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19111 # instead of lib<name>.a to let people know that these are not
19112 # typical AIX shared libraries.
19113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19114 else
19115 # We preserve .a as extension for shared libraries through AIX4.2
19116 # and later when we are not doing run time linking.
19117 library_names_spec='${libname}${release}.a $libname.a'
19118 soname_spec='${libname}${release}${shared_ext}$major'
19119 fi
19120 shlibpath_var=LIBPATH
19121 fi
19122 ;;
19123
19124amigaos*)
19125 case $host_cpu in
19126 powerpc)
19127 # Since July 2007 AmigaOS4 officially supports .so libraries.
19128 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19130 ;;
19131 m68k)
19132 library_names_spec='$libname.ixlibrary $libname.a'
19133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019134 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 +000019135 ;;
19136 esac
19137 ;;
19138
19139beos*)
19140 library_names_spec='${libname}${shared_ext}'
19141 dynamic_linker="$host_os ld.so"
19142 shlibpath_var=LIBRARY_PATH
19143 ;;
19144
19145bsdi[45]*)
19146 version_type=linux
19147 need_version=no
19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149 soname_spec='${libname}${release}${shared_ext}$major'
19150 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19151 shlibpath_var=LD_LIBRARY_PATH
19152 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19153 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19154 # the default ld.so.conf also contains /usr/contrib/lib and
19155 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19156 # libtool to hard-code these into programs
19157 ;;
19158
19159cygwin* | mingw* | pw32* | cegcc*)
19160 version_type=windows
19161 shrext_cmds=".dll"
19162 need_version=no
19163 need_lib_prefix=no
19164
cristyda16f162011-02-19 23:52:17 +000019165 case $GCC,$cc_basename in
19166 yes,*)
19167 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019168 library_names_spec='$libname.dll.a'
19169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19170 postinstall_cmds='base_file=`basename \${file}`~
19171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19172 dldir=$destdir/`dirname \$dlpath`~
19173 test -d \$dldir || mkdir -p \$dldir~
19174 $install_prog $dir/$dlname \$dldir/$dlname~
19175 chmod a+x \$dldir/$dlname~
19176 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19177 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19178 fi'
19179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19180 dlpath=$dir/\$dldll~
19181 $RM \$dlpath'
19182 shlibpath_overrides_runpath=yes
19183
19184 case $host_os in
19185 cygwin*)
19186 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19187 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019188
cristy73bd4a52010-10-05 11:24:23 +000019189 ;;
19190 mingw* | cegcc*)
19191 # MinGW DLLs use traditional 'lib' prefix
19192 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019193 ;;
19194 pw32*)
19195 # pw32 DLLs use 'pw' prefix rather than 'lib'
19196 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19197 ;;
19198 esac
cristyda16f162011-02-19 23:52:17 +000019199 dynamic_linker='Win32 ld.exe'
19200 ;;
19201
19202 *,cl*)
19203 # Native MSVC
19204 libname_spec='$name'
19205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19206 library_names_spec='${libname}.dll.lib'
19207
19208 case $build_os in
19209 mingw*)
19210 sys_lib_search_path_spec=
19211 lt_save_ifs=$IFS
19212 IFS=';'
19213 for lt_path in $LIB
19214 do
19215 IFS=$lt_save_ifs
19216 # Let DOS variable expansion print the short 8.3 style file name.
19217 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19218 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19219 done
19220 IFS=$lt_save_ifs
19221 # Convert to MSYS style.
19222 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19223 ;;
19224 cygwin*)
19225 # Convert to unix form, then to dos form, then back to unix form
19226 # but this time dos style (no spaces!) so that the unix form looks
19227 # like /cygdrive/c/PROGRA~1:/cygdr...
19228 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19229 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19230 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19231 ;;
19232 *)
19233 sys_lib_search_path_spec="$LIB"
19234 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19235 # It is most probably a Windows format PATH.
19236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19237 else
19238 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19239 fi
19240 # FIXME: find the short name or the path components, as spaces are
19241 # common. (e.g. "Program Files" -> "PROGRA~1")
19242 ;;
19243 esac
19244
19245 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19246 postinstall_cmds='base_file=`basename \${file}`~
19247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19248 dldir=$destdir/`dirname \$dlpath`~
19249 test -d \$dldir || mkdir -p \$dldir~
19250 $install_prog $dir/$dlname \$dldir/$dlname'
19251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19252 dlpath=$dir/\$dldll~
19253 $RM \$dlpath'
19254 shlibpath_overrides_runpath=yes
19255 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019256 ;;
19257
19258 *)
cristyda16f162011-02-19 23:52:17 +000019259 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019260 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019261 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019262 ;;
19263 esac
cristy73bd4a52010-10-05 11:24:23 +000019264 # FIXME: first we should search . and the directory the executable is in
19265 shlibpath_var=PATH
19266 ;;
19267
19268darwin* | rhapsody*)
19269 dynamic_linker="$host_os dyld"
19270 version_type=darwin
19271 need_lib_prefix=no
19272 need_version=no
19273 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19274 soname_spec='${libname}${release}${major}$shared_ext'
19275 shlibpath_overrides_runpath=yes
19276 shlibpath_var=DYLD_LIBRARY_PATH
19277 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19278
19279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19280 ;;
19281
19282dgux*)
19283 version_type=linux
19284 need_lib_prefix=no
19285 need_version=no
19286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19287 soname_spec='${libname}${release}${shared_ext}$major'
19288 shlibpath_var=LD_LIBRARY_PATH
19289 ;;
19290
19291freebsd1*)
19292 dynamic_linker=no
19293 ;;
19294
19295freebsd* | dragonfly*)
19296 # DragonFly does not have aout. When/if they implement a new
19297 # versioning mechanism, adjust this.
19298 if test -x /usr/bin/objformat; then
19299 objformat=`/usr/bin/objformat`
19300 else
19301 case $host_os in
19302 freebsd[123]*) objformat=aout ;;
19303 *) objformat=elf ;;
19304 esac
19305 fi
19306 version_type=freebsd-$objformat
19307 case $version_type in
19308 freebsd-elf*)
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19310 need_version=no
19311 need_lib_prefix=no
19312 ;;
19313 freebsd-*)
19314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19315 need_version=yes
19316 ;;
19317 esac
19318 shlibpath_var=LD_LIBRARY_PATH
19319 case $host_os in
19320 freebsd2*)
19321 shlibpath_overrides_runpath=yes
19322 ;;
19323 freebsd3.[01]* | freebsdelf3.[01]*)
19324 shlibpath_overrides_runpath=yes
19325 hardcode_into_libs=yes
19326 ;;
19327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19329 shlibpath_overrides_runpath=no
19330 hardcode_into_libs=yes
19331 ;;
19332 *) # from 4.6 on, and DragonFly
19333 shlibpath_overrides_runpath=yes
19334 hardcode_into_libs=yes
19335 ;;
19336 esac
19337 ;;
19338
19339gnu*)
19340 version_type=linux
19341 need_lib_prefix=no
19342 need_version=no
19343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19344 soname_spec='${libname}${release}${shared_ext}$major'
19345 shlibpath_var=LD_LIBRARY_PATH
19346 hardcode_into_libs=yes
19347 ;;
19348
cristy0c60a692010-11-04 01:09:47 +000019349haiku*)
19350 version_type=linux
19351 need_lib_prefix=no
19352 need_version=no
19353 dynamic_linker="$host_os runtime_loader"
19354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19355 soname_spec='${libname}${release}${shared_ext}$major'
19356 shlibpath_var=LIBRARY_PATH
19357 shlibpath_overrides_runpath=yes
19358 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19359 hardcode_into_libs=yes
19360 ;;
19361
cristy73bd4a52010-10-05 11:24:23 +000019362hpux9* | hpux10* | hpux11*)
19363 # Give a soname corresponding to the major version so that dld.sl refuses to
19364 # link against other versions.
19365 version_type=sunos
19366 need_lib_prefix=no
19367 need_version=no
19368 case $host_cpu in
19369 ia64*)
19370 shrext_cmds='.so'
19371 hardcode_into_libs=yes
19372 dynamic_linker="$host_os dld.so"
19373 shlibpath_var=LD_LIBRARY_PATH
19374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19376 soname_spec='${libname}${release}${shared_ext}$major'
19377 if test "X$HPUX_IA64_MODE" = X32; then
19378 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19379 else
19380 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19381 fi
19382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19383 ;;
19384 hppa*64*)
19385 shrext_cmds='.sl'
19386 hardcode_into_libs=yes
19387 dynamic_linker="$host_os dld.sl"
19388 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19391 soname_spec='${libname}${release}${shared_ext}$major'
19392 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19394 ;;
19395 *)
19396 shrext_cmds='.sl'
19397 dynamic_linker="$host_os dld.sl"
19398 shlibpath_var=SHLIB_PATH
19399 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19401 soname_spec='${libname}${release}${shared_ext}$major'
19402 ;;
19403 esac
cristy0c60a692010-11-04 01:09:47 +000019404 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019405 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019406 # or fails outright, so override atomically:
19407 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019408 ;;
19409
19410interix[3-9]*)
19411 version_type=linux
19412 need_lib_prefix=no
19413 need_version=no
19414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19415 soname_spec='${libname}${release}${shared_ext}$major'
19416 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19417 shlibpath_var=LD_LIBRARY_PATH
19418 shlibpath_overrides_runpath=no
19419 hardcode_into_libs=yes
19420 ;;
19421
19422irix5* | irix6* | nonstopux*)
19423 case $host_os in
19424 nonstopux*) version_type=nonstopux ;;
19425 *)
19426 if test "$lt_cv_prog_gnu_ld" = yes; then
19427 version_type=linux
19428 else
19429 version_type=irix
19430 fi ;;
19431 esac
19432 need_lib_prefix=no
19433 need_version=no
19434 soname_spec='${libname}${release}${shared_ext}$major'
19435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19436 case $host_os in
19437 irix5* | nonstopux*)
19438 libsuff= shlibsuff=
19439 ;;
19440 *)
19441 case $LD in # libtool.m4 will add one of these switches to LD
19442 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19443 libsuff= shlibsuff= libmagic=32-bit;;
19444 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19445 libsuff=32 shlibsuff=N32 libmagic=N32;;
19446 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19447 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19448 *) libsuff= shlibsuff= libmagic=never-match;;
19449 esac
19450 ;;
19451 esac
19452 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19453 shlibpath_overrides_runpath=no
19454 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19455 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19456 hardcode_into_libs=yes
19457 ;;
19458
19459# No shared lib support for Linux oldld, aout, or coff.
19460linux*oldld* | linux*aout* | linux*coff*)
19461 dynamic_linker=no
19462 ;;
19463
19464# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019465linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019466 version_type=linux
19467 need_lib_prefix=no
19468 need_version=no
19469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19470 soname_spec='${libname}${release}${shared_ext}$major'
19471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19472 shlibpath_var=LD_LIBRARY_PATH
19473 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019474
cristy73bd4a52010-10-05 11:24:23 +000019475 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019476 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019477 $as_echo_n "(cached) " >&6
19478else
19479 lt_cv_shlibpath_overrides_runpath=no
19480 save_LDFLAGS=$LDFLAGS
19481 save_libdir=$libdir
19482 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19483 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019485/* end confdefs.h. */
19486
19487int
19488main ()
19489{
19490
19491 ;
19492 return 0;
19493}
19494_ACEOF
19495if ac_fn_cxx_try_link "$LINENO"; then :
19496 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019497 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019498fi
19499fi
19500rm -f core conftest.err conftest.$ac_objext \
19501 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019502 LDFLAGS=$save_LDFLAGS
19503 libdir=$save_libdir
19504
19505fi
19506
19507 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019508
19509 # This implies no fast_install, which is unacceptable.
19510 # Some rework will be needed to allow for fast_install
19511 # before this can be enabled.
19512 hardcode_into_libs=yes
19513
19514 # Add ABI-specific directories to the system library path.
19515 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19516
19517 # Append ld.so.conf contents to the search path
19518 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019519 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 +000019520 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019521
cristy73bd4a52010-10-05 11:24:23 +000019522 fi
19523
19524 # We used to test for /lib/ld.so.1 and disable shared libraries on
19525 # powerpc, because MkLinux only supported shared libraries with the
19526 # GNU dynamic linker. Since this was broken with cross compilers,
19527 # most powerpc-linux boxes support dynamic linking these days and
19528 # people can always --disable-shared, the test was removed, and we
19529 # assume the GNU/Linux dynamic linker is in use.
19530 dynamic_linker='GNU/Linux ld.so'
19531 ;;
19532
19533netbsd*)
19534 version_type=sunos
19535 need_lib_prefix=no
19536 need_version=no
19537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19540 dynamic_linker='NetBSD (a.out) ld.so'
19541 else
19542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19543 soname_spec='${libname}${release}${shared_ext}$major'
19544 dynamic_linker='NetBSD ld.elf_so'
19545 fi
19546 shlibpath_var=LD_LIBRARY_PATH
19547 shlibpath_overrides_runpath=yes
19548 hardcode_into_libs=yes
19549 ;;
19550
19551newsos6)
19552 version_type=linux
19553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19554 shlibpath_var=LD_LIBRARY_PATH
19555 shlibpath_overrides_runpath=yes
19556 ;;
19557
19558*nto* | *qnx*)
19559 version_type=qnx
19560 need_lib_prefix=no
19561 need_version=no
19562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19563 soname_spec='${libname}${release}${shared_ext}$major'
19564 shlibpath_var=LD_LIBRARY_PATH
19565 shlibpath_overrides_runpath=no
19566 hardcode_into_libs=yes
19567 dynamic_linker='ldqnx.so'
19568 ;;
19569
19570openbsd*)
19571 version_type=sunos
19572 sys_lib_dlsearch_path_spec="/usr/lib"
19573 need_lib_prefix=no
19574 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19575 case $host_os in
19576 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19577 *) need_version=no ;;
19578 esac
19579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19581 shlibpath_var=LD_LIBRARY_PATH
19582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19583 case $host_os in
19584 openbsd2.[89] | openbsd2.[89].*)
19585 shlibpath_overrides_runpath=no
19586 ;;
19587 *)
19588 shlibpath_overrides_runpath=yes
19589 ;;
19590 esac
19591 else
19592 shlibpath_overrides_runpath=yes
19593 fi
19594 ;;
19595
19596os2*)
19597 libname_spec='$name'
19598 shrext_cmds=".dll"
19599 need_lib_prefix=no
19600 library_names_spec='$libname${shared_ext} $libname.a'
19601 dynamic_linker='OS/2 ld.exe'
19602 shlibpath_var=LIBPATH
19603 ;;
19604
19605osf3* | osf4* | osf5*)
19606 version_type=osf
19607 need_lib_prefix=no
19608 need_version=no
19609 soname_spec='${libname}${release}${shared_ext}$major'
19610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19611 shlibpath_var=LD_LIBRARY_PATH
19612 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19613 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19614 ;;
19615
19616rdos*)
19617 dynamic_linker=no
19618 ;;
19619
19620solaris*)
19621 version_type=linux
19622 need_lib_prefix=no
19623 need_version=no
19624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19625 soname_spec='${libname}${release}${shared_ext}$major'
19626 shlibpath_var=LD_LIBRARY_PATH
19627 shlibpath_overrides_runpath=yes
19628 hardcode_into_libs=yes
19629 # ldd complains unless libraries are executable
19630 postinstall_cmds='chmod +x $lib'
19631 ;;
19632
19633sunos4*)
19634 version_type=sunos
19635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19637 shlibpath_var=LD_LIBRARY_PATH
19638 shlibpath_overrides_runpath=yes
19639 if test "$with_gnu_ld" = yes; then
19640 need_lib_prefix=no
19641 fi
19642 need_version=yes
19643 ;;
19644
19645sysv4 | sysv4.3*)
19646 version_type=linux
19647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19648 soname_spec='${libname}${release}${shared_ext}$major'
19649 shlibpath_var=LD_LIBRARY_PATH
19650 case $host_vendor in
19651 sni)
19652 shlibpath_overrides_runpath=no
19653 need_lib_prefix=no
19654 runpath_var=LD_RUN_PATH
19655 ;;
19656 siemens)
19657 need_lib_prefix=no
19658 ;;
19659 motorola)
19660 need_lib_prefix=no
19661 need_version=no
19662 shlibpath_overrides_runpath=no
19663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19664 ;;
19665 esac
19666 ;;
19667
19668sysv4*MP*)
19669 if test -d /usr/nec ;then
19670 version_type=linux
19671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19672 soname_spec='$libname${shared_ext}.$major'
19673 shlibpath_var=LD_LIBRARY_PATH
19674 fi
19675 ;;
19676
19677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19678 version_type=freebsd-elf
19679 need_lib_prefix=no
19680 need_version=no
19681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19682 soname_spec='${libname}${release}${shared_ext}$major'
19683 shlibpath_var=LD_LIBRARY_PATH
19684 shlibpath_overrides_runpath=yes
19685 hardcode_into_libs=yes
19686 if test "$with_gnu_ld" = yes; then
19687 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19688 else
19689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19690 case $host_os in
19691 sco3.2v5*)
19692 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19693 ;;
19694 esac
19695 fi
19696 sys_lib_dlsearch_path_spec='/usr/lib'
19697 ;;
19698
19699tpf*)
19700 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19701 version_type=linux
19702 need_lib_prefix=no
19703 need_version=no
19704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19705 shlibpath_var=LD_LIBRARY_PATH
19706 shlibpath_overrides_runpath=no
19707 hardcode_into_libs=yes
19708 ;;
19709
19710uts4*)
19711 version_type=linux
19712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19713 soname_spec='${libname}${release}${shared_ext}$major'
19714 shlibpath_var=LD_LIBRARY_PATH
19715 ;;
19716
19717*)
19718 dynamic_linker=no
19719 ;;
19720esac
19721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19722$as_echo "$dynamic_linker" >&6; }
19723test "$dynamic_linker" = no && can_build_shared=no
19724
19725variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19726if test "$GCC" = yes; then
19727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19728fi
19729
19730if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19731 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19732fi
19733if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19734 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19735fi
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
cristy0c60a692010-11-04 01:09:47 +000019772
19773
cristy73bd4a52010-10-05 11:24:23 +000019774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19775$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19776hardcode_action_CXX=
19777if test -n "$hardcode_libdir_flag_spec_CXX" ||
19778 test -n "$runpath_var_CXX" ||
19779 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19780
19781 # We can hardcode non-existent directories.
19782 if test "$hardcode_direct_CXX" != no &&
19783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19784 # have to relink, otherwise we might link with an installed library
19785 # when we should be linking with a yet-to-be-installed one
19786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19787 test "$hardcode_minus_L_CXX" != no; then
19788 # Linking always hardcodes the temporary library directory.
19789 hardcode_action_CXX=relink
19790 else
19791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19792 hardcode_action_CXX=immediate
19793 fi
19794else
19795 # We cannot hardcode anything, or else we can only hardcode existing
19796 # directories.
19797 hardcode_action_CXX=unsupported
19798fi
19799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19800$as_echo "$hardcode_action_CXX" >&6; }
19801
19802if test "$hardcode_action_CXX" = relink ||
19803 test "$inherit_rpath_CXX" = yes; then
19804 # Fast installation is not supported
19805 enable_fast_install=no
19806elif test "$shlibpath_overrides_runpath" = yes ||
19807 test "$enable_shared" = no; then
19808 # Fast installation is not necessary
19809 enable_fast_install=needless
19810fi
19811
19812
19813
19814
19815
19816
19817
19818 fi # test -n "$compiler"
19819
19820 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019821 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019822 LDCXX=$LD
19823 LD=$lt_save_LD
19824 GCC=$lt_save_GCC
19825 with_gnu_ld=$lt_save_with_gnu_ld
19826 lt_cv_path_LDCXX=$lt_cv_path_LD
19827 lt_cv_path_LD=$lt_save_path_LD
19828 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19829 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19830fi # test "$_lt_caught_CXX_error" != yes
19831
19832ac_ext=c
19833ac_cpp='$CPP $CPPFLAGS'
19834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836ac_compiler_gnu=$ac_cv_c_compiler_gnu
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850 ac_config_commands="$ac_config_commands libtool"
19851
19852
19853
19854
19855# Only expand once:
19856
19857
19858
cristy3ed852e2009-09-05 21:47:34 +000019859
19860
19861# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019862
19863
19864
19865
19866
19867
19868
cristy73bd4a52010-10-05 11:24:23 +000019869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19870$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019871if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019872 $as_echo_n "(cached) " >&6
19873else
19874
19875module=yes
19876eval libltdl_cv_shlibext=$shrext_cmds
19877
19878fi
19879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19880$as_echo "$libltdl_cv_shlibext" >&6; }
19881if test -n "$libltdl_cv_shlibext"; then
19882
19883cat >>confdefs.h <<_ACEOF
19884#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19885_ACEOF
19886
19887fi
19888
19889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19890$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019891if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019892 $as_echo_n "(cached) " >&6
19893else
19894 lt_cv_module_path_var="$shlibpath_var"
19895fi
19896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19897$as_echo "$lt_cv_module_path_var" >&6; }
19898if test -n "$lt_cv_module_path_var"; then
19899
19900cat >>confdefs.h <<_ACEOF
19901#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19902_ACEOF
19903
19904fi
19905
19906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19907$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019908if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019909 $as_echo_n "(cached) " >&6
19910else
19911 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19912fi
19913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19914$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19915if test -n "$lt_cv_sys_dlsearch_path"; then
19916 sys_dlsearch_path=
19917 for dir in $lt_cv_sys_dlsearch_path; do
19918 if test -z "$sys_dlsearch_path"; then
19919 sys_dlsearch_path="$dir"
19920 else
19921 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19922 fi
19923 done
19924
19925cat >>confdefs.h <<_ACEOF
19926#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19927_ACEOF
19928
19929fi
19930
19931
19932LT_DLLOADERS=
19933
19934
19935ac_ext=c
19936ac_cpp='$CPP $CPPFLAGS'
19937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939ac_compiler_gnu=$ac_cv_c_compiler_gnu
19940
19941
19942LIBADD_DLOPEN=
19943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19944$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019945if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019946 $as_echo_n "(cached) " >&6
19947else
19948 ac_func_search_save_LIBS=$LIBS
19949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19950/* end confdefs.h. */
19951
19952/* Override any GCC internal prototype to avoid an error.
19953 Use char because int might match the return type of a GCC
19954 builtin and then its argument prototype would still apply. */
19955#ifdef __cplusplus
19956extern "C"
19957#endif
19958char dlopen ();
19959int
19960main ()
19961{
19962return dlopen ();
19963 ;
19964 return 0;
19965}
19966_ACEOF
19967for ac_lib in '' dl; do
19968 if test -z "$ac_lib"; then
19969 ac_res="none required"
19970 else
19971 ac_res=-l$ac_lib
19972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19973 fi
19974 if ac_fn_c_try_link "$LINENO"; then :
19975 ac_cv_search_dlopen=$ac_res
19976fi
19977rm -f core conftest.err conftest.$ac_objext \
19978 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019979 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019980 break
19981fi
19982done
cristyda16f162011-02-19 23:52:17 +000019983if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019984
19985else
19986 ac_cv_search_dlopen=no
19987fi
19988rm conftest.$ac_ext
19989LIBS=$ac_func_search_save_LIBS
19990fi
19991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19992$as_echo "$ac_cv_search_dlopen" >&6; }
19993ac_res=$ac_cv_search_dlopen
19994if test "$ac_res" != no; then :
19995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19996
19997$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19998
19999 if test "$ac_cv_search_dlopen" != "none required" ; then
20000 LIBADD_DLOPEN="-ldl"
20001 fi
20002 libltdl_cv_lib_dl_dlopen="yes"
20003 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20004else
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006/* end confdefs.h. */
20007#if HAVE_DLFCN_H
20008# include <dlfcn.h>
20009#endif
20010
20011int
20012main ()
20013{
20014dlopen(0, 0);
20015 ;
20016 return 0;
20017}
20018_ACEOF
20019if ac_fn_c_try_link "$LINENO"; then :
20020
20021$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20022
20023 libltdl_cv_func_dlopen="yes"
20024 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20025else
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20027$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020028if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020029 $as_echo_n "(cached) " >&6
20030else
20031 ac_check_lib_save_LIBS=$LIBS
20032LIBS="-lsvld $LIBS"
20033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20034/* end confdefs.h. */
20035
20036/* Override any GCC internal prototype to avoid an error.
20037 Use char because int might match the return type of a GCC
20038 builtin and then its argument prototype would still apply. */
20039#ifdef __cplusplus
20040extern "C"
20041#endif
20042char dlopen ();
20043int
20044main ()
20045{
20046return dlopen ();
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051if ac_fn_c_try_link "$LINENO"; then :
20052 ac_cv_lib_svld_dlopen=yes
20053else
20054 ac_cv_lib_svld_dlopen=no
20055fi
20056rm -f core conftest.err conftest.$ac_objext \
20057 conftest$ac_exeext conftest.$ac_ext
20058LIBS=$ac_check_lib_save_LIBS
20059fi
20060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20061$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020062if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020063
20064$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20065
20066 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20067 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20068fi
20069
20070fi
20071rm -f core conftest.err conftest.$ac_objext \
20072 conftest$ac_exeext conftest.$ac_ext
20073fi
20074
20075if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20076then
20077 lt_save_LIBS="$LIBS"
20078 LIBS="$LIBS $LIBADD_DLOPEN"
20079 for ac_func in dlerror
20080do :
20081 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020082if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020083 cat >>confdefs.h <<_ACEOF
20084#define HAVE_DLERROR 1
20085_ACEOF
20086
20087fi
20088done
20089
20090 LIBS="$lt_save_LIBS"
20091fi
20092
20093
20094LIBADD_SHL_LOAD=
20095ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020096if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020097
20098$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20099
20100 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20101else
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20103$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020104if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020105 $as_echo_n "(cached) " >&6
20106else
20107 ac_check_lib_save_LIBS=$LIBS
20108LIBS="-ldld $LIBS"
20109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20110/* end confdefs.h. */
20111
20112/* Override any GCC internal prototype to avoid an error.
20113 Use char because int might match the return type of a GCC
20114 builtin and then its argument prototype would still apply. */
20115#ifdef __cplusplus
20116extern "C"
20117#endif
20118char shl_load ();
20119int
20120main ()
20121{
20122return shl_load ();
20123 ;
20124 return 0;
20125}
20126_ACEOF
20127if ac_fn_c_try_link "$LINENO"; then :
20128 ac_cv_lib_dld_shl_load=yes
20129else
20130 ac_cv_lib_dld_shl_load=no
20131fi
20132rm -f core conftest.err conftest.$ac_objext \
20133 conftest$ac_exeext conftest.$ac_ext
20134LIBS=$ac_check_lib_save_LIBS
20135fi
20136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20137$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020138if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020139
20140$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20141
20142 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20143 LIBADD_SHL_LOAD="-ldld"
20144fi
20145
20146fi
20147
20148
20149
20150case $host_os in
20151darwin[1567].*)
20152# We only want this for pre-Mac OS X 10.4.
20153 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020154if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020155
20156$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20157
20158 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20159fi
20160
20161 ;;
20162beos*)
20163 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20164 ;;
20165cygwin* | mingw* | os2* | pw32*)
20166 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20167"
cristyda16f162011-02-19 23:52:17 +000020168if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020169 ac_have_decl=1
20170else
20171 ac_have_decl=0
20172fi
20173
20174cat >>confdefs.h <<_ACEOF
20175#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20176_ACEOF
20177
20178 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20179 ;;
20180esac
20181
20182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20183$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020184if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020185 $as_echo_n "(cached) " >&6
20186else
20187 ac_check_lib_save_LIBS=$LIBS
20188LIBS="-ldld $LIBS"
20189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20190/* end confdefs.h. */
20191
20192/* Override any GCC internal prototype to avoid an error.
20193 Use char because int might match the return type of a GCC
20194 builtin and then its argument prototype would still apply. */
20195#ifdef __cplusplus
20196extern "C"
20197#endif
20198char dld_link ();
20199int
20200main ()
20201{
20202return dld_link ();
20203 ;
20204 return 0;
20205}
20206_ACEOF
20207if ac_fn_c_try_link "$LINENO"; then :
20208 ac_cv_lib_dld_dld_link=yes
20209else
20210 ac_cv_lib_dld_dld_link=no
20211fi
20212rm -f core conftest.err conftest.$ac_objext \
20213 conftest$ac_exeext conftest.$ac_ext
20214LIBS=$ac_check_lib_save_LIBS
20215fi
20216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20217$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020218if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020219
20220$as_echo "#define HAVE_DLD 1" >>confdefs.h
20221
20222 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20223fi
20224
20225
20226
20227
20228LT_DLPREOPEN=
20229if test -n "$LT_DLLOADERS"
20230then
20231 for lt_loader in $LT_DLLOADERS; do
20232 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20233 done
20234
20235$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20236
20237fi
20238
20239
20240LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20241
20242
20243ac_ext=c
20244ac_cpp='$CPP $CPPFLAGS'
20245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20247ac_compiler_gnu=$ac_cv_c_compiler_gnu
20248
20249
20250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20251$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020252if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020253 $as_echo_n "(cached) " >&6
20254else
20255 lt_cv_sys_symbol_underscore=no
20256 cat > conftest.$ac_ext <<_LT_EOF
20257void nm_test_func(){}
20258int main(){nm_test_func;return 0;}
20259_LT_EOF
20260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20261 (eval $ac_compile) 2>&5
20262 ac_status=$?
20263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20264 test $ac_status = 0; }; then
20265 # Now try to grab the symbols.
20266 ac_nlist=conftest.nm
20267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20268 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20269 ac_status=$?
20270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20271 test $ac_status = 0; } && test -s "$ac_nlist"; then
20272 # See whether the symbols have a leading underscore.
20273 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20274 lt_cv_sys_symbol_underscore=yes
20275 else
20276 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20277 :
20278 else
20279 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20280 fi
20281 fi
20282 else
20283 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20284 fi
20285 else
20286 echo "configure: failed program was:" >&5
20287 cat conftest.c >&5
20288 fi
20289 rm -rf conftest*
20290
20291fi
20292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20293$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20294 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20295
20296
20297if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20298 if test x"$libltdl_cv_func_dlopen" = xyes ||
20299 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20301$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020302if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020303 $as_echo_n "(cached) " >&6
20304else
20305 libltdl_cv_need_uscore=unknown
20306 save_LIBS="$LIBS"
20307 LIBS="$LIBS $LIBADD_DLOPEN"
20308 if test "$cross_compiling" = yes; then :
20309 libltdl_cv_need_uscore=cross
20310else
20311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20312 lt_status=$lt_dlunknown
20313 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020314#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020315#include "confdefs.h"
20316
20317#if HAVE_DLFCN_H
20318#include <dlfcn.h>
20319#endif
20320
20321#include <stdio.h>
20322
20323#ifdef RTLD_GLOBAL
20324# define LT_DLGLOBAL RTLD_GLOBAL
20325#else
20326# ifdef DL_GLOBAL
20327# define LT_DLGLOBAL DL_GLOBAL
20328# else
20329# define LT_DLGLOBAL 0
20330# endif
20331#endif
20332
20333/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20334 find out it does not work in some platform. */
20335#ifndef LT_DLLAZY_OR_NOW
20336# ifdef RTLD_LAZY
20337# define LT_DLLAZY_OR_NOW RTLD_LAZY
20338# else
20339# ifdef DL_LAZY
20340# define LT_DLLAZY_OR_NOW DL_LAZY
20341# else
20342# ifdef RTLD_NOW
20343# define LT_DLLAZY_OR_NOW RTLD_NOW
20344# else
20345# ifdef DL_NOW
20346# define LT_DLLAZY_OR_NOW DL_NOW
20347# else
20348# define LT_DLLAZY_OR_NOW 0
20349# endif
20350# endif
20351# endif
20352# endif
20353#endif
20354
cristy0c60a692010-11-04 01:09:47 +000020355/* When -fvisbility=hidden is used, assume the code has been annotated
20356 correspondingly for the symbols needed. */
20357#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020358int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020359#endif
20360
cristyda16f162011-02-19 23:52:17 +000020361int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020362int main ()
20363{
20364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20365 int status = $lt_dlunknown;
20366
20367 if (self)
20368 {
20369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020370 else
20371 {
20372 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20373 else puts (dlerror ());
20374 }
cristy73bd4a52010-10-05 11:24:23 +000020375 /* dlclose (self); */
20376 }
20377 else
20378 puts (dlerror ());
20379
20380 return status;
20381}
20382_LT_EOF
20383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20384 (eval $ac_link) 2>&5
20385 ac_status=$?
20386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20387 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20388 (./conftest; exit; ) >&5 2>/dev/null
20389 lt_status=$?
20390 case x$lt_status in
20391 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20392 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20393 x$lt_dlunknown|x*) ;;
20394 esac
20395 else :
20396 # compilation failed
20397
20398 fi
20399fi
20400rm -fr conftest*
20401
20402 LIBS="$save_LIBS"
20403
20404fi
20405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20406$as_echo "$libltdl_cv_need_uscore" >&6; }
20407 fi
20408fi
20409
20410if test x"$libltdl_cv_need_uscore" = xyes; then
20411
20412$as_echo "#define NEED_USCORE 1" >>confdefs.h
20413
20414fi
20415
20416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20417$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020418if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020419 $as_echo_n "(cached) " >&6
20420else
20421 # PORTME does your system automatically load deplibs for dlopen?
20422 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20423 # For now, we just catch OSes we know something about -- in the
20424 # future, we'll try test this programmatically.
20425 lt_cv_sys_dlopen_deplibs=unknown
20426 case $host_os in
20427 aix3*|aix4.1.*|aix4.2.*)
20428 # Unknown whether this is true for these versions of AIX, but
20429 # we want this `case' here to explicitly catch those versions.
20430 lt_cv_sys_dlopen_deplibs=unknown
20431 ;;
20432 aix[4-9]*)
20433 lt_cv_sys_dlopen_deplibs=yes
20434 ;;
20435 amigaos*)
20436 case $host_cpu in
20437 powerpc)
20438 lt_cv_sys_dlopen_deplibs=no
20439 ;;
20440 esac
20441 ;;
20442 darwin*)
20443 # Assuming the user has installed a libdl from somewhere, this is true
20444 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20445 lt_cv_sys_dlopen_deplibs=yes
20446 ;;
20447 freebsd* | dragonfly*)
20448 lt_cv_sys_dlopen_deplibs=yes
20449 ;;
cristy0c60a692010-11-04 01:09:47 +000020450 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020451 # GNU and its variants, using gnu ld.so (Glibc)
20452 lt_cv_sys_dlopen_deplibs=yes
20453 ;;
20454 hpux10*|hpux11*)
20455 lt_cv_sys_dlopen_deplibs=yes
20456 ;;
20457 interix*)
20458 lt_cv_sys_dlopen_deplibs=yes
20459 ;;
20460 irix[12345]*|irix6.[01]*)
20461 # Catch all versions of IRIX before 6.2, and indicate that we don't
20462 # know how it worked for any of those versions.
20463 lt_cv_sys_dlopen_deplibs=unknown
20464 ;;
20465 irix*)
20466 # The case above catches anything before 6.2, and it's known that
20467 # at 6.2 and later dlopen does load deplibs.
20468 lt_cv_sys_dlopen_deplibs=yes
20469 ;;
20470 netbsd*)
20471 lt_cv_sys_dlopen_deplibs=yes
20472 ;;
20473 openbsd*)
20474 lt_cv_sys_dlopen_deplibs=yes
20475 ;;
20476 osf[1234]*)
20477 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20478 # it did *not* use an RPATH in a shared library to find objects the
20479 # library depends on, so we explicitly say `no'.
20480 lt_cv_sys_dlopen_deplibs=no
20481 ;;
20482 osf5.0|osf5.0a|osf5.1)
20483 # dlopen *does* load deplibs and with the right loader patch applied
20484 # it even uses RPATH in a shared library to search for shared objects
20485 # that the library depends on, but there's no easy way to know if that
20486 # patch is installed. Since this is the case, all we can really
20487 # say is unknown -- it depends on the patch being installed. If
20488 # it is, this changes to `yes'. Without it, it would be `no'.
20489 lt_cv_sys_dlopen_deplibs=unknown
20490 ;;
20491 osf*)
20492 # the two cases above should catch all versions of osf <= 5.1. Read
20493 # the comments above for what we know about them.
20494 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20495 # is used to find them so we can finally say `yes'.
20496 lt_cv_sys_dlopen_deplibs=yes
20497 ;;
20498 qnx*)
20499 lt_cv_sys_dlopen_deplibs=yes
20500 ;;
20501 solaris*)
20502 lt_cv_sys_dlopen_deplibs=yes
20503 ;;
20504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20505 libltdl_cv_sys_dlopen_deplibs=yes
20506 ;;
20507 esac
20508
20509fi
20510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20511$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20512if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20513
20514$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20515
20516fi
20517
20518:
20519
20520for ac_header in argz.h
20521do :
20522 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20523"
cristyda16f162011-02-19 23:52:17 +000020524if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020525 cat >>confdefs.h <<_ACEOF
20526#define HAVE_ARGZ_H 1
20527_ACEOF
20528
20529fi
20530
20531done
20532
20533
20534ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20535# include <argz.h>
20536#endif
20537"
cristyda16f162011-02-19 23:52:17 +000020538if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020539
20540cat >>confdefs.h <<_ACEOF
20541#define HAVE_ERROR_T 1
20542_ACEOF
20543
20544
20545else
20546
20547$as_echo "#define error_t int" >>confdefs.h
20548
20549
20550$as_echo "#define __error_t_defined 1" >>confdefs.h
20551
20552fi
20553
20554
20555ARGZ_H=
20556for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20557 argz_next argz_stringify
20558do :
20559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20560ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020561if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020562 cat >>confdefs.h <<_ACEOF
20563#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20564_ACEOF
20565
20566else
20567 ARGZ_H=argz.h;
20568
20569 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20570
20571fi
20572done
20573
20574
20575if test -z "$ARGZ_H"; then :
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20577$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020578if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020579 $as_echo_n "(cached) " >&6
20580else
20581 case $host_os in #(
20582 *cygwin*)
20583 lt_cv_sys_argz_works=no
20584 if test "$cross_compiling" != no; then
20585 lt_cv_sys_argz_works="guessing no"
20586 else
20587 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20588 save_IFS=$IFS
20589 IFS=-.
20590 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20591 IFS=$save_IFS
20592 lt_os_major=${2-0}
20593 lt_os_minor=${3-0}
20594 lt_os_micro=${4-0}
20595 if test "$lt_os_major" -gt 1 \
20596 || { test "$lt_os_major" -eq 1 \
20597 && { test "$lt_os_minor" -gt 5 \
20598 || { test "$lt_os_minor" -eq 5 \
20599 && test "$lt_os_micro" -gt 24; }; }; }; then
20600 lt_cv_sys_argz_works=yes
20601 fi
20602 fi
20603 ;; #(
20604 *) lt_cv_sys_argz_works=yes ;;
20605 esac
20606fi
20607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20608$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020609 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020610
20611$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20612
20613else
20614 ARGZ_H=argz.h
20615
20616
20617 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20618
20619fi
20620fi
20621
20622
20623
20624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20625$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020626if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020627 $as_echo_n "(cached) " >&6
20628else
20629 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20630 libltdl_cv_preloaded_symbols=yes
20631 else
20632 libltdl_cv_preloaded_symbols=no
20633 fi
20634
20635fi
20636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20637$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20638if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20639
20640$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20641
20642fi
20643
20644# Set options
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656# Check whether --with-included_ltdl was given.
20657if test "${with_included_ltdl+set}" = set; then :
20658 withval=$with_included_ltdl;
20659fi
20660
20661
20662if test "x$with_included_ltdl" != xyes; then
20663 # We are not being forced to use the included libltdl sources, so
20664 # decide whether there is a useful installed version we can use.
20665 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20666
20667"
cristyda16f162011-02-19 23:52:17 +000020668if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020669 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20670 #include <ltdl.h>
20671"
cristyda16f162011-02-19 23:52:17 +000020672if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20674$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020675if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020676 $as_echo_n "(cached) " >&6
20677else
20678 ac_check_lib_save_LIBS=$LIBS
20679LIBS="-lltdl $LIBS"
20680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20681/* end confdefs.h. */
20682
20683/* Override any GCC internal prototype to avoid an error.
20684 Use char because int might match the return type of a GCC
20685 builtin and then its argument prototype would still apply. */
20686#ifdef __cplusplus
20687extern "C"
20688#endif
20689char lt_dladvise_preload ();
20690int
20691main ()
20692{
20693return lt_dladvise_preload ();
20694 ;
20695 return 0;
20696}
20697_ACEOF
20698if ac_fn_c_try_link "$LINENO"; then :
20699 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20700else
20701 ac_cv_lib_ltdl_lt_dladvise_preload=no
20702fi
20703rm -f core conftest.err conftest.$ac_objext \
20704 conftest$ac_exeext conftest.$ac_ext
20705LIBS=$ac_check_lib_save_LIBS
20706fi
20707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20708$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020709if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020710 with_included_ltdl=no
20711else
20712 with_included_ltdl=yes
20713fi
20714
20715else
20716 with_included_ltdl=yes
20717fi
20718
20719else
20720 with_included_ltdl=yes
20721fi
20722
20723
20724fi
20725
20726
20727
20728
20729# Check whether --with-ltdl_include was given.
20730if test "${with_ltdl_include+set}" = set; then :
20731 withval=$with_ltdl_include;
20732fi
20733
20734
20735if test -n "$with_ltdl_include"; then
20736 if test -f "$with_ltdl_include/ltdl.h"; then :
20737 else
cristy98dddb52010-11-04 00:30:15 +000020738 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020739 fi
20740else
20741 with_ltdl_include=no
20742fi
20743
20744
20745# Check whether --with-ltdl_lib was given.
20746if test "${with_ltdl_lib+set}" = set; then :
20747 withval=$with_ltdl_lib;
20748fi
20749
20750
20751if test -n "$with_ltdl_lib"; then
20752 if test -f "$with_ltdl_lib/libltdl.la"; then :
20753 else
cristy98dddb52010-11-04 00:30:15 +000020754 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020755 fi
20756else
20757 with_ltdl_lib=no
20758fi
20759
20760case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20761 ,yes,no,no,)
20762 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020763 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020764 "") enable_ltdl_convenience=yes
20765 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20766esac
20767LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20768LTDLDEPS=$LIBLTDL
20769LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20770
20771
20772
20773
20774
20775# For backwards non-gettext consistent compatibility...
20776INCLTDL="$LTDLINCL"
20777
20778
20779 ;;
20780 ,no,no,no,)
20781 # If the included ltdl is not to be used, then use the
20782 # preinstalled libltdl we found.
20783
20784$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20785
20786 LIBLTDL=-lltdl
20787 LTDLDEPS=
20788 LTDLINCL=
20789 ;;
20790 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020791 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020792 ;;
20793 *) with_included_ltdl=no
20794 LIBLTDL="-L$with_ltdl_lib -lltdl"
20795 LTDLDEPS=
20796 LTDLINCL="-I$with_ltdl_include"
20797 ;;
20798esac
20799INCLTDL="$LTDLINCL"
20800
20801# Report our decision...
20802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20803$as_echo_n "checking where to find libltdl headers... " >&6; }
20804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20805$as_echo "$LTDLINCL" >&6; }
20806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20807$as_echo_n "checking where to find libltdl library... " >&6; }
20808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20809$as_echo "$LIBLTDL" >&6; }
20810
20811
20812
20813# Check whether --enable-ltdl-install was given.
20814if test "${enable_ltdl_install+set}" = set; then :
20815 enableval=$enable_ltdl_install;
20816fi
20817
20818
20819case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20820 *yes*) ;;
20821 *) enable_ltdl_convenience=yes ;;
20822esac
20823
20824 if test x"${enable_ltdl_install-no}" != xno; then
20825 INSTALL_LTDL_TRUE=
20826 INSTALL_LTDL_FALSE='#'
20827else
20828 INSTALL_LTDL_TRUE='#'
20829 INSTALL_LTDL_FALSE=
20830fi
20831
20832 if test x"${enable_ltdl_convenience-no}" != xno; then
20833 CONVENIENCE_LTDL_TRUE=
20834 CONVENIENCE_LTDL_FALSE='#'
20835else
20836 CONVENIENCE_LTDL_TRUE='#'
20837 CONVENIENCE_LTDL_FALSE=
20838fi
20839
20840
20841
20842
20843
20844
cristy73bd4a52010-10-05 11:24:23 +000020845# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20846# the user used. This is so that ltdl.h can pick up the parent projects
20847# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20848# definitions required by ltdl.c.
20849# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20850
20851
20852
20853for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20854do :
20855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20856ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20857"
cristy98dddb52010-11-04 00:30:15 +000020858if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020859 cat >>confdefs.h <<_ACEOF
20860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20861_ACEOF
20862
20863fi
20864
20865done
20866
20867
20868for ac_func in closedir opendir readdir
20869do :
20870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20871ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020872if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020873 cat >>confdefs.h <<_ACEOF
20874#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20875_ACEOF
20876
20877else
20878
20879
20880 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20881
20882fi
20883done
20884
20885for ac_func in strlcat strlcpy
20886do :
20887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20888ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020889if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020890 cat >>confdefs.h <<_ACEOF
20891#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20892_ACEOF
20893
20894else
20895
20896
20897 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20898
20899fi
20900done
20901
20902
20903
20904cat >>confdefs.h <<_ACEOF
20905#define LT_LIBEXT "$libext"
20906_ACEOF
20907
20908
cristyda16f162011-02-19 23:52:17 +000020909name=
20910eval "lt_libprefix=\"$libname_spec\""
20911
20912cat >>confdefs.h <<_ACEOF
20913#define LT_LIBPREFIX "$lt_libprefix"
20914_ACEOF
20915
20916
cristy73bd4a52010-10-05 11:24:23 +000020917name=ltdl
cristyda16f162011-02-19 23:52:17 +000020918eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020919
20920
20921
20922
20923
20924
20925
20926
20927# Only expand once:
20928
20929
cristy3ed852e2009-09-05 21:47:34 +000020930
20931# Check to see if building shared libraries
20932libtool_build_shared_libs='no'
20933if test "$enable_shared" = 'yes'; then
20934 libtool_build_shared_libs='yes'
20935fi
20936
20937# Check to see if building static libraries
20938libtool_build_static_libs='no'
20939if test "$enable_static" = 'yes'; then
20940 libtool_build_static_libs='yes'
20941fi
20942
cristy73bd4a52010-10-05 11:24:23 +000020943 if test "${libtool_build_shared_libs}" = 'yes'; then
20944 WITH_SHARED_LIBS_TRUE=
20945 WITH_SHARED_LIBS_FALSE='#'
20946else
20947 WITH_SHARED_LIBS_TRUE='#'
20948 WITH_SHARED_LIBS_FALSE=
20949fi
20950
cristy3ed852e2009-09-05 21:47:34 +000020951#
20952# Enable support for building loadable modules
20953#
20954
20955# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020956if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020957 withval=$with_modules; with_modules=$withval
20958else
cristy5a1cefd2010-01-06 20:42:35 +000020959 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020960fi
20961
20962
20963# Only allow building loadable modules if we are building shared libraries
20964if test "$with_modules" != 'no' ; then
20965 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020966 { $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 +000020967$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20968 with_modules='no'
20969 fi
20970fi
20971if test "$with_modules" != 'no'; then
20972
cristy8b350f62009-11-15 23:12:43 +000020973$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020974
20975fi
cristy73bd4a52010-10-05 11:24:23 +000020976 if test "$with_modules" != 'no'; then
20977 WITH_MODULES_TRUE=
20978 WITH_MODULES_FALSE='#'
20979else
20980 WITH_MODULES_TRUE='#'
20981 WITH_MODULES_FALSE=
20982fi
20983
cristy3ed852e2009-09-05 21:47:34 +000020984
20985# Enable building/use of libltdl if we are building shared libraries regardless
20986# of whether modules are built or not.
20987with_ltdl='no'
20988if test "$libtool_build_shared_libs" != 'no'; then
20989 with_ltdl='yes'
20990fi
20991
cristy73bd4a52010-10-05 11:24:23 +000020992 if test "$with_ltdl" != 'no'; then
20993 WITH_LTDL_TRUE=
20994 WITH_LTDL_FALSE='#'
20995else
20996 WITH_LTDL_TRUE='#'
20997 WITH_LTDL_FALSE=
20998fi
20999
cristy3ed852e2009-09-05 21:47:34 +000021000if test "$with_ltdl" != 'no'; then
21001
cristy8b350f62009-11-15 23:12:43 +000021002$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021003
21004
21005 # Set DLLDFLAGS
21006 if test X"$enable_shared" = Xyes; then
21007 DLLDFLAGS=-export-dynamic
21008
21009 fi
21010fi
21011
21012# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021013# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021014# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021015if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021016 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21017else
21018 enable_delegate_build='no'
21019fi
21020
21021
21022# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021023if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021024 enableval=$enable_deprecated; enable_deprecated=$enableval
21025else
21026 enable_deprecated='no'
21027fi
21028
21029
21030if test "$enable_deprecated" = 'yes'; then
21031
cristy8b350f62009-11-15 23:12:43 +000021032$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021033
21034else
21035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21036fi
21037
21038# Build a version of ImageMagick which operates uninstalled.
21039# Used to build distributions located via MAGICK_HOME / executable path
21040# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021041if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021042 enableval=$enable_installed; enable_installed=$enableval
21043else
21044 enable_installed='yes'
21045fi
21046
21047
21048if test "$enable_installed" = 'yes'; then
21049
cristy8b350f62009-11-15 23:12:43 +000021050$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021051
21052else
21053 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21054fi
21055
21056# Permit enciphering and deciphering image pixels.
21057# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021058if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021059 enableval=$enable_cipher; enable_cipher=$enableval
21060else
21061 enable_cipher='yes'
21062fi
21063
21064
21065if test "$enable_cipher" = 'yes'; then
21066
cristy8b350f62009-11-15 23:12:43 +000021067$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021068
21069fi
21070
cristy6e3607c2011-09-13 13:59:17 +000021071# Build a zero-configuration version of ImageMagick.
21072# Check whether --enable-zero-configuration was given.
21073if test "${enable_zero_configuration+set}" = set; then :
21074 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021075else
cristy6e3607c2011-09-13 13:59:17 +000021076 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021077fi
21078
21079
cristy6e3607c2011-09-13 13:59:17 +000021080if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021081
cristy6e3607c2011-09-13 13:59:17 +000021082$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021083
cristy81af5702011-09-13 14:20:58 +000021084 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021085fi
21086
21087# Build a high dynamic range version of ImageMagick.
21088# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021089if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021090 enableval=$enable_hdri; enable_hdri=$enableval
21091else
21092 enable_hdri='no'
21093fi
21094
21095
21096MAGICK_HDRI=""
21097if test "$enable_hdri" = 'yes'; then
21098 MAGICK_HDRI="HDRI"
21099
cristy8b350f62009-11-15 23:12:43 +000021100$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021101
cristyfd9dcd42010-08-08 18:07:02 +000021102 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021103fi
21104
cristy3ed852e2009-09-05 21:47:34 +000021105# Build a version of ImageMagick with assert statements.
21106# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021107if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021108 enableval=$enable_assert; enable_assert=$enableval
21109else
21110 enable_assert='yes'
21111fi
21112
21113
21114if test "$enable_assert" = 'no'; then
21115
cristy8b350f62009-11-15 23:12:43 +000021116$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021117
21118fi
21119
cristya448bd22011-10-14 12:38:13 +000021120# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021121
21122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21123$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21124 # Check whether --enable-maintainer-mode was given.
21125if test "${enable_maintainer_mode+set}" = set; then :
21126 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21127else
21128 USE_MAINTAINER_MODE=no
21129fi
21130
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21132$as_echo "$USE_MAINTAINER_MODE" >&6; }
21133 if test $USE_MAINTAINER_MODE = yes; then
21134 MAINTAINER_MODE_TRUE=
21135 MAINTAINER_MODE_FALSE='#'
21136else
21137 MAINTAINER_MODE_TRUE='#'
21138 MAINTAINER_MODE_FALSE=
21139fi
21140
21141 MAINT=$MAINTAINER_MODE_TRUE
21142
21143
cristy3ed852e2009-09-05 21:47:34 +000021144
cristy3ed852e2009-09-05 21:47:34 +000021145# Enable ccmalloc memory debugging support
21146# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021147if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021148 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21149else
21150 enable_ccmalloc='no'
21151fi
21152
21153
21154# Enable Electric Fence memory debugging support
21155# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021156if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021157 enableval=$enable_efence; enable_efence=$enableval
21158else
21159 enable_efence='no'
21160fi
21161
21162
21163# Enable prof-based profiling support
21164# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021165if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021166 enableval=$enable_prof; enable_prof=$enableval
21167else
21168 enable_prof='no'
21169fi
21170
21171
21172# Enable gprof-based profiling support
21173# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021174if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021175 enableval=$enable_gprof; enable_gprof=$enableval
21176else
21177 enable_gprof='no'
21178fi
21179
21180
21181# Enable gcov-based profiling support
21182# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021183if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021184 enableval=$enable_gcov; enable_gcov=$enableval
21185else
21186 enable_gcov='no'
21187fi
21188
21189
21190enable_profiling='no'
21191if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21192 enable_profiling='yes'
21193 if test "$libtool_build_shared_libs" = 'yes'; then
21194 echo "Warning: Can not profile code using shared libraries"
21195 fi
21196fi
21197
21198# Magick API method prefix
21199
21200# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021201if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021202 withval=$with_method_prefix; with_method_prefix=$enableval
21203else
21204 with_method_prefix=''
21205fi
21206
21207
21208if test "$with_method_prefix" != ''; then
21209
21210cat >>confdefs.h <<_ACEOF
21211#define NAMESPACE_PREFIX $with_method_prefix
21212_ACEOF
21213
21214fi
21215
21216# Number of bits in a Quantum
21217
21218# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021219if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021220 withval=$with_quantum_depth; with_quantum_depth=$withval
21221else
21222 with_quantum_depth=16
21223fi
21224
21225
21226if test "$with_quantum_depth" != '8'; then
21227 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21228fi
21229
21230case "${with_quantum_depth}" in
21231 8 ) ;;
21232 16 ) ;;
21233 32 ) ;;
21234 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021235 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021236esac
21237QUANTUM_DEPTH="$with_quantum_depth"
21238
21239cat >>confdefs.h <<_ACEOF
21240#define QUANTUM_DEPTH $QUANTUM_DEPTH
21241_ACEOF
21242
21243
21244# Set pixel cache threshold
21245
21246# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021247if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021248 withval=$with_cache; with_cache=$withval
21249else
21250 with_cache=''
21251fi
21252
21253
21254if test "$with_cache" != ''; then
21255
21256cat >>confdefs.h <<_ACEOF
21257#define PixelCacheThreshold $with_cache
21258_ACEOF
21259
21260 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21261fi
21262
21263# Disable/Enable support for full delegate paths
21264
21265# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021266if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021267 withval=$with_frozenpaths; with_frozenpaths=$withval
21268else
21269 with_frozenpaths='no'
21270fi
21271
21272
21273# Enable build/install of Magick++
21274
21275# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021276if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021277 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21278else
21279 with_magick_plus_plus='yes'
21280fi
21281
21282
21283# Disable build/install of PerlMagick.
21284
21285# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021286if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021287 withval=$with_perl; with_perl=$withval
21288else
cristyb5f4e2f2010-04-25 00:49:11 +000021289 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021290fi
21291
21292
21293# Options to pass when configuring PerlMagick
21294
21295# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021296if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021297 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021298fi
21299
21300
cristy3ed852e2009-09-05 21:47:34 +000021301
21302# Enable umem, object-caching memory allocation library.
21303
21304# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021305if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021306 withval=$with_umem; with_umem=$withval
21307else
21308 with_umem='no'
21309fi
21310
21311if test "$with_umem" != 'yes' ; then
21312 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21313fi
21314
21315#
21316# Specify path to shared libstdc++ if not in normal location
21317#
21318
21319# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021320if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021321 withval=$with_libstdc; with_libstdc=$withval
21322else
21323 with_libstdc=''
21324fi
21325
21326
21327if test "$with_libstdc" != ''; then
21328 if test -d "$with_libstdc"; then
21329 LIBSTDCLDFLAGS="-L$with_libstdc"
21330 fi
21331fi
21332
21333
21334# Does gcc required -traditional?
21335if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021337$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021338if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021339 $as_echo_n "(cached) " >&6
21340else
21341 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021343/* end confdefs.h. */
21344#include <sgtty.h>
21345Autoconf TIOCGETP
21346_ACEOF
21347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021348 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021349 ac_cv_prog_gcc_traditional=yes
21350else
21351 ac_cv_prog_gcc_traditional=no
21352fi
21353rm -f conftest*
21354
21355
21356 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021358/* end confdefs.h. */
21359#include <termio.h>
21360Autoconf TCGETA
21361_ACEOF
21362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021363 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021364 ac_cv_prog_gcc_traditional=yes
21365fi
21366rm -f conftest*
21367
21368 fi
21369fi
cristy8b350f62009-11-15 23:12:43 +000021370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021371$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21372 if test $ac_cv_prog_gcc_traditional = yes; then
21373 CC="$CC -traditional"
21374 fi
21375fi
21376
21377
21378########
21379#
21380# Set defines required to build DLLs and modules using MinGW
21381#
21382########
21383# These options are set for multi-thread DLL module build
21384# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21385# module: _DLL
21386# executable/Magick++: _DLL _MAGICKMOD_
21387MODULE_EXTRA_CPPFLAGS=''
21388LIBRARY_EXTRA_CPPFLAGS=''
21389if test "${native_win32_build}" = 'yes'; then
21390 if test "${libtool_build_shared_libs}" = 'yes'; then
21391 CPPFLAGS="$CPPFLAGS -D_DLL"
21392 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21393 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21394 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21395 if test "$with_modules" = 'yes'; then
21396 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21397 else
21398 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21399 fi
21400 else
21401 CPPFLAGS="$CPPFLAGS -D_LIB"
21402 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21403 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21404 fi
21405 if test "$with_threads" = 'yes'; then
21406 CPPFLAGS="$CPPFLAGS -D_MT"
21407 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21408 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21409 fi
21410fi
21411
21412
21413
21414# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021416$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021417if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021418 $as_echo_n "(cached) " >&6
21419else
cristy8b350f62009-11-15 23:12:43 +000021420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021421/* end confdefs.h. */
21422#include <stdlib.h>
21423#include <stdarg.h>
21424#include <string.h>
21425#include <float.h>
21426
21427int
21428main ()
21429{
21430
21431 ;
21432 return 0;
21433}
21434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021435if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021436 ac_cv_header_stdc=yes
21437else
cristy8b350f62009-11-15 23:12:43 +000021438 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021439fi
cristy3ed852e2009-09-05 21:47:34 +000021440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441
21442if test $ac_cv_header_stdc = yes; then
21443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021445/* end confdefs.h. */
21446#include <string.h>
21447
21448_ACEOF
21449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021450 $EGREP "memchr" >/dev/null 2>&1; then :
21451
cristy3ed852e2009-09-05 21:47:34 +000021452else
21453 ac_cv_header_stdc=no
21454fi
21455rm -f conftest*
21456
21457fi
21458
21459if test $ac_cv_header_stdc = yes; then
21460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021462/* end confdefs.h. */
21463#include <stdlib.h>
21464
21465_ACEOF
21466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021467 $EGREP "free" >/dev/null 2>&1; then :
21468
cristy3ed852e2009-09-05 21:47:34 +000021469else
21470 ac_cv_header_stdc=no
21471fi
21472rm -f conftest*
21473
21474fi
21475
21476if test $ac_cv_header_stdc = yes; then
21477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021478 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021479 :
21480else
cristy8b350f62009-11-15 23:12:43 +000021481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021482/* end confdefs.h. */
21483#include <ctype.h>
21484#include <stdlib.h>
21485#if ((' ' & 0x0FF) == 0x020)
21486# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21487# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21488#else
21489# define ISLOWER(c) \
21490 (('a' <= (c) && (c) <= 'i') \
21491 || ('j' <= (c) && (c) <= 'r') \
21492 || ('s' <= (c) && (c) <= 'z'))
21493# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21494#endif
21495
21496#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21497int
21498main ()
21499{
21500 int i;
21501 for (i = 0; i < 256; i++)
21502 if (XOR (islower (i), ISLOWER (i))
21503 || toupper (i) != TOUPPER (i))
21504 return 2;
21505 return 0;
21506}
21507_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021508if ac_fn_c_try_run "$LINENO"; then :
21509
cristy3ed852e2009-09-05 21:47:34 +000021510else
cristy8b350f62009-11-15 23:12:43 +000021511 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021512fi
cristy8b350f62009-11-15 23:12:43 +000021513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21514 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021515fi
21516
cristy3ed852e2009-09-05 21:47:34 +000021517fi
21518fi
cristy8b350f62009-11-15 23:12:43 +000021519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021520$as_echo "$ac_cv_header_stdc" >&6; }
21521if test $ac_cv_header_stdc = yes; then
21522
cristy8b350f62009-11-15 23:12:43 +000021523$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021524
21525fi
21526
21527if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021528 { $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 +000021529 header files. Compilation cannot proceed. Please install the ANSI C
21530 headers and rerun this script." >&5
21531$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21532 header files. Compilation cannot proceed. Please install the ANSI C
21533 headers and rerun this script." >&2;};
21534fi
cristya0b81c32010-01-22 02:54:33 +000021535
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21537$as_echo_n "checking whether to enable assertions... " >&6; }
21538 # Check whether --enable-assert was given.
21539if test "${enable_assert+set}" = set; then :
21540 enableval=$enable_assert; ac_enable_assert=$enableval
21541 if test "x$enableval" = xno; then :
21542
21543$as_echo "#define NDEBUG 1" >>confdefs.h
21544
21545elif test "x$enableval" != xyes; then :
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21547$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21548 ac_enable_assert=yes
21549fi
21550else
21551 ac_enable_assert=yes
21552fi
21553
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21555$as_echo "$ac_enable_assert" >&6; }
21556
cristy3ed852e2009-09-05 21:47:34 +000021557ac_header_dirent=no
21558for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21559 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021561$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021562if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021563 $as_echo_n "(cached) " >&6
21564else
cristy8b350f62009-11-15 23:12:43 +000021565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021566/* end confdefs.h. */
21567#include <sys/types.h>
21568#include <$ac_hdr>
21569
21570int
21571main ()
21572{
21573if ((DIR *) 0)
21574return 0;
21575 ;
21576 return 0;
21577}
21578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021579if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021580 eval "$as_ac_Header=yes"
21581else
cristy8b350f62009-11-15 23:12:43 +000021582 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021583fi
cristy3ed852e2009-09-05 21:47:34 +000021584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21585fi
cristy8b350f62009-11-15 23:12:43 +000021586eval ac_res=\$$as_ac_Header
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021588$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021589if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021590 cat >>confdefs.h <<_ACEOF
21591#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21592_ACEOF
21593
21594ac_header_dirent=$ac_hdr; break
21595fi
21596
21597done
21598# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21599if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021601$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021602if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021603 $as_echo_n "(cached) " >&6
21604else
21605 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021607/* end confdefs.h. */
21608
21609/* Override any GCC internal prototype to avoid an error.
21610 Use char because int might match the return type of a GCC
21611 builtin and then its argument prototype would still apply. */
21612#ifdef __cplusplus
21613extern "C"
21614#endif
21615char opendir ();
21616int
21617main ()
21618{
21619return opendir ();
21620 ;
21621 return 0;
21622}
21623_ACEOF
21624for ac_lib in '' dir; do
21625 if test -z "$ac_lib"; then
21626 ac_res="none required"
21627 else
21628 ac_res=-l$ac_lib
21629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21630 fi
cristy8b350f62009-11-15 23:12:43 +000021631 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021632 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021633fi
cristy8b350f62009-11-15 23:12:43 +000021634rm -f core conftest.err conftest.$ac_objext \
21635 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021636 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021637 break
21638fi
21639done
cristyda16f162011-02-19 23:52:17 +000021640if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021641
cristy3ed852e2009-09-05 21:47:34 +000021642else
21643 ac_cv_search_opendir=no
21644fi
21645rm conftest.$ac_ext
21646LIBS=$ac_func_search_save_LIBS
21647fi
cristy8b350f62009-11-15 23:12:43 +000021648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021649$as_echo "$ac_cv_search_opendir" >&6; }
21650ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021651if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21653
21654fi
21655
21656else
cristy8b350f62009-11-15 23:12:43 +000021657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021658$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021659if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021660 $as_echo_n "(cached) " >&6
21661else
21662 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021664/* end confdefs.h. */
21665
21666/* Override any GCC internal prototype to avoid an error.
21667 Use char because int might match the return type of a GCC
21668 builtin and then its argument prototype would still apply. */
21669#ifdef __cplusplus
21670extern "C"
21671#endif
21672char opendir ();
21673int
21674main ()
21675{
21676return opendir ();
21677 ;
21678 return 0;
21679}
21680_ACEOF
21681for ac_lib in '' x; do
21682 if test -z "$ac_lib"; then
21683 ac_res="none required"
21684 else
21685 ac_res=-l$ac_lib
21686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21687 fi
cristy8b350f62009-11-15 23:12:43 +000021688 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021689 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021690fi
cristy8b350f62009-11-15 23:12:43 +000021691rm -f core conftest.err conftest.$ac_objext \
21692 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021693 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021694 break
21695fi
21696done
cristyda16f162011-02-19 23:52:17 +000021697if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021698
cristy3ed852e2009-09-05 21:47:34 +000021699else
21700 ac_cv_search_opendir=no
21701fi
21702rm conftest.$ac_ext
21703LIBS=$ac_func_search_save_LIBS
21704fi
cristy8b350f62009-11-15 23:12:43 +000021705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021706$as_echo "$ac_cv_search_opendir" >&6; }
21707ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021708if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21710
21711fi
21712
21713fi
21714
21715
21716# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021717for 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 +000021718do :
21719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21720ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021721if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021722 cat >>confdefs.h <<_ACEOF
21723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21724_ACEOF
21725
21726fi
21727
21728done
21729
21730
21731########
21732#
21733# Checks for typedefs, structures, and compiler characteristics.
21734#
21735########
21736
cristy8b350f62009-11-15 23:12:43 +000021737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021738$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021739if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021740 $as_echo_n "(cached) " >&6
21741else
cristy8b350f62009-11-15 23:12:43 +000021742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021743/* end confdefs.h. */
21744
21745#include <stdbool.h>
21746#ifndef bool
21747 "error: bool is not defined"
21748#endif
21749#ifndef false
21750 "error: false is not defined"
21751#endif
21752#if false
21753 "error: false is not 0"
21754#endif
21755#ifndef true
21756 "error: true is not defined"
21757#endif
21758#if true != 1
21759 "error: true is not 1"
21760#endif
21761#ifndef __bool_true_false_are_defined
21762 "error: __bool_true_false_are_defined is not defined"
21763#endif
21764
21765 struct s { _Bool s: 1; _Bool t; } s;
21766
21767 char a[true == 1 ? 1 : -1];
21768 char b[false == 0 ? 1 : -1];
21769 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21770 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021771 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021772 char f[(_Bool) 0.0 == false ? 1 : -1];
21773 char g[true];
21774 char h[sizeof (_Bool)];
21775 char i[sizeof s.t];
21776 enum { j = false, k = true, l = false * true, m = true * 256 };
21777 /* The following fails for
21778 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21779 _Bool n[m];
21780 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21781 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021782 /* Catch a bug in an HP-UX C compiler. See
21783 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21784 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21785 */
21786 _Bool q = true;
21787 _Bool *pq = &q;
21788
21789int
21790main ()
21791{
21792
cristyda16f162011-02-19 23:52:17 +000021793 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021794 *pq |= q;
21795 *pq |= ! q;
21796 /* Refer to every declared value, to avoid compiler optimizations. */
21797 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21798 + !m + !n + !o + !p + !q + !pq);
21799
21800 ;
21801 return 0;
21802}
21803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021804if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021805 ac_cv_header_stdbool_h=yes
21806else
cristy8b350f62009-11-15 23:12:43 +000021807 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021808fi
cristy3ed852e2009-09-05 21:47:34 +000021809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21810fi
cristy8b350f62009-11-15 23:12:43 +000021811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021812$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021813ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021814if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021815
21816cat >>confdefs.h <<_ACEOF
21817#define HAVE__BOOL 1
21818_ACEOF
21819
21820
21821fi
21822
21823if test $ac_cv_header_stdbool_h = yes; then
21824
cristy8b350f62009-11-15 23:12:43 +000021825$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021826
21827fi
21828
cristy8b350f62009-11-15 23:12:43 +000021829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021830$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021831if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021832 $as_echo_n "(cached) " >&6
21833else
cristy8b350f62009-11-15 23:12:43 +000021834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021835/* end confdefs.h. */
21836
21837int
21838main ()
21839{
21840
21841volatile int x;
21842int * volatile y = (int *) 0;
21843return !x && !y;
21844 ;
21845 return 0;
21846}
21847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021848if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021849 ac_cv_c_volatile=yes
21850else
cristy8b350f62009-11-15 23:12:43 +000021851 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021852fi
cristy3ed852e2009-09-05 21:47:34 +000021853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854fi
cristy8b350f62009-11-15 23:12:43 +000021855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021856$as_echo "$ac_cv_c_volatile" >&6; }
21857if test $ac_cv_c_volatile = no; then
21858
cristy8b350f62009-11-15 23:12:43 +000021859$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021860
21861fi
21862
cristy8b350f62009-11-15 23:12:43 +000021863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021864$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021865if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021866 $as_echo_n "(cached) " >&6
21867else
cristy8b350f62009-11-15 23:12:43 +000021868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021869/* end confdefs.h. */
21870#define x(y) #y
21871
21872char *s = x(teststring);
21873_ACEOF
21874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021875 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021876 ac_cv_c_stringize=no
21877else
21878 ac_cv_c_stringize=yes
21879fi
21880rm -f conftest*
21881
21882fi
cristy8b350f62009-11-15 23:12:43 +000021883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021884$as_echo "$ac_cv_c_stringize" >&6; }
21885if test $ac_cv_c_stringize = yes; then
21886
cristy8b350f62009-11-15 23:12:43 +000021887$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021888
21889fi
21890
cristy8b350f62009-11-15 23:12:43 +000021891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021892$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021893if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021894 $as_echo_n "(cached) " >&6
21895else
cristy8b350f62009-11-15 23:12:43 +000021896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021897/* end confdefs.h. */
21898#include <sys/types.h>
21899#include <sys/stat.h>
21900
21901#if defined S_ISBLK && defined S_IFDIR
21902extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21903#endif
21904
21905#if defined S_ISBLK && defined S_IFCHR
21906extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21907#endif
21908
21909#if defined S_ISLNK && defined S_IFREG
21910extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21911#endif
21912
21913#if defined S_ISSOCK && defined S_IFREG
21914extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21915#endif
21916
21917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021918if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021919 ac_cv_header_stat_broken=no
21920else
cristy8b350f62009-11-15 23:12:43 +000021921 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021922fi
cristy3ed852e2009-09-05 21:47:34 +000021923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21924fi
cristy8b350f62009-11-15 23:12:43 +000021925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021926$as_echo "$ac_cv_header_stat_broken" >&6; }
21927if test $ac_cv_header_stat_broken = yes; then
21928
cristy8b350f62009-11-15 23:12:43 +000021929$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021930
21931fi
21932
cristy8b350f62009-11-15 23:12:43 +000021933{ $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 +000021934$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021935if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021936 $as_echo_n "(cached) " >&6
21937else
cristy8b350f62009-11-15 23:12:43 +000021938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021939/* end confdefs.h. */
21940#include <sys/types.h>
21941#include <sys/time.h>
21942#include <time.h>
21943
21944int
21945main ()
21946{
21947if ((struct tm *) 0)
21948return 0;
21949 ;
21950 return 0;
21951}
21952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021953if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 ac_cv_header_time=yes
21955else
cristy8b350f62009-11-15 23:12:43 +000021956 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021957fi
cristy3ed852e2009-09-05 21:47:34 +000021958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21959fi
cristy8b350f62009-11-15 23:12:43 +000021960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021961$as_echo "$ac_cv_header_time" >&6; }
21962if test $ac_cv_header_time = yes; then
21963
cristy8b350f62009-11-15 23:12:43 +000021964$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021965
21966fi
21967
cristy8b350f62009-11-15 23:12:43 +000021968{ $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 +000021969$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021970if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021971 $as_echo_n "(cached) " >&6
21972else
cristy8b350f62009-11-15 23:12:43 +000021973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021974/* end confdefs.h. */
21975#include <sys/types.h>
21976#include <time.h>
21977
21978int
21979main ()
21980{
21981struct tm tm;
21982 int *p = &tm.tm_sec;
21983 return !p;
21984 ;
21985 return 0;
21986}
21987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021988if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021989 ac_cv_struct_tm=time.h
21990else
cristy8b350f62009-11-15 23:12:43 +000021991 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021992fi
cristy3ed852e2009-09-05 21:47:34 +000021993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994fi
cristy8b350f62009-11-15 23:12:43 +000021995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021996$as_echo "$ac_cv_struct_tm" >&6; }
21997if test $ac_cv_struct_tm = sys/time.h; then
21998
cristy8b350f62009-11-15 23:12:43 +000021999$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022000
22001fi
22002
cristy92703d82010-04-26 00:18:18 +000022003ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22004#include <$ac_cv_struct_tm>
22005
22006"
cristyda16f162011-02-19 23:52:17 +000022007if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022008
22009cat >>confdefs.h <<_ACEOF
22010#define HAVE_STRUCT_TM_TM_ZONE 1
22011_ACEOF
22012
22013
22014fi
22015
22016if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22017
22018$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22019
22020else
22021 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22022"
cristyda16f162011-02-19 23:52:17 +000022023if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022024 ac_have_decl=1
22025else
22026 ac_have_decl=0
22027fi
22028
22029cat >>confdefs.h <<_ACEOF
22030#define HAVE_DECL_TZNAME $ac_have_decl
22031_ACEOF
22032
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22034$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022035if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022036 $as_echo_n "(cached) " >&6
22037else
22038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22039/* end confdefs.h. */
22040#include <time.h>
22041#if !HAVE_DECL_TZNAME
22042extern char *tzname[];
22043#endif
22044
22045int
22046main ()
22047{
22048return tzname[0][0];
22049 ;
22050 return 0;
22051}
22052_ACEOF
22053if ac_fn_c_try_link "$LINENO"; then :
22054 ac_cv_var_tzname=yes
22055else
22056 ac_cv_var_tzname=no
22057fi
22058rm -f core conftest.err conftest.$ac_objext \
22059 conftest$ac_exeext conftest.$ac_ext
22060fi
22061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22062$as_echo "$ac_cv_var_tzname" >&6; }
22063 if test $ac_cv_var_tzname = yes; then
22064
22065$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22066
22067 fi
22068fi
22069
cristy8b350f62009-11-15 23:12:43 +000022070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022071$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022072if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022073 $as_echo_n "(cached) " >&6
22074else
22075 echo '#! /bin/cat
22076exit 69
22077' >conftest
22078chmod u+x conftest
22079(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22080if test $? -ne 69; then
22081 ac_cv_sys_interpreter=yes
22082else
22083 ac_cv_sys_interpreter=no
22084fi
22085rm -f conftest
22086fi
cristy8b350f62009-11-15 23:12:43 +000022087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022088$as_echo "$ac_cv_sys_interpreter" >&6; }
22089interpval=$ac_cv_sys_interpreter
22090
22091
cristy3ed852e2009-09-05 21:47:34 +000022092# If the C compiler supports the keyword inline, do nothing. Otherwise
22093# define inline to __inline__ or __inline if it accepts one of those,
22094# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022096$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022097if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022098 $as_echo_n "(cached) " >&6
22099else
22100 ac_cv_c_inline=no
22101for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022103/* end confdefs.h. */
22104#ifndef __cplusplus
22105typedef int foo_t;
22106static $ac_kw foo_t static_foo () {return 0; }
22107$ac_kw foo_t foo () {return 0; }
22108#endif
22109
22110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022111if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022112 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022113fi
cristy3ed852e2009-09-05 21:47:34 +000022114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22115 test "$ac_cv_c_inline" != no && break
22116done
22117
22118fi
cristy8b350f62009-11-15 23:12:43 +000022119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022120$as_echo "$ac_cv_c_inline" >&6; }
22121
cristy3ed852e2009-09-05 21:47:34 +000022122case $ac_cv_c_inline in
22123 inline | yes) ;;
22124 *)
22125 case $ac_cv_c_inline in
22126 no) ac_val=;;
22127 *) ac_val=$ac_cv_c_inline;;
22128 esac
22129 cat >>confdefs.h <<_ACEOF
22130#ifndef __cplusplus
22131#define inline $ac_val
22132#endif
22133_ACEOF
22134 ;;
22135esac
22136
22137
22138# If the C compiler supports the keyword restrict, do nothing. Otherwise
22139# define restrict to __restrict__ or __restrict if it accepts one of those,
22140# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022142$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022143if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022144 $as_echo_n "(cached) " >&6
22145else
22146 ac_cv_c_restrict=no
22147 # The order here caters to the fact that C++ does not require restrict.
22148 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022150/* end confdefs.h. */
22151typedef int * int_ptr;
22152 int foo (int_ptr $ac_kw ip) {
22153 return ip[0];
22154 }
22155int
22156main ()
22157{
22158int s[1];
22159 int * $ac_kw t = s;
22160 t[0] = 0;
22161 return foo(t)
22162 ;
22163 return 0;
22164}
22165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022166if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022167 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022168fi
cristy3ed852e2009-09-05 21:47:34 +000022169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170 test "$ac_cv_c_restrict" != no && break
22171 done
22172
22173fi
cristy8b350f62009-11-15 23:12:43 +000022174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022175$as_echo "$ac_cv_c_restrict" >&6; }
22176
cristy3ed852e2009-09-05 21:47:34 +000022177 case $ac_cv_c_restrict in
22178 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022179 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022180 ;;
22181 *) cat >>confdefs.h <<_ACEOF
22182#define restrict $ac_cv_c_restrict
22183_ACEOF
22184 ;;
22185 esac
22186
22187
22188# If words are stored with the most significant byte first (like
22189# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022191$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022192if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022193 $as_echo_n "(cached) " >&6
22194else
22195 ac_cv_c_bigendian=unknown
22196 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022198/* end confdefs.h. */
22199#ifndef __APPLE_CC__
22200 not a universal capable compiler
22201 #endif
22202 typedef int dummy;
22203
22204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022205if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022206
22207 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022208 # there are at least two -arch flags with different values.
22209 ac_arch=
22210 ac_prev=
22211 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22212 if test -n "$ac_prev"; then
22213 case $ac_word in
22214 i?86 | x86_64 | ppc | ppc64)
22215 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22216 ac_arch=$ac_word
22217 else
22218 ac_cv_c_bigendian=universal
22219 break
22220 fi
22221 ;;
22222 esac
22223 ac_prev=
22224 elif test "x$ac_word" = "x-arch"; then
22225 ac_prev=arch
22226 fi
22227 done
cristy3ed852e2009-09-05 21:47:34 +000022228fi
cristy3ed852e2009-09-05 21:47:34 +000022229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22230 if test $ac_cv_c_bigendian = unknown; then
22231 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022233/* end confdefs.h. */
22234#include <sys/types.h>
22235 #include <sys/param.h>
22236
22237int
22238main ()
22239{
22240#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22241 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22242 && LITTLE_ENDIAN)
22243 bogus endian macros
22244 #endif
22245
22246 ;
22247 return 0;
22248}
22249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022250if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022251 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022253/* end confdefs.h. */
22254#include <sys/types.h>
22255 #include <sys/param.h>
22256
22257int
22258main ()
22259{
22260#if BYTE_ORDER != BIG_ENDIAN
22261 not big endian
22262 #endif
22263
22264 ;
22265 return 0;
22266}
22267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022268if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022269 ac_cv_c_bigendian=yes
22270else
cristy8b350f62009-11-15 23:12:43 +000022271 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022272fi
cristy3ed852e2009-09-05 21:47:34 +000022273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022274fi
cristy3ed852e2009-09-05 21:47:34 +000022275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22276 fi
22277 if test $ac_cv_c_bigendian = unknown; then
22278 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022280/* end confdefs.h. */
22281#include <limits.h>
22282
22283int
22284main ()
22285{
22286#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22287 bogus endian macros
22288 #endif
22289
22290 ;
22291 return 0;
22292}
22293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022294if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022295 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022297/* end confdefs.h. */
22298#include <limits.h>
22299
22300int
22301main ()
22302{
22303#ifndef _BIG_ENDIAN
22304 not big endian
22305 #endif
22306
22307 ;
22308 return 0;
22309}
22310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022311if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022312 ac_cv_c_bigendian=yes
22313else
cristy8b350f62009-11-15 23:12:43 +000022314 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022315fi
cristy3ed852e2009-09-05 21:47:34 +000022316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022317fi
cristy3ed852e2009-09-05 21:47:34 +000022318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319 fi
22320 if test $ac_cv_c_bigendian = unknown; then
22321 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022322 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022323 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022325/* end confdefs.h. */
22326short int ascii_mm[] =
22327 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22328 short int ascii_ii[] =
22329 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22330 int use_ascii (int i) {
22331 return ascii_mm[i] + ascii_ii[i];
22332 }
22333 short int ebcdic_ii[] =
22334 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22335 short int ebcdic_mm[] =
22336 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22337 int use_ebcdic (int i) {
22338 return ebcdic_mm[i] + ebcdic_ii[i];
22339 }
22340 extern int foo;
22341
22342int
22343main ()
22344{
22345return use_ascii (foo) == use_ebcdic (foo);
22346 ;
22347 return 0;
22348}
22349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022350if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022351 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22352 ac_cv_c_bigendian=yes
22353 fi
22354 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22355 if test "$ac_cv_c_bigendian" = unknown; then
22356 ac_cv_c_bigendian=no
22357 else
22358 # finding both strings is unlikely to happen, but who knows?
22359 ac_cv_c_bigendian=unknown
22360 fi
22361 fi
cristy3ed852e2009-09-05 21:47:34 +000022362fi
cristy3ed852e2009-09-05 21:47:34 +000022363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22364else
cristy8b350f62009-11-15 23:12:43 +000022365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022366/* end confdefs.h. */
22367$ac_includes_default
22368int
22369main ()
22370{
22371
22372 /* Are we little or big endian? From Harbison&Steele. */
22373 union
22374 {
22375 long int l;
22376 char c[sizeof (long int)];
22377 } u;
22378 u.l = 1;
22379 return u.c[sizeof (long int) - 1] == 1;
22380
22381 ;
22382 return 0;
22383}
22384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022385if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022386 ac_cv_c_bigendian=no
22387else
cristy8b350f62009-11-15 23:12:43 +000022388 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022389fi
cristy8b350f62009-11-15 23:12:43 +000022390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22391 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022392fi
22393
cristy3ed852e2009-09-05 21:47:34 +000022394 fi
22395fi
cristy8b350f62009-11-15 23:12:43 +000022396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022397$as_echo "$ac_cv_c_bigendian" >&6; }
22398 case $ac_cv_c_bigendian in #(
22399 yes)
cristy8b350f62009-11-15 23:12:43 +000022400 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022401;; #(
22402 no)
22403 ;; #(
22404 universal)
22405
cristy8b350f62009-11-15 23:12:43 +000022406$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022407
22408 ;; #(
22409 *)
cristy98dddb52010-11-04 00:30:15 +000022410 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022411 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022412 esac
22413
22414
cristy501c8042011-05-26 17:46:28 +000022415# Define to a suitable type, if standard headers do not define it.
22416ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22417case $ac_cv_c_int8_t in #(
22418 no|yes) ;; #(
22419 *)
cristy3ed852e2009-09-05 21:47:34 +000022420
22421cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022422#define int8_t $ac_cv_c_int8_t
22423_ACEOF
22424;;
22425esac
22426
22427ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22428case $ac_cv_c_int16_t in #(
22429 no|yes) ;; #(
22430 *)
22431
22432cat >>confdefs.h <<_ACEOF
22433#define int16_t $ac_cv_c_int16_t
22434_ACEOF
22435;;
22436esac
22437
22438ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22439case $ac_cv_c_int32_t in #(
22440 no|yes) ;; #(
22441 *)
22442
22443cat >>confdefs.h <<_ACEOF
22444#define int32_t $ac_cv_c_int32_t
22445_ACEOF
22446;;
22447esac
22448
22449ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22450case $ac_cv_c_int64_t in #(
22451 no|yes) ;; #(
22452 *)
22453
22454cat >>confdefs.h <<_ACEOF
22455#define int64_t $ac_cv_c_int64_t
22456_ACEOF
22457;;
22458esac
22459
22460
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22462$as_echo_n "checking for long long int... " >&6; }
22463if ${ac_cv_type_long_long_int+:} false; then :
22464 $as_echo_n "(cached) " >&6
22465else
22466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22467/* end confdefs.h. */
22468
22469 /* For now, do not test the preprocessor; as of 2007 there are too many
22470 implementations with broken preprocessors. Perhaps this can
22471 be revisited in 2012. In the meantime, code should not expect
22472 #if to work with literals wider than 32 bits. */
22473 /* Test literals. */
22474 long long int ll = 9223372036854775807ll;
22475 long long int nll = -9223372036854775807LL;
22476 unsigned long long int ull = 18446744073709551615ULL;
22477 /* Test constant expressions. */
22478 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22479 ? 1 : -1)];
22480 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22481 ? 1 : -1)];
22482 int i = 63;
22483int
22484main ()
22485{
22486/* Test availability of runtime routines for shift and division. */
22487 long long int llmax = 9223372036854775807ll;
22488 unsigned long long int ullmax = 18446744073709551615ull;
22489 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22490 | (llmax / ll) | (llmax % ll)
22491 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22492 | (ullmax / ull) | (ullmax % ull));
22493 ;
22494 return 0;
22495}
22496
22497_ACEOF
22498if ac_fn_c_try_link "$LINENO"; then :
22499 if test "$cross_compiling" = yes; then :
22500 ac_cv_type_long_long_int=yes
22501else
22502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22503/* end confdefs.h. */
22504#include <limits.h>
22505 #ifndef LLONG_MAX
22506 # define HALF \
22507 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22508 # define LLONG_MAX (HALF - 1 + HALF)
22509 #endif
22510int
22511main ()
22512{
22513long long int n = 1;
22514 int i;
22515 for (i = 0; ; i++)
22516 {
22517 long long int m = n << i;
22518 if (m >> i != n)
22519 return 1;
22520 if (LLONG_MAX / 2 < m)
22521 break;
22522 }
22523 return 0;
22524 ;
22525 return 0;
22526}
22527_ACEOF
22528if ac_fn_c_try_run "$LINENO"; then :
22529 ac_cv_type_long_long_int=yes
22530else
22531 ac_cv_type_long_long_int=no
22532fi
22533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22534 conftest.$ac_objext conftest.beam conftest.$ac_ext
22535fi
22536
22537else
22538 ac_cv_type_long_long_int=no
22539fi
22540rm -f core conftest.err conftest.$ac_objext \
22541 conftest$ac_exeext conftest.$ac_ext
22542fi
22543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22544$as_echo "$ac_cv_type_long_long_int" >&6; }
22545 if test $ac_cv_type_long_long_int = yes; then
22546
22547$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22548
22549 fi
22550
22551
22552
22553 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22554if test "x$ac_cv_type_intmax_t" = xyes; then :
22555
22556$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22557
22558else
22559 test $ac_cv_type_long_long_int = yes \
22560 && ac_type='long long int' \
22561 || ac_type='long int'
22562
22563cat >>confdefs.h <<_ACEOF
22564#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022565_ACEOF
22566
22567fi
22568
22569
cristy501c8042011-05-26 17:46:28 +000022570
22571 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22572if test "x$ac_cv_type_intptr_t" = xyes; then :
22573
22574$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022575
cristy3ed852e2009-09-05 21:47:34 +000022576else
cristy501c8042011-05-26 17:46:28 +000022577 for ac_type in 'int' 'long int' 'long long int'; do
22578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22579/* end confdefs.h. */
22580$ac_includes_default
22581int
22582main ()
22583{
22584static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22585test_array [0] = 0
22586
22587 ;
22588 return 0;
22589}
22590_ACEOF
22591if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022592
22593cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022594#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022595_ACEOF
22596
cristy501c8042011-05-26 17:46:28 +000022597 ac_type=
22598fi
22599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22600 test -z "$ac_type" && break
22601 done
cristy3ed852e2009-09-05 21:47:34 +000022602fi
22603
22604
cristy3ed852e2009-09-05 21:47:34 +000022605
cristy501c8042011-05-26 17:46:28 +000022606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22607$as_echo_n "checking for long double... " >&6; }
22608if ${ac_cv_type_long_double+:} false; then :
22609 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022610else
cristy501c8042011-05-26 17:46:28 +000022611 if test "$GCC" = yes; then
22612 ac_cv_type_long_double=yes
22613 else
22614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22615/* end confdefs.h. */
22616/* The Stardent Vistra knows sizeof (long double), but does
22617 not support it. */
22618 long double foo = 0.0L;
22619int
22620main ()
22621{
22622static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22623 sizeof (double) <= sizeof (long double))];
22624test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022625
cristy501c8042011-05-26 17:46:28 +000022626 ;
22627 return 0;
22628}
cristy3ed852e2009-09-05 21:47:34 +000022629_ACEOF
cristy501c8042011-05-26 17:46:28 +000022630if ac_fn_c_try_compile "$LINENO"; then :
22631 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022632else
cristy501c8042011-05-26 17:46:28 +000022633 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022634fi
cristy501c8042011-05-26 17:46:28 +000022635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 fi
cristy3ed852e2009-09-05 21:47:34 +000022637fi
cristy501c8042011-05-26 17:46:28 +000022638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22639$as_echo "$ac_cv_type_long_double" >&6; }
22640 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022641
cristy501c8042011-05-26 17:46:28 +000022642$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022643
cristy501c8042011-05-26 17:46:28 +000022644 fi
22645
cristy3ed852e2009-09-05 21:47:34 +000022646
cristy8b350f62009-11-15 23:12:43 +000022647 { $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 +000022648$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022649if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022650 $as_echo_n "(cached) " >&6
22651else
cristy8b350f62009-11-15 23:12:43 +000022652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022653/* end confdefs.h. */
22654#include <float.h>
22655 long double const a[] =
22656 {
22657 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22658 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22659 };
22660 long double
22661 f (long double x)
22662 {
22663 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22664 + (x ? f (x) : 'c'));
22665 }
22666
22667int
22668main ()
22669{
22670static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22671 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22672 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22673 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22674 && (int) LDBL_EPSILON == 0
22675 )];
22676test_array [0] = 0
22677
22678 ;
22679 return 0;
22680}
22681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022682if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022683 ac_cv_type_long_double_wider=yes
22684else
cristy8b350f62009-11-15 23:12:43 +000022685 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022686fi
cristy3ed852e2009-09-05 21:47:34 +000022687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688fi
cristy8b350f62009-11-15 23:12:43 +000022689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022690$as_echo "$ac_cv_type_long_double_wider" >&6; }
22691 if test $ac_cv_type_long_double_wider = yes; then
22692
cristy8b350f62009-11-15 23:12:43 +000022693$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022694
22695 fi
22696
22697
cristy501c8042011-05-26 17:46:28 +000022698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22699$as_echo_n "checking for long long int... " >&6; }
22700if ${ac_cv_type_long_long_int+:} false; then :
22701 $as_echo_n "(cached) " >&6
22702else
22703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704/* end confdefs.h. */
22705
22706 /* For now, do not test the preprocessor; as of 2007 there are too many
22707 implementations with broken preprocessors. Perhaps this can
22708 be revisited in 2012. In the meantime, code should not expect
22709 #if to work with literals wider than 32 bits. */
22710 /* Test literals. */
22711 long long int ll = 9223372036854775807ll;
22712 long long int nll = -9223372036854775807LL;
22713 unsigned long long int ull = 18446744073709551615ULL;
22714 /* Test constant expressions. */
22715 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22716 ? 1 : -1)];
22717 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22718 ? 1 : -1)];
22719 int i = 63;
22720int
22721main ()
22722{
22723/* Test availability of runtime routines for shift and division. */
22724 long long int llmax = 9223372036854775807ll;
22725 unsigned long long int ullmax = 18446744073709551615ull;
22726 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22727 | (llmax / ll) | (llmax % ll)
22728 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22729 | (ullmax / ull) | (ullmax % ull));
22730 ;
22731 return 0;
22732}
22733
22734_ACEOF
22735if ac_fn_c_try_link "$LINENO"; then :
22736 if test "$cross_compiling" = yes; then :
22737 ac_cv_type_long_long_int=yes
22738else
22739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22740/* end confdefs.h. */
22741#include <limits.h>
22742 #ifndef LLONG_MAX
22743 # define HALF \
22744 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22745 # define LLONG_MAX (HALF - 1 + HALF)
22746 #endif
22747int
22748main ()
22749{
22750long long int n = 1;
22751 int i;
22752 for (i = 0; ; i++)
22753 {
22754 long long int m = n << i;
22755 if (m >> i != n)
22756 return 1;
22757 if (LLONG_MAX / 2 < m)
22758 break;
22759 }
22760 return 0;
22761 ;
22762 return 0;
22763}
22764_ACEOF
22765if ac_fn_c_try_run "$LINENO"; then :
22766 ac_cv_type_long_long_int=yes
22767else
22768 ac_cv_type_long_long_int=no
22769fi
22770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22771 conftest.$ac_objext conftest.beam conftest.$ac_ext
22772fi
22773
22774else
22775 ac_cv_type_long_long_int=no
22776fi
22777rm -f core conftest.err conftest.$ac_objext \
22778 conftest$ac_exeext conftest.$ac_ext
22779fi
22780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22781$as_echo "$ac_cv_type_long_long_int" >&6; }
22782 if test $ac_cv_type_long_long_int = yes; then
22783
22784$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22785
22786 fi
22787
22788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22789$as_echo_n "checking for mbstate_t... " >&6; }
22790if ${ac_cv_type_mbstate_t+:} false; then :
22791 $as_echo_n "(cached) " >&6
22792else
22793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22794/* end confdefs.h. */
22795$ac_includes_default
22796# include <wchar.h>
22797int
22798main ()
22799{
22800mbstate_t x; return sizeof x;
22801 ;
22802 return 0;
22803}
22804_ACEOF
22805if ac_fn_c_try_compile "$LINENO"; then :
22806 ac_cv_type_mbstate_t=yes
22807else
22808 ac_cv_type_mbstate_t=no
22809fi
22810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811fi
22812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22813$as_echo "$ac_cv_type_mbstate_t" >&6; }
22814 if test $ac_cv_type_mbstate_t = yes; then
22815
22816$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22817
22818 else
22819
22820$as_echo "#define mbstate_t int" >>confdefs.h
22821
22822 fi
22823ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22824if test "x$ac_cv_type_mode_t" = xyes; then :
22825
22826else
22827
22828cat >>confdefs.h <<_ACEOF
22829#define mode_t int
22830_ACEOF
22831
22832fi
22833
22834ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22835if test "x$ac_cv_type_off_t" = xyes; then :
22836
22837else
22838
22839cat >>confdefs.h <<_ACEOF
22840#define off_t long int
22841_ACEOF
22842
22843fi
22844
22845ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22846if test "x$ac_cv_type_pid_t" = xyes; then :
22847
22848else
22849
22850cat >>confdefs.h <<_ACEOF
22851#define pid_t int
22852_ACEOF
22853
22854fi
22855
22856ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22857if test "x$ac_cv_type_size_t" = xyes; then :
22858
22859else
22860
22861cat >>confdefs.h <<_ACEOF
22862#define size_t unsigned int
22863_ACEOF
22864
22865fi
22866
22867ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22868if test "x$ac_cv_type_ssize_t" = xyes; then :
22869
22870else
22871
22872cat >>confdefs.h <<_ACEOF
22873#define ssize_t int
22874_ACEOF
22875
22876fi
22877
22878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22879$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22880if ${ac_cv_type_uid_t+:} false; then :
22881 $as_echo_n "(cached) " >&6
22882else
22883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22884/* end confdefs.h. */
22885#include <sys/types.h>
22886
22887_ACEOF
22888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22889 $EGREP "uid_t" >/dev/null 2>&1; then :
22890 ac_cv_type_uid_t=yes
22891else
22892 ac_cv_type_uid_t=no
22893fi
22894rm -f conftest*
22895
22896fi
22897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22898$as_echo "$ac_cv_type_uid_t" >&6; }
22899if test $ac_cv_type_uid_t = no; then
22900
22901$as_echo "#define uid_t int" >>confdefs.h
22902
22903
22904$as_echo "#define gid_t int" >>confdefs.h
22905
22906fi
22907
22908ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22909case $ac_cv_c_uint8_t in #(
22910 no|yes) ;; #(
22911 *)
22912
22913$as_echo "#define _UINT8_T 1" >>confdefs.h
22914
22915
22916cat >>confdefs.h <<_ACEOF
22917#define uint8_t $ac_cv_c_uint8_t
22918_ACEOF
22919;;
22920 esac
22921
22922ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22923case $ac_cv_c_uint16_t in #(
22924 no|yes) ;; #(
22925 *)
22926
22927
22928cat >>confdefs.h <<_ACEOF
22929#define uint16_t $ac_cv_c_uint16_t
22930_ACEOF
22931;;
22932 esac
22933
22934ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22935case $ac_cv_c_uint32_t in #(
22936 no|yes) ;; #(
22937 *)
22938
22939$as_echo "#define _UINT32_T 1" >>confdefs.h
22940
22941
22942cat >>confdefs.h <<_ACEOF
22943#define uint32_t $ac_cv_c_uint32_t
22944_ACEOF
22945;;
22946 esac
22947
22948ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22949case $ac_cv_c_uint64_t in #(
22950 no|yes) ;; #(
22951 *)
22952
22953$as_echo "#define _UINT64_T 1" >>confdefs.h
22954
22955
22956cat >>confdefs.h <<_ACEOF
22957#define uint64_t $ac_cv_c_uint64_t
22958_ACEOF
22959;;
22960 esac
22961
22962
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22964$as_echo_n "checking for unsigned long long int... " >&6; }
22965if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22966 $as_echo_n "(cached) " >&6
22967else
22968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22969/* end confdefs.h. */
22970
22971 /* For now, do not test the preprocessor; as of 2007 there are too many
22972 implementations with broken preprocessors. Perhaps this can
22973 be revisited in 2012. In the meantime, code should not expect
22974 #if to work with literals wider than 32 bits. */
22975 /* Test literals. */
22976 long long int ll = 9223372036854775807ll;
22977 long long int nll = -9223372036854775807LL;
22978 unsigned long long int ull = 18446744073709551615ULL;
22979 /* Test constant expressions. */
22980 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22981 ? 1 : -1)];
22982 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22983 ? 1 : -1)];
22984 int i = 63;
22985int
22986main ()
22987{
22988/* Test availability of runtime routines for shift and division. */
22989 long long int llmax = 9223372036854775807ll;
22990 unsigned long long int ullmax = 18446744073709551615ull;
22991 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22992 | (llmax / ll) | (llmax % ll)
22993 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22994 | (ullmax / ull) | (ullmax % ull));
22995 ;
22996 return 0;
22997}
22998
22999_ACEOF
23000if ac_fn_c_try_link "$LINENO"; then :
23001 ac_cv_type_unsigned_long_long_int=yes
23002else
23003 ac_cv_type_unsigned_long_long_int=no
23004fi
23005rm -f core conftest.err conftest.$ac_objext \
23006 conftest$ac_exeext conftest.$ac_ext
23007fi
23008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23009$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23010 if test $ac_cv_type_unsigned_long_long_int = yes; then
23011
23012$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23013
23014 fi
23015
23016
23017
23018 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23019if test "x$ac_cv_type_uintmax_t" = xyes; then :
23020
23021$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23022
23023else
23024 test $ac_cv_type_unsigned_long_long_int = yes \
23025 && ac_type='unsigned long long int' \
23026 || ac_type='unsigned long int'
23027
23028cat >>confdefs.h <<_ACEOF
23029#define uintmax_t $ac_type
23030_ACEOF
23031
23032fi
23033
23034
23035
23036 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23037if test "x$ac_cv_type_uintptr_t" = xyes; then :
23038
23039$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23040
23041else
23042 for ac_type in 'unsigned int' 'unsigned long int' \
23043 'unsigned long long int'; do
23044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23045/* end confdefs.h. */
23046$ac_includes_default
23047int
23048main ()
23049{
23050static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23051test_array [0] = 0
23052
23053 ;
23054 return 0;
23055}
23056_ACEOF
23057if ac_fn_c_try_compile "$LINENO"; then :
23058
23059cat >>confdefs.h <<_ACEOF
23060#define uintptr_t $ac_type
23061_ACEOF
23062
23063 ac_type=
23064fi
23065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23066 test -z "$ac_type" && break
23067 done
23068fi
23069
23070
23071
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23073$as_echo_n "checking for unsigned long long int... " >&6; }
23074if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23075 $as_echo_n "(cached) " >&6
23076else
23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078/* end confdefs.h. */
23079
23080 /* For now, do not test the preprocessor; as of 2007 there are too many
23081 implementations with broken preprocessors. Perhaps this can
23082 be revisited in 2012. In the meantime, code should not expect
23083 #if to work with literals wider than 32 bits. */
23084 /* Test literals. */
23085 long long int ll = 9223372036854775807ll;
23086 long long int nll = -9223372036854775807LL;
23087 unsigned long long int ull = 18446744073709551615ULL;
23088 /* Test constant expressions. */
23089 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23090 ? 1 : -1)];
23091 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23092 ? 1 : -1)];
23093 int i = 63;
23094int
23095main ()
23096{
23097/* Test availability of runtime routines for shift and division. */
23098 long long int llmax = 9223372036854775807ll;
23099 unsigned long long int ullmax = 18446744073709551615ull;
23100 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23101 | (llmax / ll) | (llmax % ll)
23102 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23103 | (ullmax / ull) | (ullmax % ull));
23104 ;
23105 return 0;
23106}
23107
23108_ACEOF
23109if ac_fn_c_try_link "$LINENO"; then :
23110 ac_cv_type_unsigned_long_long_int=yes
23111else
23112 ac_cv_type_unsigned_long_long_int=no
23113fi
23114rm -f core conftest.err conftest.$ac_objext \
23115 conftest$ac_exeext conftest.$ac_ext
23116fi
23117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23118$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23119 if test $ac_cv_type_unsigned_long_long_int = yes; then
23120
23121$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23122
23123 fi
23124
23125
cristy3ed852e2009-09-05 21:47:34 +000023126# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23127# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023129$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023130if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023131 $as_echo_n "(cached) " >&6
23132else
cristy8b350f62009-11-15 23:12:43 +000023133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023134/* end confdefs.h. */
23135$ac_includes_default
23136int
23137main ()
23138{
23139static int test_array [1 - 2 * !(((char) -1) < 0)];
23140test_array [0] = 0
23141
23142 ;
23143 return 0;
23144}
23145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023146if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023147 ac_cv_c_char_unsigned=no
23148else
cristy8b350f62009-11-15 23:12:43 +000023149 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023150fi
cristy3ed852e2009-09-05 21:47:34 +000023151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23152fi
cristy8b350f62009-11-15 23:12:43 +000023153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023154$as_echo "$ac_cv_c_char_unsigned" >&6; }
23155if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023156 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023157
23158fi
23159
23160
23161# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23162# The cast to long int works around a bug in the HP C Compiler
23163# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23164# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23165# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023167$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023168if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023169 $as_echo_n "(cached) " >&6
23170else
cristy8b350f62009-11-15 23:12:43 +000023171 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 +000023172
cristy3ed852e2009-09-05 21:47:34 +000023173else
cristy8b350f62009-11-15 23:12:43 +000023174 if test "$ac_cv_type_signed_short" = yes; then
23175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023177as_fn_error 77 "cannot compute sizeof (signed short)
23178See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023179 else
23180 ac_cv_sizeof_signed_short=0
23181 fi
23182fi
cristy8b350f62009-11-15 23:12:43 +000023183
cristy3ed852e2009-09-05 21:47:34 +000023184fi
cristy8b350f62009-11-15 23:12:43 +000023185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023186$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23187
23188
23189
23190cat >>confdefs.h <<_ACEOF
23191#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23192_ACEOF
23193
23194
23195
23196# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23197# The cast to long int works around a bug in the HP C Compiler
23198# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23199# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23200# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023202$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023203if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023204 $as_echo_n "(cached) " >&6
23205else
cristy8b350f62009-11-15 23:12:43 +000023206 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 +000023207
cristy3ed852e2009-09-05 21:47:34 +000023208else
cristy8b350f62009-11-15 23:12:43 +000023209 if test "$ac_cv_type_unsigned_short" = yes; then
23210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023212as_fn_error 77 "cannot compute sizeof (unsigned short)
23213See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023214 else
23215 ac_cv_sizeof_unsigned_short=0
23216 fi
23217fi
cristy8b350f62009-11-15 23:12:43 +000023218
cristy3ed852e2009-09-05 21:47:34 +000023219fi
cristy8b350f62009-11-15 23:12:43 +000023220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023221$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23222
23223
23224
23225cat >>confdefs.h <<_ACEOF
23226#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23227_ACEOF
23228
23229
23230
23231# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23232# The cast to long int works around a bug in the HP C Compiler
23233# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23234# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23235# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023237$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023238if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023239 $as_echo_n "(cached) " >&6
23240else
cristy8b350f62009-11-15 23:12:43 +000023241 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 +000023242
cristy3ed852e2009-09-05 21:47:34 +000023243else
cristy8b350f62009-11-15 23:12:43 +000023244 if test "$ac_cv_type_signed_int" = yes; then
23245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023247as_fn_error 77 "cannot compute sizeof (signed int)
23248See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023249 else
23250 ac_cv_sizeof_signed_int=0
23251 fi
23252fi
cristy8b350f62009-11-15 23:12:43 +000023253
cristy3ed852e2009-09-05 21:47:34 +000023254fi
cristy8b350f62009-11-15 23:12:43 +000023255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023256$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23257
23258
23259
23260cat >>confdefs.h <<_ACEOF
23261#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23262_ACEOF
23263
23264
23265
23266# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23267# The cast to long int works around a bug in the HP C Compiler
23268# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23269# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23270# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023272$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023273if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023274 $as_echo_n "(cached) " >&6
23275else
cristy8b350f62009-11-15 23:12:43 +000023276 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 +000023277
cristy3ed852e2009-09-05 21:47:34 +000023278else
cristy8b350f62009-11-15 23:12:43 +000023279 if test "$ac_cv_type_unsigned_int" = yes; then
23280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023282as_fn_error 77 "cannot compute sizeof (unsigned int)
23283See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023284 else
23285 ac_cv_sizeof_unsigned_int=0
23286 fi
23287fi
cristy8b350f62009-11-15 23:12:43 +000023288
cristy3ed852e2009-09-05 21:47:34 +000023289fi
cristy8b350f62009-11-15 23:12:43 +000023290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023291$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23292
23293
23294
23295cat >>confdefs.h <<_ACEOF
23296#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23297_ACEOF
23298
23299
23300
23301# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23302# The cast to long int works around a bug in the HP C Compiler
23303# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23304# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23305# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023307$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023308if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023309 $as_echo_n "(cached) " >&6
23310else
cristy8b350f62009-11-15 23:12:43 +000023311 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 +000023312
cristy3ed852e2009-09-05 21:47:34 +000023313else
cristy8b350f62009-11-15 23:12:43 +000023314 if test "$ac_cv_type_signed_long" = yes; then
23315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023317as_fn_error 77 "cannot compute sizeof (signed long)
23318See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023319 else
23320 ac_cv_sizeof_signed_long=0
23321 fi
23322fi
cristy8b350f62009-11-15 23:12:43 +000023323
cristy3ed852e2009-09-05 21:47:34 +000023324fi
cristy8b350f62009-11-15 23:12:43 +000023325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023326$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23327
23328
23329
23330cat >>confdefs.h <<_ACEOF
23331#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23332_ACEOF
23333
23334
23335
23336# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23337# The cast to long int works around a bug in the HP C Compiler
23338# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23339# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23340# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023342$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023343if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023344 $as_echo_n "(cached) " >&6
23345else
cristy8b350f62009-11-15 23:12:43 +000023346 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 +000023347
cristy3ed852e2009-09-05 21:47:34 +000023348else
cristy8b350f62009-11-15 23:12:43 +000023349 if test "$ac_cv_type_unsigned_long" = yes; then
23350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023352as_fn_error 77 "cannot compute sizeof (unsigned long)
23353See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023354 else
23355 ac_cv_sizeof_unsigned_long=0
23356 fi
23357fi
cristy8b350f62009-11-15 23:12:43 +000023358
cristy3ed852e2009-09-05 21:47:34 +000023359fi
cristy8b350f62009-11-15 23:12:43 +000023360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023361$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23362
23363
23364
23365cat >>confdefs.h <<_ACEOF
23366#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23367_ACEOF
23368
23369
23370
23371# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23372# 'signed long long' is not supported then the value defined is zero.
23373# The cast to long int works around a bug in the HP C Compiler
23374# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23375# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23376# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023378$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023379if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023380 $as_echo_n "(cached) " >&6
23381else
cristy8b350f62009-11-15 23:12:43 +000023382 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 +000023383
cristy3ed852e2009-09-05 21:47:34 +000023384else
cristy8b350f62009-11-15 23:12:43 +000023385 if test "$ac_cv_type_signed_long_long" = yes; then
23386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023388as_fn_error 77 "cannot compute sizeof (signed long long)
23389See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023390 else
23391 ac_cv_sizeof_signed_long_long=0
23392 fi
23393fi
cristy8b350f62009-11-15 23:12:43 +000023394
cristy3ed852e2009-09-05 21:47:34 +000023395fi
cristy8b350f62009-11-15 23:12:43 +000023396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023397$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23398
23399
23400
23401cat >>confdefs.h <<_ACEOF
23402#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23403_ACEOF
23404
23405
23406
23407# Obtain size of a 'unsigned long long' and define as
23408# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23409# supported then the value defined is zero.
23410# The cast to long int works around a bug in the HP C Compiler
23411# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23412# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23413# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023415$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023416if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023417 $as_echo_n "(cached) " >&6
23418else
cristy8b350f62009-11-15 23:12:43 +000023419 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 +000023420
cristy3ed852e2009-09-05 21:47:34 +000023421else
cristy8b350f62009-11-15 23:12:43 +000023422 if test "$ac_cv_type_unsigned_long_long" = yes; then
23423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023425as_fn_error 77 "cannot compute sizeof (unsigned long long)
23426See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023427 else
23428 ac_cv_sizeof_unsigned_long_long=0
23429 fi
23430fi
cristy8b350f62009-11-15 23:12:43 +000023431
cristy3ed852e2009-09-05 21:47:34 +000023432fi
cristy8b350f62009-11-15 23:12:43 +000023433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023434$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23435
23436
23437
23438cat >>confdefs.h <<_ACEOF
23439#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23440_ACEOF
23441
23442
23443
23444# Obtain size of off_t and define as SIZEOF_OFF_T
23445# The cast to long int works around a bug in the HP C Compiler
23446# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23447# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23448# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023450$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023451if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023452 $as_echo_n "(cached) " >&6
23453else
cristy8b350f62009-11-15 23:12:43 +000023454 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 +000023455
cristy3ed852e2009-09-05 21:47:34 +000023456else
cristy8b350f62009-11-15 23:12:43 +000023457 if test "$ac_cv_type_off_t" = yes; then
23458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023460as_fn_error 77 "cannot compute sizeof (off_t)
23461See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023462 else
23463 ac_cv_sizeof_off_t=0
23464 fi
23465fi
cristy8b350f62009-11-15 23:12:43 +000023466
cristy3ed852e2009-09-05 21:47:34 +000023467fi
cristy8b350f62009-11-15 23:12:43 +000023468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023469$as_echo "$ac_cv_sizeof_off_t" >&6; }
23470
23471
23472
23473cat >>confdefs.h <<_ACEOF
23474#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23475_ACEOF
23476
23477
23478
23479# Obtain size of size_t and define as SIZEOF_SIZE_T
23480# The cast to long int works around a bug in the HP C Compiler
23481# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23482# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23483# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023485$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023486if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023487 $as_echo_n "(cached) " >&6
23488else
cristy8b350f62009-11-15 23:12:43 +000023489 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 +000023490
cristy3ed852e2009-09-05 21:47:34 +000023491else
cristy8b350f62009-11-15 23:12:43 +000023492 if test "$ac_cv_type_size_t" = yes; then
23493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023495as_fn_error 77 "cannot compute sizeof (size_t)
23496See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023497 else
23498 ac_cv_sizeof_size_t=0
23499 fi
23500fi
cristy8b350f62009-11-15 23:12:43 +000023501
cristy3ed852e2009-09-05 21:47:34 +000023502fi
cristy8b350f62009-11-15 23:12:43 +000023503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023504$as_echo "$ac_cv_sizeof_size_t" >&6; }
23505
23506
23507
23508cat >>confdefs.h <<_ACEOF
23509#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23510_ACEOF
23511
23512
23513
cristy330e9352010-06-01 18:42:49 +000023514# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23515# The cast to long int works around a bug in the HP C Compiler
23516# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23517# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23518# This bug is HP SR number 8606223364.
23519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23520$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023521if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023522 $as_echo_n "(cached) " >&6
23523else
23524 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23525
23526else
23527 if test "$ac_cv_type_ssize_t" = yes; then
23528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023530as_fn_error 77 "cannot compute sizeof (ssize_t)
23531See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023532 else
23533 ac_cv_sizeof_ssize_t=0
23534 fi
23535fi
23536
23537fi
23538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23539$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23540
23541
23542
23543cat >>confdefs.h <<_ACEOF
23544#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23545_ACEOF
23546
23547
23548
cristy3ed852e2009-09-05 21:47:34 +000023549# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23550# The cast to long int works around a bug in the HP C Compiler
23551# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23552# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23553# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023555$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023556if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023557 $as_echo_n "(cached) " >&6
23558else
cristy8b350f62009-11-15 23:12:43 +000023559 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 +000023560
cristy3ed852e2009-09-05 21:47:34 +000023561else
cristy8b350f62009-11-15 23:12:43 +000023562 if test "$ac_cv_type_unsigned_intp" = yes; then
23563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023565as_fn_error 77 "cannot compute sizeof (unsigned int*)
23566See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023567 else
23568 ac_cv_sizeof_unsigned_intp=0
23569 fi
23570fi
cristy8b350f62009-11-15 23:12:43 +000023571
cristy3ed852e2009-09-05 21:47:34 +000023572fi
cristy8b350f62009-11-15 23:12:43 +000023573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023574$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23575
23576
23577
23578cat >>confdefs.h <<_ACEOF
23579#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23580_ACEOF
23581
23582
23583
23584#
23585# Compute sized types for current CPU and compiler options.
23586#
23587
cristy8b350f62009-11-15 23:12:43 +000023588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023589$as_echo_n "checking for signed 8-bit type... " >&6; }
23590INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000023591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023592$as_echo "$INT8_T" >&6; }
23593
23594
cristy8b350f62009-11-15 23:12:43 +000023595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023596$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23597UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000023598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023599$as_echo "$UINT8_T" >&6; }
23600
23601
cristy8b350f62009-11-15 23:12:43 +000023602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023603$as_echo_n "checking for signed 16-bit type... " >&6; }
23604INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000023605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023606$as_echo "$INT16_T" >&6; }
23607
23608
cristy8b350f62009-11-15 23:12:43 +000023609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023610$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23611UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000023612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023613$as_echo "$UINT16_T" >&6; }
23614
23615
cristy8b350f62009-11-15 23:12:43 +000023616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023617$as_echo_n "checking for signed 32-bit type... " >&6; }
23618INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023619INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023620if test $ac_cv_sizeof_signed_int -eq 4; then
23621 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023622 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023623elif test $ac_cv_sizeof_signed_long -eq 4; then
23624 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023625 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023626fi
cristy8b350f62009-11-15 23:12:43 +000023627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023628$as_echo "$INT32_T" >&6; }
23629
23630
cristy6d5e20f2011-04-25 13:48:54 +000023631
cristy8b350f62009-11-15 23:12:43 +000023632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023633$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23634UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023635UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023636if test $ac_cv_sizeof_unsigned_int -eq 4; then
23637 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023638 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023639elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23640 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023641 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023642fi
cristy8b350f62009-11-15 23:12:43 +000023643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023644$as_echo "$UINT32_T" >&6; }
23645
23646
cristy6d5e20f2011-04-25 13:48:54 +000023647
cristy8b350f62009-11-15 23:12:43 +000023648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023649$as_echo_n "checking for signed 64-bit type... " >&6; }
23650INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023651INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023652if test $ac_cv_sizeof_signed_long -eq 8; then
23653 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023654 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023655elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23656 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023657 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023658fi
cristy6d5e20f2011-04-25 13:48:54 +000023659case "${build_os}" in
23660 mingw* )
23661 INT64_F='"I64"'
23662 ;;
23663esac
cristy8b350f62009-11-15 23:12:43 +000023664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023665$as_echo "$INT64_T" >&6; }
23666
23667
cristy6d5e20f2011-04-25 13:48:54 +000023668
cristy8b350f62009-11-15 23:12:43 +000023669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023670$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23671UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023672UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023673if test $ac_cv_sizeof_unsigned_long -eq 8; then
23674 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023675 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023676elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23677 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023678 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023679fi
cristy6d5e20f2011-04-25 13:48:54 +000023680case "${build_os}" in
23681 mingw* )
23682 UINT64_F='"I64"'
23683 ;;
23684esac
cristy8b350f62009-11-15 23:12:43 +000023685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023686$as_echo "$UINT64_T" >&6; }
23687
23688
cristy6d5e20f2011-04-25 13:48:54 +000023689
cristy8b350f62009-11-15 23:12:43 +000023690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023691$as_echo_n "checking for unsigned maximum type... " >&6; }
23692UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023693UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023694if test "$UINT64_T" != 'none'; then
23695 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023696 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023697elif test "$UINT32_T" != 'none'; then
23698 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023699 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023700fi
cristy8b350f62009-11-15 23:12:43 +000023701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023702$as_echo "$UINTMAX_T" >&6; }
23703
23704
cristy6d5e20f2011-04-25 13:48:54 +000023705
cristy8b350f62009-11-15 23:12:43 +000023706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023707$as_echo_n "checking for pointer difference type... " >&6; }
23708UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023709UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023710if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23711 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023712 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023713elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23714 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023715 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023716fi
cristy8b350f62009-11-15 23:12:43 +000023717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023718$as_echo "$UINTPTR_T" >&6; }
23719
23720
cristy6d5e20f2011-04-25 13:48:54 +000023721
cristy8b350f62009-11-15 23:12:43 +000023722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023723$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023725/* end confdefs.h. */
23726
23727int
23728main ()
23729{
23730{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23731 ;
23732 return 0;
23733}
23734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023735if ac_fn_c_try_compile "$LINENO"; then :
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023737$as_echo "yes" >&6; }
23738else
cristy8b350f62009-11-15 23:12:43 +000023739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023740$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023742$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023744/* end confdefs.h. */
23745
23746int
23747main ()
23748{
23749{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23750 ;
23751 return 0;
23752}
23753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023754if ac_fn_c_try_compile "$LINENO"; then :
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023756$as_echo "yes" >&6; }
23757
cristy8b350f62009-11-15 23:12:43 +000023758$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023759
23760else
cristy8b350f62009-11-15 23:12:43 +000023761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023762$as_echo "no" >&6; }
23763
cristy8b350f62009-11-15 23:12:43 +000023764$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023765
23766fi
cristy3ed852e2009-09-05 21:47:34 +000023767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23768fi
cristy3ed852e2009-09-05 21:47:34 +000023769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770
23771########
23772#
23773# Check for functions
23774#
23775########
cristy73bd4a52010-10-05 11:24:23 +000023776for ac_header in stdlib.h unistd.h
23777do :
23778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23779ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023781 cat >>confdefs.h <<_ACEOF
23782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23783_ACEOF
23784
23785fi
23786
23787done
23788
23789for ac_func in getpagesize
23790do :
23791 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023792if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023793 cat >>confdefs.h <<_ACEOF
23794#define HAVE_GETPAGESIZE 1
23795_ACEOF
23796
23797fi
23798done
23799
23800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23801$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023802if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023803 $as_echo_n "(cached) " >&6
23804else
23805 if test "$cross_compiling" = yes; then :
23806 magick_cv_func_mmap_fileio=no
23807else
23808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23809/* end confdefs.h. */
23810$ac_includes_default
23811/* malloc might have been renamed as rpl_malloc. */
23812#undef malloc
23813
23814/*
23815 This test is derived from GNU Autoconf's similar macro.
23816 The purpose of this test is to verify that files may be memory
23817 mapped, and that memory mapping and file I/O are coherent.
23818
23819 The test creates a test file, memory maps the file, updates
23820 the file using the memory map, and then reads the file using
23821 file I/O to verify that the file contains the updates.
23822*/
23823
23824#include <fcntl.h>
23825#include <sys/mman.h>
23826
23827#if !STDC_HEADERS && !HAVE_STDLIB_H
23828char *malloc ();
23829#endif
23830
23831/* This mess was copied from the GNU getpagesize.h. */
23832#if !HAVE_GETPAGESIZE
23833/* Assume that all systems that can run configure have sys/param.h. */
23834# if !HAVE_SYS_PARAM_H
23835# define HAVE_SYS_PARAM_H 1
23836# endif
23837
23838# ifdef _SC_PAGESIZE
23839# define getpagesize() sysconf(_SC_PAGESIZE)
23840# else /* no _SC_PAGESIZE */
23841# if HAVE_SYS_PARAM_H
23842# include <sys/param.h>
23843# ifdef EXEC_PAGESIZE
23844# define getpagesize() EXEC_PAGESIZE
23845# else /* no EXEC_PAGESIZE */
23846# ifdef NBPG
23847# define getpagesize() NBPG * CLSIZE
23848# ifndef CLSIZE
23849# define CLSIZE 1
23850# endif /* no CLSIZE */
23851# else /* no NBPG */
23852# ifdef NBPC
23853# define getpagesize() NBPC
23854# else /* no NBPC */
23855# ifdef PAGESIZE
23856# define getpagesize() PAGESIZE
23857# endif /* PAGESIZE */
23858# endif /* no NBPC */
23859# endif /* no NBPG */
23860# endif /* no EXEC_PAGESIZE */
23861# else /* no HAVE_SYS_PARAM_H */
23862# define getpagesize() 8192 /* punt totally */
23863# endif /* no HAVE_SYS_PARAM_H */
23864# endif /* no _SC_PAGESIZE */
23865
23866#endif /* no HAVE_GETPAGESIZE */
23867
23868int
23869main ()
23870{
23871 char *data, *data2, *data3;
23872 int i, pagesize;
23873 int fd;
23874
23875 pagesize = getpagesize ();
23876
23877 /* First, make a file with some known garbage in it. */
23878 data = (char *) malloc (pagesize);
23879 if (!data)
23880 exit (1);
23881 for (i = 0; i < pagesize; ++i)
23882 *(data + i) = rand ();
23883 umask (0);
23884 fd = creat ("conftest.mmap", 0600);
23885 if (fd < 0)
23886 exit (1);
23887 if (write (fd, data, pagesize) != pagesize)
23888 exit (1);
23889 close (fd);
23890
23891 /* Mmap the file as read/write/shared and verify that we see the
23892 same garbage. */
23893 fd = open ("conftest.mmap", O_RDWR);
23894 if (fd < 0)
23895 exit (1);
23896 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23897 if (data2 == 0)
23898 exit (1);
23899 for (i = 0; i < pagesize; ++i)
23900 if (*(data + i) != *(data2 + i))
23901 exit (1);
23902
23903 /* Finally, make sure that changes to the mapped area
23904 percolate back to the file as seen by read(). */
23905 for (i = 0; i < pagesize; ++i)
23906 *(data2 + i) = *(data2 + i) + 1;
23907 data3 = (char *) malloc (pagesize);
23908 if (!data3)
23909 exit (1);
23910 if (read (fd, data3, pagesize) != pagesize)
23911 exit (1);
23912 for (i = 0; i < pagesize; ++i)
23913 if (*(data2 + i) != *(data3 + i))
23914 exit (1);
23915 close (fd);
23916 exit (0);
23917}
23918_ACEOF
23919if ac_fn_c_try_run "$LINENO"; then :
23920 magick_cv_func_mmap_fileio=yes
23921else
23922 magick_cv_func_mmap_fileio=no
23923fi
23924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23925 conftest.$ac_objext conftest.beam conftest.$ac_ext
23926fi
23927
23928fi
23929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23930$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23931if test $magick_cv_func_mmap_fileio = yes; then
23932
23933$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23934
23935fi
23936rm -f conftest.mmap
23937
cristy8b350f62009-11-15 23:12:43 +000023938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023939$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023940if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023941 $as_echo_n "(cached) " >&6
23942else
cristy8b350f62009-11-15 23:12:43 +000023943 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023944 ac_cv_func_closedir_void=yes
23945else
cristy8b350f62009-11-15 23:12:43 +000023946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023947/* end confdefs.h. */
23948$ac_includes_default
23949#include <$ac_header_dirent>
23950#ifndef __cplusplus
23951int closedir ();
23952#endif
23953
23954int
23955main ()
23956{
23957return closedir (opendir (".")) != 0;
23958 ;
23959 return 0;
23960}
23961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023962if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023963 ac_cv_func_closedir_void=no
23964else
cristy8b350f62009-11-15 23:12:43 +000023965 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023966fi
cristy8b350f62009-11-15 23:12:43 +000023967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23968 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023969fi
23970
cristy3ed852e2009-09-05 21:47:34 +000023971fi
cristy8b350f62009-11-15 23:12:43 +000023972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023973$as_echo "$ac_cv_func_closedir_void" >&6; }
23974if test $ac_cv_func_closedir_void = yes; then
23975
cristy8b350f62009-11-15 23:12:43 +000023976$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023977
23978fi
23979
cristycd4c5312009-11-22 01:19:08 +000023980
23981
23982
23983 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023984do :
23985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023986ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23987"
cristy98dddb52010-11-04 00:30:15 +000023988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023989 cat >>confdefs.h <<_ACEOF
23990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23991_ACEOF
23992
23993fi
23994
23995done
23996
cristycd4c5312009-11-22 01:19:08 +000023997
23998
23999
24000
24001
24002
24003
cristy3ed852e2009-09-05 21:47:34 +000024004for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024005do :
24006 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024007if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024008 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024009#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024010_ACEOF
24011
24012fi
24013done
24014
cristy8b350f62009-11-15 23:12:43 +000024015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024016$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024017if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024018 $as_echo_n "(cached) " >&6
24019else
cristy8b350f62009-11-15 23:12:43 +000024020 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024021 ac_cv_func_mmap_fixed_mapped=no
24022else
cristy8b350f62009-11-15 23:12:43 +000024023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024024/* end confdefs.h. */
24025$ac_includes_default
24026/* malloc might have been renamed as rpl_malloc. */
24027#undef malloc
24028
24029/* Thanks to Mike Haertel and Jim Avera for this test.
24030 Here is a matrix of mmap possibilities:
24031 mmap private not fixed
24032 mmap private fixed at somewhere currently unmapped
24033 mmap private fixed at somewhere already mapped
24034 mmap shared not fixed
24035 mmap shared fixed at somewhere currently unmapped
24036 mmap shared fixed at somewhere already mapped
24037 For private mappings, we should verify that changes cannot be read()
24038 back from the file, nor mmap's back from the file at a different
24039 address. (There have been systems where private was not correctly
24040 implemented like the infamous i386 svr4.0, and systems where the
24041 VM page cache was not coherent with the file system buffer cache
24042 like early versions of FreeBSD and possibly contemporary NetBSD.)
24043 For shared mappings, we should conversely verify that changes get
24044 propagated back to all the places they're supposed to be.
24045
24046 Grep wants private fixed already mapped.
24047 The main things grep needs to know about mmap are:
24048 * does it exist and is it safe to write into the mmap'd area
24049 * how to use it (BSD variants) */
24050
24051#include <fcntl.h>
24052#include <sys/mman.h>
24053
24054#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24055char *malloc ();
24056#endif
24057
24058/* This mess was copied from the GNU getpagesize.h. */
24059#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024060# ifdef _SC_PAGESIZE
24061# define getpagesize() sysconf(_SC_PAGESIZE)
24062# else /* no _SC_PAGESIZE */
24063# ifdef HAVE_SYS_PARAM_H
24064# include <sys/param.h>
24065# ifdef EXEC_PAGESIZE
24066# define getpagesize() EXEC_PAGESIZE
24067# else /* no EXEC_PAGESIZE */
24068# ifdef NBPG
24069# define getpagesize() NBPG * CLSIZE
24070# ifndef CLSIZE
24071# define CLSIZE 1
24072# endif /* no CLSIZE */
24073# else /* no NBPG */
24074# ifdef NBPC
24075# define getpagesize() NBPC
24076# else /* no NBPC */
24077# ifdef PAGESIZE
24078# define getpagesize() PAGESIZE
24079# endif /* PAGESIZE */
24080# endif /* no NBPC */
24081# endif /* no NBPG */
24082# endif /* no EXEC_PAGESIZE */
24083# else /* no HAVE_SYS_PARAM_H */
24084# define getpagesize() 8192 /* punt totally */
24085# endif /* no HAVE_SYS_PARAM_H */
24086# endif /* no _SC_PAGESIZE */
24087
24088#endif /* no HAVE_GETPAGESIZE */
24089
24090int
24091main ()
24092{
24093 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024094 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024095 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024096 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024097
24098 pagesize = getpagesize ();
24099
24100 /* First, make a file with some known garbage in it. */
24101 data = (char *) malloc (pagesize);
24102 if (!data)
24103 return 1;
24104 for (i = 0; i < pagesize; ++i)
24105 *(data + i) = rand ();
24106 umask (0);
24107 fd = creat ("conftest.mmap", 0600);
24108 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024109 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024110 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024111 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024112 close (fd);
24113
cristycd4c5312009-11-22 01:19:08 +000024114 /* Next, check that the tail of a page is zero-filled. File must have
24115 non-zero length, otherwise we risk SIGBUS for entire page. */
24116 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24117 if (fd2 < 0)
24118 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024119 cdata2 = "";
24120 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024121 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024122 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024123 if (data2 == MAP_FAILED)
24124 return 6;
24125 for (i = 0; i < pagesize; ++i)
24126 if (*(data2 + i))
24127 return 7;
24128 close (fd2);
24129 if (munmap (data2, pagesize))
24130 return 8;
24131
cristy3ed852e2009-09-05 21:47:34 +000024132 /* Next, try to mmap the file at a fixed address which already has
24133 something else allocated at it. If we can, also make sure that
24134 we see the same garbage. */
24135 fd = open ("conftest.mmap", O_RDWR);
24136 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024137 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024138 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24139 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024140 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024141 for (i = 0; i < pagesize; ++i)
24142 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024143 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024144
24145 /* Finally, make sure that changes to the mapped area do not
24146 percolate back to the file as seen by read(). (This is a bug on
24147 some variants of i386 svr4.0.) */
24148 for (i = 0; i < pagesize; ++i)
24149 *(data2 + i) = *(data2 + i) + 1;
24150 data3 = (char *) malloc (pagesize);
24151 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024152 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024153 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024154 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024155 for (i = 0; i < pagesize; ++i)
24156 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024157 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024158 close (fd);
24159 return 0;
24160}
24161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024162if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024163 ac_cv_func_mmap_fixed_mapped=yes
24164else
cristy8b350f62009-11-15 23:12:43 +000024165 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024166fi
cristy8b350f62009-11-15 23:12:43 +000024167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24168 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024169fi
24170
cristy3ed852e2009-09-05 21:47:34 +000024171fi
cristy8b350f62009-11-15 23:12:43 +000024172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024173$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24174if test $ac_cv_func_mmap_fixed_mapped = yes; then
24175
cristy8b350f62009-11-15 23:12:43 +000024176$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024177
24178fi
cristycd4c5312009-11-22 01:19:08 +000024179rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024180
cristy3ed852e2009-09-05 21:47:34 +000024181for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024182do :
24183 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024184if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024185 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024186#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024187_ACEOF
24188
24189fi
24190
24191done
24192
cristy3ed852e2009-09-05 21:47:34 +000024193for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024194do :
24195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24196ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024197if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024198 cat >>confdefs.h <<_ACEOF
24199#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24200_ACEOF
24201
24202fi
24203done
24204
24205if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024208if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024209 $as_echo_n "(cached) " >&6
24210else
cristy8b350f62009-11-15 23:12:43 +000024211 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024212 ac_cv_func_fork_works=cross
24213else
cristy8b350f62009-11-15 23:12:43 +000024214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024215/* end confdefs.h. */
24216$ac_includes_default
24217int
24218main ()
24219{
24220
24221 /* By Ruediger Kuhlmann. */
24222 return fork () < 0;
24223
24224 ;
24225 return 0;
24226}
24227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024228if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024229 ac_cv_func_fork_works=yes
24230else
cristy8b350f62009-11-15 23:12:43 +000024231 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024232fi
cristy8b350f62009-11-15 23:12:43 +000024233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24234 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024235fi
24236
cristy3ed852e2009-09-05 21:47:34 +000024237fi
cristy8b350f62009-11-15 23:12:43 +000024238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024239$as_echo "$ac_cv_func_fork_works" >&6; }
24240
24241else
24242 ac_cv_func_fork_works=$ac_cv_func_fork
24243fi
24244if test "x$ac_cv_func_fork_works" = xcross; then
24245 case $host in
24246 *-*-amigaos* | *-*-msdosdjgpp*)
24247 # Override, as these systems have only a dummy fork() stub
24248 ac_cv_func_fork_works=no
24249 ;;
24250 *)
24251 ac_cv_func_fork_works=yes
24252 ;;
24253 esac
cristy8b350f62009-11-15 23:12:43 +000024254 { $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 +000024255$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24256fi
24257ac_cv_func_vfork_works=$ac_cv_func_vfork
24258if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024260$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024261if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024262 $as_echo_n "(cached) " >&6
24263else
cristy8b350f62009-11-15 23:12:43 +000024264 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024265 ac_cv_func_vfork_works=cross
24266else
cristy8b350f62009-11-15 23:12:43 +000024267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024268/* end confdefs.h. */
24269/* Thanks to Paul Eggert for this test. */
24270$ac_includes_default
24271#include <sys/wait.h>
24272#ifdef HAVE_VFORK_H
24273# include <vfork.h>
24274#endif
24275/* On some sparc systems, changes by the child to local and incoming
24276 argument registers are propagated back to the parent. The compiler
24277 is told about this with #include <vfork.h>, but some compilers
24278 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24279 static variable whose address is put into a register that is
24280 clobbered by the vfork. */
24281static void
24282#ifdef __cplusplus
24283sparc_address_test (int arg)
24284# else
24285sparc_address_test (arg) int arg;
24286#endif
24287{
24288 static pid_t child;
24289 if (!child) {
24290 child = vfork ();
24291 if (child < 0) {
24292 perror ("vfork");
24293 _exit(2);
24294 }
24295 if (!child) {
24296 arg = getpid();
24297 write(-1, "", 0);
24298 _exit (arg);
24299 }
24300 }
24301}
24302
24303int
24304main ()
24305{
24306 pid_t parent = getpid ();
24307 pid_t child;
24308
24309 sparc_address_test (0);
24310
24311 child = vfork ();
24312
24313 if (child == 0) {
24314 /* Here is another test for sparc vfork register problems. This
24315 test uses lots of local variables, at least as many local
24316 variables as main has allocated so far including compiler
24317 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24318 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24319 reuse the register of parent for one of the local variables,
24320 since it will think that parent can't possibly be used any more
24321 in this routine. Assigning to the local variable will thus
24322 munge parent in the parent process. */
24323 pid_t
24324 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24325 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24326 /* Convince the compiler that p..p7 are live; otherwise, it might
24327 use the same hardware register for all 8 local variables. */
24328 if (p != p1 || p != p2 || p != p3 || p != p4
24329 || p != p5 || p != p6 || p != p7)
24330 _exit(1);
24331
24332 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24333 from child file descriptors. If the child closes a descriptor
24334 before it execs or exits, this munges the parent's descriptor
24335 as well. Test for this by closing stdout in the child. */
24336 _exit(close(fileno(stdout)) != 0);
24337 } else {
24338 int status;
24339 struct stat st;
24340
24341 while (wait(&status) != child)
24342 ;
24343 return (
24344 /* Was there some problem with vforking? */
24345 child < 0
24346
24347 /* Did the child fail? (This shouldn't happen.) */
24348 || status
24349
24350 /* Did the vfork/compiler bug occur? */
24351 || parent != getpid()
24352
24353 /* Did the file descriptor bug occur? */
24354 || fstat(fileno(stdout), &st) != 0
24355 );
24356 }
24357}
24358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024359if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024360 ac_cv_func_vfork_works=yes
24361else
cristy8b350f62009-11-15 23:12:43 +000024362 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024363fi
cristy8b350f62009-11-15 23:12:43 +000024364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24365 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024366fi
24367
cristy3ed852e2009-09-05 21:47:34 +000024368fi
cristy8b350f62009-11-15 23:12:43 +000024369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024370$as_echo "$ac_cv_func_vfork_works" >&6; }
24371
24372fi;
24373if test "x$ac_cv_func_fork_works" = xcross; then
24374 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024375 { $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 +000024376$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24377fi
24378
24379if test "x$ac_cv_func_vfork_works" = xyes; then
24380
cristy8b350f62009-11-15 23:12:43 +000024381$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024382
24383else
24384
cristy8b350f62009-11-15 23:12:43 +000024385$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024386
24387fi
24388if test "x$ac_cv_func_fork_works" = xyes; then
24389
cristy8b350f62009-11-15 23:12:43 +000024390$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024391
24392fi
24393
cristy8b350f62009-11-15 23:12:43 +000024394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024395$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024396if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024397 $as_echo_n "(cached) " >&6
24398else
cristy8b350f62009-11-15 23:12:43 +000024399 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024400 ac_cv_func_memcmp_working=no
24401else
cristy8b350f62009-11-15 23:12:43 +000024402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024403/* end confdefs.h. */
24404$ac_includes_default
24405int
24406main ()
24407{
24408
24409 /* Some versions of memcmp are not 8-bit clean. */
24410 char c0 = '\100', c1 = '\200', c2 = '\201';
24411 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24412 return 1;
24413
24414 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24415 or more and with at least one buffer not starting on a 4-byte boundary.
24416 William Lewis provided this test program. */
24417 {
24418 char foo[21];
24419 char bar[21];
24420 int i;
24421 for (i = 0; i < 4; i++)
24422 {
24423 char *a = foo + i;
24424 char *b = bar + i;
24425 strcpy (a, "--------01111111");
24426 strcpy (b, "--------10000000");
24427 if (memcmp (a, b, 16) >= 0)
24428 return 1;
24429 }
24430 return 0;
24431 }
24432
24433 ;
24434 return 0;
24435}
24436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024437if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024438 ac_cv_func_memcmp_working=yes
24439else
cristy8b350f62009-11-15 23:12:43 +000024440 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024441fi
cristy8b350f62009-11-15 23:12:43 +000024442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24443 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024444fi
24445
cristy3ed852e2009-09-05 21:47:34 +000024446fi
cristy8b350f62009-11-15 23:12:43 +000024447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024448$as_echo "$ac_cv_func_memcmp_working" >&6; }
24449test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24450 *" memcmp.$ac_objext "* ) ;;
24451 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24452 ;;
24453esac
24454
24455
cristy3ed852e2009-09-05 21:47:34 +000024456for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024457do :
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 :
cristy3ed852e2009-09-05 21:47:34 +000024461 cat >>confdefs.h <<_ACEOF
24462#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24463_ACEOF
24464
24465fi
24466
24467done
24468
cristy8b350f62009-11-15 23:12:43 +000024469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024470$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024471if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024472 $as_echo_n "(cached) " >&6
24473else
24474 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24475 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24476 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024478/* end confdefs.h. */
24479$ac_includes_default
24480#ifdef HAVE_SYS_SELECT_H
24481# include <sys/select.h>
24482#endif
24483#ifdef HAVE_SYS_SOCKET_H
24484# include <sys/socket.h>
24485#endif
24486
24487int
24488main ()
24489{
24490extern int select ($ac_arg1,
24491 $ac_arg234, $ac_arg234, $ac_arg234,
24492 $ac_arg5);
24493 ;
24494 return 0;
24495}
24496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024497if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024498 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024499fi
cristy3ed852e2009-09-05 21:47:34 +000024500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24501 done
24502 done
24503done
24504# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024505: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024506
24507fi
cristy8b350f62009-11-15 23:12:43 +000024508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024509$as_echo "$ac_cv_func_select_args" >&6; }
24510ac_save_IFS=$IFS; IFS=','
24511set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24512IFS=$ac_save_IFS
24513shift
24514
24515cat >>confdefs.h <<_ACEOF
24516#define SELECT_TYPE_ARG1 $1
24517_ACEOF
24518
24519
24520cat >>confdefs.h <<_ACEOF
24521#define SELECT_TYPE_ARG234 ($2)
24522_ACEOF
24523
24524
24525cat >>confdefs.h <<_ACEOF
24526#define SELECT_TYPE_ARG5 ($3)
24527_ACEOF
24528
24529rm -f conftest*
24530
cristyda16f162011-02-19 23:52:17 +000024531if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024532 $as_echo_n "(cached) " >&6
24533else
24534 ac_cv_func_setvbuf_reversed=no
24535fi
24536
24537
cristy8b350f62009-11-15 23:12:43 +000024538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024539$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024540if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024541 $as_echo_n "(cached) " >&6
24542else
cristy8b350f62009-11-15 23:12:43 +000024543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024544/* end confdefs.h. */
24545#include <sys/types.h>
24546#include <signal.h>
24547
24548int
24549main ()
24550{
24551return *(signal (0, 0)) (0) == 1;
24552 ;
24553 return 0;
24554}
24555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024556if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024557 ac_cv_type_signal=int
24558else
cristy8b350f62009-11-15 23:12:43 +000024559 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024560fi
cristy3ed852e2009-09-05 21:47:34 +000024561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24562fi
cristy8b350f62009-11-15 23:12:43 +000024563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024564$as_echo "$ac_cv_type_signal" >&6; }
24565
24566cat >>confdefs.h <<_ACEOF
24567#define RETSIGTYPE $ac_cv_type_signal
24568_ACEOF
24569
24570
cristy8b350f62009-11-15 23:12:43 +000024571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024572$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024573if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024574 $as_echo_n "(cached) " >&6
24575else
cristy8b350f62009-11-15 23:12:43 +000024576 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024577 ac_cv_func_strtod=no
24578else
cristy8b350f62009-11-15 23:12:43 +000024579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024580/* end confdefs.h. */
24581
24582$ac_includes_default
24583#ifndef strtod
24584double strtod ();
24585#endif
24586int
24587main()
24588{
24589 {
24590 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24591 char *string = " +69";
24592 char *term;
24593 double value;
24594 value = strtod (string, &term);
24595 if (value != 69 || term != (string + 4))
24596 return 1;
24597 }
24598
24599 {
24600 /* Under Solaris 2.4, strtod returns the wrong value for the
24601 terminating character under some conditions. */
24602 char *string = "NaN";
24603 char *term;
24604 strtod (string, &term);
24605 if (term != string && *(term - 1) == 0)
24606 return 1;
24607 }
24608 return 0;
24609}
24610
24611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024612if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024613 ac_cv_func_strtod=yes
24614else
cristy8b350f62009-11-15 23:12:43 +000024615 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024616fi
cristy8b350f62009-11-15 23:12:43 +000024617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24618 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024619fi
24620
cristy3ed852e2009-09-05 21:47:34 +000024621fi
cristy8b350f62009-11-15 23:12:43 +000024622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024623$as_echo "$ac_cv_func_strtod" >&6; }
24624if test $ac_cv_func_strtod = no; then
24625 case " $LIBOBJS " in
24626 *" strtod.$ac_objext "* ) ;;
24627 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24628 ;;
24629esac
24630
cristy8b350f62009-11-15 23:12:43 +000024631ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024632if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024633
cristy3ed852e2009-09-05 21:47:34 +000024634fi
24635
cristy3ed852e2009-09-05 21:47:34 +000024636if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024638$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024639if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024640 $as_echo_n "(cached) " >&6
24641else
24642 ac_check_lib_save_LIBS=$LIBS
24643LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024645/* end confdefs.h. */
24646
24647/* Override any GCC internal prototype to avoid an error.
24648 Use char because int might match the return type of a GCC
24649 builtin and then its argument prototype would still apply. */
24650#ifdef __cplusplus
24651extern "C"
24652#endif
24653char pow ();
24654int
24655main ()
24656{
24657return pow ();
24658 ;
24659 return 0;
24660}
24661_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024662if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024663 ac_cv_lib_m_pow=yes
24664else
cristy8b350f62009-11-15 23:12:43 +000024665 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024666fi
cristy8b350f62009-11-15 23:12:43 +000024667rm -f core conftest.err conftest.$ac_objext \
24668 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024669LIBS=$ac_check_lib_save_LIBS
24670fi
cristy8b350f62009-11-15 23:12:43 +000024671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024672$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024673if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024674 POW_LIB=-lm
24675else
cristy8b350f62009-11-15 23:12:43 +000024676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024677$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24678fi
24679
24680fi
24681
24682fi
24683
cristy7d4a1d62011-10-13 15:54:12 +000024684ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24685if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24686 ac_have_decl=1
24687else
24688 ac_have_decl=0
24689fi
24690
24691cat >>confdefs.h <<_ACEOF
24692#define HAVE_DECL_STRERROR_R $ac_have_decl
24693_ACEOF
24694
24695for ac_func in strerror_r
24696do :
24697 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24698if test "x$ac_cv_func_strerror_r" = xyes; then :
24699 cat >>confdefs.h <<_ACEOF
24700#define HAVE_STRERROR_R 1
24701_ACEOF
24702
24703fi
24704done
24705
24706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24707$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24708if ${ac_cv_func_strerror_r_char_p+:} false; then :
24709 $as_echo_n "(cached) " >&6
24710else
24711
24712 ac_cv_func_strerror_r_char_p=no
24713 if test $ac_cv_have_decl_strerror_r = yes; then
24714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24715/* end confdefs.h. */
24716$ac_includes_default
24717int
24718main ()
24719{
24720
24721 char buf[100];
24722 char x = *strerror_r (0, buf, sizeof buf);
24723 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024724 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024725
24726 ;
24727 return 0;
24728}
24729_ACEOF
24730if ac_fn_c_try_compile "$LINENO"; then :
24731 ac_cv_func_strerror_r_char_p=yes
24732fi
24733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24734 else
24735 # strerror_r is not declared. Choose between
24736 # systems that have relatively inaccessible declarations for the
24737 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24738 # former has a strerror_r that returns char*, while the latter
24739 # has a strerror_r that returns `int'.
24740 # This test should segfault on the DEC system.
24741 if test "$cross_compiling" = yes; then :
24742 :
24743else
24744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24745/* end confdefs.h. */
24746$ac_includes_default
24747 extern char *strerror_r ();
24748int
24749main ()
24750{
24751char buf[100];
24752 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024753 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024754 ;
24755 return 0;
24756}
24757_ACEOF
24758if ac_fn_c_try_run "$LINENO"; then :
24759 ac_cv_func_strerror_r_char_p=yes
24760fi
24761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24762 conftest.$ac_objext conftest.beam conftest.$ac_ext
24763fi
24764
24765 fi
24766
24767fi
24768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24769$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24770if test $ac_cv_func_strerror_r_char_p = yes; then
24771
24772$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24773
24774fi
24775
cristy3ed852e2009-09-05 21:47:34 +000024776for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024777do :
24778 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024779if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024780 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024781#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024782_ACEOF
24783
cristy8b350f62009-11-15 23:12:43 +000024784ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024785if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024786
cristy8b350f62009-11-15 23:12:43 +000024787$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024788
24789fi
24790
24791fi
24792done
24793
24794
24795
cristy161b9262010-03-20 19:34:32 +000024796#
24797# Find math library
24798#
24799MATH_LIBS=''
24800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24801$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024802if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024803 $as_echo_n "(cached) " >&6
24804else
24805 ac_check_lib_save_LIBS=$LIBS
24806LIBS="-lm $LIBS"
24807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24808/* end confdefs.h. */
24809
24810/* Override any GCC internal prototype to avoid an error.
24811 Use char because int might match the return type of a GCC
24812 builtin and then its argument prototype would still apply. */
24813#ifdef __cplusplus
24814extern "C"
24815#endif
24816char sqrt ();
24817int
24818main ()
24819{
24820return sqrt ();
24821 ;
24822 return 0;
24823}
24824_ACEOF
24825if ac_fn_c_try_link "$LINENO"; then :
24826 ac_cv_lib_m_sqrt=yes
24827else
24828 ac_cv_lib_m_sqrt=no
24829fi
24830rm -f core conftest.err conftest.$ac_objext \
24831 conftest$ac_exeext conftest.$ac_ext
24832LIBS=$ac_check_lib_save_LIBS
24833fi
24834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24835$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024836if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024837 MATH_LIBS="-lm"
24838fi
24839
24840LIBS="$MATH_LIBS $LIBS"
24841
24842
cristy7d4a1d62011-10-13 15:54:12 +000024843for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000024844do :
24845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24846ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024847if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024848 cat >>confdefs.h <<_ACEOF
24849#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24850_ACEOF
24851
24852fi
24853done
24854
24855
cristye43a45e2009-09-28 14:49:00 +000024856#
24857# Check for clock_gettime().
24858#
cristy8b350f62009-11-15 23:12:43 +000024859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024860$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024861if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024862 $as_echo_n "(cached) " >&6
24863else
24864 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024866/* end confdefs.h. */
24867
24868/* Override any GCC internal prototype to avoid an error.
24869 Use char because int might match the return type of a GCC
24870 builtin and then its argument prototype would still apply. */
24871#ifdef __cplusplus
24872extern "C"
24873#endif
24874char clock_gettime ();
24875int
24876main ()
24877{
24878return clock_gettime ();
24879 ;
24880 return 0;
24881}
24882_ACEOF
24883for ac_lib in '' rt; do
24884 if test -z "$ac_lib"; then
24885 ac_res="none required"
24886 else
24887 ac_res=-l$ac_lib
24888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24889 fi
cristy8b350f62009-11-15 23:12:43 +000024890 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024891 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024892fi
cristy8b350f62009-11-15 23:12:43 +000024893rm -f core conftest.err conftest.$ac_objext \
24894 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024895 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024896 break
24897fi
24898done
cristyda16f162011-02-19 23:52:17 +000024899if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024900
cristye43a45e2009-09-28 14:49:00 +000024901else
24902 ac_cv_search_clock_gettime=no
24903fi
24904rm conftest.$ac_ext
24905LIBS=$ac_func_search_save_LIBS
24906fi
cristy8b350f62009-11-15 23:12:43 +000024907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024908$as_echo "$ac_cv_search_clock_gettime" >&6; }
24909ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024910if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24912
24913
cristy8b350f62009-11-15 23:12:43 +000024914$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024915
cristy8b350f62009-11-15 23:12:43 +000024916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024917$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024919/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024920
24921 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024922int
24923main ()
24924{
24925clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024926 ;
24927 return 0;
24928}
24929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024930if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024931
cristy8b350f62009-11-15 23:12:43 +000024932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024933$as_echo "yes" >&6; }
24934
cristy8b350f62009-11-15 23:12:43 +000024935$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024936
24937
24938else
cristy8b350f62009-11-15 23:12:43 +000024939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024940$as_echo "no" >&6; }
24941
24942fi
cristye43a45e2009-09-28 14:49:00 +000024943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24944
24945else
24946
cristy8b350f62009-11-15 23:12:43 +000024947 for ac_func in gettimeofday ftime
24948do :
24949 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24950ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024951if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024952 cat >>confdefs.h <<_ACEOF
24953#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24954_ACEOF
24955 break
24956fi
24957done
24958
24959
24960
24961fi
24962
24963
cristy3ed852e2009-09-05 21:47:34 +000024964########
24965#
24966# Check for function prototypes
24967#
24968########
24969
cristy8b350f62009-11-15 23:12:43 +000024970ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024971#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024972"
cristyda16f162011-02-19 23:52:17 +000024973if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024974 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024975else
cristy8b350f62009-11-15 23:12:43 +000024976 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024977fi
24978
cristy3ed852e2009-09-05 21:47:34 +000024979cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024980#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024982ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024983#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024984"
cristyda16f162011-02-19 23:52:17 +000024985if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024986 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024987else
cristy8b350f62009-11-15 23:12:43 +000024988 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024989fi
24990
cristy3ed852e2009-09-05 21:47:34 +000024991cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024992#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024993_ACEOF
24994
24995
cristy8b350f62009-11-15 23:12:43 +000024996ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024997#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024998"
cristyda16f162011-02-19 23:52:17 +000024999if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025000 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025001else
cristy8b350f62009-11-15 23:12:43 +000025002 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025003fi
25004
cristy3ed852e2009-09-05 21:47:34 +000025005cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025006#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025007_ACEOF
25008
25009
cristy8b350f62009-11-15 23:12:43 +000025010ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025011#include <stdio.h>
25012#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025013"
cristyda16f162011-02-19 23:52:17 +000025014if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025015 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025016else
cristy8b350f62009-11-15 23:12:43 +000025017 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025018fi
25019
cristy3ed852e2009-09-05 21:47:34 +000025020cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025021#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025022_ACEOF
25023
25024
cristy3ed852e2009-09-05 21:47:34 +000025025########
25026#
25027# C++ Support Tests (For Magick++)
25028#
25029########
25030have_magick_plus_plus='no'
25031if test "$with_magick_plus_plus" = 'yes'; then
25032 OLIBS="$LIBS"
25033 LIBS=''
25034 ac_ext=cpp
25035ac_cpp='$CXXCPP $CPPFLAGS'
25036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25039
25040
25041 # Full set of headers used...
25042 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25043 # functional iomanip iosfwd iostream iterator list string strstream utility
25044 ac_ext=cpp
25045ac_cpp='$CXXCPP $CPPFLAGS'
25046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25049
25050 ac_ext=cpp
25051ac_cpp='$CXXCPP $CPPFLAGS'
25052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25055if test -z "$CXX"; then
25056 if test -n "$CCC"; then
25057 CXX=$CCC
25058 else
25059 if test -n "$ac_tool_prefix"; then
25060 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25061 do
25062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025065$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025066if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025067 $as_echo_n "(cached) " >&6
25068else
25069 if test -n "$CXX"; then
25070 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25071else
25072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25073for as_dir in $PATH
25074do
25075 IFS=$as_save_IFS
25076 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25079 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025081 break 2
25082 fi
25083done
cristy8b350f62009-11-15 23:12:43 +000025084 done
cristy3ed852e2009-09-05 21:47:34 +000025085IFS=$as_save_IFS
25086
25087fi
25088fi
25089CXX=$ac_cv_prog_CXX
25090if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025092$as_echo "$CXX" >&6; }
25093else
cristy8b350f62009-11-15 23:12:43 +000025094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025095$as_echo "no" >&6; }
25096fi
25097
25098
25099 test -n "$CXX" && break
25100 done
25101fi
25102if test -z "$CXX"; then
25103 ac_ct_CXX=$CXX
25104 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25105do
25106 # Extract the first word of "$ac_prog", so it can be a program name with args.
25107set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025109$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025110if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025111 $as_echo_n "(cached) " >&6
25112else
25113 if test -n "$ac_ct_CXX"; then
25114 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25115else
25116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25117for as_dir in $PATH
25118do
25119 IFS=$as_save_IFS
25120 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025121 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25123 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025125 break 2
25126 fi
25127done
cristy8b350f62009-11-15 23:12:43 +000025128 done
cristy3ed852e2009-09-05 21:47:34 +000025129IFS=$as_save_IFS
25130
25131fi
25132fi
25133ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25134if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025136$as_echo "$ac_ct_CXX" >&6; }
25137else
cristy8b350f62009-11-15 23:12:43 +000025138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025139$as_echo "no" >&6; }
25140fi
25141
25142
25143 test -n "$ac_ct_CXX" && break
25144done
25145
25146 if test "x$ac_ct_CXX" = x; then
25147 CXX="g++"
25148 else
25149 case $cross_compiling:$ac_tool_warned in
25150yes:)
cristy8b350f62009-11-15 23:12:43 +000025151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25153ac_tool_warned=yes ;;
25154esac
25155 CXX=$ac_ct_CXX
25156 fi
25157fi
25158
25159 fi
25160fi
25161# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025162$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025163set X $ac_compile
25164ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025165for ac_option in --version -v -V -qversion; do
25166 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025167case "(($ac_try" in
25168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25169 *) ac_try_echo=$ac_try;;
25170esac
cristy8b350f62009-11-15 23:12:43 +000025171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25172$as_echo "$ac_try_echo"; } >&5
25173 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025174 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025175 if test -s conftest.err; then
25176 sed '10a\
25177... rest of stderr output deleted ...
25178 10q' conftest.err >conftest.er1
25179 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025180 fi
cristycd4c5312009-11-22 01:19:08 +000025181 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25183 test $ac_status = 0; }
25184done
cristy3ed852e2009-09-05 21:47:34 +000025185
cristy8b350f62009-11-15 23:12:43 +000025186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025187$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025188if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025189 $as_echo_n "(cached) " >&6
25190else
cristy8b350f62009-11-15 23:12:43 +000025191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025192/* end confdefs.h. */
25193
25194int
25195main ()
25196{
25197#ifndef __GNUC__
25198 choke me
25199#endif
25200
25201 ;
25202 return 0;
25203}
25204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025205if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025206 ac_compiler_gnu=yes
25207else
cristy8b350f62009-11-15 23:12:43 +000025208 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025209fi
cristy3ed852e2009-09-05 21:47:34 +000025210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25211ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25212
25213fi
cristy8b350f62009-11-15 23:12:43 +000025214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025215$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25216if test $ac_compiler_gnu = yes; then
25217 GXX=yes
25218else
25219 GXX=
25220fi
25221ac_test_CXXFLAGS=${CXXFLAGS+set}
25222ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025224$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025225if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025226 $as_echo_n "(cached) " >&6
25227else
25228 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25229 ac_cxx_werror_flag=yes
25230 ac_cv_prog_cxx_g=no
25231 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025233/* end confdefs.h. */
25234
25235int
25236main ()
25237{
25238
25239 ;
25240 return 0;
25241}
25242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025243if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025244 ac_cv_prog_cxx_g=yes
25245else
cristy8b350f62009-11-15 23:12:43 +000025246 CXXFLAGS=""
25247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025248/* end confdefs.h. */
25249
25250int
25251main ()
25252{
25253
25254 ;
25255 return 0;
25256}
25257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025258if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025259
cristy8b350f62009-11-15 23:12:43 +000025260else
25261 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025262 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025264/* end confdefs.h. */
25265
25266int
25267main ()
25268{
25269
25270 ;
25271 return 0;
25272}
25273_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025274if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025275 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025276fi
cristy3ed852e2009-09-05 21:47:34 +000025277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25278fi
cristy3ed852e2009-09-05 21:47:34 +000025279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25280fi
cristy3ed852e2009-09-05 21:47:34 +000025281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25282 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25283fi
cristy8b350f62009-11-15 23:12:43 +000025284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025285$as_echo "$ac_cv_prog_cxx_g" >&6; }
25286if test "$ac_test_CXXFLAGS" = set; then
25287 CXXFLAGS=$ac_save_CXXFLAGS
25288elif test $ac_cv_prog_cxx_g = yes; then
25289 if test "$GXX" = yes; then
25290 CXXFLAGS="-g -O2"
25291 else
25292 CXXFLAGS="-g"
25293 fi
25294else
25295 if test "$GXX" = yes; then
25296 CXXFLAGS="-O2"
25297 else
25298 CXXFLAGS=
25299 fi
25300fi
25301ac_ext=cpp
25302ac_cpp='$CXXCPP $CPPFLAGS'
25303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25306
cristy73bd4a52010-10-05 11:24:23 +000025307depcc="$CXX" am_compiler_list=
25308
25309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25310$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025311if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025312 $as_echo_n "(cached) " >&6
25313else
25314 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25315 # We make a subdir and do the tests there. Otherwise we can end up
25316 # making bogus files that we don't know about and never remove. For
25317 # instance it was reported that on HP-UX the gcc test will end up
25318 # making a dummy file named `D' -- because `-MD' means `put the output
25319 # in D'.
25320 mkdir conftest.dir
25321 # Copy depcomp to subdir because otherwise we won't find it if we're
25322 # using a relative directory.
25323 cp "$am_depcomp" conftest.dir
25324 cd conftest.dir
25325 # We will build objects and dependencies in a subdirectory because
25326 # it helps to detect inapplicable dependency modes. For instance
25327 # both Tru64's cc and ICC support -MD to output dependencies as a
25328 # side effect of compilation, but ICC will put the dependencies in
25329 # the current directory while Tru64 will put them in the object
25330 # directory.
25331 mkdir sub
25332
25333 am_cv_CXX_dependencies_compiler_type=none
25334 if test "$am_compiler_list" = ""; then
25335 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25336 fi
25337 am__universal=false
25338 case " $depcc " in #(
25339 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25340 esac
25341
25342 for depmode in $am_compiler_list; do
25343 # Setup a source with many dependencies, because some compilers
25344 # like to wrap large dependency lists on column 80 (with \), and
25345 # we should not choose a depcomp mode which is confused by this.
25346 #
25347 # We need to recreate these files for each test, as the compiler may
25348 # overwrite some of them when testing with obscure command lines.
25349 # This happens at least with the AIX C compiler.
25350 : > sub/conftest.c
25351 for i in 1 2 3 4 5 6; do
25352 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25353 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25354 # Solaris 8's {/usr,}/bin/sh.
25355 touch sub/conftst$i.h
25356 done
25357 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25358
25359 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25360 # mode. It turns out that the SunPro C++ compiler does not properly
25361 # handle `-M -o', and we need to detect this. Also, some Intel
25362 # versions had trouble with output in subdirs
25363 am__obj=sub/conftest.${OBJEXT-o}
25364 am__minus_obj="-o $am__obj"
25365 case $depmode in
25366 gcc)
25367 # This depmode causes a compiler race in universal mode.
25368 test "$am__universal" = false || continue
25369 ;;
25370 nosideeffect)
25371 # after this tag, mechanisms are not by side-effect, so they'll
25372 # only be used when explicitly requested
25373 if test "x$enable_dependency_tracking" = xyes; then
25374 continue
25375 else
25376 break
25377 fi
25378 ;;
25379 msvisualcpp | msvcmsys)
25380 # This compiler won't grok `-c -o', but also, the minuso test has
25381 # not run yet. These depmodes are late enough in the game, and
25382 # so weak that their functioning should not be impacted.
25383 am__obj=conftest.${OBJEXT-o}
25384 am__minus_obj=
25385 ;;
25386 none) break ;;
25387 esac
25388 if depmode=$depmode \
25389 source=sub/conftest.c object=$am__obj \
25390 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25391 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25392 >/dev/null 2>conftest.err &&
25393 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25394 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25395 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25396 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25397 # icc doesn't choke on unknown options, it will just issue warnings
25398 # or remarks (even with -Werror). So we grep stderr for any message
25399 # that says an option was ignored or not supported.
25400 # When given -MP, icc 7.0 and 7.1 complain thusly:
25401 # icc: Command line warning: ignoring option '-M'; no argument required
25402 # The diagnosis changed in icc 8.0:
25403 # icc: Command line remark: option '-MP' not supported
25404 if (grep 'ignoring option' conftest.err ||
25405 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25406 am_cv_CXX_dependencies_compiler_type=$depmode
25407 break
25408 fi
25409 fi
25410 done
25411
25412 cd ..
25413 rm -rf conftest.dir
25414else
25415 am_cv_CXX_dependencies_compiler_type=none
25416fi
25417
25418fi
25419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25420$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25421CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25422
25423 if
25424 test "x$enable_dependency_tracking" != xno \
25425 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25426 am__fastdepCXX_TRUE=
25427 am__fastdepCXX_FALSE='#'
25428else
25429 am__fastdepCXX_TRUE='#'
25430 am__fastdepCXX_FALSE=
25431fi
25432
25433
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25435$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025436if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025437 $as_echo_n "(cached) " >&6
25438else
25439
25440 ac_ext=cpp
25441ac_cpp='$CXXCPP $CPPFLAGS'
25442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25445
25446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25447/* end confdefs.h. */
25448
25449int f(int x){return 1;}
25450int f(char x){return 1;}
25451int f(bool x){return 1;}
25452
25453int
25454main ()
25455{
25456bool b = true; return f(b);
25457 ;
25458 return 0;
25459}
25460_ACEOF
25461if ac_fn_cxx_try_compile "$LINENO"; then :
25462 ax_cv_cxx_bool=yes
25463else
25464 ax_cv_cxx_bool=no
25465fi
25466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467 ac_ext=cpp
25468ac_cpp='$CXXCPP $CPPFLAGS'
25469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25472
25473
25474fi
25475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25476$as_echo "$ax_cv_cxx_bool" >&6; }
25477if test "$ax_cv_cxx_bool" = yes; then
25478
25479$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25480
25481fi
25482
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25484$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025485if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025486 $as_echo_n "(cached) " >&6
25487else
25488
25489 ac_ext=cpp
25490ac_cpp='$CXXCPP $CPPFLAGS'
25491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25494
25495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25496/* end confdefs.h. */
25497namespace Outer { namespace Inner { int i = 0; }}
25498int
25499main ()
25500{
25501using namespace Outer::Inner; return i;
25502 ;
25503 return 0;
25504}
25505_ACEOF
25506if ac_fn_cxx_try_compile "$LINENO"; then :
25507 ax_cv_cxx_namespaces=yes
25508else
25509 ax_cv_cxx_namespaces=no
25510fi
25511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25512 ac_ext=cpp
25513ac_cpp='$CXXCPP $CPPFLAGS'
25514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25517
25518
25519fi
25520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25521$as_echo "$ax_cv_cxx_namespaces" >&6; }
25522if test "$ax_cv_cxx_namespaces" = yes; then
25523
25524$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25525
25526fi
25527
25528
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25530$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025531if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025532 $as_echo_n "(cached) " >&6
25533else
25534
25535 ac_ext=cpp
25536ac_cpp='$CXXCPP $CPPFLAGS'
25537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25540
25541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542/* end confdefs.h. */
25543#include <iostream>
25544 std::istream& is = std::cin;
25545int
25546main ()
25547{
25548
25549 ;
25550 return 0;
25551}
25552_ACEOF
25553if ac_fn_cxx_try_compile "$LINENO"; then :
25554 ax_cv_cxx_have_std_namespace=yes
25555else
25556 ax_cv_cxx_have_std_namespace=no
25557fi
25558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25559 ac_ext=cpp
25560ac_cpp='$CXXCPP $CPPFLAGS'
25561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25564
25565
25566fi
25567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25568$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25569 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25570
25571$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25572
25573 fi
25574
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25576$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025577if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025578 $as_echo_n "(cached) " >&6
25579else
25580
25581
25582 ac_ext=cpp
25583ac_cpp='$CXXCPP $CPPFLAGS'
25584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25587
25588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25589/* end confdefs.h. */
25590#include <iostream>
25591#include <map>
25592#include <iomanip>
25593#include <cmath>
25594#ifdef HAVE_NAMESPACES
25595using namespace std;
25596#endif
25597int
25598main ()
25599{
25600return 0;
25601 ;
25602 return 0;
25603}
25604_ACEOF
25605if ac_fn_cxx_try_compile "$LINENO"; then :
25606 ac_cv_cxx_have_std_libs=yes
25607else
25608 ac_cv_cxx_have_std_libs=no
25609fi
25610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25611 ac_ext=cpp
25612ac_cpp='$CXXCPP $CPPFLAGS'
25613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25616
25617
25618fi
25619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25620$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25621if test "$ac_cv_cxx_have_std_libs" = yes; then
25622
25623$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25624
25625fi
25626
cristy3ed852e2009-09-05 21:47:34 +000025627
25628 OPENMP_CXXFLAGS=
25629 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025630if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025631 enableval=$enable_openmp;
25632fi
25633
25634 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25636$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025637if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025638 $as_echo_n "(cached) " >&6
25639else
cristy8b350f62009-11-15 23:12:43 +000025640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25641/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025642
25643#ifndef _OPENMP
25644 choke me
25645#endif
25646#include <omp.h>
25647int main () { return omp_get_num_threads (); }
25648
25649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025650if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025651 ac_cv_prog_cxx_openmp='none needed'
25652else
cristy8b350f62009-11-15 23:12:43 +000025653 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025654 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25655 ac_save_CXXFLAGS=$CXXFLAGS
25656 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25658/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025659
25660#ifndef _OPENMP
25661 choke me
25662#endif
25663#include <omp.h>
25664int main () { return omp_get_num_threads (); }
25665
25666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025667if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025668 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025669fi
cristy8b350f62009-11-15 23:12:43 +000025670rm -f core conftest.err conftest.$ac_objext \
25671 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025672 CXXFLAGS=$ac_save_CXXFLAGS
25673 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25674 break
25675 fi
25676 done
25677fi
cristy8b350f62009-11-15 23:12:43 +000025678rm -f core conftest.err conftest.$ac_objext \
25679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025680fi
cristy8b350f62009-11-15 23:12:43 +000025681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025682$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25683 case $ac_cv_prog_cxx_openmp in #(
25684 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025685 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025686 *)
cristy8b350f62009-11-15 23:12:43 +000025687 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025688 esac
25689 fi
25690
25691
25692 ac_ext=c
25693ac_cpp='$CPP $CPPFLAGS'
25694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25696ac_compiler_gnu=$ac_cv_c_compiler_gnu
25697
25698
cristy8b350f62009-11-15 23:12:43 +000025699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025700$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25701 if \
cristy964cb7f2010-04-25 23:18:00 +000025702 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025703 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025704 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025705 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025706 have_magick_plus_plus='yes'
25707 else
25708 have_magick_plus_plus='no (failed tests)'
25709 fi
cristy8b350f62009-11-15 23:12:43 +000025710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000025711$as_echo "$have_magick_plus_plus" >&6; }
25712 LIBS="$OLIBS"
25713fi
cristy73bd4a52010-10-05 11:24:23 +000025714 if test "$have_magick_plus_plus" = 'yes'; then
25715 WITH_MAGICK_PLUS_PLUS_TRUE=
25716 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25717else
25718 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25719 WITH_MAGICK_PLUS_PLUS_FALSE=
25720fi
25721
cristy3ed852e2009-09-05 21:47:34 +000025722
25723# Only check for delegate libraries in subdirectories if requested.
25724if test "$enable_delegate_build" != 'no'; then
25725 # Check for delegate sub-directories and add -I & -L options as required.
25726 # This presumes that delegates are installed as detailed in the ImageMagick
25727 # README. If delegates are installed in a standard location where the
25728 # compiler will automatically find them then these options should not be
25729 # required.
25730
25731 #
25732 # Most delegates have includes in the same directory as the library, but not all...
25733 #
25734 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025735 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025736 if test -d "$builddir/$dir"; then
25737 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25738 else
25739 if test -d "$srcdirfull/$dir"; then
25740 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25741 fi
25742 fi
25743 done
25744
25745 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025746 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025747 if test -d "$builddir/$dir/.libs"; then
25748 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25749 else
25750 if test -d "$srcdirfull/$dir/.libs"; then
25751 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25752 fi
25753 fi
25754 if test -d "$builddir/$dir"; then
25755 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25756 else
25757 if test -d "$srcdirfull/$dir"; then
25758 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25759 fi
25760 fi
25761 done
25762fi
25763
25764# Assume that delegate headers reside under same directory as ImageMagick
25765# installation prefix.
25766MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25767
25768#
25769# Find the X11 RGB database
25770#
cristy8b350f62009-11-15 23:12:43 +000025771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025772$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025773if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025774 $as_echo_n "(cached) " >&6
25775else
25776 # Look for the header file in a standard set of common directories.
25777# Check X11 before X11Rn because it is often a symlink to the current release.
25778 for ac_dir in \
25779 /lib/usr/lib/X11 \
25780 /usr/X11/lib \
25781 /usr/X11R4/lib \
25782 /usr/X11R5/lib \
25783 /usr/X11R6/lib \
25784 /usr/X11R7/lib \
25785 /usr/X386/lib \
25786 /usr/XFree86/lib/X11 \
25787 /usr/athena/lib \
25788 /usr/lib \
25789 /usr/lib/X11 \
25790 /usr/lib/X11R4 \
25791 /usr/lib/X11R5 \
25792 /usr/lib/X11R6 \
25793 /usr/lib/X11R7 \
25794 /usr/local/X11/lib \
25795 /usr/local/X11R4/lib \
25796 /usr/local/X11R5/lib \
25797 /usr/local/X11R6/lib \
25798 /usr/local/lib \
25799 /usr/local/lib/X11 \
25800 /usr/local/lib/X11R4 \
25801 /usr/local/lib/X11R5 \
25802 /usr/local/lib/X11R6 \
25803 /usr/local/lib/X11R7 \
25804 /usr/local/x11r5/lib \
25805 /usr/lpp/Xamples/lib \
25806 /usr/openwin/lib \
25807 /usr/openwin/share/lib \
25808 /usr/unsupported/lib \
25809 /usr/x386/lib \
25810 ; do
25811 if test -f "$ac_dir/X11/rgb.txt"; then
25812 im_cv_x_configure="$ac_dir/X11/"
25813 break
25814 elif test -f "$ac_dir/rgb.txt"; then
25815 im_cv_x_configure="$ac_dir/"
25816 break
25817 fi
25818
25819 done
25820fi
cristy8b350f62009-11-15 23:12:43 +000025821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025822$as_echo "$im_cv_x_configure" >&6; }
25823X11_CONFIGURE_PATH="$im_cv_x_configure"
25824case "${build_os}" in
25825 mingw* )
25826 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25827 ;;
25828esac
25829
25830cat >>confdefs.h <<_ACEOF
25831#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25832_ACEOF
25833
25834
25835#
25836# Find OpenMP library
25837#
25838GOMP_LIBS=''
25839if test "$enable_openmp" != 'no'; then
25840 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025842$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025843if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025844 $as_echo_n "(cached) " >&6
25845else
25846 ac_check_lib_save_LIBS=$LIBS
25847LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025849/* end confdefs.h. */
25850
25851/* Override any GCC internal prototype to avoid an error.
25852 Use char because int might match the return type of a GCC
25853 builtin and then its argument prototype would still apply. */
25854#ifdef __cplusplus
25855extern "C"
25856#endif
25857char GOMP_parallel_start ();
25858int
25859main ()
25860{
25861return GOMP_parallel_start ();
25862 ;
25863 return 0;
25864}
25865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025867 ac_cv_lib_gomp_GOMP_parallel_start=yes
25868else
cristy8b350f62009-11-15 23:12:43 +000025869 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025870fi
cristy8b350f62009-11-15 23:12:43 +000025871rm -f core conftest.err conftest.$ac_objext \
25872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025873LIBS=$ac_check_lib_save_LIBS
25874fi
cristy8b350f62009-11-15 23:12:43 +000025875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025876$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025877if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025878 GOMP_LIBS="-lgomp"
25879fi
25880 # gcc
25881 else
cristy8b350f62009-11-15 23:12:43 +000025882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025883$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025884if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025885 $as_echo_n "(cached) " >&6
25886else
25887 ac_check_lib_save_LIBS=$LIBS
25888LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025890/* end confdefs.h. */
25891
25892/* Override any GCC internal prototype to avoid an error.
25893 Use char because int might match the return type of a GCC
25894 builtin and then its argument prototype would still apply. */
25895#ifdef __cplusplus
25896extern "C"
25897#endif
25898char sunw_mp_register_warn ();
25899int
25900main ()
25901{
25902return sunw_mp_register_warn ();
25903 ;
25904 return 0;
25905}
25906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025908 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25909else
cristy8b350f62009-11-15 23:12:43 +000025910 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025911fi
cristy8b350f62009-11-15 23:12:43 +000025912rm -f core conftest.err conftest.$ac_objext \
25913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025914LIBS=$ac_check_lib_save_LIBS
25915fi
cristy8b350f62009-11-15 23:12:43 +000025916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025917$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025918if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025919 GOMP_LIBS="-lmtsk"
25920fi
25921 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025923$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025924if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025925 $as_echo_n "(cached) " >&6
25926else
25927 ac_check_lib_save_LIBS=$LIBS
25928LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025930/* end confdefs.h. */
25931
25932/* Override any GCC internal prototype to avoid an error.
25933 Use char because int might match the return type of a GCC
25934 builtin and then its argument prototype would still apply. */
25935#ifdef __cplusplus
25936extern "C"
25937#endif
25938char _xlsmpFlush ();
25939int
25940main ()
25941{
25942return _xlsmpFlush ();
25943 ;
25944 return 0;
25945}
25946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025947if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025948 ac_cv_lib_xlsmp__xlsmpFlush=yes
25949else
cristy8b350f62009-11-15 23:12:43 +000025950 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025951fi
cristy8b350f62009-11-15 23:12:43 +000025952rm -f core conftest.err conftest.$ac_objext \
25953 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025954LIBS=$ac_check_lib_save_LIBS
25955fi
cristy8b350f62009-11-15 23:12:43 +000025956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025957$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025958if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025959 GOMP_LIBS="-lxlsmp"
25960fi
25961 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025963$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025964if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025965 $as_echo_n "(cached) " >&6
25966else
25967 ac_check_lib_save_LIBS=$LIBS
25968LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025970/* end confdefs.h. */
25971
25972/* Override any GCC internal prototype to avoid an error.
25973 Use char because int might match the return type of a GCC
25974 builtin and then its argument prototype would still apply. */
25975#ifdef __cplusplus
25976extern "C"
25977#endif
25978char mp_destroy ();
25979int
25980main ()
25981{
25982return mp_destroy ();
25983 ;
25984 return 0;
25985}
25986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025988 ac_cv_lib_mp_mp_destroy=yes
25989else
cristy8b350f62009-11-15 23:12:43 +000025990 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025991fi
cristy8b350f62009-11-15 23:12:43 +000025992rm -f core conftest.err conftest.$ac_objext \
25993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025994LIBS=$ac_check_lib_save_LIBS
25995fi
cristy8b350f62009-11-15 23:12:43 +000025996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025998if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 GOMP_LIBS="-lmp"
26000fi
26001 # SGI IRIX 6.5 MIPSpro C/C++
26002 fi
26003 LIBS="$GOMP_LIBS $LIBS"
26004fi
26005
26006
26007#
26008# Find Posix threads library
26009#
26010THREAD_LIBS=''
26011if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26012
26013 if test "x$PTHREAD_LIBS" = "x"; then
26014 case "${host_cpu}-${host_os}" in
26015 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026016
26017
26018
26019ac_ext=c
26020ac_cpp='$CPP $CPPFLAGS'
26021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26023ac_compiler_gnu=$ac_cv_c_compiler_gnu
26024
26025magick_pthread_lib_ok=no
26026
26027LIB=-lc_r
26028save_LIBS="$LIBS"
26029LIBS="$LIBS $LIB"
26030
26031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26032$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26034/* end confdefs.h. */
26035#include <pthread.h>
26036int
26037main ()
26038{
26039 pthread_t th;
26040 pthread_join(th, 0);
26041 pthread_attr_init(0);
26042 pthread_cleanup_push(0, 0);
26043 pthread_create(0,0,0,0);
26044 pthread_cleanup_pop(0);
26045 ;
26046 return 0;
26047}
26048_ACEOF
26049if ac_fn_c_try_link "$LINENO"; then :
26050 magick_pthread_lib_ok=yes
26051fi
26052rm -f core conftest.err conftest.$ac_objext \
26053 conftest$ac_exeext conftest.$ac_ext
26054
26055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26056$as_echo "${magick_pthread_lib_ok}" >&6; }
26057if test "$magick_pthread_lib_ok" = yes
26058then
26059 PTHREAD_LIBS=-lc_r
26060 :
26061else
26062
26063 :
26064fi
26065
26066LIBS="$save_LIBS"
26067
26068ac_ext=c
26069ac_cpp='$CPP $CPPFLAGS'
26070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26072ac_compiler_gnu=$ac_cv_c_compiler_gnu
26073
26074 ;;
cristy3ed852e2009-09-05 21:47:34 +000026075 esac
26076 fi
26077
26078 for lib in pthread pthreads; do
26079 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026080
26081
26082
26083ac_ext=c
26084ac_cpp='$CPP $CPPFLAGS'
26085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26087ac_compiler_gnu=$ac_cv_c_compiler_gnu
26088
26089magick_pthread_lib_ok=no
26090
26091LIB=-l$lib
26092save_LIBS="$LIBS"
26093LIBS="$LIBS $LIB"
26094
26095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26096$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098/* end confdefs.h. */
26099#include <pthread.h>
26100int
26101main ()
26102{
26103 pthread_t th;
26104 pthread_join(th, 0);
26105 pthread_attr_init(0);
26106 pthread_cleanup_push(0, 0);
26107 pthread_create(0,0,0,0);
26108 pthread_cleanup_pop(0);
26109 ;
26110 return 0;
26111}
26112_ACEOF
26113if ac_fn_c_try_link "$LINENO"; then :
26114 magick_pthread_lib_ok=yes
26115fi
26116rm -f core conftest.err conftest.$ac_objext \
26117 conftest$ac_exeext conftest.$ac_ext
26118
26119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26120$as_echo "${magick_pthread_lib_ok}" >&6; }
26121if test "$magick_pthread_lib_ok" = yes
26122then
26123 PTHREAD_LIBS=-l$lib
26124 :
26125else
26126
26127 :
26128fi
26129
26130LIBS="$save_LIBS"
26131
26132ac_ext=c
26133ac_cpp='$CPP $CPPFLAGS'
26134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26136ac_compiler_gnu=$ac_cv_c_compiler_gnu
26137
26138
cristy3ed852e2009-09-05 21:47:34 +000026139 fi
26140 done
26141
26142 THREAD_LIBS="$PTHREAD_LIBS"
26143 LIBS="$LIBS $THREAD_LIBS"
26144fi
26145
26146
26147#
26148# Check for umem.
26149#
26150have_umem='no'
26151UMEM_LIBS=''
26152if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026154$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026156$as_echo "" >&6; }
26157 failed=0
26158 passed=0
cristy8b350f62009-11-15 23:12:43 +000026159 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026160if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026161 passed=`expr $passed + 1`
26162else
26163 failed=`expr $failed + 1`
26164fi
26165
26166
cristy8b350f62009-11-15 23:12:43 +000026167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026168$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026169if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026170 $as_echo_n "(cached) " >&6
26171else
26172 ac_check_lib_save_LIBS=$LIBS
26173LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026175/* end confdefs.h. */
26176
26177/* Override any GCC internal prototype to avoid an error.
26178 Use char because int might match the return type of a GCC
26179 builtin and then its argument prototype would still apply. */
26180#ifdef __cplusplus
26181extern "C"
26182#endif
26183char umem_alloc ();
26184int
26185main ()
26186{
26187return umem_alloc ();
26188 ;
26189 return 0;
26190}
26191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026193 ac_cv_lib_umem_umem_alloc=yes
26194else
cristy8b350f62009-11-15 23:12:43 +000026195 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026196fi
cristy8b350f62009-11-15 23:12:43 +000026197rm -f core conftest.err conftest.$ac_objext \
26198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026199LIBS=$ac_check_lib_save_LIBS
26200fi
cristy8b350f62009-11-15 23:12:43 +000026201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026202$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026203if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026204 passed=`expr $passed + 1`
26205else
26206 failed=`expr $failed + 1`
26207fi
26208
cristy8b350f62009-11-15 23:12:43 +000026209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026210$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026211if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026212 $as_echo_n "(cached) " >&6
26213else
26214 ac_check_lib_save_LIBS=$LIBS
26215LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026217/* end confdefs.h. */
26218
26219/* Override any GCC internal prototype to avoid an error.
26220 Use char because int might match the return type of a GCC
26221 builtin and then its argument prototype would still apply. */
26222#ifdef __cplusplus
26223extern "C"
26224#endif
26225char umem_free ();
26226int
26227main ()
26228{
26229return umem_free ();
26230 ;
26231 return 0;
26232}
26233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026235 ac_cv_lib_umem_umem_free=yes
26236else
cristy8b350f62009-11-15 23:12:43 +000026237 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026238fi
cristy8b350f62009-11-15 23:12:43 +000026239rm -f core conftest.err conftest.$ac_objext \
26240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026241LIBS=$ac_check_lib_save_LIBS
26242fi
cristy8b350f62009-11-15 23:12:43 +000026243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026244$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026245if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026246 passed=`expr $passed + 1`
26247else
26248 failed=`expr $failed + 1`
26249fi
26250
cristy8b350f62009-11-15 23:12:43 +000026251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026252$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26253 if test $passed -gt 0; then
26254 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026256$as_echo "no -- some components failed test" >&6; }
26257 have_umem='no (failed tests)'
26258 else
26259 UMEM_LIBS='-lumem'
26260 LIBS="$UMEM_LIBS $LIBS"
26261
cristy8b350f62009-11-15 23:12:43 +000026262$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026263
cristy8b350f62009-11-15 23:12:43 +000026264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026265$as_echo "yes" >&6; }
26266 have_umem='yes'
26267 fi
26268 else
cristy8b350f62009-11-15 23:12:43 +000026269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026270$as_echo "no" >&6; }
26271 fi
26272fi
cristy73bd4a52010-10-05 11:24:23 +000026273 if test "$have_umem" = 'yes'; then
26274 HasUMEM_TRUE=
26275 HasUMEM_FALSE='#'
26276else
26277 HasUMEM_TRUE='#'
26278 HasUMEM_FALSE=
26279fi
26280
cristy3ed852e2009-09-05 21:47:34 +000026281
26282
26283#
26284# Add support for ccmalloc memory debugging library if requested
26285#
26286have_ccmalloc='no'
26287CCMALLOC_LIBS=''
26288if test "$enable_ccmalloc" = 'yes'; then
26289 # Extract the first word of "ccmalloc", so it can be a program name with args.
26290set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026293if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026294 $as_echo_n "(cached) " >&6
26295else
26296 case $CCMALLOCDelegate in
26297 [\\/]* | ?:[\\/]*)
26298 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26299 ;;
26300 *)
26301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26302for as_dir in $PATH
26303do
26304 IFS=$as_save_IFS
26305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26308 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026310 break 2
26311 fi
26312done
cristy8b350f62009-11-15 23:12:43 +000026313 done
cristy3ed852e2009-09-05 21:47:34 +000026314IFS=$as_save_IFS
26315
26316 ;;
26317esac
26318fi
26319CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26320if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026322$as_echo "$CCMALLOCDelegate" >&6; }
26323else
cristy8b350f62009-11-15 23:12:43 +000026324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026325$as_echo "no" >&6; }
26326fi
26327
26328
26329 if test -n "$CCMALLOCDelegate"; then
26330 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26331 OLIBS="$LIBS"
26332 # Assume that gcc is used with ccmalloc.
26333 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026335$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026336if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026337 $as_echo_n "(cached) " >&6
26338else
26339 ac_check_lib_save_LIBS=$LIBS
26340LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026342/* end confdefs.h. */
26343
26344/* Override any GCC internal prototype to avoid an error.
26345 Use char because int might match the return type of a GCC
26346 builtin and then its argument prototype would still apply. */
26347#ifdef __cplusplus
26348extern "C"
26349#endif
26350char ccmalloc_malloc ();
26351int
26352main ()
26353{
26354return ccmalloc_malloc ();
26355 ;
26356 return 0;
26357}
26358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026359if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026360 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26361else
cristy8b350f62009-11-15 23:12:43 +000026362 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026363fi
cristy8b350f62009-11-15 23:12:43 +000026364rm -f core conftest.err conftest.$ac_objext \
26365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026366LIBS=$ac_check_lib_save_LIBS
26367fi
cristy8b350f62009-11-15 23:12:43 +000026368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026369$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026370if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026371 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26372fi
26373
26374 if test -n "$CCMALLOC_LIBS"; then
26375 LIBS="$OLIBS"
26376 LIBS="$LIBS $CCMALLOC_LIBS"
26377 have_ccmalloc='yes'
26378 else
26379 LIBS="$OLIBS"
26380 fi
26381 fi
26382fi
26383
26384#
26385# Add support for efence memory debugging library if requested
26386#
26387if test "$enable_efence" = 'yes'; then
26388 EFENCE_LIBS='-lefence'
26389 LIBS="$EFENCE_LIBS $LIBS"
26390fi
26391
cristy3ed852e2009-09-05 21:47:34 +000026392
26393#
26394# Check for BZLIB
26395#
26396
26397
26398# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026399if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026400 withval=$with_bzlib; with_bzlib=$withval
26401else
26402 with_bzlib='yes'
26403fi
26404
26405
26406if test "$with_bzlib" != 'yes'; then
26407 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26408fi
26409
26410have_bzlib='no'
26411if test "$with_bzlib" != 'no'; then
26412 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026414$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026416$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026418$as_echo "" >&6; }
26419 failed=0
26420 passed=0
26421 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026422 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026423if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026424 passed=`expr $passed + 1`
26425else
26426 failed=`expr $failed + 1`
26427fi
26428
26429
cristy8b350f62009-11-15 23:12:43 +000026430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026431$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026432if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026433 $as_echo_n "(cached) " >&6
26434else
26435 ac_check_lib_save_LIBS=$LIBS
26436LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026438/* end confdefs.h. */
26439
26440/* Override any GCC internal prototype to avoid an error.
26441 Use char because int might match the return type of a GCC
26442 builtin and then its argument prototype would still apply. */
26443#ifdef __cplusplus
26444extern "C"
26445#endif
26446char BZ2_bzDecompress ();
26447int
26448main ()
26449{
26450return BZ2_bzDecompress ();
26451 ;
26452 return 0;
26453}
26454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026455if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026456 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26457else
cristy8b350f62009-11-15 23:12:43 +000026458 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026459fi
cristy8b350f62009-11-15 23:12:43 +000026460rm -f core conftest.err conftest.$ac_objext \
26461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026462LIBS=$ac_check_lib_save_LIBS
26463fi
cristy8b350f62009-11-15 23:12:43 +000026464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026465$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026466if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026467 found_libbz=`expr $found_libbz + 1`
26468fi
26469
26470 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026472$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026473if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026474 $as_echo_n "(cached) " >&6
26475else
26476 ac_check_lib_save_LIBS=$LIBS
26477LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026479/* end confdefs.h. */
26480
26481/* Override any GCC internal prototype to avoid an error.
26482 Use char because int might match the return type of a GCC
26483 builtin and then its argument prototype would still apply. */
26484#ifdef __cplusplus
26485extern "C"
26486#endif
26487char _imp__BZ2_decompress ();
26488int
26489main ()
26490{
26491return _imp__BZ2_decompress ();
26492 ;
26493 return 0;
26494}
26495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026496if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026497 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26498else
cristy8b350f62009-11-15 23:12:43 +000026499 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026500fi
cristy8b350f62009-11-15 23:12:43 +000026501rm -f core conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026503LIBS=$ac_check_lib_save_LIBS
26504fi
cristy8b350f62009-11-15 23:12:43 +000026505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026506$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026507if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026508 found_libbz=`expr $found_libbz + 1`
26509fi
26510
26511 fi
26512 if test $found_libbz -gt 0; then
26513 passed=`expr $passed + 1`
26514 else
26515 failed=`expr $failed + 1`
26516 fi
cristy8b350f62009-11-15 23:12:43 +000026517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026518$as_echo_n "checking if BZLIB package is complete... " >&6; }
26519 if test $passed -gt 0; then
26520 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026522$as_echo "no -- some components failed test" >&6; }
26523 have_bzlib='no (failed tests)'
26524 else
26525 BZLIB_LIBS='-lbz2'
26526 LIBS="$BZLIB_LIBS $LIBS"
26527
cristy8b350f62009-11-15 23:12:43 +000026528$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026529
cristy8b350f62009-11-15 23:12:43 +000026530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026531$as_echo "yes" >&6; }
26532 have_bzlib='yes'
26533 fi
26534 else
cristy8b350f62009-11-15 23:12:43 +000026535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026536$as_echo "no" >&6; }
26537 fi
26538fi
cristy73bd4a52010-10-05 11:24:23 +000026539 if test "$have_bzlib" = 'yes'; then
26540 BZLIB_DELEGATE_TRUE=
26541 BZLIB_DELEGATE_FALSE='#'
26542else
26543 BZLIB_DELEGATE_TRUE='#'
26544 BZLIB_DELEGATE_FALSE=
26545fi
26546
cristy3ed852e2009-09-05 21:47:34 +000026547
26548
26549#
26550# Find the X11 include and library directories.
26551#
26552IPC_LIBS=''
26553X11_LIBS=''
26554XEXT_LIBS=''
26555XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026557$as_echo_n "checking for X... " >&6; }
26558
26559
26560# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026561if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026562 withval=$with_x;
26563fi
26564
26565# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26566if test "x$with_x" = xno; then
26567 # The user explicitly disabled X.
26568 have_x=disabled
26569else
26570 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026571 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026572 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026573 $as_echo_n "(cached) " >&6
26574else
26575 # One or both of the vars are not set, and there is no cached value.
26576ac_x_includes=no ac_x_libraries=no
26577rm -f -r conftest.dir
26578if mkdir conftest.dir; then
26579 cd conftest.dir
26580 cat >Imakefile <<'_ACEOF'
26581incroot:
26582 @echo incroot='${INCROOT}'
26583usrlibdir:
26584 @echo usrlibdir='${USRLIBDIR}'
26585libdir:
26586 @echo libdir='${LIBDIR}'
26587_ACEOF
26588 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026589 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026590 for ac_var in incroot usrlibdir libdir; do
26591 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26592 done
26593 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26594 for ac_extension in a so sl dylib la dll; do
26595 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26596 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26597 ac_im_usrlibdir=$ac_im_libdir; break
26598 fi
26599 done
26600 # Screen out bogus values from the imake configuration. They are
26601 # bogus both because they are the default anyway, and because
26602 # using them would break gcc on systems where it needs fixed includes.
26603 case $ac_im_incroot in
26604 /usr/include) ac_x_includes= ;;
26605 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26606 esac
26607 case $ac_im_usrlibdir in
26608 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26609 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26610 esac
26611 fi
26612 cd ..
26613 rm -f -r conftest.dir
26614fi
26615
26616# Standard set of common directories for X headers.
26617# Check X11 before X11Rn because it is often a symlink to the current release.
26618ac_x_header_dirs='
26619/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026620/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026621/usr/X11R6/include
26622/usr/X11R5/include
26623/usr/X11R4/include
26624
26625/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026626/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026627/usr/include/X11R6
26628/usr/include/X11R5
26629/usr/include/X11R4
26630
26631/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026632/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026633/usr/local/X11R6/include
26634/usr/local/X11R5/include
26635/usr/local/X11R4/include
26636
26637/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026638/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026639/usr/local/include/X11R6
26640/usr/local/include/X11R5
26641/usr/local/include/X11R4
26642
26643/usr/X386/include
26644/usr/x386/include
26645/usr/XFree86/include/X11
26646
26647/usr/include
26648/usr/local/include
26649/usr/unsupported/include
26650/usr/athena/include
26651/usr/local/x11r5/include
26652/usr/lpp/Xamples/include
26653
26654/usr/openwin/include
26655/usr/openwin/share/include'
26656
26657if test "$ac_x_includes" = no; then
26658 # Guess where to find include files, by looking for Xlib.h.
26659 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026661/* end confdefs.h. */
26662#include <X11/Xlib.h>
26663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026664if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026665 # We can compile using X headers with no special include directory.
26666ac_x_includes=
26667else
cristyc7083c12009-10-14 03:16:55 +000026668 for ac_dir in $ac_x_header_dirs; do
26669 if test -r "$ac_dir/X11/Xlib.h"; then
26670 ac_x_includes=$ac_dir
26671 break
26672 fi
26673done
26674fi
cristyda16f162011-02-19 23:52:17 +000026675rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026676fi # $ac_x_includes = no
26677
26678if test "$ac_x_libraries" = no; then
26679 # Check for the libraries.
26680 # See if we find them without any special options.
26681 # Don't add to $LIBS permanently.
26682 ac_save_LIBS=$LIBS
26683 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026685/* end confdefs.h. */
26686#include <X11/Xlib.h>
26687int
26688main ()
26689{
26690XrmInitialize ()
26691 ;
26692 return 0;
26693}
26694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026695if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026696 LIBS=$ac_save_LIBS
26697# We can link X programs with no special library path.
26698ac_x_libraries=
26699else
cristy8b350f62009-11-15 23:12:43 +000026700 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026701for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26702do
26703 # Don't even attempt the hair of trying to link an X program!
26704 for ac_extension in a so sl dylib la dll; do
26705 if test -r "$ac_dir/libX11.$ac_extension"; then
26706 ac_x_libraries=$ac_dir
26707 break 2
26708 fi
26709 done
26710done
26711fi
cristy8b350f62009-11-15 23:12:43 +000026712rm -f core conftest.err conftest.$ac_objext \
26713 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026714fi # $ac_x_libraries = no
26715
26716case $ac_x_includes,$ac_x_libraries in #(
26717 no,* | *,no | *\'*)
26718 # Didn't find X, or a directory has "'" in its name.
26719 ac_cv_have_x="have_x=no";; #(
26720 *)
26721 # Record where we found X for the cache.
26722 ac_cv_have_x="have_x=yes\
26723 ac_x_includes='$ac_x_includes'\
26724 ac_x_libraries='$ac_x_libraries'"
26725esac
26726fi
26727;; #(
26728 *) have_x=yes;;
26729 esac
26730 eval "$ac_cv_have_x"
26731fi # $with_x != no
26732
26733if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026735$as_echo "$have_x" >&6; }
26736 no_x=yes
26737else
26738 # If each of the values was on the command line, it overrides each guess.
26739 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26740 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26741 # Update the cache value to reflect the command line values.
26742 ac_cv_have_x="have_x=yes\
26743 ac_x_includes='$x_includes'\
26744 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026746$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26747fi
26748
cristy3ed852e2009-09-05 21:47:34 +000026749if test "$no_x" = yes; then
26750 # Not all programs may use this symbol, but it does not hurt to define it.
26751
cristy8b350f62009-11-15 23:12:43 +000026752$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026753
26754 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26755else
26756 if test -n "$x_includes"; then
26757 X_CFLAGS="$X_CFLAGS -I$x_includes"
26758 fi
26759
26760 # It would also be nice to do this for all -L options, not just this one.
26761 if test -n "$x_libraries"; then
26762 X_LIBS="$X_LIBS -L$x_libraries"
26763 # For Solaris; some versions of Sun CC require a space after -R and
26764 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026766$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26767 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26768 ac_xsave_c_werror_flag=$ac_c_werror_flag
26769 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026771/* end confdefs.h. */
26772
26773int
26774main ()
26775{
26776
26777 ;
26778 return 0;
26779}
26780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026781if ac_fn_c_try_link "$LINENO"; then :
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026783$as_echo "no" >&6; }
26784 X_LIBS="$X_LIBS -R$x_libraries"
26785else
cristy8b350f62009-11-15 23:12:43 +000026786 LIBS="$ac_xsave_LIBS -R $x_libraries"
26787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026788/* end confdefs.h. */
26789
26790int
26791main ()
26792{
26793
26794 ;
26795 return 0;
26796}
26797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026798if ac_fn_c_try_link "$LINENO"; then :
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026800$as_echo "yes" >&6; }
26801 X_LIBS="$X_LIBS -R $x_libraries"
26802else
cristy8b350f62009-11-15 23:12:43 +000026803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo "neither works" >&6; }
26805fi
cristy8b350f62009-11-15 23:12:43 +000026806rm -f core conftest.err conftest.$ac_objext \
26807 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026808fi
cristy8b350f62009-11-15 23:12:43 +000026809rm -f core conftest.err conftest.$ac_objext \
26810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026811 ac_c_werror_flag=$ac_xsave_c_werror_flag
26812 LIBS=$ac_xsave_LIBS
26813 fi
26814
26815 # Check for system-dependent libraries X programs must link with.
26816 # Do this before checking for the system-independent R6 libraries
26817 # (-lICE), since we may need -lsocket or whatever for X linking.
26818
26819 if test "$ISC" = yes; then
26820 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26821 else
26822 # Martyn Johnson says this is needed for Ultrix, if the X
26823 # libraries were built with DECnet support. And Karl Berry says
26824 # the Alpha needs dnet_stub (dnet does not exist).
26825 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026827/* end confdefs.h. */
26828
26829/* Override any GCC internal prototype to avoid an error.
26830 Use char because int might match the return type of a GCC
26831 builtin and then its argument prototype would still apply. */
26832#ifdef __cplusplus
26833extern "C"
26834#endif
26835char XOpenDisplay ();
26836int
26837main ()
26838{
26839return XOpenDisplay ();
26840 ;
26841 return 0;
26842}
26843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026844if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026845
cristy8b350f62009-11-15 23:12:43 +000026846else
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026848$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026849if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026850 $as_echo_n "(cached) " >&6
26851else
26852 ac_check_lib_save_LIBS=$LIBS
26853LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026855/* end confdefs.h. */
26856
26857/* Override any GCC internal prototype to avoid an error.
26858 Use char because int might match the return type of a GCC
26859 builtin and then its argument prototype would still apply. */
26860#ifdef __cplusplus
26861extern "C"
26862#endif
26863char dnet_ntoa ();
26864int
26865main ()
26866{
26867return dnet_ntoa ();
26868 ;
26869 return 0;
26870}
26871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026873 ac_cv_lib_dnet_dnet_ntoa=yes
26874else
cristy8b350f62009-11-15 23:12:43 +000026875 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026876fi
cristy8b350f62009-11-15 23:12:43 +000026877rm -f core conftest.err conftest.$ac_objext \
26878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026879LIBS=$ac_check_lib_save_LIBS
26880fi
cristy8b350f62009-11-15 23:12:43 +000026881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026882$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026883if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026884 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26885fi
26886
26887 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026890if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026891 $as_echo_n "(cached) " >&6
26892else
26893 ac_check_lib_save_LIBS=$LIBS
26894LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026896/* end confdefs.h. */
26897
26898/* Override any GCC internal prototype to avoid an error.
26899 Use char because int might match the return type of a GCC
26900 builtin and then its argument prototype would still apply. */
26901#ifdef __cplusplus
26902extern "C"
26903#endif
26904char dnet_ntoa ();
26905int
26906main ()
26907{
26908return dnet_ntoa ();
26909 ;
26910 return 0;
26911}
26912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026913if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026914 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26915else
cristy8b350f62009-11-15 23:12:43 +000026916 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026917fi
cristy8b350f62009-11-15 23:12:43 +000026918rm -f core conftest.err conftest.$ac_objext \
26919 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026920LIBS=$ac_check_lib_save_LIBS
26921fi
cristy8b350f62009-11-15 23:12:43 +000026922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026924if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026925 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26926fi
26927
26928 fi
26929fi
cristy8b350f62009-11-15 23:12:43 +000026930rm -f core conftest.err conftest.$ac_objext \
26931 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026932 LIBS="$ac_xsave_LIBS"
26933
26934 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26935 # to get the SysV transport functions.
26936 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26937 # needs -lnsl.
26938 # The nsl library prevents programs from opening the X display
26939 # on Irix 5.2, according to T.E. Dickey.
26940 # The functions gethostbyname, getservbyname, and inet_addr are
26941 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026942 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026943if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026944
cristy3ed852e2009-09-05 21:47:34 +000026945fi
26946
cristy3ed852e2009-09-05 21:47:34 +000026947 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026949$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026950if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026951 $as_echo_n "(cached) " >&6
26952else
26953 ac_check_lib_save_LIBS=$LIBS
26954LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026956/* end confdefs.h. */
26957
26958/* Override any GCC internal prototype to avoid an error.
26959 Use char because int might match the return type of a GCC
26960 builtin and then its argument prototype would still apply. */
26961#ifdef __cplusplus
26962extern "C"
26963#endif
26964char gethostbyname ();
26965int
26966main ()
26967{
26968return gethostbyname ();
26969 ;
26970 return 0;
26971}
26972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026973if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026974 ac_cv_lib_nsl_gethostbyname=yes
26975else
cristy8b350f62009-11-15 23:12:43 +000026976 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026977fi
cristy8b350f62009-11-15 23:12:43 +000026978rm -f core conftest.err conftest.$ac_objext \
26979 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026980LIBS=$ac_check_lib_save_LIBS
26981fi
cristy8b350f62009-11-15 23:12:43 +000026982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026983$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026984if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026985 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26986fi
26987
26988 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026990$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026991if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026992 $as_echo_n "(cached) " >&6
26993else
26994 ac_check_lib_save_LIBS=$LIBS
26995LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026997/* end confdefs.h. */
26998
26999/* Override any GCC internal prototype to avoid an error.
27000 Use char because int might match the return type of a GCC
27001 builtin and then its argument prototype would still apply. */
27002#ifdef __cplusplus
27003extern "C"
27004#endif
27005char gethostbyname ();
27006int
27007main ()
27008{
27009return gethostbyname ();
27010 ;
27011 return 0;
27012}
27013_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027014if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027015 ac_cv_lib_bsd_gethostbyname=yes
27016else
cristy8b350f62009-11-15 23:12:43 +000027017 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027018fi
cristy8b350f62009-11-15 23:12:43 +000027019rm -f core conftest.err conftest.$ac_objext \
27020 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027021LIBS=$ac_check_lib_save_LIBS
27022fi
cristy8b350f62009-11-15 23:12:43 +000027023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027024$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027025if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027026 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27027fi
27028
27029 fi
27030 fi
27031
27032 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27033 # socket/setsockopt and other routines are undefined under SCO ODT
27034 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27035 # on later versions), says Simon Leinen: it contains gethostby*
27036 # variants that don't use the name server (or something). -lsocket
27037 # must be given before -lnsl if both are needed. We assume that
27038 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027039 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027040if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027041
cristy3ed852e2009-09-05 21:47:34 +000027042fi
27043
cristy3ed852e2009-09-05 21:47:34 +000027044 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027046$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027047if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027048 $as_echo_n "(cached) " >&6
27049else
27050 ac_check_lib_save_LIBS=$LIBS
27051LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027053/* end confdefs.h. */
27054
27055/* Override any GCC internal prototype to avoid an error.
27056 Use char because int might match the return type of a GCC
27057 builtin and then its argument prototype would still apply. */
27058#ifdef __cplusplus
27059extern "C"
27060#endif
27061char connect ();
27062int
27063main ()
27064{
27065return connect ();
27066 ;
27067 return 0;
27068}
27069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027070if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027071 ac_cv_lib_socket_connect=yes
27072else
cristy8b350f62009-11-15 23:12:43 +000027073 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027074fi
cristy8b350f62009-11-15 23:12:43 +000027075rm -f core conftest.err conftest.$ac_objext \
27076 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027077LIBS=$ac_check_lib_save_LIBS
27078fi
cristy8b350f62009-11-15 23:12:43 +000027079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027080$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027081if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027082 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27083fi
27084
27085 fi
27086
27087 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027088 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027089if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027090
cristy3ed852e2009-09-05 21:47:34 +000027091fi
27092
cristy3ed852e2009-09-05 21:47:34 +000027093 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027095$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027096if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027097 $as_echo_n "(cached) " >&6
27098else
27099 ac_check_lib_save_LIBS=$LIBS
27100LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027102/* end confdefs.h. */
27103
27104/* Override any GCC internal prototype to avoid an error.
27105 Use char because int might match the return type of a GCC
27106 builtin and then its argument prototype would still apply. */
27107#ifdef __cplusplus
27108extern "C"
27109#endif
27110char remove ();
27111int
27112main ()
27113{
27114return remove ();
27115 ;
27116 return 0;
27117}
27118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027119if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027120 ac_cv_lib_posix_remove=yes
27121else
cristy8b350f62009-11-15 23:12:43 +000027122 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027123fi
cristy8b350f62009-11-15 23:12:43 +000027124rm -f core conftest.err conftest.$ac_objext \
27125 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027126LIBS=$ac_check_lib_save_LIBS
27127fi
cristy8b350f62009-11-15 23:12:43 +000027128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027129$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027130if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27132fi
27133
27134 fi
27135
27136 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027137 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027138if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027139
cristy3ed852e2009-09-05 21:47:34 +000027140fi
27141
cristy3ed852e2009-09-05 21:47:34 +000027142 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027144$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027145if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027146 $as_echo_n "(cached) " >&6
27147else
27148 ac_check_lib_save_LIBS=$LIBS
27149LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027151/* end confdefs.h. */
27152
27153/* Override any GCC internal prototype to avoid an error.
27154 Use char because int might match the return type of a GCC
27155 builtin and then its argument prototype would still apply. */
27156#ifdef __cplusplus
27157extern "C"
27158#endif
27159char shmat ();
27160int
27161main ()
27162{
27163return shmat ();
27164 ;
27165 return 0;
27166}
27167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027169 ac_cv_lib_ipc_shmat=yes
27170else
cristy8b350f62009-11-15 23:12:43 +000027171 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027172fi
cristy8b350f62009-11-15 23:12:43 +000027173rm -f core conftest.err conftest.$ac_objext \
27174 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027175LIBS=$ac_check_lib_save_LIBS
27176fi
cristy8b350f62009-11-15 23:12:43 +000027177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027179if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27181fi
27182
27183 fi
27184 fi
27185
27186 # Check for libraries that X11R6 Xt/Xaw programs need.
27187 ac_save_LDFLAGS=$LDFLAGS
27188 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27189 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27190 # check for ICE first), but we must link in the order -lSM -lICE or
27191 # we get undefined symbols. So assume we have SM if we have ICE.
27192 # These have to be linked with before -lX11, unlike the other
27193 # libraries we check for below, so use a different variable.
27194 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027196$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027197if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027198 $as_echo_n "(cached) " >&6
27199else
27200 ac_check_lib_save_LIBS=$LIBS
27201LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027203/* end confdefs.h. */
27204
27205/* Override any GCC internal prototype to avoid an error.
27206 Use char because int might match the return type of a GCC
27207 builtin and then its argument prototype would still apply. */
27208#ifdef __cplusplus
27209extern "C"
27210#endif
27211char IceConnectionNumber ();
27212int
27213main ()
27214{
27215return IceConnectionNumber ();
27216 ;
27217 return 0;
27218}
27219_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027220if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027221 ac_cv_lib_ICE_IceConnectionNumber=yes
27222else
cristy8b350f62009-11-15 23:12:43 +000027223 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027224fi
cristy8b350f62009-11-15 23:12:43 +000027225rm -f core conftest.err conftest.$ac_objext \
27226 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027227LIBS=$ac_check_lib_save_LIBS
27228fi
cristy8b350f62009-11-15 23:12:43 +000027229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027230$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027231if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027232 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27233fi
27234
27235 LDFLAGS=$ac_save_LDFLAGS
27236
27237fi
27238
27239if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027241$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027243$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027245$as_echo "" >&6; }
27246 LDFLAGS="$LDFLAGS $X_LIBS"
27247 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27248 LIBS="$X11_LIBS $LIBS"
27249 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27250
27251
cristy8b350f62009-11-15 23:12:43 +000027252$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027253
27254 #
27255 # Check for X11 shared memory extension
27256 #
27257 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027258 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027259if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027260 have_shmctl='yes'
27261fi
27262
27263 if test "$have_shmctl" != 'yes'; then
27264 PERSIST_LIBS=$LIBS
27265 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027267/* end confdefs.h. */
27268
27269/* Override any GCC internal prototype to avoid an error.
27270 Use char because int might match the return type of a GCC
27271 builtin and then its argument prototype would still apply. */
27272#ifdef __cplusplus
27273extern "C"
27274#endif
27275char shmctl ();
27276int
27277main ()
27278{
27279return shmctl ();
27280 ;
27281 return 0;
27282}
27283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027285 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027286fi
cristy8b350f62009-11-15 23:12:43 +000027287rm -f core conftest.err conftest.$ac_objext \
27288 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027289 LIBS=$PERSIST_LIBS
27290 fi
27291
27292 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027294$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027295if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027296 $as_echo_n "(cached) " >&6
27297else
27298 ac_check_lib_save_LIBS=$LIBS
27299LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027301/* end confdefs.h. */
27302
27303/* Override any GCC internal prototype to avoid an error.
27304 Use char because int might match the return type of a GCC
27305 builtin and then its argument prototype would still apply. */
27306#ifdef __cplusplus
27307extern "C"
27308#endif
27309char XShmAttach ();
27310int
27311main ()
27312{
27313return XShmAttach ();
27314 ;
27315 return 0;
27316}
27317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027319 ac_cv_lib_Xext_XShmAttach=yes
27320else
cristy8b350f62009-11-15 23:12:43 +000027321 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027322fi
cristy8b350f62009-11-15 23:12:43 +000027323rm -f core conftest.err conftest.$ac_objext \
27324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027325LIBS=$ac_check_lib_save_LIBS
27326fi
cristy8b350f62009-11-15 23:12:43 +000027327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027328$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027329if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027331$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027332
27333fi
27334
27335 fi
27336
27337 #
27338 # Check for X11 shape extension
27339 #
cristy8b350f62009-11-15 23:12:43 +000027340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027341$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027342if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027343 $as_echo_n "(cached) " >&6
27344else
27345 ac_check_lib_save_LIBS=$LIBS
27346LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027348/* end confdefs.h. */
27349
27350/* Override any GCC internal prototype to avoid an error.
27351 Use char because int might match the return type of a GCC
27352 builtin and then its argument prototype would still apply. */
27353#ifdef __cplusplus
27354extern "C"
27355#endif
27356char XShapeCombineMask ();
27357int
27358main ()
27359{
27360return XShapeCombineMask ();
27361 ;
27362 return 0;
27363}
27364_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027365if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027366 ac_cv_lib_Xext_XShapeCombineMask=yes
27367else
cristy8b350f62009-11-15 23:12:43 +000027368 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027369fi
cristy8b350f62009-11-15 23:12:43 +000027370rm -f core conftest.err conftest.$ac_objext \
27371 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027372LIBS=$ac_check_lib_save_LIBS
27373fi
cristy8b350f62009-11-15 23:12:43 +000027374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027375$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027376if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027377 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027378$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027379
27380fi
27381
cristy8b350f62009-11-15 23:12:43 +000027382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027383$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027384if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027385 $as_echo_n "(cached) " >&6
27386else
27387 ac_check_lib_save_LIBS=$LIBS
27388LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027390/* end confdefs.h. */
27391
27392/* Override any GCC internal prototype to avoid an error.
27393 Use char because int might match the return type of a GCC
27394 builtin and then its argument prototype would still apply. */
27395#ifdef __cplusplus
27396extern "C"
27397#endif
27398char XtSetEventDispatcher ();
27399int
27400main ()
27401{
27402return XtSetEventDispatcher ();
27403 ;
27404 return 0;
27405}
27406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027407if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027408 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27409else
cristy8b350f62009-11-15 23:12:43 +000027410 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027411fi
cristy8b350f62009-11-15 23:12:43 +000027412rm -f core conftest.err conftest.$ac_objext \
27413 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027414LIBS=$ac_check_lib_save_LIBS
27415fi
cristy8b350f62009-11-15 23:12:43 +000027416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027417$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027418if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027419 XT_LIBS='-lXt'
27420fi
27421
27422 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27423fi
27424if test "$no_x" != 'yes'; then
27425 have_x='yes'
27426else
27427 have_x='no'
27428fi
cristy73bd4a52010-10-05 11:24:23 +000027429 if test "$have_x" = 'yes'; then
27430 X11_DELEGATE_TRUE=
27431 X11_DELEGATE_FALSE='#'
27432else
27433 X11_DELEGATE_TRUE='#'
27434 X11_DELEGATE_FALSE=
27435fi
27436
cristy3ed852e2009-09-05 21:47:34 +000027437
27438
27439
27440
27441#
27442# Check for ZLIB
27443#
27444
27445# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027446if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027447 withval=$with_zlib; with_zlib=$withval
27448else
27449 with_zlib='yes'
27450fi
27451
27452
27453if test "$with_zlib" != 'yes'; then
27454 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27455fi
27456
27457have_zlib='no'
27458ZLIB_LIBS=''
27459if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027461$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027463$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027465$as_echo "" >&6; }
27466 ZLIB_LIBS=''
27467 failed=0
27468 passed=0
cristy8b350f62009-11-15 23:12:43 +000027469 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027470if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027471 passed=`expr $passed + 1`
27472else
27473 failed=`expr $failed + 1`
27474fi
27475
27476
cristy8b350f62009-11-15 23:12:43 +000027477 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027478if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027479 passed=`expr $passed + 1`
27480else
27481 failed=`expr $failed + 1`
27482fi
27483
27484
cristy8b350f62009-11-15 23:12:43 +000027485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027486$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027487if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027488 $as_echo_n "(cached) " >&6
27489else
27490 ac_check_lib_save_LIBS=$LIBS
27491LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027493/* end confdefs.h. */
27494
27495/* Override any GCC internal prototype to avoid an error.
27496 Use char because int might match the return type of a GCC
27497 builtin and then its argument prototype would still apply. */
27498#ifdef __cplusplus
27499extern "C"
27500#endif
27501char compress ();
27502int
27503main ()
27504{
27505return compress ();
27506 ;
27507 return 0;
27508}
27509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027510if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027511 ac_cv_lib_z_compress=yes
27512else
cristy8b350f62009-11-15 23:12:43 +000027513 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027514fi
cristy8b350f62009-11-15 23:12:43 +000027515rm -f core conftest.err conftest.$ac_objext \
27516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027517LIBS=$ac_check_lib_save_LIBS
27518fi
cristy8b350f62009-11-15 23:12:43 +000027519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027520$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027521if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027522 passed=`expr $passed + 1`
27523else
27524 failed=`expr $failed + 1`
27525fi
27526
cristy8b350f62009-11-15 23:12:43 +000027527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027529if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 $as_echo_n "(cached) " >&6
27531else
27532 ac_check_lib_save_LIBS=$LIBS
27533LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027535/* end confdefs.h. */
27536
27537/* Override any GCC internal prototype to avoid an error.
27538 Use char because int might match the return type of a GCC
27539 builtin and then its argument prototype would still apply. */
27540#ifdef __cplusplus
27541extern "C"
27542#endif
27543char uncompress ();
27544int
27545main ()
27546{
27547return uncompress ();
27548 ;
27549 return 0;
27550}
27551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027553 ac_cv_lib_z_uncompress=yes
27554else
cristy8b350f62009-11-15 23:12:43 +000027555 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027556fi
cristy8b350f62009-11-15 23:12:43 +000027557rm -f core conftest.err conftest.$ac_objext \
27558 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027559LIBS=$ac_check_lib_save_LIBS
27560fi
cristy8b350f62009-11-15 23:12:43 +000027561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027562$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027563if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027564 passed=`expr $passed + 1`
27565else
27566 failed=`expr $failed + 1`
27567fi
27568
cristy8b350f62009-11-15 23:12:43 +000027569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027570$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027571if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027572 $as_echo_n "(cached) " >&6
27573else
27574 ac_check_lib_save_LIBS=$LIBS
27575LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027577/* end confdefs.h. */
27578
27579/* Override any GCC internal prototype to avoid an error.
27580 Use char because int might match the return type of a GCC
27581 builtin and then its argument prototype would still apply. */
27582#ifdef __cplusplus
27583extern "C"
27584#endif
27585char deflate ();
27586int
27587main ()
27588{
27589return deflate ();
27590 ;
27591 return 0;
27592}
27593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027594if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027595 ac_cv_lib_z_deflate=yes
27596else
cristy8b350f62009-11-15 23:12:43 +000027597 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027598fi
cristy8b350f62009-11-15 23:12:43 +000027599rm -f core conftest.err conftest.$ac_objext \
27600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027601LIBS=$ac_check_lib_save_LIBS
27602fi
cristy8b350f62009-11-15 23:12:43 +000027603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027604$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027605if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027606 passed=`expr $passed + 1`
27607else
27608 failed=`expr $failed + 1`
27609fi
27610
cristy8b350f62009-11-15 23:12:43 +000027611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027612$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027613if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027614 $as_echo_n "(cached) " >&6
27615else
27616 ac_check_lib_save_LIBS=$LIBS
27617LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027619/* end confdefs.h. */
27620
27621/* Override any GCC internal prototype to avoid an error.
27622 Use char because int might match the return type of a GCC
27623 builtin and then its argument prototype would still apply. */
27624#ifdef __cplusplus
27625extern "C"
27626#endif
27627char inflate ();
27628int
27629main ()
27630{
27631return inflate ();
27632 ;
27633 return 0;
27634}
27635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027637 ac_cv_lib_z_inflate=yes
27638else
cristy8b350f62009-11-15 23:12:43 +000027639 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027640fi
cristy8b350f62009-11-15 23:12:43 +000027641rm -f core conftest.err conftest.$ac_objext \
27642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027643LIBS=$ac_check_lib_save_LIBS
27644fi
cristy8b350f62009-11-15 23:12:43 +000027645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027646$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027647if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027648 passed=`expr $passed + 1`
27649else
27650 failed=`expr $failed + 1`
27651fi
27652
cristy8b350f62009-11-15 23:12:43 +000027653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027654$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027655if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027656 $as_echo_n "(cached) " >&6
27657else
27658 ac_check_lib_save_LIBS=$LIBS
27659LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027661/* end confdefs.h. */
27662
27663/* Override any GCC internal prototype to avoid an error.
27664 Use char because int might match the return type of a GCC
27665 builtin and then its argument prototype would still apply. */
27666#ifdef __cplusplus
27667extern "C"
27668#endif
27669char gzseek ();
27670int
27671main ()
27672{
27673return gzseek ();
27674 ;
27675 return 0;
27676}
27677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027678if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027679 ac_cv_lib_z_gzseek=yes
27680else
cristy8b350f62009-11-15 23:12:43 +000027681 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027682fi
cristy8b350f62009-11-15 23:12:43 +000027683rm -f core conftest.err conftest.$ac_objext \
27684 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027685LIBS=$ac_check_lib_save_LIBS
27686fi
cristy8b350f62009-11-15 23:12:43 +000027687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027688$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027689if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027690 passed=`expr $passed + 1`
27691else
27692 failed=`expr $failed + 1`
27693fi
27694
cristy8b350f62009-11-15 23:12:43 +000027695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027696$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027697if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027698 $as_echo_n "(cached) " >&6
27699else
27700 ac_check_lib_save_LIBS=$LIBS
27701LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027703/* end confdefs.h. */
27704
27705/* Override any GCC internal prototype to avoid an error.
27706 Use char because int might match the return type of a GCC
27707 builtin and then its argument prototype would still apply. */
27708#ifdef __cplusplus
27709extern "C"
27710#endif
27711char gztell ();
27712int
27713main ()
27714{
27715return gztell ();
27716 ;
27717 return 0;
27718}
27719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027720if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027721 ac_cv_lib_z_gztell=yes
27722else
cristy8b350f62009-11-15 23:12:43 +000027723 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027724fi
cristy8b350f62009-11-15 23:12:43 +000027725rm -f core conftest.err conftest.$ac_objext \
27726 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027727LIBS=$ac_check_lib_save_LIBS
27728fi
cristy8b350f62009-11-15 23:12:43 +000027729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027730$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027731if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027732 passed=`expr $passed + 1`
27733else
27734 failed=`expr $failed + 1`
27735fi
27736
cristy8b350f62009-11-15 23:12:43 +000027737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027738$as_echo_n "checking if ZLIB package is complete... " >&6; }
27739 if test $passed -gt 0; then
27740 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027742$as_echo "no -- some components failed test" >&6; }
27743 have_zlib='no (failed tests)'
27744 else
27745 ZLIB_LIBS='-lz'
27746 LIBS="$ZLIB_LIBS $LIBS"
27747
cristy8b350f62009-11-15 23:12:43 +000027748$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027749
cristy8b350f62009-11-15 23:12:43 +000027750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo "yes" >&6; }
27752 have_zlib='yes'
27753 fi
27754 else
cristy8b350f62009-11-15 23:12:43 +000027755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027756$as_echo "no" >&6; }
27757 fi
27758fi
cristy73bd4a52010-10-05 11:24:23 +000027759 if test "$have_zlib" = 'yes'; then
27760 ZLIB_DELEGATE_TRUE=
27761 ZLIB_DELEGATE_FALSE='#'
27762else
27763 ZLIB_DELEGATE_TRUE='#'
27764 ZLIB_DELEGATE_FALSE=
27765fi
27766
cristy3ed852e2009-09-05 21:47:34 +000027767
27768
27769#
27770# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27771#
27772LIB_DL=''
27773if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027775$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027776if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027777 $as_echo_n "(cached) " >&6
27778else
27779 ac_check_lib_save_LIBS=$LIBS
27780LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027782/* end confdefs.h. */
27783
27784/* Override any GCC internal prototype to avoid an error.
27785 Use char because int might match the return type of a GCC
27786 builtin and then its argument prototype would still apply. */
27787#ifdef __cplusplus
27788extern "C"
27789#endif
27790char dlopen ();
27791int
27792main ()
27793{
27794return dlopen ();
27795 ;
27796 return 0;
27797}
27798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027800 ac_cv_lib_dl_dlopen=yes
27801else
cristy8b350f62009-11-15 23:12:43 +000027802 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027803fi
cristy8b350f62009-11-15 23:12:43 +000027804rm -f core conftest.err conftest.$ac_objext \
27805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027806LIBS=$ac_check_lib_save_LIBS
27807fi
cristy8b350f62009-11-15 23:12:43 +000027808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027809$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027810if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027811 LIB_DL='-ldl'
27812fi
27813
27814 LIBS="$LIB_DL $LIBS"
27815fi
27816
27817
27818
27819#
27820# Check for Autotrace delegate library.
27821#
27822
27823# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027824if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027825 withval=$with_autotrace; with_autotrace=$withval
27826else
27827 with_autotrace='no'
27828fi
27829
27830
27831if test "$with_autotrace" != 'yes'; then
27832 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27833fi
27834
27835have_autotrace='no'
27836AUTOTRACE_CFLAGS=""
27837AUTOTRACE_LIBS=""
27838AUTOTRACE_PKG=""
27839if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027841$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027842
27843pkg_failed=no
27844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27845$as_echo_n "checking for AUTOTRACE... " >&6; }
27846
27847if test -n "$AUTOTRACE_CFLAGS"; then
27848 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27849 elif test -n "$PKG_CONFIG"; then
27850 if test -n "$PKG_CONFIG" && \
27851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27852 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27853 ac_status=$?
27854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27855 test $ac_status = 0; }; then
27856 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27857else
27858 pkg_failed=yes
27859fi
27860 else
27861 pkg_failed=untried
27862fi
27863if test -n "$AUTOTRACE_LIBS"; then
27864 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27865 elif test -n "$PKG_CONFIG"; then
27866 if test -n "$PKG_CONFIG" && \
27867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27868 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27869 ac_status=$?
27870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27871 test $ac_status = 0; }; then
27872 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27873else
27874 pkg_failed=yes
27875fi
27876 else
27877 pkg_failed=untried
27878fi
27879
27880
27881
27882if test $pkg_failed = yes; then
27883
27884if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27885 _pkg_short_errors_supported=yes
27886else
27887 _pkg_short_errors_supported=no
27888fi
27889 if test $_pkg_short_errors_supported = yes; then
27890 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27891 else
27892 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27893 fi
27894 # Put the nasty error message in config.log where it belongs
27895 echo "$AUTOTRACE_PKG_ERRORS" >&5
27896
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27898$as_echo "no" >&6; }
27899 have_autotrace=no
27900elif test $pkg_failed = untried; then
27901 have_autotrace=no
27902else
27903 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27904 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27906$as_echo "yes" >&6; }
27907 have_autotrace=yes
27908fi
cristy8b350f62009-11-15 23:12:43 +000027909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027910$as_echo "" >&6; }
27911fi
27912
27913if test "$have_autotrace" = 'yes'; then
27914 failed=0
27915
cristy8b350f62009-11-15 23:12:43 +000027916$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027917
27918 if test "$with_modules" = 'no'; then
27919 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27920 fi
27921fi
27922
cristy73bd4a52010-10-05 11:24:23 +000027923 if test "$have_autotrace" = 'yes'; then
27924 AUTOTRACE_DELEGATE_TRUE=
27925 AUTOTRACE_DELEGATE_FALSE='#'
27926else
27927 AUTOTRACE_DELEGATE_TRUE='#'
27928 AUTOTRACE_DELEGATE_FALSE=
27929fi
27930
cristy3ed852e2009-09-05 21:47:34 +000027931
27932
27933
27934
27935#
27936# Check for Display Postscript delegate library.
27937#
27938
27939# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027940if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027941 withval=$with_dps; with_dps=$withval
27942else
27943 with_dps='yes'
27944fi
27945
27946
27947if test "$with_dps" != 'yes'; then
27948 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27949fi
27950
27951have_dps='no'
27952DPS_LIBS=''
27953if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027955$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027957$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027959$as_echo "" >&6; }
27960 failed=0
27961 passed=0
27962 PERSIST_CPPFLAGS="$CPPFLAGS"
27963 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027964 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 +000027965if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027966 passed=`expr $passed + 1`
27967else
27968 failed=`expr $failed + 1`
27969fi
27970
27971
27972 # DPS issues:
27973 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27974 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27975 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27976 # ImageMagick itself doesn't use -lXt.
27977 have_libdps='no'
27978 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027980$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027981if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 $as_echo_n "(cached) " >&6
27983else
27984 ac_check_lib_save_LIBS=$LIBS
27985LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027987/* end confdefs.h. */
27988
27989/* Override any GCC internal prototype to avoid an error.
27990 Use char because int might match the return type of a GCC
27991 builtin and then its argument prototype would still apply. */
27992#ifdef __cplusplus
27993extern "C"
27994#endif
27995char DPSInitialize ();
27996int
27997main ()
27998{
27999return DPSInitialize ();
28000 ;
28001 return 0;
28002}
28003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028004if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028005 ac_cv_lib_dps_DPSInitialize=yes
28006else
cristy8b350f62009-11-15 23:12:43 +000028007 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028008fi
cristy8b350f62009-11-15 23:12:43 +000028009rm -f core conftest.err conftest.$ac_objext \
28010 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028011LIBS=$ac_check_lib_save_LIBS
28012fi
cristy8b350f62009-11-15 23:12:43 +000028013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028014$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028015if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028016 have_libdps='yes'
28017else
28018 have_libdps='no'
28019fi
28020
28021 if test "$have_libdps" != 'yes'; then
28022 # Unset cache variable so we can try again.
28023 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028025$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028026if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028027 $as_echo_n "(cached) " >&6
28028else
28029 ac_check_lib_save_LIBS=$LIBS
28030LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028032/* end confdefs.h. */
28033
28034/* Override any GCC internal prototype to avoid an error.
28035 Use char because int might match the return type of a GCC
28036 builtin and then its argument prototype would still apply. */
28037#ifdef __cplusplus
28038extern "C"
28039#endif
28040char DPSInitialize ();
28041int
28042main ()
28043{
28044return DPSInitialize ();
28045 ;
28046 return 0;
28047}
28048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028050 ac_cv_lib_dps_DPSInitialize=yes
28051else
cristy8b350f62009-11-15 23:12:43 +000028052 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028053fi
cristy8b350f62009-11-15 23:12:43 +000028054rm -f core conftest.err conftest.$ac_objext \
28055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028056LIBS=$ac_check_lib_save_LIBS
28057fi
cristy8b350f62009-11-15 23:12:43 +000028058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028059$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028060if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028061 have_libdps='yes'
28062else
28063 have_libdps='no'
28064fi
28065
28066 if test "$have_libdps" = 'yes'; then
28067 LIBDPS_XT='-lXt'
28068 fi
28069 fi
28070 if test "$have_libdps" = 'yes'; then
28071 passed=`expr $passed + 1`
28072 else
28073 failed=`expr $failed + 1`
28074 fi
cristy8b350f62009-11-15 23:12:43 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028076$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028077if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028078 $as_echo_n "(cached) " >&6
28079else
28080 ac_check_lib_save_LIBS=$LIBS
28081LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028083/* end confdefs.h. */
28084
28085/* Override any GCC internal prototype to avoid an error.
28086 Use char because int might match the return type of a GCC
28087 builtin and then its argument prototype would still apply. */
28088#ifdef __cplusplus
28089extern "C"
28090#endif
28091char XDPSPixelsPerPoint ();
28092int
28093main ()
28094{
28095return XDPSPixelsPerPoint ();
28096 ;
28097 return 0;
28098}
28099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028101 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28102else
cristy8b350f62009-11-15 23:12:43 +000028103 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028104fi
cristy8b350f62009-11-15 23:12:43 +000028105rm -f core conftest.err conftest.$ac_objext \
28106 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028107LIBS=$ac_check_lib_save_LIBS
28108fi
cristy8b350f62009-11-15 23:12:43 +000028109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028110$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028111if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028112 passed=`expr $passed + 1`
28113else
28114 failed=`expr $failed + 1`
28115fi
28116
cristy8b350f62009-11-15 23:12:43 +000028117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028118$as_echo_n "checking if DPS package is complete... " >&6; }
28119 if test $passed -gt 0; then
28120 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028122$as_echo "no -- some components failed test" >&6; }
28123 have_dps='no (failed tests)'
28124 CPPFLAGS="$PERSIST_CPPFLAGS"
28125 else
28126 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28127 LIBS="$DPS_LIBS $LIBS"
28128
cristy8b350f62009-11-15 23:12:43 +000028129$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028130
cristy8b350f62009-11-15 23:12:43 +000028131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028132$as_echo "yes" >&6; }
28133 have_dps='yes'
28134 fi
28135 else
cristy8b350f62009-11-15 23:12:43 +000028136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028137$as_echo "no" >&6; }
28138 CPPFLAGS=$PERSIST_CPPFLAGS
28139 fi
28140fi
cristy73bd4a52010-10-05 11:24:23 +000028141 if test "$have_dps" = 'yes'; then
28142 DPS_DELEGATE_TRUE=
28143 DPS_DELEGATE_FALSE='#'
28144else
28145 DPS_DELEGATE_TRUE='#'
28146 DPS_DELEGATE_FALSE=
28147fi
28148
cristy3ed852e2009-09-05 21:47:34 +000028149
28150
28151
28152#
28153# Check for DJVU delegate library.
28154#
28155
28156# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028157if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028158 withval=$with_djvu; with_djvu=$withval
28159else
28160 with_djvu='yes'
28161fi
28162
28163
28164if test "$with_djvu" != 'yes'; then
28165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28166fi
28167
28168have_djvu='no'
28169DJVU_LIBS=''
28170if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028172$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028174$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028176$as_echo "" >&6; }
28177 failed=0
28178 passed=0
cristy8b350f62009-11-15 23:12:43 +000028179 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 +000028180if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028181 passed=`expr $passed + 1`
28182else
28183 failed=`expr $failed + 1`
28184fi
28185
28186
cristy8b350f62009-11-15 23:12:43 +000028187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028188$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028189if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028190 $as_echo_n "(cached) " >&6
28191else
28192 ac_check_lib_save_LIBS=$LIBS
28193LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028195/* end confdefs.h. */
28196
28197/* Override any GCC internal prototype to avoid an error.
28198 Use char because int might match the return type of a GCC
28199 builtin and then its argument prototype would still apply. */
28200#ifdef __cplusplus
28201extern "C"
28202#endif
28203char ddjvu_context_create ();
28204int
28205main ()
28206{
28207return ddjvu_context_create ();
28208 ;
28209 return 0;
28210}
28211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028212if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028213 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28214else
cristy8b350f62009-11-15 23:12:43 +000028215 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028216fi
cristy8b350f62009-11-15 23:12:43 +000028217rm -f core conftest.err conftest.$ac_objext \
28218 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028219LIBS=$ac_check_lib_save_LIBS
28220fi
cristy8b350f62009-11-15 23:12:43 +000028221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028222$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028223if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028224 passed=`expr $passed + 1`
28225else
28226 failed=`expr $failed + 1`
28227fi
28228
cristy8b350f62009-11-15 23:12:43 +000028229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028230$as_echo_n "checking if DJVU package is complete... " >&6; }
28231 if test $passed -gt 0; then
28232 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo "no -- some components failed test" >&6; }
28235 have_djvu='no (failed tests)'
28236 else
28237 DJVU_LIBS='-ldjvulibre'
28238 LIBS="$DJVU_LIBS $LIBS"
28239
cristy8b350f62009-11-15 23:12:43 +000028240$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028241
cristy8b350f62009-11-15 23:12:43 +000028242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028243$as_echo "yes" >&6; }
28244 have_djvu='yes'
28245 fi
28246 else
cristy8b350f62009-11-15 23:12:43 +000028247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028248$as_echo "no" >&6; }
28249 fi
28250fi
cristy73bd4a52010-10-05 11:24:23 +000028251 if test "$have_djvu" = 'yes'; then
28252 DJVU_DELEGATE_TRUE=
28253 DJVU_DELEGATE_FALSE='#'
28254else
28255 DJVU_DELEGATE_TRUE='#'
28256 DJVU_DELEGATE_FALSE=
28257fi
28258
cristy3ed852e2009-09-05 21:47:34 +000028259
28260
28261
28262#
cristy430a7312010-01-21 20:44:04 +000028263# Set DejaVu font directory.
28264#
28265
28266# Check whether --with-dejavu-font-dir was given.
28267if test "${with_dejavu_font_dir+set}" = set; then :
28268 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28269else
28270 with_dejavu_font_dir='default'
28271fi
28272
28273
28274if test "$with_dejavu_font_dir" != 'default'; then
28275 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28276fi
28277
28278
28279#
cristy3ed852e2009-09-05 21:47:34 +000028280# Check for FFTW delegate library.
28281#
28282
28283# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028284if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028285 withval=$with_fftw; with_fftw=$withval
28286else
28287 with_fftw='yes'
28288fi
28289
28290
28291if test "$with_fftw" != 'yes'; then
28292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28293fi
28294
cristy81beccd2011-10-03 18:17:24 +000028295have_fftw='no'
28296FFTW_LIBS=''
28297if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028299$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28301$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028303$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028304 failed=0
28305 passed=0
28306 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28307if test "x$ac_cv_header_fftw3_h" = xyes; then :
28308 passed=`expr $passed + 1`
28309else
28310 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028311fi
28312
cristy81beccd2011-10-03 18:17:24 +000028313
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28315$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28316if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28317 $as_echo_n "(cached) " >&6
28318else
28319 ac_check_lib_save_LIBS=$LIBS
28320LIBS="-lfftw3 $LIBS"
28321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28322/* end confdefs.h. */
28323
28324/* Override any GCC internal prototype to avoid an error.
28325 Use char because int might match the return type of a GCC
28326 builtin and then its argument prototype would still apply. */
28327#ifdef __cplusplus
28328extern "C"
28329#endif
28330char fftw_execute ();
28331int
28332main ()
28333{
28334return fftw_execute ();
28335 ;
28336 return 0;
28337}
28338_ACEOF
28339if ac_fn_c_try_link "$LINENO"; then :
28340 ac_cv_lib_fftw3_fftw_execute=yes
28341else
28342 ac_cv_lib_fftw3_fftw_execute=no
28343fi
28344rm -f core conftest.err conftest.$ac_objext \
28345 conftest$ac_exeext conftest.$ac_ext
28346LIBS=$ac_check_lib_save_LIBS
28347fi
28348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28349$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28350if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28351 passed=`expr $passed + 1`
28352else
28353 failed=`expr $failed + 1`
28354fi
28355
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28357$as_echo_n "checking if FFTW package is complete... " >&6; }
28358 if test $passed -gt 0; then
28359 if test $failed -gt 0; then
28360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28361$as_echo "no -- some components failed test" >&6; }
28362 have_fftw='no (failed tests)'
28363 else
28364 FFTW_LIBS='-lfftw3'
28365 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028366
cristy8b350f62009-11-15 23:12:43 +000028367$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028368
cristy81beccd2011-10-03 18:17:24 +000028369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28370$as_echo "yes" >&6; }
28371 have_fftw='yes'
28372 fi
28373 else
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28375$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028376 fi
28377fi
cristy73bd4a52010-10-05 11:24:23 +000028378 if test "$have_fftw" = 'yes'; then
28379 FFTW_DELEGATE_TRUE=
28380 FFTW_DELEGATE_FALSE='#'
28381else
28382 FFTW_DELEGATE_TRUE='#'
28383 FFTW_DELEGATE_FALSE=
28384fi
28385
cristy3ed852e2009-09-05 21:47:34 +000028386
28387
28388
28389#
28390# Check for FlashPIX delegate library.
28391#
28392
28393# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028394if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028395 withval=$with_fpx; with_fpx=$withval
28396else
28397 with_fpx='yes'
28398fi
28399
28400
28401if test "$with_fpx" != 'yes'; then
28402 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28403fi
28404
28405have_fpx='no'
28406FPX_LIBS=''
28407if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028409$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028411$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028413$as_echo "" >&6; }
28414 failed=0
28415 passed=0
28416 ac_ext=cpp
28417ac_cpp='$CXXCPP $CPPFLAGS'
28418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28421
28422
cristy8b350f62009-11-15 23:12:43 +000028423ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028424if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028425 passed=`expr $passed + 1`
28426else
28427 failed=`expr $failed + 1`
28428fi
28429
28430
cristy8b350f62009-11-15 23:12:43 +000028431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028432$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028433if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028434 $as_echo_n "(cached) " >&6
28435else
28436 ac_check_lib_save_LIBS=$LIBS
28437LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028439/* end confdefs.h. */
28440
28441/* Override any GCC internal prototype to avoid an error.
28442 Use char because int might match the return type of a GCC
28443 builtin and then its argument prototype would still apply. */
28444#ifdef __cplusplus
28445extern "C"
28446#endif
28447char FPX_OpenImageByFilename ();
28448int
28449main ()
28450{
28451return FPX_OpenImageByFilename ();
28452 ;
28453 return 0;
28454}
28455_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028456if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028457 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28458else
cristy8b350f62009-11-15 23:12:43 +000028459 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028460fi
cristy8b350f62009-11-15 23:12:43 +000028461rm -f core conftest.err conftest.$ac_objext \
28462 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028463LIBS=$ac_check_lib_save_LIBS
28464fi
cristy8b350f62009-11-15 23:12:43 +000028465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028466$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028467if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028468 passed=`expr $passed + 1`
28469else
28470 failed=`expr $failed + 1`
28471fi
28472
28473 ac_ext=c
28474ac_cpp='$CPP $CPPFLAGS'
28475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28477ac_compiler_gnu=$ac_cv_c_compiler_gnu
28478
cristy8b350f62009-11-15 23:12:43 +000028479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028480$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28481 if test $passed -gt 0; then
28482 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028484$as_echo "no -- some components failed test" >&6; }
28485 have_fpx='no (failed tests)'
28486 else
28487 FPX_LIBS='-lfpx'
28488
cristy8b350f62009-11-15 23:12:43 +000028489$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028490
cristy8b350f62009-11-15 23:12:43 +000028491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028492$as_echo "yes" >&6; }
28493 have_fpx='yes'
28494 PERLMAINCC="$CXX"
28495 fi
28496 else
cristy8b350f62009-11-15 23:12:43 +000028497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028498$as_echo "no" >&6; }
28499 fi
28500fi
cristy73bd4a52010-10-05 11:24:23 +000028501 if test "$have_fpx" = 'yes'; then
28502 FPX_DELEGATE_TRUE=
28503 FPX_DELEGATE_FALSE='#'
28504else
28505 FPX_DELEGATE_TRUE='#'
28506 FPX_DELEGATE_FALSE=
28507fi
28508
cristy3ed852e2009-09-05 21:47:34 +000028509
28510
28511
28512#
28513# Check for fontconfig delegate library.
28514#
28515
28516# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028517if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028518 withval=$with_fontconfig; with_fontconfig=$withval
28519else
28520 with_fontconfig=$have_x
28521fi
28522
28523
28524if test "$with_fontconfig" != 'yes'; then
28525 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28526fi
28527
28528have_fontconfig='no'
28529FONTCONFIG_CFLAGS=""
28530FONTCONFIG_LIBS=""
28531FONTCONFIG_PKG=""
28532if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028534$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028535
28536pkg_failed=no
28537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28538$as_echo_n "checking for FONTCONFIG... " >&6; }
28539
28540if test -n "$FONTCONFIG_CFLAGS"; then
28541 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28542 elif test -n "$PKG_CONFIG"; then
28543 if test -n "$PKG_CONFIG" && \
28544 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28545 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28546 ac_status=$?
28547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28548 test $ac_status = 0; }; then
28549 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28550else
28551 pkg_failed=yes
28552fi
28553 else
28554 pkg_failed=untried
28555fi
28556if test -n "$FONTCONFIG_LIBS"; then
28557 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28558 elif test -n "$PKG_CONFIG"; then
28559 if test -n "$PKG_CONFIG" && \
28560 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28561 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28562 ac_status=$?
28563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28564 test $ac_status = 0; }; then
28565 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28566else
28567 pkg_failed=yes
28568fi
28569 else
28570 pkg_failed=untried
28571fi
28572
28573
28574
28575if test $pkg_failed = yes; then
28576
28577if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28578 _pkg_short_errors_supported=yes
28579else
28580 _pkg_short_errors_supported=no
28581fi
28582 if test $_pkg_short_errors_supported = yes; then
28583 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28584 else
28585 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28586 fi
28587 # Put the nasty error message in config.log where it belongs
28588 echo "$FONTCONFIG_PKG_ERRORS" >&5
28589
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28591$as_echo "no" >&6; }
28592 have_fontconfig=no
28593elif test $pkg_failed = untried; then
28594 have_fontconfig=no
28595else
28596 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28597 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28599$as_echo "yes" >&6; }
28600 have_fontconfig=yes
28601fi
cristy8b350f62009-11-15 23:12:43 +000028602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028603$as_echo "" >&6; }
28604fi
28605
28606if test "$have_fontconfig" = 'yes'; then
28607
cristy8b350f62009-11-15 23:12:43 +000028608$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028609
cristyd09bcf92010-03-25 03:04:45 +000028610 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028611 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028612 fi
cristy3ed852e2009-09-05 21:47:34 +000028613fi
28614
cristy73bd4a52010-10-05 11:24:23 +000028615 if test "$have_fontconfig" = 'yes'; then
28616 FONTCONFIG_DELEGATE_TRUE=
28617 FONTCONFIG_DELEGATE_FALSE='#'
28618else
28619 FONTCONFIG_DELEGATE_TRUE='#'
28620 FONTCONFIG_DELEGATE_FALSE=
28621fi
28622
cristy3ed852e2009-09-05 21:47:34 +000028623
28624
28625
28626
28627#
cristy81beccd2011-10-03 18:17:24 +000028628# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028629#
28630
28631# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028632if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028633 withval=$with_freetype; with_freetype=$withval
28634else
28635 with_freetype='yes'
28636fi
28637
28638
cristy81beccd2011-10-03 18:17:24 +000028639
cristy3ed852e2009-09-05 21:47:34 +000028640if test "$with_freetype" != 'yes'; then
28641 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28642fi
28643
cristy81beccd2011-10-03 18:17:24 +000028644have_freetype='no'
28645FREETYPE_LIBS=''
28646if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028648$as_echo "-------------------------------------------------------------" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28650$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028652$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028653 failed=0
28654 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028655 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028656 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028657 freetype_config=''
28658 # Allow the user to specify the location of freetype.
28659 if test "$with_freetype" != 'yes'; then
28660 if test -x "${with_freetype}/bin/freetype-config"; then
28661 freetype_config="${with_freetype}/bin/freetype-config"
28662 elif test -x "${with_freetype}"; then
28663 freetype_config=${with_freetype}
28664 fi
28665 fi
28666 if test -z "$freetype_config"; then
28667 # Extract the first word of "freetype-config", so it can be a program name with args.
28668set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28670$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028671if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028672 $as_echo_n "(cached) " >&6
28673else
cristy98ca0f52011-10-08 23:19:10 +000028674 case $freetype_config in
28675 [\\/]* | ?:[\\/]*)
28676 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28677 ;;
28678 *)
28679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028680for as_dir in $PATH
28681do
28682 IFS=$as_save_IFS
28683 test -z "$as_dir" && as_dir=.
28684 for ac_exec_ext in '' $ac_executable_extensions; do
28685 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 +000028686 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28688 break 2
28689 fi
28690done
28691 done
28692IFS=$as_save_IFS
28693
cristy98ca0f52011-10-08 23:19:10 +000028694 ;;
28695esac
cristy81beccd2011-10-03 18:17:24 +000028696fi
cristy98ca0f52011-10-08 23:19:10 +000028697freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028698if test -n "$freetype_config"; then
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28700$as_echo "$freetype_config" >&6; }
28701else
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28703$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028704fi
28705
cristy98ca0f52011-10-08 23:19:10 +000028706 fi
28707 if test -n "$freetype_config"; then
28708 freetype_prefix=`${freetype_config} --prefix`
28709 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28710 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28711 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028712 fi
28713
28714 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028716$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28717if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28718 $as_echo_n "(cached) " >&6
28719else
28720 ac_check_lib_save_LIBS=$LIBS
28721LIBS="-lfreetype $LIBS"
28722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28723/* end confdefs.h. */
28724
28725/* Override any GCC internal prototype to avoid an error.
28726 Use char because int might match the return type of a GCC
28727 builtin and then its argument prototype would still apply. */
28728#ifdef __cplusplus
28729extern "C"
28730#endif
28731char FT_Init_FreeType ();
28732int
28733main ()
28734{
28735return FT_Init_FreeType ();
28736 ;
28737 return 0;
28738}
28739_ACEOF
28740if ac_fn_c_try_link "$LINENO"; then :
28741 ac_cv_lib_freetype_FT_Init_FreeType=yes
28742else
28743 ac_cv_lib_freetype_FT_Init_FreeType=no
28744fi
28745rm -f core conftest.err conftest.$ac_objext \
28746 conftest$ac_exeext conftest.$ac_ext
28747LIBS=$ac_check_lib_save_LIBS
28748fi
28749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28750$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28751if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28752 FREETYPE_LIBS='-lfreetype'
28753fi
28754
cristy98ca0f52011-10-08 23:19:10 +000028755 if test "$FREETYPE_LIBS" != ''; then
28756 passed=`expr $passed + 1`
28757 else
28758 failed=`expr $failed + 1`
28759 LDFLAGS="$PERSIST_LDFLAGS"
28760 fi
cristy81beccd2011-10-03 18:17:24 +000028761 fi
28762
28763 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28764if test "x$ac_cv_header_ft2build_h" = xyes; then :
28765 FT2BUILD_H='#include <ft2build.h>'
28766else
28767 ft2build=''
28768fi
28769
28770
28771 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28772"
28773if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28774 have_freetype_h='yes'
28775else
28776 have_freetype_h='no'
28777fi
28778
28779
cristy98ca0f52011-10-08 23:19:10 +000028780 if test "$have_freetype_h" = 'yes'; then
28781 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028782 else
cristy98ca0f52011-10-08 23:19:10 +000028783 failed=`expr $failed + 1`
28784 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028785 fi
28786
28787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28788$as_echo_n "checking if FreeType package is complete... " >&6; }
28789 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028790 if test $failed -gt 0; then
28791 FREETYPE_LIBS=''
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy81beccd2011-10-03 18:17:24 +000028793$as_echo "no -- some components failed test" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028794 have_freetype='no (failed tests)'
28795 else
28796 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028797
cristy8b350f62009-11-15 23:12:43 +000028798$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028799
cristy98ca0f52011-10-08 23:19:10 +000028800 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028801
28802$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28803
cristy81beccd2011-10-03 18:17:24 +000028804 fi
cristy98ca0f52011-10-08 23:19:10 +000028805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28806$as_echo "yes" >&6; }
28807 have_freetype='yes'
28808 fi
cristy81beccd2011-10-03 18:17:24 +000028809 else
cristy98ca0f52011-10-08 23:19:10 +000028810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy81beccd2011-10-03 18:17:24 +000028811$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028812 fi
28813fi
cristy73bd4a52010-10-05 11:24:23 +000028814 if test "$have_freetype" = 'yes'; then
28815 FREETYPE_DELEGATE_TRUE=
28816 FREETYPE_DELEGATE_FALSE='#'
28817else
28818 FREETYPE_DELEGATE_TRUE='#'
28819 FREETYPE_DELEGATE_FALSE=
28820fi
28821
cristy3ed852e2009-09-05 21:47:34 +000028822
28823
28824
cristy3ed852e2009-09-05 21:47:34 +000028825#
28826# Check for Ghostscript library or framework.
28827#
28828# Test for iapi.h & test for gsapi_new_instance in -lgs
28829# or -framework Ghostscript
28830
28831
28832# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028833if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028834 withval=$with_gslib; with_gslib=$withval
28835else
28836 with_gslib='no'
28837fi
28838
28839
cristyb7931f12009-09-25 10:22:21 +000028840gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028841if test "$with_gslib" != 'yes'; then
28842 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28843fi
28844
28845have_gslib='no'
28846GS_LIBS=''
28847if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028849$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028851$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028853$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028854 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028855 failed=0
28856 passed=0
cristy8b350f62009-11-15 23:12:43 +000028857 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 +000028858if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028859 passed=`expr $passed + 1`
28860else
28861 failed=`expr $failed + 1`
28862fi
28863
28864
cristy8b350f62009-11-15 23:12:43 +000028865 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 +000028866if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028867 passed=`expr $passed + 1`
28868else
28869 failed=`expr $failed + 1`
28870fi
28871
28872
cristy73bd4a52010-10-05 11:24:23 +000028873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28874$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028875if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028876 $as_echo_n "(cached) " >&6
28877else
28878 ac_check_framework_save_LIBS=$LIBS
28879LIBS="-framework Ghostscript $LIBS"
28880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28881/* end confdefs.h. */
28882
28883/* Override any GCC internal prototype to avoid an error.
28884 Use char because int might match the return type of a GCC
28885 builtin and then its argument prototype would still apply. */
28886#ifdef __cplusplus
28887extern "C"
28888#endif
28889char gsapi_new_instance ();
28890int
28891main ()
28892{
28893return gsapi_new_instance ();
28894 ;
28895 return 0;
28896}
28897_ACEOF
28898if ac_fn_c_try_link "$LINENO"; then :
28899 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28900else
28901 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28902fi
28903rm -f core conftest.err conftest.$ac_objext \
28904 conftest$ac_exeext conftest.$ac_ext
28905LIBS=$ac_check_framework_save_LIBS
28906fi
28907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28908$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28909if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28910 framework=`expr $framework + 1`
28911else
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028913$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028914if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028915 $as_echo_n "(cached) " >&6
28916else
28917 ac_check_lib_save_LIBS=$LIBS
28918LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028920/* end confdefs.h. */
28921
28922/* Override any GCC internal prototype to avoid an error.
28923 Use char because int might match the return type of a GCC
28924 builtin and then its argument prototype would still apply. */
28925#ifdef __cplusplus
28926extern "C"
28927#endif
28928char gsapi_new_instance ();
28929int
28930main ()
28931{
28932return gsapi_new_instance ();
28933 ;
28934 return 0;
28935}
28936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028937if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028938 ac_cv_lib_gs_gsapi_new_instance=yes
28939else
cristy8b350f62009-11-15 23:12:43 +000028940 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028941fi
cristy8b350f62009-11-15 23:12:43 +000028942rm -f core conftest.err conftest.$ac_objext \
28943 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028944LIBS=$ac_check_lib_save_LIBS
28945fi
cristy8b350f62009-11-15 23:12:43 +000028946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028947$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028948if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028949 passed=`expr $passed + 1`
28950else
28951 failed=`expr $failed + 1`
28952fi
cristy73bd4a52010-10-05 11:24:23 +000028953
28954fi
cristy8b350f62009-11-15 23:12:43 +000028955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028956$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28957 if test $passed -gt 0; then
28958 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028960$as_echo "no -- some components failed test" >&6; }
28961 have_gslib='no (failed tests)'
28962 else
28963 if test $framework -gt 0; then
28964 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028965 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028967$as_echo "yes, using framework." >&6; }
28968 else
cristy8b350f62009-11-15 23:12:43 +000028969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028970$as_echo "yes, using library." >&6; }
28971 GS_LIBS='-lgs'
28972 fi
28973 LIBS="$GS_LIBS $LIBS"
28974
cristy8b350f62009-11-15 23:12:43 +000028975$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028976
28977 have_gslib='yes'
28978 fi
28979 else
cristy8b350f62009-11-15 23:12:43 +000028980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028981$as_echo "no" >&6; }
28982 fi
28983fi
cristy73bd4a52010-10-05 11:24:23 +000028984 if test "$have_gslib" = 'yes'; then
28985 GS_DELEGATE_TRUE=
28986 GS_DELEGATE_FALSE='#'
28987else
28988 GS_DELEGATE_TRUE='#'
28989 GS_DELEGATE_FALSE=
28990fi
28991
cristy3ed852e2009-09-05 21:47:34 +000028992
28993
28994# Set default font search path
28995
28996# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028997if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028998 withval=$with_fontpath; with_fontpath=$withval
28999else
29000 with_fontpath=''
29001fi
29002
29003
29004if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29005 with_fontpath=''
29006else
29007
29008cat >>confdefs.h <<_ACEOF
29009#define MAGICK_FONT_PATH "$with_fontpath"
29010_ACEOF
29011
29012fi
29013if test "$with_fontpath=" != ''; then
29014 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29015fi
29016
29017# Set Ghostscript font directory
29018
29019# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029020if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029021 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29022else
29023 with_gs_font_dir='default'
29024fi
29025
29026
29027if test "$with_gs_font_dir" != 'default'; then
29028 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29029fi
29030
29031
29032#
29033# Check for GVC delegate library.
29034#
29035
29036# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029037if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029038 withval=$with_gvc; with_gvc=$withval
29039else
29040 with_gvc='yes'
29041fi
29042
29043
29044if test "$with_gvc" != 'yes'; then
29045 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29046fi
29047
29048GVC_PKG=""
29049if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029051$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029052
29053pkg_failed=no
29054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29055$as_echo_n "checking for GVC... " >&6; }
29056
29057if test -n "$GVC_CFLAGS"; then
29058 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29059 elif test -n "$PKG_CONFIG"; then
29060 if test -n "$PKG_CONFIG" && \
29061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29062 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29063 ac_status=$?
29064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29065 test $ac_status = 0; }; then
29066 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29067else
29068 pkg_failed=yes
29069fi
29070 else
29071 pkg_failed=untried
29072fi
29073if test -n "$GVC_LIBS"; then
29074 pkg_cv_GVC_LIBS="$GVC_LIBS"
29075 elif test -n "$PKG_CONFIG"; then
29076 if test -n "$PKG_CONFIG" && \
29077 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29078 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29079 ac_status=$?
29080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29081 test $ac_status = 0; }; then
29082 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29083else
29084 pkg_failed=yes
29085fi
29086 else
29087 pkg_failed=untried
29088fi
29089
29090
29091
29092if test $pkg_failed = yes; then
29093
29094if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29095 _pkg_short_errors_supported=yes
29096else
29097 _pkg_short_errors_supported=no
29098fi
29099 if test $_pkg_short_errors_supported = yes; then
29100 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29101 else
29102 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29103 fi
29104 # Put the nasty error message in config.log where it belongs
29105 echo "$GVC_PKG_ERRORS" >&5
29106
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29108$as_echo "no" >&6; }
29109 have_gvc=no
29110elif test $pkg_failed = untried; then
29111 have_gvc=no
29112else
29113 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29114 GVC_LIBS=$pkg_cv_GVC_LIBS
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29116$as_echo "yes" >&6; }
29117 have_gvc=yes
29118fi
cristy8b350f62009-11-15 23:12:43 +000029119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029120$as_echo "" >&6; }
29121fi
29122
29123if test "$have_gvc" = 'yes'; then
29124
cristy8b350f62009-11-15 23:12:43 +000029125$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029126
29127 if test "$with_modules" = 'no'; then
29128 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29129 fi
29130fi
29131
cristy73bd4a52010-10-05 11:24:23 +000029132 if test "$have_gvc" = 'yes'; then
29133 GVC_DELEGATE_TRUE=
29134 GVC_DELEGATE_FALSE='#'
29135else
29136 GVC_DELEGATE_TRUE='#'
29137 GVC_DELEGATE_FALSE=
29138fi
29139
cristy3ed852e2009-09-05 21:47:34 +000029140
29141
29142
29143
29144#
29145# Check for JBIG delegate library.
29146#
29147
29148
29149# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029150if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029151 withval=$with_jbig; with_jbig=$withval
29152else
29153 with_jbig='yes'
29154fi
29155
29156
29157have_jbig='no'
29158JBIG_LIBS=''
29159if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029161$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029163$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029165$as_echo "" >&6; }
29166 failed=0
29167 passed=0
cristy8b350f62009-11-15 23:12:43 +000029168 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029169if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029170 passed=`expr $passed + 1`
29171else
29172 failed=`expr $failed + 1`
29173fi
29174
29175
cristy8b350f62009-11-15 23:12:43 +000029176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029177$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029178if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029179 $as_echo_n "(cached) " >&6
29180else
29181 ac_check_lib_save_LIBS=$LIBS
29182LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029184/* end confdefs.h. */
29185
29186/* Override any GCC internal prototype to avoid an error.
29187 Use char because int might match the return type of a GCC
29188 builtin and then its argument prototype would still apply. */
29189#ifdef __cplusplus
29190extern "C"
29191#endif
29192char jbg_dec_init ();
29193int
29194main ()
29195{
29196return jbg_dec_init ();
29197 ;
29198 return 0;
29199}
29200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029201if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029202 ac_cv_lib_jbig_jbg_dec_init=yes
29203else
cristy8b350f62009-11-15 23:12:43 +000029204 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029205fi
cristy8b350f62009-11-15 23:12:43 +000029206rm -f core conftest.err conftest.$ac_objext \
29207 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029208LIBS=$ac_check_lib_save_LIBS
29209fi
cristy8b350f62009-11-15 23:12:43 +000029210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029211$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029212if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029213 passed=`expr $passed + 1`
29214else
29215 failed=`expr $failed + 1`
29216fi
29217
cristy8b350f62009-11-15 23:12:43 +000029218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029219$as_echo_n "checking if JBIG package is complete... " >&6; }
29220 if test $passed -gt 0; then
29221 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029223$as_echo "no -- some components failed test" >&6; }
29224 have_jbig='no (failed tests)'
29225 else
29226 JBIG_LIBS='-ljbig'
29227 LIBS="$JBIG_LIBS $LIBS"
29228
cristy8b350f62009-11-15 23:12:43 +000029229$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029230
cristy8b350f62009-11-15 23:12:43 +000029231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029232$as_echo "yes" >&6; }
29233 have_jbig='yes'
29234 fi
29235 else
cristy8b350f62009-11-15 23:12:43 +000029236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029237$as_echo "no" >&6; }
29238 fi
29239fi
cristy73bd4a52010-10-05 11:24:23 +000029240 if test "$have_jbig" = 'yes'; then
29241 JBIG_DELEGATE_TRUE=
29242 JBIG_DELEGATE_FALSE='#'
29243else
29244 JBIG_DELEGATE_TRUE='#'
29245 JBIG_DELEGATE_FALSE=
29246fi
29247
cristy3ed852e2009-09-05 21:47:34 +000029248
29249
29250
29251#
29252# Check for JPEG delegate library.
29253#
29254
29255# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029256if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029257 withval=$with_jpeg; with_jpeg=$withval
29258else
29259 with_jpeg='yes'
29260fi
29261
29262
29263if test "$with_jpeg" != 'yes'; then
29264 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29265fi
29266
29267have_jpeg='no'
29268JPEG_LIBS=''
29269if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029273$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029275$as_echo "" >&6; }
29276 failed=0
29277 passed=0
cristy8b350f62009-11-15 23:12:43 +000029278 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029279if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029280 passed=`expr $passed + 1`
29281else
29282 failed=`expr $failed + 1`
29283fi
29284
29285
cristy8b350f62009-11-15 23:12:43 +000029286 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029287if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029288 passed=`expr $passed + 1`
29289else
29290 failed=`expr $failed + 1`
29291fi
29292
29293
cristy8b350f62009-11-15 23:12:43 +000029294 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029295if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029296 passed=`expr $passed + 1`
29297else
29298 failed=`expr $failed + 1`
29299fi
29300
29301
cristy8b350f62009-11-15 23:12:43 +000029302 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029303if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029304 passed=`expr $passed + 1`
29305else
29306 failed=`expr $failed + 1`
29307fi
29308
29309
cristy8b350f62009-11-15 23:12:43 +000029310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029311$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029312if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029313 $as_echo_n "(cached) " >&6
29314else
29315 ac_check_lib_save_LIBS=$LIBS
29316LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029318/* end confdefs.h. */
29319
29320/* Override any GCC internal prototype to avoid an error.
29321 Use char because int might match the return type of a GCC
29322 builtin and then its argument prototype would still apply. */
29323#ifdef __cplusplus
29324extern "C"
29325#endif
29326char jpeg_read_header ();
29327int
29328main ()
29329{
29330return jpeg_read_header ();
29331 ;
29332 return 0;
29333}
29334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029335if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029336 ac_cv_lib_jpeg_jpeg_read_header=yes
29337else
cristy8b350f62009-11-15 23:12:43 +000029338 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029339fi
cristy8b350f62009-11-15 23:12:43 +000029340rm -f core conftest.err conftest.$ac_objext \
29341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029342LIBS=$ac_check_lib_save_LIBS
29343fi
cristy8b350f62009-11-15 23:12:43 +000029344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029345$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029346if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029347 passed=`expr $passed + 1`
29348else
29349 failed=`expr $failed + 1`
29350fi
29351
29352
29353# Test for compatible JPEG library
29354if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029356$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029357if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029358 $as_echo_n "(cached) " >&6
29359else
cristy8b350f62009-11-15 23:12:43 +000029360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029361/* end confdefs.h. */
29362#include <stdio.h>
29363#include <stdlib.h>
29364#include <jpeglib.h>
29365
29366int
29367main ()
29368{
29369
29370#if JPEG_LIB_VERSION < 62
29371#error IJG JPEG library must be version 6b or newer!
29372#endif
29373return 0;
29374
29375 ;
29376 return 0;
29377}
29378_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029379if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029380 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29381else
cristy8b350f62009-11-15 23:12:43 +000029382 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029383fi
cristy3ed852e2009-09-05 21:47:34 +000029384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29385fi
cristy8b350f62009-11-15 23:12:43 +000029386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029387$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29388fi
cristy8b350f62009-11-15 23:12:43 +000029389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029390$as_echo_n "checking if JPEG package is complete... " >&6; }
29391 if test $passed -gt 0; then
29392 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029394$as_echo "no -- some components failed test" >&6; }
29395 have_jpeg='no (failed tests)'
29396 else
29397 JPEG_LIBS='-ljpeg'
29398 LIBS="$JPEG_LIBS $LIBS"
29399
cristy8b350f62009-11-15 23:12:43 +000029400$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029401
cristy8b350f62009-11-15 23:12:43 +000029402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029403$as_echo "yes" >&6; }
29404 have_jpeg='yes'
29405 fi
29406 else
cristy8b350f62009-11-15 23:12:43 +000029407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029408$as_echo "no" >&6; }
29409 fi
29410fi
cristy73bd4a52010-10-05 11:24:23 +000029411 if test "$have_jpeg" = 'yes'; then
29412 JPEG_DELEGATE_TRUE=
29413 JPEG_DELEGATE_FALSE='#'
29414else
29415 JPEG_DELEGATE_TRUE='#'
29416 JPEG_DELEGATE_FALSE=
29417fi
29418
cristy3ed852e2009-09-05 21:47:34 +000029419
29420
29421
29422#
29423# Check for JPEG Version 2 delegate library.
29424#
29425
29426# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029427if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029428 withval=$with_jp2; with_jp2=$withval
29429else
29430 with_jp2='yes'
29431fi
29432
29433
29434if test "$with_jp2" != 'yes'; then
29435 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29436fi
29437
29438have_jp2='no'
29439JP2_LIBS=''
29440if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029442$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029444$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029446$as_echo "" >&6; }
29447 failed=0
29448 passed=0
cristy8b350f62009-11-15 23:12:43 +000029449 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 +000029450if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029451 passed=`expr $passed + 1`
29452else
29453 failed=`expr $failed + 1`
29454fi
29455
29456
cristy8b350f62009-11-15 23:12:43 +000029457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029458$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029459if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029460 $as_echo_n "(cached) " >&6
29461else
29462 ac_check_lib_save_LIBS=$LIBS
29463LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029465/* end confdefs.h. */
29466
29467/* Override any GCC internal prototype to avoid an error.
29468 Use char because int might match the return type of a GCC
29469 builtin and then its argument prototype would still apply. */
29470#ifdef __cplusplus
29471extern "C"
29472#endif
29473char jas_stream_fopen ();
29474int
29475main ()
29476{
29477return jas_stream_fopen ();
29478 ;
29479 return 0;
29480}
29481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029482if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029483 ac_cv_lib_jasper_jas_stream_fopen=yes
29484else
cristy8b350f62009-11-15 23:12:43 +000029485 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029486fi
cristy8b350f62009-11-15 23:12:43 +000029487rm -f core conftest.err conftest.$ac_objext \
29488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029489LIBS=$ac_check_lib_save_LIBS
29490fi
cristy8b350f62009-11-15 23:12:43 +000029491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029492$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029493if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029494 passed=`expr $passed + 1`
29495else
29496 failed=`expr $failed + 1`
29497fi
29498
cristy8b350f62009-11-15 23:12:43 +000029499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029500$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29501 if test $passed -gt 0; then
29502 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029504$as_echo "no -- some components failed test" >&6; }
29505 have_jp2='no (failed tests)'
29506 else
29507 JP2_LIBS='-ljasper'
29508 LIBS="$JP2_LIBS $LIBS"
29509
cristy8b350f62009-11-15 23:12:43 +000029510$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029511
cristy8b350f62009-11-15 23:12:43 +000029512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029513$as_echo "yes" >&6; }
29514 have_jp2='yes'
29515 fi
29516 else
cristy8b350f62009-11-15 23:12:43 +000029517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029518$as_echo "no" >&6; }
29519 fi
29520fi
cristy73bd4a52010-10-05 11:24:23 +000029521 if test "$have_jp2" = 'yes'; then
29522 JP2_DELEGATE_TRUE=
29523 JP2_DELEGATE_FALSE='#'
29524else
29525 JP2_DELEGATE_TRUE='#'
29526 JP2_DELEGATE_FALSE=
29527fi
29528
cristy3ed852e2009-09-05 21:47:34 +000029529
29530
29531
29532#
29533# Check for LCMS delegate library.
29534#
cristy71203402010-06-18 13:12:03 +000029535# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029536
29537# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029538if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029539 withval=$with_lcms; with_lcms=$withval
29540else
29541 with_lcms='yes'
29542fi
29543
cristy71203402010-06-18 13:12:03 +000029544if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029545 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29546fi
29547
cristy71203402010-06-18 13:12:03 +000029548# Disable LCMS2.
29549
29550# Check whether --with-lcms2 was given.
29551if test "${with_lcms2+set}" = set; then :
29552 withval=$with_lcms2; with_lcms2=$withval
29553else
29554 with_lcms2='yes'
29555fi
29556
29557if test "$with_lcms2" != 'yes' ; then
29558 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29559fi
29560
29561have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029562LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029563if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029565$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29567$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029569$as_echo "" >&6; }
29570 failed=0
29571 passed=0
29572 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029573
29574 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029575 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029576if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029577 have_lcms_header='yes'
29578fi
29579
29580
29581 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029582
29583$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29584
cristy71203402010-06-18 13:12:03 +000029585 passed=`expr $passed + 1`
29586 fi
29587
29588 # Check for <lcms2/lcms2.h)
29589 if test "$have_lcms_header" != 'yes'; then
29590 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 +000029591if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029592 have_lcms_header='yes'
29593fi
29594
29595
cristy71203402010-06-18 13:12:03 +000029596 if test "$have_lcms_header" = 'yes'; then
29597 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029598
cristy71203402010-06-18 13:12:03 +000029599$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029600
cristy71203402010-06-18 13:12:03 +000029601 fi
cristyd09bcf92010-03-25 03:04:45 +000029602 fi
cristy71203402010-06-18 13:12:03 +000029603
29604 # Failed to find lcms header?
29605 if test "$have_lcms_header" != 'yes'; then
29606 failed=`expr $failed + 1`
29607 fi
29608
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29610$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029611if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029612 $as_echo_n "(cached) " >&6
29613else
29614 ac_check_lib_save_LIBS=$LIBS
29615LIBS="-llcms2 $LIBS"
29616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29617/* end confdefs.h. */
29618
29619/* Override any GCC internal prototype to avoid an error.
29620 Use char because int might match the return type of a GCC
29621 builtin and then its argument prototype would still apply. */
29622#ifdef __cplusplus
29623extern "C"
29624#endif
cristy71203402010-06-18 13:12:03 +000029625char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029626int
29627main ()
29628{
cristy71203402010-06-18 13:12:03 +000029629return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029630 ;
29631 return 0;
29632}
29633_ACEOF
29634if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029635 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029636else
cristy71203402010-06-18 13:12:03 +000029637 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029638fi
29639rm -f core conftest.err conftest.$ac_objext \
29640 conftest$ac_exeext conftest.$ac_ext
29641LIBS=$ac_check_lib_save_LIBS
29642fi
cristy71203402010-06-18 13:12:03 +000029643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29644$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029645if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029646 passed=`expr $passed + 1`
29647else
29648 failed=`expr $failed + 1`
29649fi
29650
cristy71203402010-06-18 13:12:03 +000029651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29652$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029653 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029654 if test $failed -gt 0; then
29655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000029656$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029657 have_lcms2='no (failed tests)'
29658 else
29659 LCMS_LIBS='-llcms2'
29660 LIBS="$LCMS_LIBS $LIBS"
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000029662$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029663 have_lcms2='yes'
29664 fi
cristyd09bcf92010-03-25 03:04:45 +000029665 else
cristy71203402010-06-18 13:12:03 +000029666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000029667$as_echo "no" >&6; }
29668 fi
29669fi
29670
cristy71203402010-06-18 13:12:03 +000029671#
29672# Check for LCMS v1 (1.11 or later)
29673#
29674if test $have_lcms2 = 'yes'; then
29675 with_lcms='no'
29676fi
29677
29678have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029679if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000029680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29681$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29683$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29685$as_echo "" >&6; }
29686 failed=0
29687 passed=0
29688 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029689
29690 # Check for <lcms.h>
29691 if test "$have_lcms_header" != 'yes'; then
29692 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029693if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029694 have_lcms_header='yes'
29695fi
29696
29697
cristy71203402010-06-18 13:12:03 +000029698 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029699 passed=`expr $passed + 1`
29700
cristy8b350f62009-11-15 23:12:43 +000029701$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029702
cristy71203402010-06-18 13:12:03 +000029703 fi
29704 fi
29705
29706 # Check for <lcms/lcms.h>
29707 if test "$have_lcms_header" != 'yes'; then
29708 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 +000029709if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029710 have_lcms_header='yes'
29711fi
29712
29713
cristy71203402010-06-18 13:12:03 +000029714 if test "$have_lcms_header" = 'yes'; then
29715 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029716
cristy8b350f62009-11-15 23:12:43 +000029717$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029718
cristy71203402010-06-18 13:12:03 +000029719 fi
cristy3ed852e2009-09-05 21:47:34 +000029720 fi
cristy71203402010-06-18 13:12:03 +000029721
29722 # Failed to find lcms header?
29723 if test "$have_lcms_header" != 'yes'; then
29724 failed=`expr $failed + 1`
29725 fi
29726
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29728$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029729if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029730 $as_echo_n "(cached) " >&6
29731else
29732 ac_check_lib_save_LIBS=$LIBS
29733LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029735/* end confdefs.h. */
29736
29737/* Override any GCC internal prototype to avoid an error.
29738 Use char because int might match the return type of a GCC
29739 builtin and then its argument prototype would still apply. */
29740#ifdef __cplusplus
29741extern "C"
29742#endif
cristy71203402010-06-18 13:12:03 +000029743char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029744int
29745main ()
29746{
cristy71203402010-06-18 13:12:03 +000029747return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029748 ;
29749 return 0;
29750}
29751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029752if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029753 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029754else
cristy71203402010-06-18 13:12:03 +000029755 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029756fi
cristy8b350f62009-11-15 23:12:43 +000029757rm -f core conftest.err conftest.$ac_objext \
29758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029759LIBS=$ac_check_lib_save_LIBS
29760fi
cristy71203402010-06-18 13:12:03 +000029761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29762$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029763if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029764 passed=`expr $passed + 1`
29765else
29766 failed=`expr $failed + 1`
29767fi
29768
cristy8b350f62009-11-15 23:12:43 +000029769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029770$as_echo_n "checking if LCMS package is complete... " >&6; }
29771 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029772 if test $failed -gt 0; then
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029774$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029775 have_lcms='no (failed tests)'
29776 else
29777 LCMS_LIBS='-llcms'
29778 LIBS="$LCMS_LIBS $LIBS"
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029780$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029781 have_lcms='yes'
29782 fi
cristy3ed852e2009-09-05 21:47:34 +000029783 else
cristy71203402010-06-18 13:12:03 +000029784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029785$as_echo "no" >&6; }
29786 fi
29787fi
cristy71203402010-06-18 13:12:03 +000029788
cristy73bd4a52010-10-05 11:24:23 +000029789 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29790 LCMS_DELEGATE_TRUE=
29791 LCMS_DELEGATE_FALSE='#'
29792else
29793 LCMS_DELEGATE_TRUE='#'
29794 LCMS_DELEGATE_FALSE=
29795fi
29796
cristy71203402010-06-18 13:12:03 +000029797if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29798
29799$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29800
29801fi
29802
cristy3ed852e2009-09-05 21:47:34 +000029803
29804
29805
29806#
29807# Check for the LQR (Liquid Rescale) delegate library.
29808#
29809
29810# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029811if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029812 withval=$with_lqr; with_lqr=$withval
29813else
29814 with_lqr='yes'
29815fi
29816
29817
29818if test "$with_lqr" != 'yes'; then
29819 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29820fi
29821
29822have_lqr='no'
29823LQR_CFLAGS=""
29824LQR_LIBS=""
29825LQR_PKG=""
29826if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029828$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029829
29830pkg_failed=no
29831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29832$as_echo_n "checking for LQR... " >&6; }
29833
29834if test -n "$LQR_CFLAGS"; then
29835 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29836 elif test -n "$PKG_CONFIG"; then
29837 if test -n "$PKG_CONFIG" && \
29838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29839 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29840 ac_status=$?
29841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29842 test $ac_status = 0; }; then
29843 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29844else
29845 pkg_failed=yes
29846fi
29847 else
29848 pkg_failed=untried
29849fi
29850if test -n "$LQR_LIBS"; then
29851 pkg_cv_LQR_LIBS="$LQR_LIBS"
29852 elif test -n "$PKG_CONFIG"; then
29853 if test -n "$PKG_CONFIG" && \
29854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29855 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29856 ac_status=$?
29857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29858 test $ac_status = 0; }; then
29859 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29860else
29861 pkg_failed=yes
29862fi
29863 else
29864 pkg_failed=untried
29865fi
29866
29867
29868
29869if test $pkg_failed = yes; then
29870
29871if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29872 _pkg_short_errors_supported=yes
29873else
29874 _pkg_short_errors_supported=no
29875fi
29876 if test $_pkg_short_errors_supported = yes; then
29877 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29878 else
29879 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29880 fi
29881 # Put the nasty error message in config.log where it belongs
29882 echo "$LQR_PKG_ERRORS" >&5
29883
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29885$as_echo "no" >&6; }
29886 have_lqr=no
29887elif test $pkg_failed = untried; then
29888 have_lqr=no
29889else
29890 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29891 LQR_LIBS=$pkg_cv_LQR_LIBS
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29893$as_echo "yes" >&6; }
29894 have_lqr=yes
29895fi
cristy8b350f62009-11-15 23:12:43 +000029896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029897$as_echo "" >&6; }
29898fi
29899
29900if test "$have_lqr" = 'yes'; then
29901
cristy8b350f62009-11-15 23:12:43 +000029902$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029903
29904 CFLAGS="$LQR_CFLAGS $CFLAGS"
29905fi
29906
cristy73bd4a52010-10-05 11:24:23 +000029907 if test "$have_lqr" = 'yes'; then
29908 LQR_DELEGATE_TRUE=
29909 LQR_DELEGATE_FALSE='#'
29910else
29911 LQR_DELEGATE_TRUE='#'
29912 LQR_DELEGATE_FALSE=
29913fi
29914
cristy3ed852e2009-09-05 21:47:34 +000029915
29916
29917
29918
cristy81beccd2011-10-03 18:17:24 +000029919# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000029920
29921# Check whether --with-lzma was given.
29922if test "${with_lzma+set}" = set; then :
29923 withval=$with_lzma; with_lzma=$withval
29924else
29925 with_lzma='yes'
29926fi
29927
cristy81beccd2011-10-03 18:17:24 +000029928if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000029929 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29930fi
29931
cristy81beccd2011-10-03 18:17:24 +000029932#
29933# Check for LZMA
29934#
29935have_lzma='no'
29936LZMA_LIBS=''
29937if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000029938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29939$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000029941$as_echo_n "checking for LZMA... " >&6; }
cristy81beccd2011-10-03 18:17:24 +000029942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyfbb0ef02010-12-19 02:32:11 +000029943$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029944 failed=0
29945 passed=0
29946 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
29947if test "x$ac_cv_header_lzma_h" = xyes; then :
29948 passed=`expr $passed + 1`
29949else
29950 failed=`expr $failed + 1`
cristyfbb0ef02010-12-19 02:32:11 +000029951fi
29952
cristy81beccd2011-10-03 18:17:24 +000029953
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29955$as_echo_n "checking for lzma_code in -llzma... " >&6; }
29956if ${ac_cv_lib_lzma_lzma_code+:} false; then :
29957 $as_echo_n "(cached) " >&6
29958else
29959 ac_check_lib_save_LIBS=$LIBS
29960LIBS="-llzma $LIBS"
29961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29962/* end confdefs.h. */
29963
29964/* Override any GCC internal prototype to avoid an error.
29965 Use char because int might match the return type of a GCC
29966 builtin and then its argument prototype would still apply. */
29967#ifdef __cplusplus
29968extern "C"
29969#endif
29970char lzma_code ();
29971int
29972main ()
29973{
29974return lzma_code ();
29975 ;
29976 return 0;
29977}
29978_ACEOF
29979if ac_fn_c_try_link "$LINENO"; then :
29980 ac_cv_lib_lzma_lzma_code=yes
29981else
29982 ac_cv_lib_lzma_lzma_code=no
29983fi
29984rm -f core conftest.err conftest.$ac_objext \
29985 conftest$ac_exeext conftest.$ac_ext
29986LIBS=$ac_check_lib_save_LIBS
29987fi
29988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29989$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
29990if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
29991 passed=`expr $passed + 1`
29992else
29993 failed=`expr $failed + 1`
29994fi
29995
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29997$as_echo_n "checking if LZMA package is complete... " >&6; }
29998 if test $passed -gt 0; then
29999 if test $failed -gt 0; then
30000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30001$as_echo "no -- some components failed test" >&6; }
30002 have_lzma='no (failed tests)'
30003 else
30004 LZMA_LIBS='-llzma'
30005 LIBS="$LZMA_LIBS $LIBS"
cristyfbb0ef02010-12-19 02:32:11 +000030006
30007$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30008
cristy81beccd2011-10-03 18:17:24 +000030009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30010$as_echo "yes" >&6; }
30011 have_lzma='yes'
cristyfbb0ef02010-12-19 02:32:11 +000030012 fi
cristy81beccd2011-10-03 18:17:24 +000030013 else
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30015$as_echo "no" >&6; }
30016 fi
cristyfbb0ef02010-12-19 02:32:11 +000030017fi
30018 if test "$have_lzma" = 'yes'; then
30019 LZMA_DELEGATE_TRUE=
30020 LZMA_DELEGATE_FALSE='#'
30021else
30022 LZMA_DELEGATE_TRUE='#'
30023 LZMA_DELEGATE_FALSE=
30024fi
30025
30026
30027
30028
cristy3ed852e2009-09-05 21:47:34 +000030029#
30030# Check for the OpenEXR delegate library.
30031#
30032
30033# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030034if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030035 withval=$with_openexr; with_openexr=$withval
30036else
30037 with_openexr='yes'
30038fi
30039
30040
30041if test "$with_openexr" != 'yes'; then
30042 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30043fi
30044
30045have_openexr='no'
30046OPENEXR_CFLAGS=""
30047OPENEXR_LIBS=""
30048OPENEXR_PKG=""
30049if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000030050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030051$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030052
30053pkg_failed=no
30054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30055$as_echo_n "checking for OPENEXR... " >&6; }
30056
30057if test -n "$OPENEXR_CFLAGS"; then
30058 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30059 elif test -n "$PKG_CONFIG"; then
30060 if test -n "$PKG_CONFIG" && \
30061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30062 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30063 ac_status=$?
30064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30065 test $ac_status = 0; }; then
30066 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30067else
30068 pkg_failed=yes
30069fi
30070 else
30071 pkg_failed=untried
30072fi
30073if test -n "$OPENEXR_LIBS"; then
30074 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30075 elif test -n "$PKG_CONFIG"; then
30076 if test -n "$PKG_CONFIG" && \
30077 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30078 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30079 ac_status=$?
30080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30081 test $ac_status = 0; }; then
30082 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30083else
30084 pkg_failed=yes
30085fi
30086 else
30087 pkg_failed=untried
30088fi
30089
30090
30091
30092if test $pkg_failed = yes; then
30093
30094if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30095 _pkg_short_errors_supported=yes
30096else
30097 _pkg_short_errors_supported=no
30098fi
30099 if test $_pkg_short_errors_supported = yes; then
30100 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30101 else
30102 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30103 fi
30104 # Put the nasty error message in config.log where it belongs
30105 echo "$OPENEXR_PKG_ERRORS" >&5
30106
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30108$as_echo "no" >&6; }
30109 have_openexr=no
30110elif test $pkg_failed = untried; then
30111 have_openexr=no
30112else
30113 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30114 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30116$as_echo "yes" >&6; }
30117 have_openexr=yes
30118fi
cristy8b350f62009-11-15 23:12:43 +000030119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030120$as_echo "" >&6; }
30121fi
30122
30123if test "$have_openexr" = 'yes'; then
30124
cristy8b350f62009-11-15 23:12:43 +000030125$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030126
30127 if test "$with_modules" = 'no'; then
30128 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30129 fi
30130fi
30131
cristy73bd4a52010-10-05 11:24:23 +000030132 if test "$have_openexr" = 'yes'; then
30133 OPENEXR_DELEGATE_TRUE=
30134 OPENEXR_DELEGATE_FALSE='#'
30135else
30136 OPENEXR_DELEGATE_TRUE='#'
30137 OPENEXR_DELEGATE_FALSE=
30138fi
30139
cristy3ed852e2009-09-05 21:47:34 +000030140
30141
30142
30143
30144#
30145# Check for PNG delegate library.
30146#
30147
30148# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030149if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030150 withval=$with_png; with_png=$withval
30151else
30152 with_png='yes'
30153fi
30154
30155
30156if test "$with_png" != 'yes'; then
30157 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30158fi
30159
cristy81beccd2011-10-03 18:17:24 +000030160have_png='no'
30161PNG_LIBS=''
30162
30163if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
30164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030165$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30167$as_echo_n "checking for PNG support ... " >&6; }
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyf805afb2011-10-03 17:17:37 +000030169$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030170 failed=0
30171 passed=0
30172 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30173if test "x$ac_cv_header_png_h" = xyes; then :
30174 passed=`expr $passed + 1`
30175else
30176 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030177fi
30178
cristy81beccd2011-10-03 18:17:24 +000030179
30180
30181 if test $passed -gt 0; then
30182 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030183 if test "$have_png" = 'no' ; then
30184 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030185 pnglib='png'
30186 else
30187 pnglib="png1${var}"
30188 fi
30189
30190# Test for compatible LIBPNG library
30191 failed=0
30192 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030193 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030194 if test "${pnglib}" != 'png' ; then
30195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30196$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30198/* end confdefs.h. */
30199#include <stdio.h>
30200#include <stdlib.h>
30201#include <png.h>
30202
30203int
30204main ()
30205{
30206
30207#if PNG_LIBPNG_VER_MINOR != ${var}
30208#error LIBPNG library must be version 1${var}!
30209Kaboom, Kaboom
30210#endif
30211return 0;
30212
30213 ;
30214 return 0;
30215}
30216_ACEOF
30217if ac_fn_c_try_compile "$LINENO"; then :
30218 ac_cv_libpng_ok='yes'
30219else
30220 ac_cv_libpng_ok='no'
30221fi
30222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30223 if test "$ac_cv_libpng_ok" = 'yes' ; then
30224 passed=`expr $passed + 1`
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30226$as_echo "yes" >&6; }
30227 else
30228 failed=`expr $failed + 1`
30229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30230$as_echo "no" >&6; }
30231 fi
30232 else
30233 passed=`expr $passed + 1`
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30235$as_echo "yes" >&6; }
30236 fi
30237 fi
30238
30239 if test $passed -gt 0 -a $failed -le 0; then
30240 if test "1${var}" = '15' ; then
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30242$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30243if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30244 $as_echo_n "(cached) " >&6
30245else
30246 ac_check_lib_save_LIBS=$LIBS
30247LIBS="-lpng15 $LIBS"
30248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30249/* end confdefs.h. */
30250
30251/* Override any GCC internal prototype to avoid an error.
30252 Use char because int might match the return type of a GCC
30253 builtin and then its argument prototype would still apply. */
30254#ifdef __cplusplus
30255extern "C"
30256#endif
30257char png_get_io_ptr ();
30258int
30259main ()
30260{
30261return png_get_io_ptr ();
30262 ;
30263 return 0;
30264}
30265_ACEOF
30266if ac_fn_c_try_link "$LINENO"; then :
30267 ac_cv_lib_png15_png_get_io_ptr=yes
30268else
30269 ac_cv_lib_png15_png_get_io_ptr=no
30270fi
30271rm -f core conftest.err conftest.$ac_objext \
30272 conftest$ac_exeext conftest.$ac_ext
30273LIBS=$ac_check_lib_save_LIBS
30274fi
30275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30276$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30277if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30278 passed=`expr $passed + 1`
30279else
30280 failed=`expr $failed + 1`
30281fi
30282
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30284$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30285if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30286 $as_echo_n "(cached) " >&6
30287else
30288 ac_check_lib_save_LIBS=$LIBS
30289LIBS="-lpng15 $LIBS"
30290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30291/* end confdefs.h. */
30292
30293/* Override any GCC internal prototype to avoid an error.
30294 Use char because int might match the return type of a GCC
30295 builtin and then its argument prototype would still apply. */
30296#ifdef __cplusplus
30297extern "C"
30298#endif
30299char png_longjmp ();
30300int
30301main ()
30302{
30303return png_longjmp ();
30304 ;
30305 return 0;
30306}
30307_ACEOF
30308if ac_fn_c_try_link "$LINENO"; then :
30309 ac_cv_lib_png15_png_longjmp=yes
30310else
30311 ac_cv_lib_png15_png_longjmp=no
30312fi
30313rm -f core conftest.err conftest.$ac_objext \
30314 conftest$ac_exeext conftest.$ac_ext
30315LIBS=$ac_check_lib_save_LIBS
30316fi
30317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30318$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30319if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30320 passed=`expr $passed + 1`
30321else
30322 failed=`expr $failed + 1`
30323fi
30324
30325 fi
30326 if test "1${var}" = '14' ; then
30327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30328$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30329if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30330 $as_echo_n "(cached) " >&6
30331else
30332 ac_check_lib_save_LIBS=$LIBS
30333LIBS="-lpng14 $LIBS"
30334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30335/* end confdefs.h. */
30336
30337/* Override any GCC internal prototype to avoid an error.
30338 Use char because int might match the return type of a GCC
30339 builtin and then its argument prototype would still apply. */
30340#ifdef __cplusplus
30341extern "C"
30342#endif
30343char png_get_io_ptr ();
30344int
30345main ()
30346{
30347return png_get_io_ptr ();
30348 ;
30349 return 0;
30350}
30351_ACEOF
30352if ac_fn_c_try_link "$LINENO"; then :
30353 ac_cv_lib_png14_png_get_io_ptr=yes
30354else
30355 ac_cv_lib_png14_png_get_io_ptr=no
30356fi
30357rm -f core conftest.err conftest.$ac_objext \
30358 conftest$ac_exeext conftest.$ac_ext
30359LIBS=$ac_check_lib_save_LIBS
30360fi
30361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30362$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30363if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30364 passed=`expr $passed + 1`
30365else
30366 failed=`expr $failed + 1`
30367fi
30368
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30370$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30371if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30372 $as_echo_n "(cached) " >&6
30373else
30374 ac_check_lib_save_LIBS=$LIBS
30375LIBS="-lpng14 $LIBS"
30376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30377/* end confdefs.h. */
30378
30379/* Override any GCC internal prototype to avoid an error.
30380 Use char because int might match the return type of a GCC
30381 builtin and then its argument prototype would still apply. */
30382#ifdef __cplusplus
30383extern "C"
30384#endif
30385char png_get_io_state ();
30386int
30387main ()
30388{
30389return png_get_io_state ();
30390 ;
30391 return 0;
30392}
30393_ACEOF
30394if ac_fn_c_try_link "$LINENO"; then :
30395 ac_cv_lib_png14_png_get_io_state=yes
30396else
30397 ac_cv_lib_png14_png_get_io_state=no
30398fi
30399rm -f core conftest.err conftest.$ac_objext \
30400 conftest$ac_exeext conftest.$ac_ext
30401LIBS=$ac_check_lib_save_LIBS
30402fi
30403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30404$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30405if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30406 passed=`expr $passed + 1`
30407else
30408 failed=`expr $failed + 1`
30409fi
30410
30411 fi
30412 if test "1${var}" = '12' ; then
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30414$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30415if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30416 $as_echo_n "(cached) " >&6
30417else
30418 ac_check_lib_save_LIBS=$LIBS
30419LIBS="-lpng12 $LIBS"
30420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30421/* end confdefs.h. */
30422
30423/* Override any GCC internal prototype to avoid an error.
30424 Use char because int might match the return type of a GCC
30425 builtin and then its argument prototype would still apply. */
30426#ifdef __cplusplus
30427extern "C"
30428#endif
30429char png_get_io_ptr ();
30430int
30431main ()
30432{
30433return png_get_io_ptr ();
30434 ;
30435 return 0;
30436}
30437_ACEOF
30438if ac_fn_c_try_link "$LINENO"; then :
30439 ac_cv_lib_png12_png_get_io_ptr=yes
30440else
30441 ac_cv_lib_png12_png_get_io_ptr=no
30442fi
30443rm -f core conftest.err conftest.$ac_objext \
30444 conftest$ac_exeext conftest.$ac_ext
30445LIBS=$ac_check_lib_save_LIBS
30446fi
30447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30448$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30449if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30450 passed=`expr $passed + 1`
30451else
30452 failed=`expr $failed + 1`
30453fi
30454
30455 fi
30456 if test "1${var}" = '1' ; then
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30458$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30459if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30460 $as_echo_n "(cached) " >&6
30461else
30462 ac_check_lib_save_LIBS=$LIBS
30463LIBS="-lpng $LIBS"
30464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30465/* end confdefs.h. */
30466
30467/* Override any GCC internal prototype to avoid an error.
30468 Use char because int might match the return type of a GCC
30469 builtin and then its argument prototype would still apply. */
30470#ifdef __cplusplus
30471extern "C"
30472#endif
30473char png_get_io_ptr ();
30474int
30475main ()
30476{
30477return png_get_io_ptr ();
30478 ;
30479 return 0;
30480}
30481_ACEOF
30482if ac_fn_c_try_link "$LINENO"; then :
30483 ac_cv_lib_png_png_get_io_ptr=yes
30484else
30485 ac_cv_lib_png_png_get_io_ptr=no
30486fi
30487rm -f core conftest.err conftest.$ac_objext \
30488 conftest$ac_exeext conftest.$ac_ext
30489LIBS=$ac_check_lib_save_LIBS
30490fi
30491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30492$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30493if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30494 passed=`expr $passed + 1`
30495else
30496 failed=`expr $failed + 1`
30497fi
30498
30499 fi
30500 if test $passed -gt 0 -a $failed -le 0 ; then
30501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30502$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30503 if test $passed -gt 0 ; then
30504 if test $failed -gt 0 ; then
30505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30506$as_echo "no -- some components failed test" >&6; }
30507 have_png='no (failed tests)'
30508 else
30509 PNG_LIBS="-l${pnglib}"
30510 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030511
cristy8b350f62009-11-15 23:12:43 +000030512$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030513
cristy81beccd2011-10-03 18:17:24 +000030514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30515$as_echo "yes" >&6; }
30516 have_png='yes'
30517 fi
30518 fi
30519 fi
30520 fi
30521 fi
30522 done
30523 fi
cristy3ed852e2009-09-05 21:47:34 +000030524fi
cristy64877302011-08-23 19:10:31 +000030525
cristy73bd4a52010-10-05 11:24:23 +000030526 if test "$have_png" = 'yes'; then
30527 PNG_DELEGATE_TRUE=
30528 PNG_DELEGATE_FALSE='#'
30529else
30530 PNG_DELEGATE_TRUE='#'
30531 PNG_DELEGATE_FALSE=
30532fi
30533
cristy3ed852e2009-09-05 21:47:34 +000030534
cristy50d3f5c2011-09-10 20:09:06 +000030535
cristy3ed852e2009-09-05 21:47:34 +000030536
30537
30538#
30539# Check for RSVG delegate library.
30540#
30541
30542# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030543if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030544 withval=$with_rsvg; with_rsvg=$withval
30545else
30546 with_rsvg=$have_x
30547fi
30548
30549
30550if test "$with_rsvg" != 'yes'; then
30551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30552fi
30553
30554have_rsvg='no'
30555have_cairo='no'
30556RSVG_CFLAGS=""
30557RSVG_LIBS=""
30558RSVG_PKG=""
30559if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000030560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030561$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030562
30563pkg_failed=no
30564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30565$as_echo_n "checking for RSVG... " >&6; }
30566
30567if test -n "$RSVG_CFLAGS"; then
30568 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30569 elif test -n "$PKG_CONFIG"; then
30570 if test -n "$PKG_CONFIG" && \
30571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30572 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30573 ac_status=$?
30574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30575 test $ac_status = 0; }; then
30576 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30577else
30578 pkg_failed=yes
30579fi
30580 else
30581 pkg_failed=untried
30582fi
30583if test -n "$RSVG_LIBS"; then
30584 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30585 elif test -n "$PKG_CONFIG"; then
30586 if test -n "$PKG_CONFIG" && \
30587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30588 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30589 ac_status=$?
30590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30591 test $ac_status = 0; }; then
30592 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30593else
30594 pkg_failed=yes
30595fi
30596 else
30597 pkg_failed=untried
30598fi
30599
30600
30601
30602if test $pkg_failed = yes; then
30603
30604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30605 _pkg_short_errors_supported=yes
30606else
30607 _pkg_short_errors_supported=no
30608fi
30609 if test $_pkg_short_errors_supported = yes; then
30610 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30611 else
30612 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30613 fi
30614 # Put the nasty error message in config.log where it belongs
30615 echo "$RSVG_PKG_ERRORS" >&5
30616
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30618$as_echo "no" >&6; }
30619 have_rsvg=no
30620elif test $pkg_failed = untried; then
30621 have_rsvg=no
30622else
30623 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30624 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30626$as_echo "yes" >&6; }
30627 have_rsvg=yes
30628fi
cristy8b350f62009-11-15 23:12:43 +000030629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030630$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030631
30632pkg_failed=no
30633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30634$as_echo_n "checking for CAIRO_SVG... " >&6; }
30635
30636if test -n "$CAIRO_SVG_CFLAGS"; then
30637 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30638 elif test -n "$PKG_CONFIG"; then
30639 if test -n "$PKG_CONFIG" && \
30640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30641 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30642 ac_status=$?
30643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30644 test $ac_status = 0; }; then
30645 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30646else
30647 pkg_failed=yes
30648fi
30649 else
30650 pkg_failed=untried
30651fi
30652if test -n "$CAIRO_SVG_LIBS"; then
30653 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30654 elif test -n "$PKG_CONFIG"; then
30655 if test -n "$PKG_CONFIG" && \
30656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30657 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30658 ac_status=$?
30659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30660 test $ac_status = 0; }; then
30661 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30662else
30663 pkg_failed=yes
30664fi
30665 else
30666 pkg_failed=untried
30667fi
30668
30669
30670
30671if test $pkg_failed = yes; then
30672
30673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30674 _pkg_short_errors_supported=yes
30675else
30676 _pkg_short_errors_supported=no
30677fi
30678 if test $_pkg_short_errors_supported = yes; then
30679 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30680 else
30681 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30682 fi
30683 # Put the nasty error message in config.log where it belongs
30684 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30685
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30687$as_echo "no" >&6; }
30688 have_cairo=no
30689elif test $pkg_failed = untried; then
30690 have_cairo=no
30691else
30692 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30693 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30695$as_echo "yes" >&6; }
30696 have_cairo=yes
30697fi
cristy8b350f62009-11-15 23:12:43 +000030698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030699$as_echo "" >&6; }
30700fi
30701
30702if test "$have_rsvg" = 'yes'; then
30703
cristy8b350f62009-11-15 23:12:43 +000030704$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030705
30706 if test "$with_modules" = 'no'; then
30707 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30708 fi
30709fi
30710
30711if test "$have_cairo" = 'yes'; then
30712
cristy8b350f62009-11-15 23:12:43 +000030713$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030714
30715 if test "$with_modules" = 'no'; then
30716 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30717 fi
30718fi
30719
cristy73bd4a52010-10-05 11:24:23 +000030720 if test "$have_rsvg" = 'yes'; then
30721 RSVG_DELEGATE_TRUE=
30722 RSVG_DELEGATE_FALSE='#'
30723else
30724 RSVG_DELEGATE_TRUE='#'
30725 RSVG_DELEGATE_FALSE=
30726fi
30727
30728 if test "$have_cairo" = 'yes'; then
30729 CAIRO_DELEGATE_TRUE=
30730 CAIRO_DELEGATE_FALSE='#'
30731else
30732 CAIRO_DELEGATE_TRUE='#'
30733 CAIRO_DELEGATE_FALSE=
30734fi
30735
cristy3ed852e2009-09-05 21:47:34 +000030736
30737
30738
30739
30740#
30741# Check for TIFF delegate library.
30742#
30743
30744# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030745if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030746 withval=$with_tiff; with_tiff=$withval
30747else
30748 with_tiff='yes'
30749fi
30750
30751
30752if test "$with_tiff" != 'yes'; then
30753 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30754fi
30755
30756have_tiff='no'
30757TIFF_LIBS=''
30758if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030760$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030762$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030764$as_echo "" >&6; }
30765 failed=0
30766 passed=0
cristy8b350f62009-11-15 23:12:43 +000030767 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030768if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030769 passed=`expr $passed + 1`
30770else
30771 failed=`expr $failed + 1`
30772fi
30773
30774
cristy8b350f62009-11-15 23:12:43 +000030775 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030776if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030777 passed=`expr $passed + 1`
30778else
30779 failed=`expr $failed + 1`
30780fi
30781
30782
cristy8b350f62009-11-15 23:12:43 +000030783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030784$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030785if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030786 $as_echo_n "(cached) " >&6
30787else
30788 ac_check_lib_save_LIBS=$LIBS
30789LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030791/* end confdefs.h. */
30792
30793/* Override any GCC internal prototype to avoid an error.
30794 Use char because int might match the return type of a GCC
30795 builtin and then its argument prototype would still apply. */
30796#ifdef __cplusplus
30797extern "C"
30798#endif
30799char TIFFOpen ();
30800int
30801main ()
30802{
30803return TIFFOpen ();
30804 ;
30805 return 0;
30806}
30807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030808if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030809 ac_cv_lib_tiff_TIFFOpen=yes
30810else
cristy8b350f62009-11-15 23:12:43 +000030811 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030812fi
cristy8b350f62009-11-15 23:12:43 +000030813rm -f core conftest.err conftest.$ac_objext \
30814 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030815LIBS=$ac_check_lib_save_LIBS
30816fi
cristy8b350f62009-11-15 23:12:43 +000030817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030818$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030819if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030820 passed=`expr $passed + 1`
30821else
30822 failed=`expr $failed + 1`
30823fi
30824
cristy8b350f62009-11-15 23:12:43 +000030825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030826$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030827if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030828 $as_echo_n "(cached) " >&6
30829else
30830 ac_check_lib_save_LIBS=$LIBS
30831LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030833/* end confdefs.h. */
30834
30835/* Override any GCC internal prototype to avoid an error.
30836 Use char because int might match the return type of a GCC
30837 builtin and then its argument prototype would still apply. */
30838#ifdef __cplusplus
30839extern "C"
30840#endif
30841char TIFFClientOpen ();
30842int
30843main ()
30844{
30845return TIFFClientOpen ();
30846 ;
30847 return 0;
30848}
30849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030850if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030851 ac_cv_lib_tiff_TIFFClientOpen=yes
30852else
cristy8b350f62009-11-15 23:12:43 +000030853 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030854fi
cristy8b350f62009-11-15 23:12:43 +000030855rm -f core conftest.err conftest.$ac_objext \
30856 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030857LIBS=$ac_check_lib_save_LIBS
30858fi
cristy8b350f62009-11-15 23:12:43 +000030859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030860$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030861if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030862 passed=`expr $passed + 1`
30863else
30864 failed=`expr $failed + 1`
30865fi
30866
cristyb97f1002010-07-26 14:02:57 +000030867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30868$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030869if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000030870 $as_echo_n "(cached) " >&6
30871else
30872 ac_check_lib_save_LIBS=$LIBS
30873LIBS="-ltiff $LIBS"
30874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30875/* end confdefs.h. */
30876
30877/* Override any GCC internal prototype to avoid an error.
30878 Use char because int might match the return type of a GCC
30879 builtin and then its argument prototype would still apply. */
30880#ifdef __cplusplus
30881extern "C"
30882#endif
30883char TIFFIsBigEndian ();
30884int
30885main ()
30886{
30887return TIFFIsBigEndian ();
30888 ;
30889 return 0;
30890}
30891_ACEOF
30892if ac_fn_c_try_link "$LINENO"; then :
30893 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30894else
30895 ac_cv_lib_tiff_TIFFIsBigEndian=no
30896fi
30897rm -f core conftest.err conftest.$ac_objext \
30898 conftest$ac_exeext conftest.$ac_ext
30899LIBS=$ac_check_lib_save_LIBS
30900fi
30901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30902$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000030903if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000030904 passed=`expr $passed + 1`
30905else
30906 failed=`expr $failed + 1`
30907fi
30908
cristy8b350f62009-11-15 23:12:43 +000030909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030910$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030911if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030912 $as_echo_n "(cached) " >&6
30913else
30914 ac_check_lib_save_LIBS=$LIBS
30915LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030917/* end confdefs.h. */
30918
30919/* Override any GCC internal prototype to avoid an error.
30920 Use char because int might match the return type of a GCC
30921 builtin and then its argument prototype would still apply. */
30922#ifdef __cplusplus
30923extern "C"
30924#endif
30925char TIFFIsByteSwapped ();
30926int
30927main ()
30928{
30929return TIFFIsByteSwapped ();
30930 ;
30931 return 0;
30932}
30933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030934if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030935 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30936else
cristy8b350f62009-11-15 23:12:43 +000030937 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000030938fi
cristy8b350f62009-11-15 23:12:43 +000030939rm -f core conftest.err conftest.$ac_objext \
30940 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030941LIBS=$ac_check_lib_save_LIBS
30942fi
cristy8b350f62009-11-15 23:12:43 +000030943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000030944$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000030945if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030946 passed=`expr $passed + 1`
30947else
30948 failed=`expr $failed + 1`
30949fi
30950
cristy8b350f62009-11-15 23:12:43 +000030951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030952$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030953if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030954 $as_echo_n "(cached) " >&6
30955else
30956 ac_check_lib_save_LIBS=$LIBS
30957LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030959/* end confdefs.h. */
30960
30961/* Override any GCC internal prototype to avoid an error.
30962 Use char because int might match the return type of a GCC
30963 builtin and then its argument prototype would still apply. */
30964#ifdef __cplusplus
30965extern "C"
30966#endif
30967char TIFFReadRGBATile ();
30968int
30969main ()
30970{
30971return TIFFReadRGBATile ();
30972 ;
30973 return 0;
30974}
30975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030976if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030977 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30978else
cristy8b350f62009-11-15 23:12:43 +000030979 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000030980fi
cristy8b350f62009-11-15 23:12:43 +000030981rm -f core conftest.err conftest.$ac_objext \
30982 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030983LIBS=$ac_check_lib_save_LIBS
30984fi
cristy8b350f62009-11-15 23:12:43 +000030985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000030986$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000030987if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030988 passed=`expr $passed + 1`
30989else
30990 failed=`expr $failed + 1`
30991fi
30992
cristy8b350f62009-11-15 23:12:43 +000030993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030994$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030995if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030996 $as_echo_n "(cached) " >&6
30997else
30998 ac_check_lib_save_LIBS=$LIBS
30999LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031001/* end confdefs.h. */
31002
31003/* Override any GCC internal prototype to avoid an error.
31004 Use char because int might match the return type of a GCC
31005 builtin and then its argument prototype would still apply. */
31006#ifdef __cplusplus
31007extern "C"
31008#endif
31009char TIFFReadRGBAStrip ();
31010int
31011main ()
31012{
31013return TIFFReadRGBAStrip ();
31014 ;
31015 return 0;
31016}
31017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031018if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031019 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31020else
cristy8b350f62009-11-15 23:12:43 +000031021 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031022fi
cristy8b350f62009-11-15 23:12:43 +000031023rm -f core conftest.err conftest.$ac_objext \
31024 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031025LIBS=$ac_check_lib_save_LIBS
31026fi
cristy8b350f62009-11-15 23:12:43 +000031027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031028$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031029if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031030 passed=`expr $passed + 1`
31031else
31032 failed=`expr $failed + 1`
31033fi
31034
cristy8b350f62009-11-15 23:12:43 +000031035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031036$as_echo_n "checking if TIFF package is complete... " >&6; }
31037 if test $passed -gt 0; then
31038 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000031039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000031040$as_echo "no -- some components failed test" >&6; }
31041 have_tiff='no (failed tests)'
31042 else
31043 TIFF_LIBS='-ltiff'
31044 LIBS="$TIFF_LIBS $LIBS"
31045
cristy8b350f62009-11-15 23:12:43 +000031046$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031047
cristy8b350f62009-11-15 23:12:43 +000031048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000031049$as_echo "yes" >&6; }
31050 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031051 for ac_header in tiffconf.h
31052do :
31053 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031054if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031055 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031056#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031057_ACEOF
31058
31059fi
31060
31061done
31062
cristy8b350f62009-11-15 23:12:43 +000031063 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000031064 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31065 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031066do :
31067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31068ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031069if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031070 cat >>confdefs.h <<_ACEOF
31071#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31072_ACEOF
31073
31074fi
31075done
31076
31077 fi
31078 else
cristy8b350f62009-11-15 23:12:43 +000031079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031080$as_echo "no" >&6; }
31081 fi
31082fi
cristy73bd4a52010-10-05 11:24:23 +000031083 if test "$have_tiff" = 'yes'; then
31084 TIFF_DELEGATE_TRUE=
31085 TIFF_DELEGATE_FALSE='#'
31086else
31087 TIFF_DELEGATE_TRUE='#'
31088 TIFF_DELEGATE_FALSE=
31089fi
31090
cristy3ed852e2009-09-05 21:47:34 +000031091
31092
31093
31094#
cristyb1860752011-03-14 00:27:46 +000031095# Check for WEBP delegate library.
31096#
31097
31098# Check whether --with-webp was given.
31099if test "${with_webp+set}" = set; then :
31100 withval=$with_webp; with_webp=$withval
31101else
31102 with_webp='yes'
31103fi
31104
31105
31106if test "$with_webp" != 'yes'; then
31107 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31108fi
31109
31110have_webp='no'
31111WEBP_LIBS=''
31112if test "$with_webp" != 'no'; then
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31114$as_echo "-------------------------------------------------------------" >&6; }
31115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31116$as_echo_n "checking for WEBP... " >&6; }
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31118$as_echo "" >&6; }
31119 failed=0
31120 passed=0
31121 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31122if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31123 passed=`expr $passed + 1`
31124else
31125 failed=`expr $failed + 1`
31126fi
31127
31128
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31130$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31131if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31132 $as_echo_n "(cached) " >&6
31133else
31134 ac_check_lib_save_LIBS=$LIBS
31135LIBS="-lwebp $LIBS"
31136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31137/* end confdefs.h. */
31138
31139/* Override any GCC internal prototype to avoid an error.
31140 Use char because int might match the return type of a GCC
31141 builtin and then its argument prototype would still apply. */
31142#ifdef __cplusplus
31143extern "C"
31144#endif
31145char WebPDecodeRGB ();
31146int
31147main ()
31148{
31149return WebPDecodeRGB ();
31150 ;
31151 return 0;
31152}
31153_ACEOF
31154if ac_fn_c_try_link "$LINENO"; then :
31155 ac_cv_lib_webp_WebPDecodeRGB=yes
31156else
31157 ac_cv_lib_webp_WebPDecodeRGB=no
31158fi
31159rm -f core conftest.err conftest.$ac_objext \
31160 conftest$ac_exeext conftest.$ac_ext
31161LIBS=$ac_check_lib_save_LIBS
31162fi
31163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31164$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31165if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31166 passed=`expr $passed + 1`
31167else
31168 failed=`expr $failed + 1`
31169fi
31170
31171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31172$as_echo_n "checking if WEBP package is complete... " >&6; }
31173 if test $passed -gt 0; then
31174 if test $failed -gt 0; then
31175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31176$as_echo "no -- some components failed test" >&6; }
31177 have_webp='no (failed tests)'
31178 else
31179 WEBP_LIBS='-lwebp'
31180 LIBS="$WEBP_LIBS $LIBS"
31181
31182$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31183
31184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31185$as_echo "yes" >&6; }
31186 have_webp='yes'
31187 fi
31188 else
31189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31190$as_echo "no" >&6; }
31191 fi
31192fi
31193 if test "$have_webp" = 'yes'; then
31194 WEBP_DELEGATE_TRUE=
31195 WEBP_DELEGATE_FALSE='#'
31196else
31197 WEBP_DELEGATE_TRUE='#'
31198 WEBP_DELEGATE_FALSE=
31199fi
31200
31201
31202
31203
31204#
cristy3ed852e2009-09-05 21:47:34 +000031205# Set Windows font directory.
31206#
31207
31208# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031209if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031210 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31211else
31212 with_windows_font_dir=''
31213fi
31214
31215if test "$with_windows_font_dir" != '' ; then
31216 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31217fi
31218
31219
31220#
31221# Check for WMF delegate library.
31222#
31223
31224# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031225if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031226 withval=$with_wmf; with_wmf=$withval
31227else
cristy8d63d1d2010-01-06 20:38:37 +000031228 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031229fi
31230
31231
31232if test "$with_wmf" != 'yes'; then
31233 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31234fi
31235
31236have_wmf='no'
31237WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031238if test "$with_wmf" != 'no'; then
glennrp33e524b2011-08-24 17:41:57 +000031239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031240$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031242$as_echo_n "checking for WMF... " >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031244$as_echo "" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031245 failed=0
31246 passed=0
31247 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31248if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31249 passed=`expr $passed + 1`
31250else
31251 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031252fi
31253
31254
glennrp33e524b2011-08-24 17:41:57 +000031255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31256$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31257if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031258 $as_echo_n "(cached) " >&6
31259else
31260 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031261LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031263/* end confdefs.h. */
31264
31265/* Override any GCC internal prototype to avoid an error.
31266 Use char because int might match the return type of a GCC
31267 builtin and then its argument prototype would still apply. */
31268#ifdef __cplusplus
31269extern "C"
31270#endif
glennrp33e524b2011-08-24 17:41:57 +000031271char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031272int
31273main ()
31274{
glennrp33e524b2011-08-24 17:41:57 +000031275return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031276 ;
31277 return 0;
31278}
31279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031280if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031281 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031282else
glennrp33e524b2011-08-24 17:41:57 +000031283 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031284fi
cristy8b350f62009-11-15 23:12:43 +000031285rm -f core conftest.err conftest.$ac_objext \
31286 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031287LIBS=$ac_check_lib_save_LIBS
31288fi
glennrp33e524b2011-08-24 17:41:57 +000031289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31290$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31291if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31292 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031293else
glennrp33e524b2011-08-24 17:41:57 +000031294 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031295fi
31296
glennrp33e524b2011-08-24 17:41:57 +000031297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31298$as_echo_n "checking if WMF package is complete... " >&6; }
31299 if test $passed -gt 0; then
31300 if test $failed -gt 0; then
31301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31302$as_echo "no -- some components failed test" >&6; }
31303 have_wmf='no (failed tests)'
31304 else
31305 WMF_LIBS='-lwmf -lwmflite'
31306 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031307
cristy8b350f62009-11-15 23:12:43 +000031308$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031309
glennrp33e524b2011-08-24 17:41:57 +000031310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy9243a2d2011-08-22 17:32:32 +000031311$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031312 have_wmf='yes'
31313 fi
31314 else
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy9243a2d2011-08-22 17:32:32 +000031316$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031317 fi
cristy3ed852e2009-09-05 21:47:34 +000031318fi
cristy73bd4a52010-10-05 11:24:23 +000031319 if test "$have_wmf" = 'yes'; then
31320 WMF_DELEGATE_TRUE=
31321 WMF_DELEGATE_FALSE='#'
31322else
31323 WMF_DELEGATE_TRUE='#'
31324 WMF_DELEGATE_FALSE=
31325fi
31326
cristy3ed852e2009-09-05 21:47:34 +000031327
31328
31329
cristy81beccd2011-10-03 18:17:24 +000031330
31331
cristy3ed852e2009-09-05 21:47:34 +000031332#
31333# Check for XML delegate library.
31334#
31335
31336# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031337if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031338 withval=$with_xml; with_xml=$withval
31339else
cristy81beccd2011-10-03 18:17:24 +000031340 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031341fi
31342
31343
cristy81beccd2011-10-03 18:17:24 +000031344if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31346fi
31347
cristy81beccd2011-10-03 18:17:24 +000031348have_xml='no'
31349XML_LIBS=''
31350if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031352$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31354$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031356$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031357 PERSIST_LDFLAGS=$LDFLAGS
31358 PERSIST_CPPFLAGS=$CPPFLAGS
31359 xml2_config=''
31360 # Extract the first word of "xml2-config", so it can be a program name with args.
31361set dummy xml2-config; ac_word=$2
31362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31363$as_echo_n "checking for $ac_word... " >&6; }
31364if ${ac_cv_path_xml2_config+:} false; then :
31365 $as_echo_n "(cached) " >&6
31366else
31367 case $xml2_config in
31368 [\\/]* | ?:[\\/]*)
31369 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31370 ;;
31371 *)
31372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31373for as_dir in $PATH
31374do
31375 IFS=$as_save_IFS
31376 test -z "$as_dir" && as_dir=.
31377 for ac_exec_ext in '' $ac_executable_extensions; do
31378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31379 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31381 break 2
31382 fi
31383done
31384 done
31385IFS=$as_save_IFS
31386
31387 ;;
31388esac
31389fi
31390xml2_config=$ac_cv_path_xml2_config
31391if test -n "$xml2_config"; then
31392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31393$as_echo "$xml2_config" >&6; }
31394else
31395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31396$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031397fi
31398
cristy81beccd2011-10-03 18:17:24 +000031399 if test -n "$xml2_config"; then
31400 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31401 # the shared library installed under /usr/lib, whereas the package
31402 # installs itself under $prefix/libxml and $prefix/lib.
31403 xml2_prefix=`xml2-config --prefix`
31404 if test -d "${xml2_prefix}/include/libxml2"; then
31405 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31406 fi
31407 if test "${xml2_prefix}" != '/usr'; then
31408 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31409 fi
31410 fi
31411 failed=0
31412 passed=0
31413 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31414if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31415 passed=`expr $passed + 1`
31416else
31417 failed=`expr $failed + 1`
31418fi
31419
31420
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31422$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31423if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31424 $as_echo_n "(cached) " >&6
31425else
31426 ac_check_lib_save_LIBS=$LIBS
31427LIBS="-lxml2 $LIBS"
31428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31429/* end confdefs.h. */
31430
31431/* Override any GCC internal prototype to avoid an error.
31432 Use char because int might match the return type of a GCC
31433 builtin and then its argument prototype would still apply. */
31434#ifdef __cplusplus
31435extern "C"
31436#endif
31437char xmlSAXVersion ();
31438int
31439main ()
31440{
31441return xmlSAXVersion ();
31442 ;
31443 return 0;
31444}
31445_ACEOF
31446if ac_fn_c_try_link "$LINENO"; then :
31447 ac_cv_lib_xml2_xmlSAXVersion=yes
31448else
31449 ac_cv_lib_xml2_xmlSAXVersion=no
31450fi
31451rm -f core conftest.err conftest.$ac_objext \
31452 conftest$ac_exeext conftest.$ac_ext
31453LIBS=$ac_check_lib_save_LIBS
31454fi
31455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31456$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31457if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31458 passed=`expr $passed + 1`
31459else
31460 failed=`expr $failed + 1`
31461fi
31462
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31464$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31465if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31466 $as_echo_n "(cached) " >&6
31467else
31468 ac_check_lib_save_LIBS=$LIBS
31469LIBS="-lxml2 $LIBS"
31470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31471/* end confdefs.h. */
31472
31473/* Override any GCC internal prototype to avoid an error.
31474 Use char because int might match the return type of a GCC
31475 builtin and then its argument prototype would still apply. */
31476#ifdef __cplusplus
31477extern "C"
31478#endif
31479char xmlParseChunk ();
31480int
31481main ()
31482{
31483return xmlParseChunk ();
31484 ;
31485 return 0;
31486}
31487_ACEOF
31488if ac_fn_c_try_link "$LINENO"; then :
31489 ac_cv_lib_xml2_xmlParseChunk=yes
31490else
31491 ac_cv_lib_xml2_xmlParseChunk=no
31492fi
31493rm -f core conftest.err conftest.$ac_objext \
31494 conftest$ac_exeext conftest.$ac_ext
31495LIBS=$ac_check_lib_save_LIBS
31496fi
31497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31498$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31499if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31500 passed=`expr $passed + 1`
31501else
31502 failed=`expr $failed + 1`
31503fi
31504
31505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31506$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31507if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31508 $as_echo_n "(cached) " >&6
31509else
31510 ac_check_lib_save_LIBS=$LIBS
31511LIBS="-lxml2 $LIBS"
31512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31513/* end confdefs.h. */
31514
31515/* Override any GCC internal prototype to avoid an error.
31516 Use char because int might match the return type of a GCC
31517 builtin and then its argument prototype would still apply. */
31518#ifdef __cplusplus
31519extern "C"
31520#endif
31521char xmlCreatePushParserCtxt ();
31522int
31523main ()
31524{
31525return xmlCreatePushParserCtxt ();
31526 ;
31527 return 0;
31528}
31529_ACEOF
31530if ac_fn_c_try_link "$LINENO"; then :
31531 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31532else
31533 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31534fi
31535rm -f core conftest.err conftest.$ac_objext \
31536 conftest$ac_exeext conftest.$ac_ext
31537LIBS=$ac_check_lib_save_LIBS
31538fi
31539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31540$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31541if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31542 passed=`expr $passed + 1`
31543else
31544 failed=`expr $failed + 1`
31545fi
31546
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31548$as_echo_n "checking if XML package is complete... " >&6; }
31549 if test $passed -gt 0; then
31550 if test $failed -gt 0; then
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31552$as_echo "no -- some components failed test" >&6; }
31553 have_xml='no (failed tests)'
31554 LDFLAGS="$PERSIST_LDFLAGS"
31555 CPPFLAGS="$PERSIST_CPPFLAGS"
31556 else
31557 XML_LIBS='-lxml2'
31558 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031559
cristy8b350f62009-11-15 23:12:43 +000031560$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031561
cristy81beccd2011-10-03 18:17:24 +000031562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31563$as_echo "yes" >&6; }
31564 have_xml='yes'
31565 fi
31566 else
31567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31568$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031569 fi
31570fi
cristy73bd4a52010-10-05 11:24:23 +000031571 if test "$have_xml" = 'yes'; then
31572 XML_DELEGATE_TRUE=
31573 XML_DELEGATE_FALSE='#'
31574else
31575 XML_DELEGATE_TRUE='#'
31576 XML_DELEGATE_FALSE=
31577fi
31578
cristy3ed852e2009-09-05 21:47:34 +000031579
31580
31581
31582# Substitute compiler name to build/link PerlMagick
31583#
31584
31585
31586#
31587# Configure install Paths
31588#
31589
31590# Subdirectory under lib to place ImageMagick lib files
31591LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31592
31593cat >>confdefs.h <<_ACEOF
31594#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31595_ACEOF
31596
31597
31598# Path to ImageMagick bin directory
31599EXECUTABLE_PATH="${BIN_DIR}"
31600DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31601case "${build_os}" in
31602 mingw* )
31603 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31604 ;;
31605esac
31606
31607cat >>confdefs.h <<_ACEOF
31608#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31609_ACEOF
31610
31611
31612
31613# Path to ImageMagick lib
31614LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31615DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31616case "${build_os}" in
31617 mingw* )
31618 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31619 ;;
31620esac
31621
31622cat >>confdefs.h <<_ACEOF
31623#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31624_ACEOF
31625
31626
31627
cristy3ed852e2009-09-05 21:47:34 +000031628#
31629# Subdirectory under lib to place ImageMagick coder module files
31630CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31631
31632cat >>confdefs.h <<_ACEOF
31633#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31634_ACEOF
31635
31636CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31637DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31638case "${build_os}" in
31639 mingw* )
31640 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31641 ;;
31642esac
31643
31644cat >>confdefs.h <<_ACEOF
31645#define CODER_PATH "$DEFINE_CODER_PATH"
31646_ACEOF
31647
31648
31649
31650#
31651# Subdirectory under lib to place ImageMagick filter module files
31652FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31653
31654cat >>confdefs.h <<_ACEOF
31655#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31656_ACEOF
31657
31658FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31659DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31660case "${build_os}" in
31661 mingw* )
31662 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31663 ;;
31664esac
31665
31666cat >>confdefs.h <<_ACEOF
31667#define FILTER_PATH "$DEFINE_FILTER_PATH"
31668_ACEOF
31669
31670
31671
31672#
31673# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031674DOCUMENTATION_RELATIVE_PATH=""
31675DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31676DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031677case "${build_os}" in
31678 mingw* )
31679 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31680 ;;
31681esac
31682
31683cat >>confdefs.h <<_ACEOF
31684#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31685_ACEOF
31686
31687
31688
cristy3cf8a722011-03-20 23:32:22 +000031689# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031690CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031691
31692cat >>confdefs.h <<_ACEOF
31693#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31694_ACEOF
31695
31696CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31697DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31698case "${build_os}" in
31699 mingw* )
31700 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31701 ;;
31702esac
31703
31704cat >>confdefs.h <<_ACEOF
31705#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31706_ACEOF
31707
31708
31709
31710# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031711SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031712
31713cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031714#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031715_ACEOF
31716
cristy4f820712011-04-01 12:35:43 +000031717SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31718DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031719case "${build_os}" in
31720 mingw* )
cristy4f820712011-04-01 12:35:43 +000031721 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031722 ;;
31723esac
31724
31725cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031726#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031727_ACEOF
31728
31729
31730
31731#
31732# program_transform_name is formed for use in a Makefile, so create a
31733# modified version for use in a shell script.
31734configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31735
31736# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000031737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031738$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031740$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031742$as_echo "" >&6; }
31743AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031744BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031745BZIPDelegateDefault='bzip2'
31746BrowseDelegateDefault='xdg-open'
31747CGMDecodeDelegateDefault='ralcgm'
31748CatDelegateDefault='cat'
31749DNGDecodeDelegateDefault='ufraw-batch'
31750GVCDecodeDelegateDefault='dot'
31751DVIDecodeDelegateDefault='dvips'
31752EchoDelegateDefault='echo'
31753EditorDelegateDefault='xterm'
31754FIGDecodeDelegateDefault='fig2dev'
31755ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31756DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31757MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31758GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031759HPGLDecodeDelegateDefault='hp2xx'
31760HTMLDecodeDelegateDefault='html2ps'
31761ILBMDecodeDelegateDefault='ilbmtoppm'
31762ILBMEncodeDelegateDefault='ppmtoilbm'
31763LPDelegateDefault='lp'
31764LPRDelegateDefault='lpr'
31765LZWDecodeDelegateDefault='uncompress'
31766LZWEncodeDelegateDefault='compress'
31767LaunchDelegateDefault='gimp'
31768MANDelegateDefault='groff'
31769MPEGDecodeDelegateDefault='ffmpeg'
31770MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031771MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031772MVDelegateDefault='mv'
31773PCLDelegateDefault='pcl6'
31774PGPDecodeDelegateDefault='pgpv'
31775POVDelegateDefault='povray'
31776if test "$native_win32_build" = 'yes'; then
31777 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031778elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031779 PSDelegateDefault='gsc'
31780else
31781 PSDelegateDefault='gs'
31782fi
31783RLEEncodeDelegateDefault='rawtorle'
31784RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000031785RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000031786SCANDecodeDelegateDefault='scanimage'
31787TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031788UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031789WMFDecodeDelegateDefault='wmf2eps'
31790WWWDecodeDelegateDefault='curl'
31791XPSDelegateDefault='gxps'
31792ZipDelegateDefault='gzip'
31793
31794# Search for delegates
31795# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31796set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031799if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031800 $as_echo_n "(cached) " >&6
31801else
31802 case $AutotraceDecodeDelegate in
31803 [\\/]* | ?:[\\/]*)
31804 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31805 ;;
31806 *)
31807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31808for as_dir in $PATH
31809do
31810 IFS=$as_save_IFS
31811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31814 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031816 break 2
31817 fi
31818done
cristy8b350f62009-11-15 23:12:43 +000031819 done
cristy3ed852e2009-09-05 21:47:34 +000031820IFS=$as_save_IFS
31821
31822 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31823 ;;
31824esac
31825fi
31826AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31827if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031829$as_echo "$AutotraceDecodeDelegate" >&6; }
31830else
cristy8b350f62009-11-15 23:12:43 +000031831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031832$as_echo "no" >&6; }
31833fi
31834
31835
cristy3ed852e2009-09-05 21:47:34 +000031836# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31837set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031839$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031840if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031841 $as_echo_n "(cached) " >&6
31842else
31843 case $BlenderDecodeDelegate in
31844 [\\/]* | ?:[\\/]*)
31845 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31846 ;;
31847 *)
31848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31849for as_dir in $PATH
31850do
31851 IFS=$as_save_IFS
31852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31855 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031857 break 2
31858 fi
31859done
cristy8b350f62009-11-15 23:12:43 +000031860 done
cristy3ed852e2009-09-05 21:47:34 +000031861IFS=$as_save_IFS
31862
31863 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31864 ;;
31865esac
31866fi
31867BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31868if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031870$as_echo "$BlenderDecodeDelegate" >&6; }
31871else
cristy8b350f62009-11-15 23:12:43 +000031872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031873$as_echo "no" >&6; }
31874fi
31875
31876
31877# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31878set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031881if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031882 $as_echo_n "(cached) " >&6
31883else
31884 case $BZIPDelegate in
31885 [\\/]* | ?:[\\/]*)
31886 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31887 ;;
31888 *)
31889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31890for as_dir in $PATH
31891do
31892 IFS=$as_save_IFS
31893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31896 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031898 break 2
31899 fi
31900done
cristy8b350f62009-11-15 23:12:43 +000031901 done
cristy3ed852e2009-09-05 21:47:34 +000031902IFS=$as_save_IFS
31903
31904 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31905 ;;
31906esac
31907fi
31908BZIPDelegate=$ac_cv_path_BZIPDelegate
31909if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031911$as_echo "$BZIPDelegate" >&6; }
31912else
cristy8b350f62009-11-15 23:12:43 +000031913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031914$as_echo "no" >&6; }
31915fi
31916
31917
31918# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31919set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031922if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031923 $as_echo_n "(cached) " >&6
31924else
31925 case $BrowseDelegate in
31926 [\\/]* | ?:[\\/]*)
31927 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31928 ;;
31929 *)
31930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31931for as_dir in $PATH
31932do
31933 IFS=$as_save_IFS
31934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31937 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031939 break 2
31940 fi
31941done
cristy8b350f62009-11-15 23:12:43 +000031942 done
cristy3ed852e2009-09-05 21:47:34 +000031943IFS=$as_save_IFS
31944
31945 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31946 ;;
31947esac
31948fi
31949BrowseDelegate=$ac_cv_path_BrowseDelegate
31950if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031952$as_echo "$BrowseDelegate" >&6; }
31953else
cristy8b350f62009-11-15 23:12:43 +000031954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031955$as_echo "no" >&6; }
31956fi
31957
31958
31959# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31960set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031963if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031964 $as_echo_n "(cached) " >&6
31965else
31966 case $CGMDecodeDelegate in
31967 [\\/]* | ?:[\\/]*)
31968 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31969 ;;
31970 *)
31971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31972for as_dir in $PATH
31973do
31974 IFS=$as_save_IFS
31975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31978 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031980 break 2
31981 fi
31982done
cristy8b350f62009-11-15 23:12:43 +000031983 done
cristy3ed852e2009-09-05 21:47:34 +000031984IFS=$as_save_IFS
31985
31986 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31987 ;;
31988esac
31989fi
31990CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31991if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031993$as_echo "$CGMDecodeDelegate" >&6; }
31994else
cristy8b350f62009-11-15 23:12:43 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031996$as_echo "no" >&6; }
31997fi
31998
31999
32000# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32001set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032003$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032004if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032005 $as_echo_n "(cached) " >&6
32006else
32007 case $CatDelegate in
32008 [\\/]* | ?:[\\/]*)
32009 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32010 ;;
32011 *)
32012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32013for as_dir in $PATH
32014do
32015 IFS=$as_save_IFS
32016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32019 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032021 break 2
32022 fi
32023done
cristy8b350f62009-11-15 23:12:43 +000032024 done
cristy3ed852e2009-09-05 21:47:34 +000032025IFS=$as_save_IFS
32026
32027 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32028 ;;
32029esac
32030fi
32031CatDelegate=$ac_cv_path_CatDelegate
32032if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032034$as_echo "$CatDelegate" >&6; }
32035else
cristy8b350f62009-11-15 23:12:43 +000032036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032037$as_echo "no" >&6; }
32038fi
32039
32040
32041# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32042set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032044$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032045if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032046 $as_echo_n "(cached) " >&6
32047else
32048 case $DNGDecodeDelegate in
32049 [\\/]* | ?:[\\/]*)
32050 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32051 ;;
32052 *)
32053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32054for as_dir in $PATH
32055do
32056 IFS=$as_save_IFS
32057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32060 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032062 break 2
32063 fi
32064done
cristy8b350f62009-11-15 23:12:43 +000032065 done
cristy3ed852e2009-09-05 21:47:34 +000032066IFS=$as_save_IFS
32067
32068 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32069 ;;
32070esac
32071fi
32072DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32073if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032075$as_echo "$DNGDecodeDelegate" >&6; }
32076else
cristy8b350f62009-11-15 23:12:43 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032078$as_echo "no" >&6; }
32079fi
32080
32081
32082# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32083set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032086if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032087 $as_echo_n "(cached) " >&6
32088else
32089 case $GVCDecodeDelegate in
32090 [\\/]* | ?:[\\/]*)
32091 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32092 ;;
32093 *)
32094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32095for as_dir in $PATH
32096do
32097 IFS=$as_save_IFS
32098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32101 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032103 break 2
32104 fi
32105done
cristy8b350f62009-11-15 23:12:43 +000032106 done
cristy3ed852e2009-09-05 21:47:34 +000032107IFS=$as_save_IFS
32108
32109 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32110 ;;
32111esac
32112fi
32113GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32114if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032116$as_echo "$GVCDecodeDelegate" >&6; }
32117else
cristy8b350f62009-11-15 23:12:43 +000032118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032119$as_echo "no" >&6; }
32120fi
32121
32122
32123# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32124set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032127if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032128 $as_echo_n "(cached) " >&6
32129else
32130 case $DVIDecodeDelegate in
32131 [\\/]* | ?:[\\/]*)
32132 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32133 ;;
32134 *)
32135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32136for as_dir in $PATH
32137do
32138 IFS=$as_save_IFS
32139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32142 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032144 break 2
32145 fi
32146done
cristy8b350f62009-11-15 23:12:43 +000032147 done
cristy3ed852e2009-09-05 21:47:34 +000032148IFS=$as_save_IFS
32149
32150 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32151 ;;
32152esac
32153fi
32154DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32155if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032157$as_echo "$DVIDecodeDelegate" >&6; }
32158else
cristy8b350f62009-11-15 23:12:43 +000032159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032160$as_echo "no" >&6; }
32161fi
32162
32163
32164# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32165set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032168if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032169 $as_echo_n "(cached) " >&6
32170else
32171 case $EchoDelegate in
32172 [\\/]* | ?:[\\/]*)
32173 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32174 ;;
32175 *)
32176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32177for as_dir in $PATH
32178do
32179 IFS=$as_save_IFS
32180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32183 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032185 break 2
32186 fi
32187done
cristy8b350f62009-11-15 23:12:43 +000032188 done
cristy3ed852e2009-09-05 21:47:34 +000032189IFS=$as_save_IFS
32190
32191 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32192 ;;
32193esac
32194fi
32195EchoDelegate=$ac_cv_path_EchoDelegate
32196if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032198$as_echo "$EchoDelegate" >&6; }
32199else
cristy8b350f62009-11-15 23:12:43 +000032200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032201$as_echo "no" >&6; }
32202fi
32203
32204
32205# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32206set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032209if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032210 $as_echo_n "(cached) " >&6
32211else
32212 case $EditorDelegate in
32213 [\\/]* | ?:[\\/]*)
32214 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32215 ;;
32216 *)
32217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32218for as_dir in $PATH
32219do
32220 IFS=$as_save_IFS
32221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32224 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032226 break 2
32227 fi
32228done
cristy8b350f62009-11-15 23:12:43 +000032229 done
cristy3ed852e2009-09-05 21:47:34 +000032230IFS=$as_save_IFS
32231
32232 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32233 ;;
32234esac
32235fi
32236EditorDelegate=$ac_cv_path_EditorDelegate
32237if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032239$as_echo "$EditorDelegate" >&6; }
32240else
cristy8b350f62009-11-15 23:12:43 +000032241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032242$as_echo "no" >&6; }
32243fi
32244
32245
32246# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32247set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032250if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032251 $as_echo_n "(cached) " >&6
32252else
32253 case $FIGDecodeDelegate in
32254 [\\/]* | ?:[\\/]*)
32255 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32256 ;;
32257 *)
32258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32259for as_dir in $PATH
32260do
32261 IFS=$as_save_IFS
32262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32265 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032267 break 2
32268 fi
32269done
cristy8b350f62009-11-15 23:12:43 +000032270 done
cristy3ed852e2009-09-05 21:47:34 +000032271IFS=$as_save_IFS
32272
32273 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32274 ;;
32275esac
32276fi
32277FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32278if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032280$as_echo "$FIGDecodeDelegate" >&6; }
32281else
cristy8b350f62009-11-15 23:12:43 +000032282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032283$as_echo "no" >&6; }
32284fi
32285
32286
32287# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32288set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032291if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032292 $as_echo_n "(cached) " >&6
32293else
32294 case $ConvertDelegate in
32295 [\\/]* | ?:[\\/]*)
32296 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32297 ;;
32298 *)
32299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32300for as_dir in $PATH
32301do
32302 IFS=$as_save_IFS
32303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32306 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032308 break 2
32309 fi
32310done
cristy8b350f62009-11-15 23:12:43 +000032311 done
cristy3ed852e2009-09-05 21:47:34 +000032312IFS=$as_save_IFS
32313
32314 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32315 ;;
32316esac
32317fi
32318ConvertDelegate=$ac_cv_path_ConvertDelegate
32319if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032321$as_echo "$ConvertDelegate" >&6; }
32322else
cristy8b350f62009-11-15 23:12:43 +000032323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032324$as_echo "no" >&6; }
32325fi
32326
32327
32328# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32329set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032331$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032332if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032333 $as_echo_n "(cached) " >&6
32334else
32335 case $DisplayDelegate in
32336 [\\/]* | ?:[\\/]*)
32337 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32338 ;;
32339 *)
32340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32341for as_dir in $PATH
32342do
32343 IFS=$as_save_IFS
32344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32347 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032349 break 2
32350 fi
32351done
cristy8b350f62009-11-15 23:12:43 +000032352 done
cristy3ed852e2009-09-05 21:47:34 +000032353IFS=$as_save_IFS
32354
32355 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32356 ;;
32357esac
32358fi
32359DisplayDelegate=$ac_cv_path_DisplayDelegate
32360if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032362$as_echo "$DisplayDelegate" >&6; }
32363else
cristy8b350f62009-11-15 23:12:43 +000032364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032365$as_echo "no" >&6; }
32366fi
32367
32368
32369# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32370set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032373if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032374 $as_echo_n "(cached) " >&6
32375else
32376 case $MogrifyDelegate in
32377 [\\/]* | ?:[\\/]*)
32378 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32379 ;;
32380 *)
32381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32382for as_dir in $PATH
32383do
32384 IFS=$as_save_IFS
32385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32388 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032390 break 2
32391 fi
32392done
cristy8b350f62009-11-15 23:12:43 +000032393 done
cristy3ed852e2009-09-05 21:47:34 +000032394IFS=$as_save_IFS
32395
32396 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32397 ;;
32398esac
32399fi
32400MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32401if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032403$as_echo "$MogrifyDelegate" >&6; }
32404else
cristy8b350f62009-11-15 23:12:43 +000032405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032406$as_echo "no" >&6; }
32407fi
32408
32409
32410# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32411set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032413$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032414if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032415 $as_echo_n "(cached) " >&6
32416else
32417 case $GnuplotDecodeDelegate in
32418 [\\/]* | ?:[\\/]*)
32419 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32420 ;;
32421 *)
32422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32423for as_dir in $PATH
32424do
32425 IFS=$as_save_IFS
32426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32429 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032431 break 2
32432 fi
32433done
cristy8b350f62009-11-15 23:12:43 +000032434 done
cristy3ed852e2009-09-05 21:47:34 +000032435IFS=$as_save_IFS
32436
32437 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32438 ;;
32439esac
32440fi
32441GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32442if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032444$as_echo "$GnuplotDecodeDelegate" >&6; }
32445else
cristy8b350f62009-11-15 23:12:43 +000032446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032447$as_echo "no" >&6; }
32448fi
32449
32450
cristy3ed852e2009-09-05 21:47:34 +000032451# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32452set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032455if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032456 $as_echo_n "(cached) " >&6
32457else
32458 case $HPGLDecodeDelegate in
32459 [\\/]* | ?:[\\/]*)
32460 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32461 ;;
32462 *)
32463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32464for as_dir in $PATH
32465do
32466 IFS=$as_save_IFS
32467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32470 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032472 break 2
32473 fi
32474done
cristy8b350f62009-11-15 23:12:43 +000032475 done
cristy3ed852e2009-09-05 21:47:34 +000032476IFS=$as_save_IFS
32477
32478 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32479 ;;
32480esac
32481fi
32482HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32483if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032485$as_echo "$HPGLDecodeDelegate" >&6; }
32486else
cristy8b350f62009-11-15 23:12:43 +000032487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032488$as_echo "no" >&6; }
32489fi
32490
32491
32492# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32493set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032496if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032497 $as_echo_n "(cached) " >&6
32498else
32499 case $HTMLDecodeDelegate in
32500 [\\/]* | ?:[\\/]*)
32501 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32502 ;;
32503 *)
32504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32505for as_dir in $PATH
32506do
32507 IFS=$as_save_IFS
32508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32511 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032513 break 2
32514 fi
32515done
cristy8b350f62009-11-15 23:12:43 +000032516 done
cristy3ed852e2009-09-05 21:47:34 +000032517IFS=$as_save_IFS
32518
32519 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32520 ;;
32521esac
32522fi
32523HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32524if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032526$as_echo "$HTMLDecodeDelegate" >&6; }
32527else
cristy8b350f62009-11-15 23:12:43 +000032528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032529$as_echo "no" >&6; }
32530fi
32531
32532
32533# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32534set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032537if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032538 $as_echo_n "(cached) " >&6
32539else
32540 case $ILBMDecodeDelegate in
32541 [\\/]* | ?:[\\/]*)
32542 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32543 ;;
32544 *)
32545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32546for as_dir in $PATH
32547do
32548 IFS=$as_save_IFS
32549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32552 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032554 break 2
32555 fi
32556done
cristy8b350f62009-11-15 23:12:43 +000032557 done
cristy3ed852e2009-09-05 21:47:34 +000032558IFS=$as_save_IFS
32559
32560 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32561 ;;
32562esac
32563fi
32564ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32565if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032567$as_echo "$ILBMDecodeDelegate" >&6; }
32568else
cristy8b350f62009-11-15 23:12:43 +000032569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032570$as_echo "no" >&6; }
32571fi
32572
32573
32574# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32575set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032577$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032578if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032579 $as_echo_n "(cached) " >&6
32580else
32581 case $ILBMEncodeDelegate in
32582 [\\/]* | ?:[\\/]*)
32583 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32584 ;;
32585 *)
32586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32587for as_dir in $PATH
32588do
32589 IFS=$as_save_IFS
32590 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032591 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32593 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032595 break 2
32596 fi
32597done
cristy8b350f62009-11-15 23:12:43 +000032598 done
cristy3ed852e2009-09-05 21:47:34 +000032599IFS=$as_save_IFS
32600
32601 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32602 ;;
32603esac
32604fi
32605ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32606if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032608$as_echo "$ILBMEncodeDelegate" >&6; }
32609else
cristy8b350f62009-11-15 23:12:43 +000032610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032611$as_echo "no" >&6; }
32612fi
32613
32614
32615# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32616set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032619if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032620 $as_echo_n "(cached) " >&6
32621else
32622 case $LPDelegate in
32623 [\\/]* | ?:[\\/]*)
32624 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32625 ;;
32626 *)
32627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32628for as_dir in $PATH
32629do
32630 IFS=$as_save_IFS
32631 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32634 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032636 break 2
32637 fi
32638done
cristy8b350f62009-11-15 23:12:43 +000032639 done
cristy3ed852e2009-09-05 21:47:34 +000032640IFS=$as_save_IFS
32641
32642 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32643 ;;
32644esac
32645fi
32646LPDelegate=$ac_cv_path_LPDelegate
32647if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032649$as_echo "$LPDelegate" >&6; }
32650else
cristy8b350f62009-11-15 23:12:43 +000032651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032652$as_echo "no" >&6; }
32653fi
32654
32655
32656# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32657set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032660if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032661 $as_echo_n "(cached) " >&6
32662else
32663 case $LPRDelegate in
32664 [\\/]* | ?:[\\/]*)
32665 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32666 ;;
32667 *)
32668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32669for as_dir in $PATH
32670do
32671 IFS=$as_save_IFS
32672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32675 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032677 break 2
32678 fi
32679done
cristy8b350f62009-11-15 23:12:43 +000032680 done
cristy3ed852e2009-09-05 21:47:34 +000032681IFS=$as_save_IFS
32682
32683 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32684 ;;
32685esac
32686fi
32687LPRDelegate=$ac_cv_path_LPRDelegate
32688if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032690$as_echo "$LPRDelegate" >&6; }
32691else
cristy8b350f62009-11-15 23:12:43 +000032692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032693$as_echo "no" >&6; }
32694fi
32695
32696
32697# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32698set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032701if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032702 $as_echo_n "(cached) " >&6
32703else
32704 case $LZWDecodeDelegate in
32705 [\\/]* | ?:[\\/]*)
32706 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32707 ;;
32708 *)
32709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32710for as_dir in $PATH
32711do
32712 IFS=$as_save_IFS
32713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32716 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032718 break 2
32719 fi
32720done
cristy8b350f62009-11-15 23:12:43 +000032721 done
cristy3ed852e2009-09-05 21:47:34 +000032722IFS=$as_save_IFS
32723
32724 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32725 ;;
32726esac
32727fi
32728LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32729if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032731$as_echo "$LZWDecodeDelegate" >&6; }
32732else
cristy8b350f62009-11-15 23:12:43 +000032733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032734$as_echo "no" >&6; }
32735fi
32736
32737
32738# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32739set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032742if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032743 $as_echo_n "(cached) " >&6
32744else
32745 case $LZWEncodeDelegate in
32746 [\\/]* | ?:[\\/]*)
32747 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32748 ;;
32749 *)
32750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32751for as_dir in $PATH
32752do
32753 IFS=$as_save_IFS
32754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32757 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032759 break 2
32760 fi
32761done
cristy8b350f62009-11-15 23:12:43 +000032762 done
cristy3ed852e2009-09-05 21:47:34 +000032763IFS=$as_save_IFS
32764
32765 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32766 ;;
32767esac
32768fi
32769LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32770if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032772$as_echo "$LZWEncodeDelegate" >&6; }
32773else
cristy8b350f62009-11-15 23:12:43 +000032774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032775$as_echo "no" >&6; }
32776fi
32777
32778
32779# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32780set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032783if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032784 $as_echo_n "(cached) " >&6
32785else
32786 case $LaunchDelegate in
32787 [\\/]* | ?:[\\/]*)
32788 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32789 ;;
32790 *)
32791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32792for as_dir in $PATH
32793do
32794 IFS=$as_save_IFS
32795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32798 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032800 break 2
32801 fi
32802done
cristy8b350f62009-11-15 23:12:43 +000032803 done
cristy3ed852e2009-09-05 21:47:34 +000032804IFS=$as_save_IFS
32805
32806 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32807 ;;
32808esac
32809fi
32810LaunchDelegate=$ac_cv_path_LaunchDelegate
32811if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032813$as_echo "$LaunchDelegate" >&6; }
32814else
cristy8b350f62009-11-15 23:12:43 +000032815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816$as_echo "no" >&6; }
32817fi
32818
32819
32820# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32821set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032823$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032824if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032825 $as_echo_n "(cached) " >&6
32826else
32827 case $MANDelegate in
32828 [\\/]* | ?:[\\/]*)
32829 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32830 ;;
32831 *)
32832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32833for as_dir in $PATH
32834do
32835 IFS=$as_save_IFS
32836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32839 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032841 break 2
32842 fi
32843done
cristy8b350f62009-11-15 23:12:43 +000032844 done
cristy3ed852e2009-09-05 21:47:34 +000032845IFS=$as_save_IFS
32846
32847 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32848 ;;
32849esac
32850fi
32851MANDelegate=$ac_cv_path_MANDelegate
32852if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854$as_echo "$MANDelegate" >&6; }
32855else
cristy8b350f62009-11-15 23:12:43 +000032856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032857$as_echo "no" >&6; }
32858fi
32859
32860
32861# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32862set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032865if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032866 $as_echo_n "(cached) " >&6
32867else
32868 case $MPEGDecodeDelegate in
32869 [\\/]* | ?:[\\/]*)
32870 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32871 ;;
32872 *)
32873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32874for as_dir in $PATH
32875do
32876 IFS=$as_save_IFS
32877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32880 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032882 break 2
32883 fi
32884done
cristy8b350f62009-11-15 23:12:43 +000032885 done
cristy3ed852e2009-09-05 21:47:34 +000032886IFS=$as_save_IFS
32887
32888 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32889 ;;
32890esac
32891fi
32892MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32893if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032895$as_echo "$MPEGDecodeDelegate" >&6; }
32896else
cristy8b350f62009-11-15 23:12:43 +000032897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898$as_echo "no" >&6; }
32899fi
32900
32901
32902# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32903set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032906if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032907 $as_echo_n "(cached) " >&6
32908else
32909 case $MPEGEncodeDelegate in
32910 [\\/]* | ?:[\\/]*)
32911 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32912 ;;
32913 *)
32914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32915for as_dir in $PATH
32916do
32917 IFS=$as_save_IFS
32918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32921 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923 break 2
32924 fi
32925done
cristy8b350f62009-11-15 23:12:43 +000032926 done
cristy3ed852e2009-09-05 21:47:34 +000032927IFS=$as_save_IFS
32928
32929 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32930 ;;
32931esac
32932fi
32933MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32934if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032936$as_echo "$MPEGEncodeDelegate" >&6; }
32937else
cristy8b350f62009-11-15 23:12:43 +000032938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939$as_echo "no" >&6; }
32940fi
32941
32942
cristy935c86e2010-06-05 23:50:07 +000032943# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32944set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032947if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000032948 $as_echo_n "(cached) " >&6
32949else
32950 case $MrSIDDecodeDelegate in
32951 [\\/]* | ?:[\\/]*)
32952 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32953 ;;
32954 *)
32955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32956for as_dir in $PATH
32957do
32958 IFS=$as_save_IFS
32959 test -z "$as_dir" && as_dir=.
32960 for ac_exec_ext in '' $ac_executable_extensions; do
32961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32962 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32964 break 2
32965 fi
32966done
32967 done
32968IFS=$as_save_IFS
32969
32970 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32971 ;;
32972esac
32973fi
32974MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32975if test -n "$MrSIDDecodeDelegate"; then
32976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32977$as_echo "$MrSIDDecodeDelegate" >&6; }
32978else
32979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32980$as_echo "no" >&6; }
32981fi
32982
32983
cristy3ed852e2009-09-05 21:47:34 +000032984# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32985set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032987$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032988if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032989 $as_echo_n "(cached) " >&6
32990else
32991 case $MVDelegate in
32992 [\\/]* | ?:[\\/]*)
32993 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32994 ;;
32995 *)
32996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32997for as_dir in $PATH
32998do
32999 IFS=$as_save_IFS
33000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33003 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005 break 2
33006 fi
33007done
cristy8b350f62009-11-15 23:12:43 +000033008 done
cristy3ed852e2009-09-05 21:47:34 +000033009IFS=$as_save_IFS
33010
33011 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33012 ;;
33013esac
33014fi
33015MVDelegate=$ac_cv_path_MVDelegate
33016if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033018$as_echo "$MVDelegate" >&6; }
33019else
cristy8b350f62009-11-15 23:12:43 +000033020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021$as_echo "no" >&6; }
33022fi
33023
33024
33025# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33026set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033028$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033029if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033030 $as_echo_n "(cached) " >&6
33031else
33032 case $PCLDelegate in
33033 [\\/]* | ?:[\\/]*)
33034 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33035 ;;
33036 *)
33037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33038for as_dir in $PATH
33039do
33040 IFS=$as_save_IFS
33041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33044 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033046 break 2
33047 fi
33048done
cristy8b350f62009-11-15 23:12:43 +000033049 done
cristy3ed852e2009-09-05 21:47:34 +000033050IFS=$as_save_IFS
33051
33052 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33053 ;;
33054esac
33055fi
33056PCLDelegate=$ac_cv_path_PCLDelegate
33057if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033059$as_echo "$PCLDelegate" >&6; }
33060else
cristy8b350f62009-11-15 23:12:43 +000033061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062$as_echo "no" >&6; }
33063fi
33064
33065
33066# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33067set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033070if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033071 $as_echo_n "(cached) " >&6
33072else
33073 case $PGPDecodeDelegate in
33074 [\\/]* | ?:[\\/]*)
33075 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33076 ;;
33077 *)
33078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33079for as_dir in $PATH
33080do
33081 IFS=$as_save_IFS
33082 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33085 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033087 break 2
33088 fi
33089done
cristy8b350f62009-11-15 23:12:43 +000033090 done
cristy3ed852e2009-09-05 21:47:34 +000033091IFS=$as_save_IFS
33092
33093 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33094 ;;
33095esac
33096fi
33097PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33098if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033100$as_echo "$PGPDecodeDelegate" >&6; }
33101else
cristy8b350f62009-11-15 23:12:43 +000033102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103$as_echo "no" >&6; }
33104fi
33105
33106
33107# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33108set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033110$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033111if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033112 $as_echo_n "(cached) " >&6
33113else
33114 case $POVDelegate in
33115 [\\/]* | ?:[\\/]*)
33116 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33117 ;;
33118 *)
33119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33120for as_dir in $PATH
33121do
33122 IFS=$as_save_IFS
33123 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33126 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033128 break 2
33129 fi
33130done
cristy8b350f62009-11-15 23:12:43 +000033131 done
cristy3ed852e2009-09-05 21:47:34 +000033132IFS=$as_save_IFS
33133
33134 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33135 ;;
33136esac
33137fi
33138POVDelegate=$ac_cv_path_POVDelegate
33139if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033141$as_echo "$POVDelegate" >&6; }
33142else
cristy8b350f62009-11-15 23:12:43 +000033143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144$as_echo "no" >&6; }
33145fi
33146
33147
33148for ac_prog in gsx gsc "$PSDelegateDefault"
33149do
33150 # Extract the first word of "$ac_prog", so it can be a program name with args.
33151set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033154if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033155 $as_echo_n "(cached) " >&6
33156else
33157 case $PSDelegate in
33158 [\\/]* | ?:[\\/]*)
33159 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33160 ;;
33161 *)
33162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33163for as_dir in $PATH
33164do
33165 IFS=$as_save_IFS
33166 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33169 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171 break 2
33172 fi
33173done
cristy8b350f62009-11-15 23:12:43 +000033174 done
cristy3ed852e2009-09-05 21:47:34 +000033175IFS=$as_save_IFS
33176
33177 ;;
33178esac
33179fi
33180PSDelegate=$ac_cv_path_PSDelegate
33181if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033183$as_echo "$PSDelegate" >&6; }
33184else
cristy8b350f62009-11-15 23:12:43 +000033185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033186$as_echo "no" >&6; }
33187fi
33188
33189
33190 test -n "$PSDelegate" && break
33191done
33192test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33193
33194# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33195set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033198if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033199 $as_echo_n "(cached) " >&6
33200else
33201 case $RLEEncodeDelegate in
33202 [\\/]* | ?:[\\/]*)
33203 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33204 ;;
33205 *)
33206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33207for as_dir in $PATH
33208do
33209 IFS=$as_save_IFS
33210 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33213 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215 break 2
33216 fi
33217done
cristy8b350f62009-11-15 23:12:43 +000033218 done
cristy3ed852e2009-09-05 21:47:34 +000033219IFS=$as_save_IFS
33220
33221 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33222 ;;
33223esac
33224fi
33225RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33226if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228$as_echo "$RLEEncodeDelegate" >&6; }
33229else
cristy8b350f62009-11-15 23:12:43 +000033230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033231$as_echo "no" >&6; }
33232fi
33233
33234
33235# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33236set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033239if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033240 $as_echo_n "(cached) " >&6
33241else
33242 case $RMDelegate in
33243 [\\/]* | ?:[\\/]*)
33244 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33245 ;;
33246 *)
33247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33248for as_dir in $PATH
33249do
33250 IFS=$as_save_IFS
33251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33254 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256 break 2
33257 fi
33258done
cristy8b350f62009-11-15 23:12:43 +000033259 done
cristy3ed852e2009-09-05 21:47:34 +000033260IFS=$as_save_IFS
33261
33262 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33263 ;;
33264esac
33265fi
33266RMDelegate=$ac_cv_path_RMDelegate
33267if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269$as_echo "$RMDelegate" >&6; }
33270else
cristy8b350f62009-11-15 23:12:43 +000033271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033272$as_echo "no" >&6; }
33273fi
33274
33275
cristy4689cf02010-02-17 21:15:45 +000033276# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33277set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33279$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033280if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033281 $as_echo_n "(cached) " >&6
33282else
33283 case $RSVGDecodeDelegate in
33284 [\\/]* | ?:[\\/]*)
33285 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33286 ;;
33287 *)
33288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33289for as_dir in $PATH
33290do
33291 IFS=$as_save_IFS
33292 test -z "$as_dir" && as_dir=.
33293 for ac_exec_ext in '' $ac_executable_extensions; do
33294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33295 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33297 break 2
33298 fi
33299done
33300 done
33301IFS=$as_save_IFS
33302
33303 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33304 ;;
33305esac
33306fi
33307RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33308if test -n "$RSVGDecodeDelegate"; then
33309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33310$as_echo "$RSVGDecodeDelegate" >&6; }
33311else
33312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33313$as_echo "no" >&6; }
33314fi
33315
33316
cristy3ed852e2009-09-05 21:47:34 +000033317# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33318set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033321if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033322 $as_echo_n "(cached) " >&6
33323else
33324 case $SCANDecodeDelegate in
33325 [\\/]* | ?:[\\/]*)
33326 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33327 ;;
33328 *)
33329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33330for as_dir in $PATH
33331do
33332 IFS=$as_save_IFS
33333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33336 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033338 break 2
33339 fi
33340done
cristy8b350f62009-11-15 23:12:43 +000033341 done
cristy3ed852e2009-09-05 21:47:34 +000033342IFS=$as_save_IFS
33343
33344 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33345 ;;
33346esac
33347fi
33348SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33349if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351$as_echo "$SCANDecodeDelegate" >&6; }
33352else
cristy8b350f62009-11-15 23:12:43 +000033353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033354$as_echo "no" >&6; }
33355fi
33356
33357
33358# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33359set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033362if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033363 $as_echo_n "(cached) " >&6
33364else
33365 case $TXTDelegate in
33366 [\\/]* | ?:[\\/]*)
33367 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33368 ;;
33369 *)
33370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33371for as_dir in $PATH
33372do
33373 IFS=$as_save_IFS
33374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33377 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033379 break 2
33380 fi
33381done
cristy8b350f62009-11-15 23:12:43 +000033382 done
cristy3ed852e2009-09-05 21:47:34 +000033383IFS=$as_save_IFS
33384
33385 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33386 ;;
33387esac
33388fi
33389TXTDelegate=$ac_cv_path_TXTDelegate
33390if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392$as_echo "$TXTDelegate" >&6; }
33393else
cristy8b350f62009-11-15 23:12:43 +000033394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033395$as_echo "no" >&6; }
33396fi
33397
33398
cristy5ac9ac82010-07-29 13:24:24 +000033399# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33400set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33402$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033403if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033404 $as_echo_n "(cached) " >&6
33405else
33406 case $UniconvertorDelegate in
33407 [\\/]* | ?:[\\/]*)
33408 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33409 ;;
33410 *)
33411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33412for as_dir in $PATH
33413do
33414 IFS=$as_save_IFS
33415 test -z "$as_dir" && as_dir=.
33416 for ac_exec_ext in '' $ac_executable_extensions; do
33417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33418 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33420 break 2
33421 fi
33422done
33423 done
33424IFS=$as_save_IFS
33425
33426 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33427 ;;
33428esac
33429fi
33430UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33431if test -n "$UniconvertorDelegate"; then
33432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33433$as_echo "$UniconvertorDelegate" >&6; }
33434else
33435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33436$as_echo "no" >&6; }
33437fi
33438
33439
cristy3ed852e2009-09-05 21:47:34 +000033440# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33441set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033444if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033445 $as_echo_n "(cached) " >&6
33446else
33447 case $WMFDecodeDelegate in
33448 [\\/]* | ?:[\\/]*)
33449 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33450 ;;
33451 *)
33452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33453for as_dir in $PATH
33454do
33455 IFS=$as_save_IFS
33456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33459 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033461 break 2
33462 fi
33463done
cristy8b350f62009-11-15 23:12:43 +000033464 done
cristy3ed852e2009-09-05 21:47:34 +000033465IFS=$as_save_IFS
33466
33467 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33468 ;;
33469esac
33470fi
33471WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33472if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474$as_echo "$WMFDecodeDelegate" >&6; }
33475else
cristy8b350f62009-11-15 23:12:43 +000033476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033477$as_echo "no" >&6; }
33478fi
33479
33480
33481# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33482set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033484$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033485if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033486 $as_echo_n "(cached) " >&6
33487else
33488 case $WWWDecodeDelegate in
33489 [\\/]* | ?:[\\/]*)
33490 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33491 ;;
33492 *)
33493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33494for as_dir in $PATH
33495do
33496 IFS=$as_save_IFS
33497 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33500 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502 break 2
33503 fi
33504done
cristy8b350f62009-11-15 23:12:43 +000033505 done
cristy3ed852e2009-09-05 21:47:34 +000033506IFS=$as_save_IFS
33507
33508 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33509 ;;
33510esac
33511fi
33512WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33513if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515$as_echo "$WWWDecodeDelegate" >&6; }
33516else
cristy8b350f62009-11-15 23:12:43 +000033517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518$as_echo "no" >&6; }
33519fi
33520
33521
33522# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33523set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033526if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033527 $as_echo_n "(cached) " >&6
33528else
33529 case $XPSDelegate in
33530 [\\/]* | ?:[\\/]*)
33531 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33532 ;;
33533 *)
33534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33535for as_dir in $PATH
33536do
33537 IFS=$as_save_IFS
33538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33541 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033543 break 2
33544 fi
33545done
cristy8b350f62009-11-15 23:12:43 +000033546 done
cristy3ed852e2009-09-05 21:47:34 +000033547IFS=$as_save_IFS
33548
33549 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33550 ;;
33551esac
33552fi
33553XPSDelegate=$ac_cv_path_XPSDelegate
33554if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033556$as_echo "$XPSDelegate" >&6; }
33557else
cristy8b350f62009-11-15 23:12:43 +000033558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033559$as_echo "no" >&6; }
33560fi
33561
33562
33563# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33564set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033567if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033568 $as_echo_n "(cached) " >&6
33569else
33570 case $ZipDelegate in
33571 [\\/]* | ?:[\\/]*)
33572 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33573 ;;
33574 *)
33575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33576for as_dir in $PATH
33577do
33578 IFS=$as_save_IFS
33579 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33582 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584 break 2
33585 fi
33586done
cristy8b350f62009-11-15 23:12:43 +000033587 done
cristy3ed852e2009-09-05 21:47:34 +000033588IFS=$as_save_IFS
33589
33590 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33591 ;;
33592esac
33593fi
33594ZipDelegate=$ac_cv_path_ZipDelegate
33595if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033597$as_echo "$ZipDelegate" >&6; }
33598else
cristy8b350f62009-11-15 23:12:43 +000033599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033600$as_echo "no" >&6; }
33601fi
33602
33603
33604
33605# Prefer lpr to lp; lp needs options tacked on.
33606if test "$LPRDelegate" != no; then
33607 PrintDelegate="$LPRDelegate"
33608else
33609 PrintDelegate="$LPDelegate -c -s"
33610fi
33611
33612
33613# Installed ImageMagick utiltity paths
33614ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33615DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33616MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33617
33618# Set delegate booleans
33619have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33620have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33621have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33622have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33623have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033624have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033625have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33626have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033627have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33628have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33629
33630#
33631# Test for font directories
33632#
33633type_include_files=''
33634
cristy430a7312010-01-21 20:44:04 +000033635# Dejavu fonts.
33636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33637$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33638dejavu_font_dir=''
33639if test "${with_dejavu_font_dir}" != 'default'; then
33640 dejavu_font_dir="${with_dejavu_font_dir}/"
33641else
33642 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33643 if test -f "${font_dir}DejaVuSerif.ttf"; then
33644 dejavu_font_dir="${font_dir}"
33645 break 1
33646 fi
33647 done
33648fi
33649if test "${dejavu_font_dir}x" != 'x'; then
33650 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33652$as_echo "$dejavu_font_dir" >&6; }
33653else
33654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33655$as_echo "not found!" >&6; };
33656fi
33657
33658
cristy3ed852e2009-09-05 21:47:34 +000033659# Windows
33660windows_font_dir=''
33661if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33662 windows_font_dir="${with_windows_font_dir}/"
33663fi
cristy430a7312010-01-21 20:44:04 +000033664if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033665 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33666 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33667 fi
33668 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33669 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33670 fi
33671 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33672 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33673 fi
33674fi
cristy430a7312010-01-21 20:44:04 +000033675if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033676 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33677fi
33678
33679
33680# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033682$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33683ghostscript_font_dir=''
33684if test "${with_gs_font_dir}" != 'default'; then
33685 ghostscript_font_dir="${with_gs_font_dir}/"
33686else
33687 if test "${native_win32_build}" = 'yes'; then
33688 # Native Windows Build
33689 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33690 if test -f "${font_dir}a010013l.pfb"; then
33691 ghostscript_font_dir="$font_dir"
33692 break 1
33693 fi
33694 done
33695 if test "${PSDelegate}" != 'gswin32c'; then
33696 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33697 fi
33698 else
33699 # Linux / Mac OS X / Unix Build
33700 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
33701 if test -f "${font_dir}a010013l.pfb"; then
33702 ghostscript_font_dir="${font_dir}"
33703 break 1
33704 fi
33705 done
33706 if test "${ghostscript_font_dir}x" = 'x'; then
33707 if test "$PSDelegate" != 'gs'; then
33708 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33709 fi
33710 fi
33711 fi
33712fi
33713if test "${ghostscript_font_dir}x" != 'x'; then
33714 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000033715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000033716$as_echo "$ghostscript_font_dir" >&6; }
33717else
cristy8b350f62009-11-15 23:12:43 +000033718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000033719$as_echo "not found!" >&6; };
33720fi
33721
33722case "${build_os}" in
33723 mingw* )
33724 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33725 ;;
33726esac
33727
33728
33729
33730#
33731# Handle case where user doesn't want frozen paths
33732#
33733if test "$with_frozenpaths" != 'yes'; then
33734 # Re-set delegate definitions to default (no paths)
33735 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033736 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33737 BZIPDelegate="$BZIPDelegateDefault"
33738 BrowseDelegate="$BrowseDelegateDefault"
33739 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33740 CatDelegate="$CatDelegateDefault"
33741 ConvertDelegate="$ConvertDelegateDefault"
33742 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33743 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33744 EchoDelegate="$EchoDelegateDefault"
33745 EditorDelegate="$EditorDelegateDefault"
33746 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33747 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33748 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33749 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33750 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33751 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33752 LPDelegate="$LPDelegateDefault"
33753 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33754 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33755 LaunchDelegate="$LaunchDelegateDefault"
33756 MANDelegate="$MANDelegateDefault"
33757 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33758 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033759 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033760 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33761 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033762 PCLDelegate="$PCLDelegateDefault"
33763 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33764 POVDelegate="$POVDelegateDefault"
33765 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033766 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33767 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033768 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033769 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33770 ShowImageDelegate="$ShowImageDelegateDefault"
33771 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033772 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033773 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33774 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33775 XPSDelegate="$XPSDelegateDefault"
33776 ZipDelegate="$ZipDelegateDefault"
33777fi
33778
33779# Delegate substitutions
33780
33781
33782
33783
33784
33785
33786
33787
33788
33789
33790
33791
33792
33793
33794
33795
33796
33797
33798
33799
33800
33801
33802
33803
33804
33805
33806
33807
33808
33809
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822#
33823# RPM support.
33824#
33825RPM=''
33826for ac_prog in gnutar gtar tar
33827do
33828 # Extract the first word of "$ac_prog", so it can be a program name with args.
33829set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033832if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033833 $as_echo_n "(cached) " >&6
33834else
33835 if test -n "$TAR"; then
33836 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33837else
33838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33839for as_dir in $PATH
33840do
33841 IFS=$as_save_IFS
33842 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33845 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033847 break 2
33848 fi
33849done
cristy8b350f62009-11-15 23:12:43 +000033850 done
cristy3ed852e2009-09-05 21:47:34 +000033851IFS=$as_save_IFS
33852
33853fi
33854fi
33855TAR=$ac_cv_prog_TAR
33856if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858$as_echo "$TAR" >&6; }
33859else
cristy8b350f62009-11-15 23:12:43 +000033860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033861$as_echo "no" >&6; }
33862fi
33863
33864
33865 test -n "$TAR" && break
33866done
33867
33868for ac_prog in perl
33869do
33870 # Extract the first word of "$ac_prog", so it can be a program name with args.
33871set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033873$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033874if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033875 $as_echo_n "(cached) " >&6
33876else
33877 if test -n "$PERL"; then
33878 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33879else
33880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33881for as_dir in $PATH
33882do
33883 IFS=$as_save_IFS
33884 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33887 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033889 break 2
33890 fi
33891done
cristy8b350f62009-11-15 23:12:43 +000033892 done
cristy3ed852e2009-09-05 21:47:34 +000033893IFS=$as_save_IFS
33894
33895fi
33896fi
33897PERL=$ac_cv_prog_PERL
33898if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo "$PERL" >&6; }
33901else
cristy8b350f62009-11-15 23:12:43 +000033902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903$as_echo "no" >&6; }
33904fi
33905
33906
33907 test -n "$PERL" && break
33908done
33909
33910for ac_prog in rpmbuild rpm
33911do
33912 # Extract the first word of "$ac_prog", so it can be a program name with args.
33913set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033916if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033917 $as_echo_n "(cached) " >&6
33918else
33919 if test -n "$RPM"; then
33920 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33921else
33922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33923for as_dir in $PATH
33924do
33925 IFS=$as_save_IFS
33926 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033927 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33929 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931 break 2
33932 fi
33933done
cristy8b350f62009-11-15 23:12:43 +000033934 done
cristy3ed852e2009-09-05 21:47:34 +000033935IFS=$as_save_IFS
33936
33937fi
33938fi
33939RPM=$ac_cv_prog_RPM
33940if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000033941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000033942$as_echo "$RPM" >&6; }
33943else
cristy8b350f62009-11-15 23:12:43 +000033944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033945$as_echo "no" >&6; }
33946fi
33947
33948
33949 test -n "$RPM" && break
33950done
33951
33952
cristy73bd4a52010-10-05 11:24:23 +000033953ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33954
33955
33956AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33957
33958
33959AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33960
33961
33962AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33963
33964
33965 if test "x$RPM" != "x" ; then
33966 RPM_DELEGATE_TRUE=
33967 RPM_DELEGATE_FALSE='#'
33968else
33969 RPM_DELEGATE_TRUE='#'
33970 RPM_DELEGATE_FALSE=
33971fi
33972
cristy3ed852e2009-09-05 21:47:34 +000033973
33974#
33975# 7ZIP support (http://p7zip.sourceforge.net/)
33976#
33977P7ZIP=''
33978for ac_prog in 7za
33979do
33980 # Extract the first word of "$ac_prog", so it can be a program name with args.
33981set dummy $ac_prog; 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_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033985 $as_echo_n "(cached) " >&6
33986else
33987 if test -n "$P7ZIP"; then
33988 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33989else
33990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33991for as_dir in $PATH
33992do
33993 IFS=$as_save_IFS
33994 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33997 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033999 break 2
34000 fi
34001done
cristy8b350f62009-11-15 23:12:43 +000034002 done
cristy3ed852e2009-09-05 21:47:34 +000034003IFS=$as_save_IFS
34004
34005fi
34006fi
34007P7ZIP=$ac_cv_prog_P7ZIP
34008if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034010$as_echo "$P7ZIP" >&6; }
34011else
cristy8b350f62009-11-15 23:12:43 +000034012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034013$as_echo "no" >&6; }
34014fi
34015
34016
34017 test -n "$P7ZIP" && break
34018done
34019
34020
cristy73bd4a52010-10-05 11:24:23 +000034021 if test "x$P7ZIP" != "x" ; then
34022 P7ZIP_DELEGATE_TRUE=
34023 P7ZIP_DELEGATE_FALSE='#'
34024else
34025 P7ZIP_DELEGATE_TRUE='#'
34026 P7ZIP_DELEGATE_FALSE=
34027fi
34028
cristy3ed852e2009-09-05 21:47:34 +000034029
34030#
34031# ZIP support (http://www.info-zip.org/Zip.html)
34032#
34033ZIP=''
34034for ac_prog in zip
34035do
34036 # Extract the first word of "$ac_prog", so it can be a program name with args.
34037set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034040if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034041 $as_echo_n "(cached) " >&6
34042else
34043 if test -n "$ZIP"; then
34044 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34045else
34046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34047for as_dir in $PATH
34048do
34049 IFS=$as_save_IFS
34050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34053 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034055 break 2
34056 fi
34057done
cristy8b350f62009-11-15 23:12:43 +000034058 done
cristy3ed852e2009-09-05 21:47:34 +000034059IFS=$as_save_IFS
34060
34061fi
34062fi
34063ZIP=$ac_cv_prog_ZIP
34064if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034066$as_echo "$ZIP" >&6; }
34067else
cristy8b350f62009-11-15 23:12:43 +000034068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034069$as_echo "no" >&6; }
34070fi
34071
34072
34073 test -n "$ZIP" && break
34074done
34075
34076
cristy73bd4a52010-10-05 11:24:23 +000034077 if test "x$ZIP" != "x" ; then
34078 ZIP_DELEGATE_TRUE=
34079 ZIP_DELEGATE_FALSE='#'
34080else
34081 ZIP_DELEGATE_TRUE='#'
34082 ZIP_DELEGATE_FALSE=
34083fi
34084
cristy3ed852e2009-09-05 21:47:34 +000034085
34086#
34087# GhostPCL related configuration.
34088#
34089PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034090PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034091PCLMonoDevice=pbmraw
34092if test -z "$PCLVersion"; then
34093 PCLVersion='unknown'
34094fi
34095if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034097$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034099$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000034100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000034101$as_echo "" >&6; }
34102 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034104$as_echo_n "checking for pcl color device... " >&6; }
34105 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34106 :
34107 else
34108 PCLColorDevice=ppmraw
34109 fi
cristy8b350f62009-11-15 23:12:43 +000034110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034111$as_echo "$PCLColorDevice" >&6; }
34112
34113 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034115$as_echo_n "checking for pcl CMYK device... " >&6; }
34116 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34117 :
34118 else
34119 PCLCMYKDevice=$PCLColorDevice
34120 fi
cristy8b350f62009-11-15 23:12:43 +000034121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034122$as_echo "$PCLCMYKDevice" >&6; }
34123
34124 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034126$as_echo_n "checking for pcl mono device... " >&6; }
34127 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34128 :
34129 else
34130 PCLMonoDevice=$PCLColorDevice
34131 fi
cristy8b350f62009-11-15 23:12:43 +000034132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034133$as_echo "$PCLMonoDevice" >&6; }
34134fi
34135
34136
34137
34138
34139
34140
34141#
34142# GhostXPS related configuration.
34143#
34144XPSColorDevice=ppmraw
34145XPSCMYKDevice=bmpsep8
34146XPSMonoDevice=pbmraw
34147if test -z "$XPSVersion"; then
34148 XPSVersion='unknown'
34149fi
34150if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034152$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034154$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000034155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000034156$as_echo "" >&6; }
34157 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034159$as_echo_n "checking for xps color device... " >&6; }
34160 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34161 :
34162 else
34163 XPSColorDevice=ppmraw
34164 fi
cristy8b350f62009-11-15 23:12:43 +000034165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034166$as_echo "$XPSColorDevice" >&6; }
34167
34168 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034170$as_echo_n "checking for xps CMYK device... " >&6; }
34171 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34172 :
34173 else
34174 XPSCMYKDevice=$XPSColorDevice
34175 fi
cristy8b350f62009-11-15 23:12:43 +000034176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034177$as_echo "$XPSCMYKDevice" >&6; }
34178
34179 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034181$as_echo_n "checking for xps mono device... " >&6; }
34182 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34183 :
34184 else
34185 XPSMonoDevice=$XPSColorDevice
34186 fi
cristy8b350f62009-11-15 23:12:43 +000034187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034188$as_echo "$XPSMonoDevice" >&6; }
34189fi
34190
34191
34192
34193
34194
34195
34196#
34197# Ghostscript related configuration.
34198#
cristya97426c2011-02-04 01:41:27 +000034199GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034200GSColorDevice=pnmraw
34201GSCMYKDevice=pam
34202GSMonoDevice=pbmraw
34203GSPDFDevice=pdfwrite
34204GSPSDevice=pswrite
34205GSEPSDevice=epswrite
34206GSVersion='unknown'
34207if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034209$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034211$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000034212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000034213$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034215$as_echo_n "checking for Ghostscript version... " >&6; }
34216 if GSVersion=`$PSDelegate --version`; then
34217 :
34218 else
34219 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34220 fi
cristy8b350f62009-11-15 23:12:43 +000034221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000034222$as_echo "$GSVersion" >&6; }
34223
34224 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034226$as_echo_n "checking for gs alpha device... " >&6; }
34227 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34228 :
34229 else
34230 GSAlphaDevice=pnmraw
34231 fi
cristy8b350f62009-11-15 23:12:43 +000034232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233$as_echo "$GSAlphaDevice" >&6; }
34234
34235 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034237$as_echo_n "checking for gs color device... " >&6; }
34238 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34239 :
34240 else
34241 GSColorDevice=pnmraw
34242 fi
cristy8b350f62009-11-15 23:12:43 +000034243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034244$as_echo "$GSColorDevice" >&6; }
34245
34246 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034248$as_echo_n "checking for gs CMYK device... " >&6; }
34249 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34250 :
34251 else
34252 GSCMYKDevice=bmpsep8
34253 fi
cristy8b350f62009-11-15 23:12:43 +000034254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034255$as_echo "$GSCMYKDevice" >&6; }
34256
34257 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034259$as_echo_n "checking for gs mono device... " >&6; }
34260 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34261 :
34262 else
34263 GSMonoDevice=$GSColorDevice
34264 fi
cristy8b350f62009-11-15 23:12:43 +000034265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034266$as_echo "$GSMonoDevice" >&6; }
34267
34268 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034270$as_echo_n "checking for gs PDF writing device... " >&6; }
34271 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34272 :
34273 else
34274 GSPDFDevice=nodevice
34275 fi
cristy8b350f62009-11-15 23:12:43 +000034276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277$as_echo "$GSPDFDevice" >&6; }
34278
34279 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034281$as_echo_n "checking for gs PS writing device... " >&6; }
34282 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34283 :
34284 else
34285 GSPSDevice=nodevice
34286 fi
cristy8b350f62009-11-15 23:12:43 +000034287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034288$as_echo "$GSPSDevice" >&6; }
34289
34290 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034292$as_echo_n "checking for gs EPS writing device... " >&6; }
34293 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34294 :
34295 else
34296 GSEPSDevice=nodevice
34297 fi
cristy8b350f62009-11-15 23:12:43 +000034298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034299$as_echo "$GSEPSDevice" >&6; }
34300fi
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310
34311#
34312# PerlMagick-related configuration
34313#
34314
34315# Look for PERL if PerlMagick requested
34316# If name/path of desired PERL interpreter is specified, look for that one first
34317have_perl='no'
34318if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000034319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034320$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034322$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000034323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000034324$as_echo "" >&6; }
34325 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034327$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034328if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034329 $as_echo_n "(cached) " >&6
34330else
34331 ac_cv_path_PERL="$with_perl"
34332fi
cristy8b350f62009-11-15 23:12:43 +000034333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034334$as_echo "$ac_cv_path_PERL" >&6; };
34335 PERL=$ac_cv_path_PERL
34336 have_perl="$ac_cv_path_PERL"
34337 else
34338 for ac_prog in perl perl5
34339do
34340 # Extract the first word of "$ac_prog", so it can be a program name with args.
34341set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034343$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034344if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034345 $as_echo_n "(cached) " >&6
34346else
34347 case $PERL in
34348 [\\/]* | ?:[\\/]*)
34349 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34350 ;;
34351 *)
34352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34353for as_dir in $PATH
34354do
34355 IFS=$as_save_IFS
34356 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34359 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034361 break 2
34362 fi
34363done
cristy8b350f62009-11-15 23:12:43 +000034364 done
cristy3ed852e2009-09-05 21:47:34 +000034365IFS=$as_save_IFS
34366
34367 ;;
34368esac
34369fi
34370PERL=$ac_cv_path_PERL
34371if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034373$as_echo "$PERL" >&6; }
34374else
cristy8b350f62009-11-15 23:12:43 +000034375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034376$as_echo "no" >&6; }
34377fi
34378
34379
34380 test -n "$PERL" && break
34381done
34382 if test "$ac_cv_path_PERL"; then
34383 have_perl="$ac_cv_path_PERL"
34384 fi
34385 fi
34386fi
34387
cristy949301e2010-01-06 01:38:40 +000034388if test "$with_perl" != 'yes' ; then
34389 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34390fi
34391
34392PERL_SUPPORTS_DESTDIR='no'
34393
cristy3ed852e2009-09-05 21:47:34 +000034394with_perl_static='no'
34395with_perl_dynamic='no'
34396if test "$have_perl" != 'no'; then
34397 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34398 with_perl_static='yes'
34399 fi
34400 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34401 with_perl_dynamic='yes'
34402 fi
34403 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034404
34405
34406
34407
34408 if test -n "$PERL"; then :
34409
34410 ax_perl_version="5.8.1"
34411
34412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34413$as_echo_n "checking for perl version... " >&6; }
34414
34415 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34416
34417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34418$as_echo "$perl_version" >&6; }
34419
34420 PERL_VERSION=$perl_version
34421
34422
34423
34424
34425
34426 # Used to indicate true or false condition
34427 ax_compare_version=false
34428
34429 # Convert the two version strings to be compared into a format that
34430 # allows a simple string comparison. The end result is that a version
34431 # string of the form 1.12.5-r617 will be converted to the form
34432 # 0001001200050617. In other words, each number is zero padded to four
34433 # digits, and non digits are removed.
34434
34435 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34436 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34437 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34438 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34439 -e 's/[^0-9]//g'`
34440
34441
34442 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34443 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34444 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34445 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34446 -e 's/[^0-9]//g'`
34447
34448
34449 ax_compare_version=`echo "x$ax_compare_version_A
34450x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34451
34452
34453
34454 if test "$ax_compare_version" = "true" ; then
34455
34456 :
34457 PERL_SUPPORTS_DESTDIR='yes'
34458
34459 else
34460 :
34461 PERL_SUPPORTS_DESTDIR='no'
34462
34463 fi
34464
34465
34466else
34467
34468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34469$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34470 PERL_SUPPORTS_DESTDIR='no'
34471
cristy3ed852e2009-09-05 21:47:34 +000034472fi
cristy73bd4a52010-10-05 11:24:23 +000034473
34474fi
34475 if test "$have_perl" != 'no'; then
34476 WITH_PERL_TRUE=
34477 WITH_PERL_FALSE='#'
34478else
34479 WITH_PERL_TRUE='#'
34480 WITH_PERL_FALSE=
34481fi
34482
34483 if test $with_perl_static = 'yes'; then
34484 WITH_PERL_STATIC_TRUE=
34485 WITH_PERL_STATIC_FALSE='#'
34486else
34487 WITH_PERL_STATIC_TRUE='#'
34488 WITH_PERL_STATIC_FALSE=
34489fi
34490
34491 if test $with_perl_dynamic = 'yes'; then
34492 WITH_PERL_DYNAMIC_TRUE=
34493 WITH_PERL_DYNAMIC_FALSE='#'
34494else
34495 WITH_PERL_DYNAMIC_TRUE='#'
34496 WITH_PERL_DYNAMIC_FALSE=
34497fi
34498
cristy3ed852e2009-09-05 21:47:34 +000034499
34500
34501# Determine path to pick up MagickCore library from for use with building PerlMagick
34502MAGICKCORE_PATH="${LIB_DIR}"
34503if test $with_perl_static = 'yes'; then
34504 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34505 libtool_objdir=$objdir
34506
34507 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034508 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034509fi
34510
34511
34512# Create a simple string containing format names for all delegate libraries
34513DELEGATES=''
34514if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34515if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34516if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34517if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34518if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34519if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34520if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34521if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34522if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34523if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34524if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34525if test "$have_jpeg" = 'yes'; then
34526 DELEGATES="$DELEGATES jpeg";
34527 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34528fi
34529if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034530if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034531if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34532if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034533if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034534if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34535if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34536if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34537if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34538if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34539if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34540if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34541if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34542if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34543
34544
34545
34546#
34547# Handle special compiler flags
34548#
34549
34550# Add '-p' if prof source profiling support enabled
34551if test "$enable_prof" = 'yes'; then
34552 CFLAGS="-p $CFLAGS"
34553 CXXFLAGS="-p $CXXFLAGS"
34554 LDFLAGS="-p $LDFLAGS"
34555fi
34556
34557# Add '-pg' if gprof source profiling support enabled
34558if test "$enable_gprof" = 'yes'; then
34559 CFLAGS="-pg $CFLAGS"
34560 CXXFLAGS="-pg $CXXFLAGS"
34561 LDFLAGS="-pg $LDFLAGS"
34562fi
34563
34564# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34565# This is a gcc-specific feature
34566if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034568$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034569if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034570 $as_echo_n "(cached) " >&6
34571else
34572 ac_check_lib_save_LIBS=$LIBS
34573LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034575/* end confdefs.h. */
34576
34577/* Override any GCC internal prototype to avoid an error.
34578 Use char because int might match the return type of a GCC
34579 builtin and then its argument prototype would still apply. */
34580#ifdef __cplusplus
34581extern "C"
34582#endif
34583char _gcov_init ();
34584int
34585main ()
34586{
34587return _gcov_init ();
34588 ;
34589 return 0;
34590}
34591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034592if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034593 ac_cv_lib_gcov__gcov_init=yes
34594else
cristy8b350f62009-11-15 23:12:43 +000034595 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034596fi
cristy8b350f62009-11-15 23:12:43 +000034597rm -f core conftest.err conftest.$ac_objext \
34598 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034599LIBS=$ac_check_lib_save_LIBS
34600fi
cristy8b350f62009-11-15 23:12:43 +000034601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034602$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034603if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034604 cat >>confdefs.h <<_ACEOF
34605#define HAVE_LIBGCOV 1
34606_ACEOF
34607
34608 LIBS="-lgcov $LIBS"
34609
34610fi
34611
cristy8b350f62009-11-15 23:12:43 +000034612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034613$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034614if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034615 $as_echo_n "(cached) " >&6
34616else
34617 ac_check_lib_save_LIBS=$LIBS
34618LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034620/* end confdefs.h. */
34621
34622/* Override any GCC internal prototype to avoid an error.
34623 Use char because int might match the return type of a GCC
34624 builtin and then its argument prototype would still apply. */
34625#ifdef __cplusplus
34626extern "C"
34627#endif
34628char __gcov_init ();
34629int
34630main ()
34631{
34632return __gcov_init ();
34633 ;
34634 return 0;
34635}
34636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034637if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034638 ac_cv_lib_gcov___gcov_init=yes
34639else
cristy8b350f62009-11-15 23:12:43 +000034640 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034641fi
cristy8b350f62009-11-15 23:12:43 +000034642rm -f core conftest.err conftest.$ac_objext \
34643 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034644LIBS=$ac_check_lib_save_LIBS
34645fi
cristy8b350f62009-11-15 23:12:43 +000034646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034647$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034648if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034649 cat >>confdefs.h <<_ACEOF
34650#define HAVE_LIBGCOV 1
34651_ACEOF
34652
34653 LIBS="-lgcov $LIBS"
34654
34655fi
34656
34657 case "$target_os" in
34658 darwin*)
34659 OSX_GCOV_LDFLAG="-Wl,-single_module"
34660 ;;
34661 *)
34662 OSX_GCOV_LDFLAG=""
34663 ;;
34664 esac
34665
34666 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34667 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34668 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34669fi
34670
34671#
34672# Build library dependency list for libMagickCore
34673#
34674
34675MAGICK_LIBLTDL='' # Libltdl for build
34676MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34677MAGICK_LTDLDEPS='' # extra libltdl dependencies
34678if test "$with_ltdl" != 'no'
34679then
34680 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34681 MAGICK_API_LIBLTDL='-lltdl'
34682 fi
34683 MAGICK_LIBLTDL=${LIBLTDL}
34684 MAGICK_LTDLDEPS=${LTDLDEPS}
34685fi
34686
34687
34688
34689if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034690 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 +000034691else
cristyb1860752011-03-14 00:27:46 +000034692 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000034693fi
34694
34695
34696#
34697# Remove extraneous spaces from output variables (asthetic)
34698#
34699X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34700X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34701X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34702X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34703
34704CC=`echo $CC | sed -e 's/ */ /g'`
34705CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34706CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34707CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34708DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34709DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34710LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34711TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34712MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34713#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34714
34715# Pass only user-provided LIBS as "global" libraries
34716LIBS=$USER_LIBS
34717
34718#AC_SUBST(CPPFLAGS)
34719
34720#AC_SUBST(LDFLAGS)
34721#AC_SUBST(X_PRE_LIBS)
34722#AC_SUBST(X_LIBS)
34723#AC_SUBST(X_EXTRA_LIBS)
34724
34725MAGICK_CFLAGS=$CFLAGS
34726MAGICK_CXXFLAGS="$CXXFLAGS"
34727MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34728MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34729MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34730MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34731
34732
34733
34734
34735
34736
34737
34738
cristyfd9dcd42010-08-08 18:07:02 +000034739
cristy3ed852e2009-09-05 21:47:34 +000034740# Set configured scripts to executable.
34741ac_config_commands="$ac_config_commands default"
34742
34743ac_config_commands="$ac_config_commands MagickCore-config.in"
34744
cristy3ed852e2009-09-05 21:47:34 +000034745ac_config_commands="$ac_config_commands MagickWand-config.in"
34746
cristy3ed852e2009-09-05 21:47:34 +000034747ac_config_commands="$ac_config_commands Magick++-config.in"
34748
34749ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34750
34751
cristy8b350f62009-11-15 23:12:43 +000034752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034753$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000034755$as_echo "Update ImageMagick configuration" >&6; }
34756cat >confcache <<\_ACEOF
34757# This file is a shell script that caches the results of configure
34758# tests run on this system so they can be shared between configure
34759# scripts and configure runs, see configure's option --config-cache.
34760# It is not useful on other systems. If it contains results you don't
34761# want to keep, you may remove or edit it.
34762#
34763# config.status only pays attention to the cache file if you give it
34764# the --recheck option to rerun configure.
34765#
34766# `ac_cv_env_foo' variables (set or unset) will be overridden when
34767# loading this file, other *unset* `ac_cv_foo' will be assigned the
34768# following values.
34769
34770_ACEOF
34771
34772# The following way of writing the cache mishandles newlines in values,
34773# but we know of no workaround that is simple, portable, and efficient.
34774# So, we kill variables containing newlines.
34775# Ultrix sh set writes to stderr and can't be redirected directly,
34776# and sets the high bit in the cache file unless we assign to the vars.
34777(
34778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34779 eval ac_val=\$$ac_var
34780 case $ac_val in #(
34781 *${as_nl}*)
34782 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034784$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34785 esac
34786 case $ac_var in #(
34787 _ | IFS | as_nl) ;; #(
34788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034789 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034790 esac ;;
34791 esac
34792 done
34793
34794 (set) 2>&1 |
34795 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34796 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034797 # `set' does not quote correctly, so add quotes: double-quote
34798 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034799 sed -n \
34800 "s/'/'\\\\''/g;
34801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34802 ;; #(
34803 *)
34804 # `set' quotes correctly as required by POSIX, so do not add quotes.
34805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34806 ;;
34807 esac |
34808 sort
34809) |
34810 sed '
34811 /^ac_cv_env_/b end
34812 t clear
34813 :clear
34814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34815 t end
34816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34817 :end' >>confcache
34818if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34819 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034820 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034821 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034822$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034823 if test ! -f "$cache_file" || test -h "$cache_file"; then
34824 cat confcache >"$cache_file"
34825 else
34826 case $cache_file in #(
34827 */* | ?:*)
34828 mv -f confcache "$cache_file"$$ &&
34829 mv -f "$cache_file"$$ "$cache_file" ;; #(
34830 *)
34831 mv -f confcache "$cache_file" ;;
34832 esac
34833 fi
34834 fi
cristy3ed852e2009-09-05 21:47:34 +000034835 else
cristy8b350f62009-11-15 23:12:43 +000034836 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034837$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34838 fi
34839fi
34840rm -f confcache
34841
34842test "x$prefix" = xNONE && prefix=$ac_default_prefix
34843# Let make expand exec_prefix.
34844test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34845
34846DEFS=-DHAVE_CONFIG_H
34847
34848ac_libobjs=
34849ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034850U=
cristy3ed852e2009-09-05 21:47:34 +000034851for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34852 # 1. Remove the extension, and $U if already installed.
34853 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34854 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34855 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34856 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034857 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34858 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034859done
34860LIBOBJS=$ac_libobjs
34861
34862LTLIBOBJS=$ac_ltlibobjs
34863
34864
cristy73bd4a52010-10-05 11:24:23 +000034865 if test -n "$EXEEXT"; then
34866 am__EXEEXT_TRUE=
34867 am__EXEEXT_FALSE='#'
34868else
34869 am__EXEEXT_TRUE='#'
34870 am__EXEEXT_FALSE=
34871fi
cristy3ed852e2009-09-05 21:47:34 +000034872
cristy73bd4a52010-10-05 11:24:23 +000034873if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034874 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034875Usually this means the macro was only invoked conditionally." "$LINENO" 5
34876fi
34877if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034878 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034879Usually this means the macro was only invoked conditionally." "$LINENO" 5
34880fi
34881if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034882 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034883Usually this means the macro was only invoked conditionally." "$LINENO" 5
34884fi
34885if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034886 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034887Usually this means the macro was only invoked conditionally." "$LINENO" 5
34888fi
34889if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034890 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034891Usually this means the macro was only invoked conditionally." "$LINENO" 5
34892fi
34893if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034894 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034895Usually this means the macro was only invoked conditionally." "$LINENO" 5
34896fi
34897if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034898 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034899Usually this means the macro was only invoked conditionally." "$LINENO" 5
34900fi
34901if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034902 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034903Usually this means the macro was only invoked conditionally." "$LINENO" 5
34904fi
cristy73bd4a52010-10-05 11:24:23 +000034905if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034906 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034907Usually this means the macro was only invoked conditionally." "$LINENO" 5
34908fi
34909if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034910 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034911Usually this means the macro was only invoked conditionally." "$LINENO" 5
34912fi
34913LT_CONFIG_H=config/config.h
34914
34915 _ltdl_libobjs=
34916 _ltdl_ltlibobjs=
34917 if test -n "$_LT_LIBOBJS"; then
34918 # Remove the extension.
34919 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34920 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34921 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34922 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34923 done
34924 fi
34925 ltdl_LIBOBJS=$_ltdl_libobjs
34926
34927 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34928
34929
34930if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034931 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034932Usually this means the macro was only invoked conditionally." "$LINENO" 5
34933fi
34934if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034935 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034936Usually this means the macro was only invoked conditionally." "$LINENO" 5
34937fi
34938if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034939 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034940Usually this means the macro was only invoked conditionally." "$LINENO" 5
34941fi
34942if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034943 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034944Usually this means the macro was only invoked conditionally." "$LINENO" 5
34945fi
34946
34947if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034948 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034949Usually this means the macro was only invoked conditionally." "$LINENO" 5
34950fi
34951if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034952 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034953Usually this means the macro was only invoked conditionally." "$LINENO" 5
34954fi
34955if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034956 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034957Usually this means the macro was only invoked conditionally." "$LINENO" 5
34958fi
34959if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034960 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034961Usually this means the macro was only invoked conditionally." "$LINENO" 5
34962fi
34963if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034964 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034965Usually this means the macro was only invoked conditionally." "$LINENO" 5
34966fi
34967if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034968 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034969Usually this means the macro was only invoked conditionally." "$LINENO" 5
34970fi
34971if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034972 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034973Usually this means the macro was only invoked conditionally." "$LINENO" 5
34974fi
34975if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034976 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034977Usually this means the macro was only invoked conditionally." "$LINENO" 5
34978fi
34979if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034980 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034981Usually this means the macro was only invoked conditionally." "$LINENO" 5
34982fi
34983if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034984 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034985Usually this means the macro was only invoked conditionally." "$LINENO" 5
34986fi
34987if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034988 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034989Usually this means the macro was only invoked conditionally." "$LINENO" 5
34990fi
34991if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034992 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034993Usually this means the macro was only invoked conditionally." "$LINENO" 5
34994fi
34995if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034996 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034997Usually this means the macro was only invoked conditionally." "$LINENO" 5
34998fi
34999if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035000 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035001Usually this means the macro was only invoked conditionally." "$LINENO" 5
35002fi
35003if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035004 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035005Usually this means the macro was only invoked conditionally." "$LINENO" 5
35006fi
35007if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035008 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035009Usually this means the macro was only invoked conditionally." "$LINENO" 5
35010fi
35011if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035012 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035013Usually this means the macro was only invoked conditionally." "$LINENO" 5
35014fi
35015if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035016 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035017Usually this means the macro was only invoked conditionally." "$LINENO" 5
35018fi
35019if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035020 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035021Usually this means the macro was only invoked conditionally." "$LINENO" 5
35022fi
35023if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035024 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035025Usually this means the macro was only invoked conditionally." "$LINENO" 5
35026fi
cristyfbb0ef02010-12-19 02:32:11 +000035027if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35028 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35029Usually this means the macro was only invoked conditionally." "$LINENO" 5
35030fi
cristy73bd4a52010-10-05 11:24:23 +000035031if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035032 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035033Usually this means the macro was only invoked conditionally." "$LINENO" 5
35034fi
35035if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035036 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035037Usually this means the macro was only invoked conditionally." "$LINENO" 5
35038fi
35039if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035040 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035041Usually this means the macro was only invoked conditionally." "$LINENO" 5
35042fi
35043if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035044 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035045Usually this means the macro was only invoked conditionally." "$LINENO" 5
35046fi
35047if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035048 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035049Usually this means the macro was only invoked conditionally." "$LINENO" 5
35050fi
cristyb1860752011-03-14 00:27:46 +000035051if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35052 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35053Usually this means the macro was only invoked conditionally." "$LINENO" 5
35054fi
cristy73bd4a52010-10-05 11:24:23 +000035055if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035056 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035057Usually this means the macro was only invoked conditionally." "$LINENO" 5
35058fi
35059if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035060 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035061Usually this means the macro was only invoked conditionally." "$LINENO" 5
35062fi
35063if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035064 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035065Usually this means the macro was only invoked conditionally." "$LINENO" 5
35066fi
35067if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035068 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035069Usually this means the macro was only invoked conditionally." "$LINENO" 5
35070fi
35071if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035072 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035073Usually this means the macro was only invoked conditionally." "$LINENO" 5
35074fi
35075if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035076 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035077Usually this means the macro was only invoked conditionally." "$LINENO" 5
35078fi
35079if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035080 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035081Usually this means the macro was only invoked conditionally." "$LINENO" 5
35082fi
35083if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035084 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035085Usually this means the macro was only invoked conditionally." "$LINENO" 5
35086fi
cristy3ed852e2009-09-05 21:47:34 +000035087
cristyda16f162011-02-19 23:52:17 +000035088: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035089ac_write_fail=0
35090ac_clean_files_save=$ac_clean_files
35091ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035092{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035093$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035094as_write_fail=0
35095cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035096#! $SHELL
35097# Generated by $as_me.
35098# Run this file to recreate the current configuration.
35099# Compiler output produced by configure, useful for debugging
35100# configure, is in config.log if it exists.
35101
35102debug=false
35103ac_cs_recheck=false
35104ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035105
cristy8b350f62009-11-15 23:12:43 +000035106SHELL=\${CONFIG_SHELL-$SHELL}
35107export SHELL
35108_ASEOF
35109cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35110## -------------------- ##
35111## M4sh Initialization. ##
35112## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035113
35114# Be more Bourne compatible
35115DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035116if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035117 emulate sh
35118 NULLCMD=:
35119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35120 # is contrary to our usage. Disable this feature.
35121 alias -g '${1+"$@"}'='"$@"'
35122 setopt NO_GLOB_SUBST
35123else
cristy8b350f62009-11-15 23:12:43 +000035124 case `(set -o) 2>/dev/null` in #(
35125 *posix*) :
35126 set -o posix ;; #(
35127 *) :
35128 ;;
cristy3ed852e2009-09-05 21:47:34 +000035129esac
cristy3ed852e2009-09-05 21:47:34 +000035130fi
35131
35132
cristy3ed852e2009-09-05 21:47:34 +000035133as_nl='
35134'
35135export as_nl
35136# Printing a long string crashes Solaris 7 /usr/bin/printf.
35137as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35138as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35139as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035140# Prefer a ksh shell builtin over an external printf program on Solaris,
35141# but without wasting forks for bash or zsh.
35142if test -z "$BASH_VERSION$ZSH_VERSION" \
35143 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35144 as_echo='print -r --'
35145 as_echo_n='print -rn --'
35146elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035147 as_echo='printf %s\n'
35148 as_echo_n='printf %s'
35149else
35150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35151 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35152 as_echo_n='/usr/ucb/echo -n'
35153 else
35154 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35155 as_echo_n_body='eval
35156 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035157 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035158 *"$as_nl"*)
35159 expr "X$arg" : "X\\(.*\\)$as_nl";
35160 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35161 esac;
35162 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35163 '
35164 export as_echo_n_body
35165 as_echo_n='sh -c $as_echo_n_body as_echo'
35166 fi
35167 export as_echo_body
35168 as_echo='sh -c $as_echo_body as_echo'
35169fi
35170
35171# The user is always right.
35172if test "${PATH_SEPARATOR+set}" != set; then
35173 PATH_SEPARATOR=:
35174 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35175 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35176 PATH_SEPARATOR=';'
35177 }
35178fi
35179
cristy3ed852e2009-09-05 21:47:34 +000035180
35181# IFS
35182# We need space, tab and new line, in precisely that order. Quoting is
35183# there to prevent editors from complaining about space-tab.
35184# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35185# splitting by setting IFS to empty value.)
35186IFS=" "" $as_nl"
35187
35188# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035189as_myself=
cristy8b350f62009-11-15 23:12:43 +000035190case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035191 *[\\/]* ) as_myself=$0 ;;
35192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35193for as_dir in $PATH
35194do
35195 IFS=$as_save_IFS
35196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35198 done
cristy3ed852e2009-09-05 21:47:34 +000035199IFS=$as_save_IFS
35200
35201 ;;
35202esac
35203# We did not find ourselves, most probably we were run as `sh COMMAND'
35204# in which case we are not to be found in the path.
35205if test "x$as_myself" = x; then
35206 as_myself=$0
35207fi
35208if test ! -f "$as_myself"; then
35209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035210 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035211fi
35212
cristy8b350f62009-11-15 23:12:43 +000035213# Unset variables that we do not need and which cause bugs (e.g. in
35214# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35215# suppresses any "Segmentation fault" message there. '((' could
35216# trigger a bug in pdksh 5.2.14.
35217for as_var in BASH_ENV ENV MAIL MAILPATH
35218do eval test x\${$as_var+set} = xset \
35219 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035220done
35221PS1='$ '
35222PS2='> '
35223PS4='+ '
35224
35225# NLS nuisances.
35226LC_ALL=C
35227export LC_ALL
35228LANGUAGE=C
35229export LANGUAGE
35230
cristy8b350f62009-11-15 23:12:43 +000035231# CDPATH.
35232(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35233
35234
cristy98dddb52010-11-04 00:30:15 +000035235# as_fn_error STATUS ERROR [LINENO LOG_FD]
35236# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035237# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35238# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035239# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035240as_fn_error ()
35241{
cristy98dddb52010-11-04 00:30:15 +000035242 as_status=$1; test $as_status -eq 0 && as_status=1
35243 if test "$4"; then
35244 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35245 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035246 fi
cristy98dddb52010-11-04 00:30:15 +000035247 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035248 as_fn_exit $as_status
35249} # as_fn_error
35250
35251
35252# as_fn_set_status STATUS
35253# -----------------------
35254# Set $? to STATUS, without forking.
35255as_fn_set_status ()
35256{
35257 return $1
35258} # as_fn_set_status
35259
35260# as_fn_exit STATUS
35261# -----------------
35262# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35263as_fn_exit ()
35264{
35265 set +e
35266 as_fn_set_status $1
35267 exit $1
35268} # as_fn_exit
35269
35270# as_fn_unset VAR
35271# ---------------
35272# Portably unset VAR.
35273as_fn_unset ()
35274{
35275 { eval $1=; unset $1;}
35276}
35277as_unset=as_fn_unset
35278# as_fn_append VAR VALUE
35279# ----------------------
35280# Append the text in VALUE to the end of the definition contained in VAR. Take
35281# advantage of any shell optimizations that allow amortized linear growth over
35282# repeated appends, instead of the typical quadratic growth present in naive
35283# implementations.
35284if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35285 eval 'as_fn_append ()
35286 {
35287 eval $1+=\$2
35288 }'
35289else
35290 as_fn_append ()
35291 {
35292 eval $1=\$$1\$2
35293 }
35294fi # as_fn_append
35295
35296# as_fn_arith ARG...
35297# ------------------
35298# Perform arithmetic evaluation on the ARGs, and store the result in the
35299# global $as_val. Take advantage of shells that can avoid forks. The arguments
35300# must be portable across $(()) and expr.
35301if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35302 eval 'as_fn_arith ()
35303 {
35304 as_val=$(( $* ))
35305 }'
35306else
35307 as_fn_arith ()
35308 {
35309 as_val=`expr "$@" || test $? -eq 1`
35310 }
35311fi # as_fn_arith
35312
35313
cristy3ed852e2009-09-05 21:47:34 +000035314if expr a : '\(a\)' >/dev/null 2>&1 &&
35315 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35316 as_expr=expr
35317else
35318 as_expr=false
35319fi
35320
35321if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35322 as_basename=basename
35323else
35324 as_basename=false
35325fi
35326
cristy8b350f62009-11-15 23:12:43 +000035327if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35328 as_dirname=dirname
35329else
35330 as_dirname=false
35331fi
cristy3ed852e2009-09-05 21:47:34 +000035332
cristy3ed852e2009-09-05 21:47:34 +000035333as_me=`$as_basename -- "$0" ||
35334$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35335 X"$0" : 'X\(//\)$' \| \
35336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35337$as_echo X/"$0" |
35338 sed '/^.*\/\([^/][^/]*\)\/*$/{
35339 s//\1/
35340 q
35341 }
35342 /^X\/\(\/\/\)$/{
35343 s//\1/
35344 q
35345 }
35346 /^X\/\(\/\).*/{
35347 s//\1/
35348 q
35349 }
35350 s/.*/./; q'`
35351
cristy8b350f62009-11-15 23:12:43 +000035352# Avoid depending upon Character Ranges.
35353as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35354as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35355as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35356as_cr_digits='0123456789'
35357as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035358
35359ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035360case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035361-n*)
cristy8b350f62009-11-15 23:12:43 +000035362 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035363 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035364 xy) ECHO_C='\c';;
35365 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35366 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035367 esac;;
35368*)
35369 ECHO_N='-n';;
35370esac
cristy3ed852e2009-09-05 21:47:34 +000035371
35372rm -f conf$$ conf$$.exe conf$$.file
35373if test -d conf$$.dir; then
35374 rm -f conf$$.dir/conf$$.file
35375else
35376 rm -f conf$$.dir
35377 mkdir conf$$.dir 2>/dev/null
35378fi
35379if (echo >conf$$.file) 2>/dev/null; then
35380 if ln -s conf$$.file conf$$ 2>/dev/null; then
35381 as_ln_s='ln -s'
35382 # ... but there are two gotchas:
35383 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35384 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35385 # In both cases, we have to default to `cp -p'.
35386 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35387 as_ln_s='cp -p'
35388 elif ln conf$$.file conf$$ 2>/dev/null; then
35389 as_ln_s=ln
35390 else
35391 as_ln_s='cp -p'
35392 fi
35393else
35394 as_ln_s='cp -p'
35395fi
35396rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35397rmdir conf$$.dir 2>/dev/null
35398
cristy8b350f62009-11-15 23:12:43 +000035399
35400# as_fn_mkdir_p
35401# -------------
35402# Create "$as_dir" as a directory, including parents if necessary.
35403as_fn_mkdir_p ()
35404{
35405
35406 case $as_dir in #(
35407 -*) as_dir=./$as_dir;;
35408 esac
35409 test -d "$as_dir" || eval $as_mkdir_p || {
35410 as_dirs=
35411 while :; do
35412 case $as_dir in #(
35413 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35414 *) as_qdir=$as_dir;;
35415 esac
35416 as_dirs="'$as_qdir' $as_dirs"
35417 as_dir=`$as_dirname -- "$as_dir" ||
35418$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35419 X"$as_dir" : 'X\(//\)[^/]' \| \
35420 X"$as_dir" : 'X\(//\)$' \| \
35421 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35422$as_echo X"$as_dir" |
35423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35424 s//\1/
35425 q
35426 }
35427 /^X\(\/\/\)[^/].*/{
35428 s//\1/
35429 q
35430 }
35431 /^X\(\/\/\)$/{
35432 s//\1/
35433 q
35434 }
35435 /^X\(\/\).*/{
35436 s//\1/
35437 q
35438 }
35439 s/.*/./; q'`
35440 test -d "$as_dir" && break
35441 done
35442 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035443 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035444
35445
35446} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035447if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035448 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035449else
35450 test -d ./-p && rmdir ./-p
35451 as_mkdir_p=false
35452fi
35453
35454if test -x / >/dev/null 2>&1; then
35455 as_test_x='test -x'
35456else
35457 if ls -dL / >/dev/null 2>&1; then
35458 as_ls_L_option=L
35459 else
35460 as_ls_L_option=
35461 fi
35462 as_test_x='
35463 eval sh -c '\''
35464 if test -d "$1"; then
35465 test -d "$1/.";
35466 else
cristy8b350f62009-11-15 23:12:43 +000035467 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035468 -*)set "./$1";;
35469 esac;
cristy8b350f62009-11-15 23:12:43 +000035470 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035471 ???[sx]*):;;*)false;;esac;fi
35472 '\'' sh
35473 '
35474fi
35475as_executable_p=$as_test_x
35476
35477# Sed expression to map a string onto a valid CPP name.
35478as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35479
35480# Sed expression to map a string onto a valid variable name.
35481as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35482
35483
35484exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035485## ----------------------------------- ##
35486## Main body of $CONFIG_STATUS script. ##
35487## ----------------------------------- ##
35488_ASEOF
35489test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035490
cristy8b350f62009-11-15 23:12:43 +000035491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35492# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035493# report actual input values of CONFIG_FILES etc. instead of their
35494# values after options handling.
35495ac_log="
cristy4c08aed2011-07-01 19:47:50 +000035496This file was extended by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +000035497generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035498
35499 CONFIG_FILES = $CONFIG_FILES
35500 CONFIG_HEADERS = $CONFIG_HEADERS
35501 CONFIG_LINKS = $CONFIG_LINKS
35502 CONFIG_COMMANDS = $CONFIG_COMMANDS
35503 $ $0 $@
35504
35505on `(hostname || uname -n) 2>/dev/null | sed 1q`
35506"
35507
35508_ACEOF
35509
35510case $ac_config_files in *"
35511"*) set x $ac_config_files; shift; ac_config_files=$*;;
35512esac
35513
35514case $ac_config_headers in *"
35515"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35516esac
35517
35518
35519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35520# Files that config.status was made for.
35521config_files="$ac_config_files"
35522config_headers="$ac_config_headers"
35523config_commands="$ac_config_commands"
35524
35525_ACEOF
35526
35527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35528ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035529\`$as_me' instantiates files and other configuration actions
35530from templates according to the current configuration. Unless the files
35531and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035532
cristy8b350f62009-11-15 23:12:43 +000035533Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035534
35535 -h, --help print this help, then exit
35536 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035537 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035538 -q, --quiet, --silent
35539 do not print progress messages
35540 -d, --debug don't remove temporary files
35541 --recheck update $as_me by reconfiguring in the same conditions
35542 --file=FILE[:TEMPLATE]
35543 instantiate the configuration file FILE
35544 --header=FILE[:TEMPLATE]
35545 instantiate the configuration header FILE
35546
35547Configuration files:
35548$config_files
35549
35550Configuration headers:
35551$config_headers
35552
35553Configuration commands:
35554$config_commands
35555
cristy8b350f62009-11-15 23:12:43 +000035556Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035557
35558_ACEOF
35559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035560ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035561ac_cs_version="\\
cristy4c08aed2011-07-01 19:47:50 +000035562ImageMagick config.status 7.0.0
cristyda16f162011-02-19 23:52:17 +000035563configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035564 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035565
cristy98dddb52010-11-04 00:30:15 +000035566Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035567This config.status script is free software; the Free Software Foundation
35568gives unlimited permission to copy, distribute and modify it."
35569
35570ac_pwd='$ac_pwd'
35571srcdir='$srcdir'
35572INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035573MKDIR_P='$MKDIR_P'
35574AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035575test -n "\$AWK" || AWK=awk
35576_ACEOF
35577
35578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35579# The default lists apply if the user does not specify any file.
35580ac_need_defaults=:
35581while test $# != 0
35582do
35583 case $1 in
cristyda16f162011-02-19 23:52:17 +000035584 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035585 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35586 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35587 ac_shift=:
35588 ;;
cristyda16f162011-02-19 23:52:17 +000035589 --*=)
35590 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35591 ac_optarg=
35592 ac_shift=:
35593 ;;
cristy3ed852e2009-09-05 21:47:34 +000035594 *)
35595 ac_option=$1
35596 ac_optarg=$2
35597 ac_shift=shift
35598 ;;
35599 esac
35600
35601 case $ac_option in
35602 # Handling of the options.
35603 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35604 ac_cs_recheck=: ;;
35605 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35606 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035607 --config | --confi | --conf | --con | --co | --c )
35608 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035609 --debug | --debu | --deb | --de | --d | -d )
35610 debug=: ;;
35611 --file | --fil | --fi | --f )
35612 $ac_shift
35613 case $ac_optarg in
35614 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035615 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035616 esac
cristy8b350f62009-11-15 23:12:43 +000035617 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035618 ac_need_defaults=false;;
35619 --header | --heade | --head | --hea )
35620 $ac_shift
35621 case $ac_optarg in
35622 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35623 esac
cristy8b350f62009-11-15 23:12:43 +000035624 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035625 ac_need_defaults=false;;
35626 --he | --h)
35627 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035628 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035629Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035630 --help | --hel | -h )
35631 $as_echo "$ac_cs_usage"; exit ;;
35632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35633 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35634 ac_cs_silent=: ;;
35635
35636 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035637 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035638Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035639
cristy8b350f62009-11-15 23:12:43 +000035640 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035641 ac_need_defaults=false ;;
35642
35643 esac
35644 shift
35645done
35646
35647ac_configure_extra_args=
35648
35649if $ac_cs_silent; then
35650 exec 6>/dev/null
35651 ac_configure_extra_args="$ac_configure_extra_args --silent"
35652fi
35653
35654_ACEOF
35655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35656if \$ac_cs_recheck; then
35657 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35658 shift
35659 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35660 CONFIG_SHELL='$SHELL'
35661 export CONFIG_SHELL
35662 exec "\$@"
35663fi
35664
35665_ACEOF
35666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35667exec 5>>config.log
35668{
35669 echo
35670 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35671## Running $as_me. ##
35672_ASBOX
35673 $as_echo "$ac_log"
35674} >&5
35675
35676_ACEOF
35677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035678#
35679# INIT-COMMANDS
35680#
35681PACKAGE="$PACKAGE"
35682AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35683
35684
35685# The HP-UX ksh and POSIX shell print the target directory to stdout
35686# if CDPATH is set.
35687(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35688
35689sed_quote_subst='$sed_quote_subst'
35690double_quote_subst='$double_quote_subst'
35691delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035692SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35693Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35694GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35695EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35696FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35697SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35698ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35699LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35700macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35701macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35702AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35703DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35704OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35705enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35706enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35707pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35708enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35709host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35710host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35711host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35712build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35713build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35714build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35715NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35716LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35717max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35718ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35719exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35720lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35721lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35722lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035723lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35724lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035725reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35726reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35727deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35728file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035729file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35730want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35731sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035732AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35733AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035734archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035735STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35736RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35737old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35738old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35739old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35740lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35741CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35742CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35743compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35744GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35745lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35746lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35747lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35748lt_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 +000035749nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35750lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035751objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35752MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35753lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035754lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035755lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035756lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35757lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35758need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035759MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035760DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35761NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35762LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35763OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35764OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35765libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35766shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35767extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35768archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35769enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35770export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35771whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35772compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35773old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35774old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35775archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35776archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35777module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35778module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35779with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35780allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35781no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35782hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35783hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35784hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35785hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35786hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35787hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35788hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35789hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35790inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35791link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035792always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35793export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35794exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35795include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35796prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035797postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035798file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35799variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35800need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35801need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35802version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35803runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35804shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35805shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35806libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35807library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35808soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35809install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35810postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35811postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35812finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35813finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35814hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35815sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35816sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35817hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35818enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35819enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35820enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35821old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35822striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35823compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35824predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35825postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35826predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35827postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35828compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35829LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35830reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35831reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35832old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35833compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35834GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35835lt_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 +000035836lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035837lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035838lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35839lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35840archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35841enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35842export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35843whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35844compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35845old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35846old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35847archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35848archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35849module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35850module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35851with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35852allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35853no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35854hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35855hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35856hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35857hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35858hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35859hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35860hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35861hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35862inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35863link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035864always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35865export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35866exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35867include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35868prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035869postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035870file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35871hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35872compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35873predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35874postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35875predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35876postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35877compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035878
35879LTCC='$LTCC'
35880LTCFLAGS='$LTCFLAGS'
35881compiler='$compiler_DEFAULT'
35882
cristy0c60a692010-11-04 01:09:47 +000035883# A function that is used when there is no print builtin or printf.
35884func_fallback_echo ()
35885{
35886 eval 'cat <<_LTECHO_EOF
35887\$1
35888_LTECHO_EOF'
35889}
35890
cristy73bd4a52010-10-05 11:24:23 +000035891# Quote evaled strings.
35892for var in SED \
35893GREP \
35894EGREP \
35895FGREP \
cristy0c60a692010-11-04 01:09:47 +000035896SHELL \
35897ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035898LD \
cristy0c60a692010-11-04 01:09:47 +000035899AS \
35900DLLTOOL \
35901OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000035902NM \
35903LN_S \
35904lt_SP2NL \
35905lt_NL2SP \
35906reload_flag \
35907deplibs_check_method \
35908file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035909file_magic_glob \
35910want_nocaseglob \
35911sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035912AR \
35913AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035914archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035915STRIP \
35916RANLIB \
35917CC \
35918CFLAGS \
35919compiler \
35920lt_cv_sys_global_symbol_pipe \
35921lt_cv_sys_global_symbol_to_cdecl \
35922lt_cv_sys_global_symbol_to_c_name_address \
35923lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035924nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035925lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035926lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035927lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035928lt_prog_compiler_static \
35929lt_cv_prog_compiler_c_o \
35930need_locks \
cristyda16f162011-02-19 23:52:17 +000035931MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035932DSYMUTIL \
35933NMEDIT \
35934LIPO \
35935OTOOL \
35936OTOOL64 \
35937shrext_cmds \
35938export_dynamic_flag_spec \
35939whole_archive_flag_spec \
35940compiler_needs_object \
35941with_gnu_ld \
35942allow_undefined_flag \
35943no_undefined_flag \
35944hardcode_libdir_flag_spec \
35945hardcode_libdir_flag_spec_ld \
35946hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000035947exclude_expsyms \
35948include_expsyms \
35949file_list_spec \
35950variables_saved_for_relink \
35951libname_spec \
35952library_names_spec \
35953soname_spec \
cristy0c60a692010-11-04 01:09:47 +000035954install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000035955finish_eval \
35956old_striplib \
35957striplib \
35958compiler_lib_search_dirs \
35959predep_objects \
35960postdep_objects \
35961predeps \
35962postdeps \
35963compiler_lib_search_path \
35964LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000035965reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035966compiler_CXX \
35967lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035968lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000035969lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035970lt_prog_compiler_static_CXX \
35971lt_cv_prog_compiler_c_o_CXX \
35972export_dynamic_flag_spec_CXX \
35973whole_archive_flag_spec_CXX \
35974compiler_needs_object_CXX \
35975with_gnu_ld_CXX \
35976allow_undefined_flag_CXX \
35977no_undefined_flag_CXX \
35978hardcode_libdir_flag_spec_CXX \
35979hardcode_libdir_flag_spec_ld_CXX \
35980hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035981exclude_expsyms_CXX \
35982include_expsyms_CXX \
35983file_list_spec_CXX \
35984compiler_lib_search_dirs_CXX \
35985predep_objects_CXX \
35986postdep_objects_CXX \
35987predeps_CXX \
35988postdeps_CXX \
35989compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035990 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035991 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035992 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035993 ;;
35994 *)
35995 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35996 ;;
35997 esac
35998done
35999
36000# Double-quote double-evaled strings.
36001for var in reload_cmds \
36002old_postinstall_cmds \
36003old_postuninstall_cmds \
36004old_archive_cmds \
36005extract_expsyms_cmds \
36006old_archive_from_new_cmds \
36007old_archive_from_expsyms_cmds \
36008archive_cmds \
36009archive_expsym_cmds \
36010module_cmds \
36011module_expsym_cmds \
36012export_symbols_cmds \
36013prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036014postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036015postinstall_cmds \
36016postuninstall_cmds \
36017finish_cmds \
36018sys_lib_search_path_spec \
36019sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036020reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036021old_archive_cmds_CXX \
36022old_archive_from_new_cmds_CXX \
36023old_archive_from_expsyms_cmds_CXX \
36024archive_cmds_CXX \
36025archive_expsym_cmds_CXX \
36026module_cmds_CXX \
36027module_expsym_cmds_CXX \
36028export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036029prelink_cmds_CXX \
36030postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036031 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036032 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036033 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036034 ;;
36035 *)
36036 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36037 ;;
36038 esac
36039done
36040
cristy73bd4a52010-10-05 11:24:23 +000036041ac_aux_dir='$ac_aux_dir'
36042xsi_shell='$xsi_shell'
36043lt_shell_append='$lt_shell_append'
36044
36045# See if we are running on zsh, and set the options which allow our
36046# commands through without removal of \ escapes INIT.
36047if test -n "\${ZSH_VERSION+set}" ; then
36048 setopt NO_GLOB_SUBST
36049fi
36050
36051
36052 PACKAGE='$PACKAGE'
36053 VERSION='$VERSION'
36054 TIMESTAMP='$TIMESTAMP'
36055 RM='$RM'
36056 ofile='$ofile'
36057
36058
36059
36060
36061
36062
cristy3ed852e2009-09-05 21:47:34 +000036063_ACEOF
36064
36065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36066
36067# Handling of arguments.
36068for ac_config_target in $ac_config_targets
36069do
36070 case $ac_config_target in
36071 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036072 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036073 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36074 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36075 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36076 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36077 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036078 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036079 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36080 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36081 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36082 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36083 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036084 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036085 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36086 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036087 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36088 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36089 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036090 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36091 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36092 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36093 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36094 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36095 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36096 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36097 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36098 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36099 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36100 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36101 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36102 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36103 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36104 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36105 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36106 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036107 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36108 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036109 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36110 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036111 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36112 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036113 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036114 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36115 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36116
cristy98dddb52010-11-04 00:30:15 +000036117 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036118 esac
36119done
36120
36121
36122# If the user did not use the arguments to specify the items to instantiate,
36123# then the envvar interface is used. Set only those that are not.
36124# We use the long form for the default assignment because of an extremely
36125# bizarre bug on SunOS 4.1.3.
36126if $ac_need_defaults; then
36127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36130fi
36131
36132# Have a temporary directory for convenience. Make it in the build tree
36133# simply because there is no reason against having it here, and in addition,
36134# creating and moving files from /tmp can sometimes cause problems.
36135# Hook for its removal unless debugging.
36136# Note that there is a small window in which the directory will not be cleaned:
36137# after its creation but before its name has been assigned to `$tmp'.
36138$debug ||
36139{
cristyda16f162011-02-19 23:52:17 +000036140 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036141 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036142 : "${ac_tmp:=$tmp}"
36143 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036144' 0
cristy8b350f62009-11-15 23:12:43 +000036145 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036146}
36147# Create a (secure) tmp directory for tmp files.
36148
36149{
36150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036151 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036152} ||
36153{
36154 tmp=./conf$$-$RANDOM
36155 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036156} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036157ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036158
36159# Set up the scripts for CONFIG_FILES section.
36160# No need to generate them if there are no CONFIG_FILES.
36161# This happens for instance with `./config.status config.h'.
36162if test -n "$CONFIG_FILES"; then
36163
36164
cristy8b350f62009-11-15 23:12:43 +000036165ac_cr=`echo X | tr X '\015'`
36166# On cygwin, bash can eat \r inside `` if the user requested igncr.
36167# But we know of no other shell where ac_cr would be empty at this
36168# point, so we can use a bashism as a fallback.
36169if test "x$ac_cr" = x; then
36170 eval ac_cr=\$\'\\r\'
36171fi
cristy3ed852e2009-09-05 21:47:34 +000036172ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36173if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036174 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036175else
36176 ac_cs_awk_cr=$ac_cr
36177fi
36178
cristyda16f162011-02-19 23:52:17 +000036179echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036180_ACEOF
36181
36182
36183{
36184 echo "cat >conf$$subs.awk <<_ACEOF" &&
36185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36186 echo "_ACEOF"
36187} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36189ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036190ac_delim='%!_!# '
36191for ac_last_try in false false false false false :; do
36192 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036194
36195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36196 if test $ac_delim_n = $ac_delim_num; then
36197 break
36198 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036200 else
36201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36202 fi
36203done
36204rm -f conf$$subs.sh
36205
36206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036207cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036208_ACEOF
36209sed -n '
36210h
36211s/^/S["/; s/!.*/"]=/
36212p
36213g
36214s/^[^!]*!//
36215:repl
36216t repl
36217s/'"$ac_delim"'$//
36218t delim
36219:nl
36220h
cristycd4c5312009-11-22 01:19:08 +000036221s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036222t more1
36223s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36224p
36225n
36226b repl
36227:more1
36228s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36229p
36230g
36231s/.\{148\}//
36232t nl
36233:delim
36234h
cristycd4c5312009-11-22 01:19:08 +000036235s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036236t more2
36237s/["\\]/\\&/g; s/^/"/; s/$/"/
36238p
36239b
36240:more2
36241s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36242p
36243g
36244s/.\{148\}//
36245t delim
36246' <conf$$subs.awk | sed '
36247/^[^""]/{
36248 N
36249 s/\n//
36250}
36251' >>$CONFIG_STATUS || ac_write_fail=1
36252rm -f conf$$subs.awk
36253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36254_ACAWK
cristyda16f162011-02-19 23:52:17 +000036255cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036256 for (key in S) S_is_set[key] = 1
36257 FS = ""
36258
36259}
36260{
36261 line = $ 0
36262 nfields = split(line, field, "@")
36263 substed = 0
36264 len = length(field[1])
36265 for (i = 2; i < nfields; i++) {
36266 key = field[i]
36267 keylen = length(key)
36268 if (S_is_set[key]) {
36269 value = S[key]
36270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36271 len += length(value) + length(field[++i])
36272 substed = 1
36273 } else
36274 len += 1 + keylen
36275 }
36276
36277 print line
36278}
36279
36280_ACAWK
36281_ACEOF
36282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36283if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36284 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36285else
36286 cat
cristyda16f162011-02-19 23:52:17 +000036287fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036288 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036289_ACEOF
36290
cristy98dddb52010-11-04 00:30:15 +000036291# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36292# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036293# trailing colons and then remove the whole line if VPATH becomes empty
36294# (actually we leave an empty line to preserve line numbers).
36295if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036296 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36297h
36298s///
36299s/^/:/
36300s/[ ]*$/:/
36301s/:\$(srcdir):/:/g
36302s/:\${srcdir}:/:/g
36303s/:@srcdir@:/:/g
36304s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036305s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036306x
36307s/\(=[ ]*\).*/\1/
36308G
36309s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036310s/^[^=]*=[ ]*$//
36311}'
36312fi
36313
36314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36315fi # test -n "$CONFIG_FILES"
36316
36317# Set up the scripts for CONFIG_HEADERS section.
36318# No need to generate them if there are no CONFIG_HEADERS.
36319# This happens for instance with `./config.status Makefile'.
36320if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036321cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036322BEGIN {
36323_ACEOF
36324
36325# Transform confdefs.h into an awk script `defines.awk', embedded as
36326# here-document in config.status, that substitutes the proper values into
36327# config.h.in to produce config.h.
36328
36329# Create a delimiter string that does not exist in confdefs.h, to ease
36330# handling of long lines.
36331ac_delim='%!_!# '
36332for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036333 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36334 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036335 break
36336 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036337 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036338 else
36339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36340 fi
36341done
36342
36343# For the awk script, D is an array of macro values keyed by name,
36344# likewise P contains macro parameters if any. Preserve backslash
36345# newline sequences.
36346
36347ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36348sed -n '
36349s/.\{148\}/&'"$ac_delim"'/g
36350t rset
36351:rset
36352s/^[ ]*#[ ]*define[ ][ ]*/ /
36353t def
36354d
36355:def
36356s/\\$//
36357t bsnl
36358s/["\\]/\\&/g
36359s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36360D["\1"]=" \3"/p
36361s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36362d
36363:bsnl
36364s/["\\]/\\&/g
36365s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36366D["\1"]=" \3\\\\\\n"\\/p
36367t cont
36368s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36369t cont
36370d
36371:cont
36372n
36373s/.\{148\}/&'"$ac_delim"'/g
36374t clear
36375:clear
36376s/\\$//
36377t bsnlc
36378s/["\\]/\\&/g; s/^/"/; s/$/"/p
36379d
36380:bsnlc
36381s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36382b cont
36383' <confdefs.h | sed '
36384s/'"$ac_delim"'/"\\\
36385"/g' >>$CONFIG_STATUS || ac_write_fail=1
36386
36387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36388 for (key in D) D_is_set[key] = 1
36389 FS = ""
36390}
36391/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36392 line = \$ 0
36393 split(line, arg, " ")
36394 if (arg[1] == "#") {
36395 defundef = arg[2]
36396 mac1 = arg[3]
36397 } else {
36398 defundef = substr(arg[1], 2)
36399 mac1 = arg[2]
36400 }
36401 split(mac1, mac2, "(") #)
36402 macro = mac2[1]
36403 prefix = substr(line, 1, index(line, defundef) - 1)
36404 if (D_is_set[macro]) {
36405 # Preserve the white space surrounding the "#".
36406 print prefix "define", macro P[macro] D[macro]
36407 next
36408 } else {
36409 # Replace #undef with comments. This is necessary, for example,
36410 # in the case of _POSIX_SOURCE, which is predefined and required
36411 # on some systems where configure will not decide to define it.
36412 if (defundef == "undef") {
36413 print "/*", prefix defundef, macro, "*/"
36414 next
36415 }
36416 }
36417}
36418{ print }
36419_ACAWK
36420_ACEOF
36421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036422 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036423fi # test -n "$CONFIG_HEADERS"
36424
36425
36426eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36427shift
36428for ac_tag
36429do
36430 case $ac_tag in
36431 :[FHLC]) ac_mode=$ac_tag; continue;;
36432 esac
36433 case $ac_mode$ac_tag in
36434 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036435 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036436 :[FH]-) ac_tag=-:-;;
36437 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36438 esac
36439 ac_save_IFS=$IFS
36440 IFS=:
36441 set x $ac_tag
36442 IFS=$ac_save_IFS
36443 shift
36444 ac_file=$1
36445 shift
36446
36447 case $ac_mode in
36448 :L) ac_source=$1;;
36449 :[FH])
36450 ac_file_inputs=
36451 for ac_f
36452 do
36453 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036454 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036455 *) # Look for the file first in the build tree, then in the source tree
36456 # (if the path is not absolute). The absolute path cannot be DOS-style,
36457 # because $ac_f cannot contain `:'.
36458 test -f "$ac_f" ||
36459 case $ac_f in
36460 [\\/$]*) false;;
36461 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36462 esac ||
cristy98dddb52010-11-04 00:30:15 +000036463 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036464 esac
36465 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036466 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036467 done
36468
36469 # Let's still pretend it is `configure' which instantiates (i.e., don't
36470 # use $as_me), people would be surprised to read:
36471 # /* config.h. Generated by config.status. */
36472 configure_input='Generated from '`
36473 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36474 `' by configure.'
36475 if test x"$ac_file" != x-; then
36476 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036478$as_echo "$as_me: creating $ac_file" >&6;}
36479 fi
36480 # Neutralize special characters interpreted by sed in replacement strings.
36481 case $configure_input in #(
36482 *\&* | *\|* | *\\* )
36483 ac_sed_conf_input=`$as_echo "$configure_input" |
36484 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36485 *) ac_sed_conf_input=$configure_input;;
36486 esac
36487
36488 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036489 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036491 esac
36492 ;;
36493 esac
36494
36495 ac_dir=`$as_dirname -- "$ac_file" ||
36496$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36497 X"$ac_file" : 'X\(//\)[^/]' \| \
36498 X"$ac_file" : 'X\(//\)$' \| \
36499 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36500$as_echo X"$ac_file" |
36501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36502 s//\1/
36503 q
36504 }
36505 /^X\(\/\/\)[^/].*/{
36506 s//\1/
36507 q
36508 }
36509 /^X\(\/\/\)$/{
36510 s//\1/
36511 q
36512 }
36513 /^X\(\/\).*/{
36514 s//\1/
36515 q
36516 }
36517 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036518 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036519 ac_builddir=.
36520
36521case "$ac_dir" in
36522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36523*)
36524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36525 # A ".." for each directory in $ac_dir_suffix.
36526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36527 case $ac_top_builddir_sub in
36528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36530 esac ;;
36531esac
36532ac_abs_top_builddir=$ac_pwd
36533ac_abs_builddir=$ac_pwd$ac_dir_suffix
36534# for backward compatibility:
36535ac_top_builddir=$ac_top_build_prefix
36536
36537case $srcdir in
36538 .) # We are building in place.
36539 ac_srcdir=.
36540 ac_top_srcdir=$ac_top_builddir_sub
36541 ac_abs_top_srcdir=$ac_pwd ;;
36542 [\\/]* | ?:[\\/]* ) # Absolute name.
36543 ac_srcdir=$srcdir$ac_dir_suffix;
36544 ac_top_srcdir=$srcdir
36545 ac_abs_top_srcdir=$srcdir ;;
36546 *) # Relative name.
36547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36548 ac_top_srcdir=$ac_top_build_prefix$srcdir
36549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36550esac
36551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36552
36553
36554 case $ac_mode in
36555 :F)
36556 #
36557 # CONFIG_FILE
36558 #
36559
36560 case $INSTALL in
36561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36562 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36563 esac
cristy73bd4a52010-10-05 11:24:23 +000036564 ac_MKDIR_P=$MKDIR_P
36565 case $MKDIR_P in
36566 [\\/$]* | ?:[\\/]* ) ;;
36567 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36568 esac
cristy3ed852e2009-09-05 21:47:34 +000036569_ACEOF
36570
36571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36572# If the template does not know about datarootdir, expand it.
36573# FIXME: This hack should be removed a few years after 2.60.
36574ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036575ac_sed_dataroot='
36576/datarootdir/ {
36577 p
36578 q
36579}
36580/@datadir@/p
36581/@docdir@/p
36582/@infodir@/p
36583/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036584/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036585case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36586*datarootdir*) ac_datarootdir_seen=yes;;
36587*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036589$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36590_ACEOF
36591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36592 ac_datarootdir_hack='
36593 s&@datadir@&$datadir&g
36594 s&@docdir@&$docdir&g
36595 s&@infodir@&$infodir&g
36596 s&@localedir@&$localedir&g
36597 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036598 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036599esac
36600_ACEOF
36601
36602# Neutralize VPATH when `$srcdir' = `.'.
36603# Shell code in configure.ac might set extrasub.
36604# FIXME: do we really want to maintain this feature?
36605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36606ac_sed_extra="$ac_vpsub
36607$extrasub
36608_ACEOF
36609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36610:t
36611/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36612s|@configure_input@|$ac_sed_conf_input|;t t
36613s&@top_builddir@&$ac_top_builddir_sub&;t t
36614s&@top_build_prefix@&$ac_top_build_prefix&;t t
36615s&@srcdir@&$ac_srcdir&;t t
36616s&@abs_srcdir@&$ac_abs_srcdir&;t t
36617s&@top_srcdir@&$ac_top_srcdir&;t t
36618s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36619s&@builddir@&$ac_builddir&;t t
36620s&@abs_builddir@&$ac_abs_builddir&;t t
36621s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36622s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036623s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036624$ac_datarootdir_hack
36625"
cristyda16f162011-02-19 23:52:17 +000036626eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36627 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036628
36629test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036630 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36632 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036634which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036635$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036636which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036637
cristyda16f162011-02-19 23:52:17 +000036638 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036639 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036640 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36641 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036642 esac \
cristy98dddb52010-11-04 00:30:15 +000036643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036644 ;;
36645 :H)
36646 #
36647 # CONFIG_HEADER
36648 #
36649 if test x"$ac_file" != x-; then
36650 {
36651 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036652 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36653 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036655 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036656 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036657$as_echo "$as_me: $ac_file is unchanged" >&6;}
36658 else
36659 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036660 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036662 fi
36663 else
36664 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036666 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036667 fi
cristy73bd4a52010-10-05 11:24:23 +000036668# Compute "$ac_file"'s index in $config_headers.
36669_am_arg="$ac_file"
36670_am_stamp_count=1
36671for _am_header in $config_headers :; do
36672 case $_am_header in
36673 $_am_arg | $_am_arg:* )
36674 break ;;
36675 * )
36676 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36677 esac
36678done
36679echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36680$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36681 X"$_am_arg" : 'X\(//\)[^/]' \| \
36682 X"$_am_arg" : 'X\(//\)$' \| \
36683 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36684$as_echo X"$_am_arg" |
36685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36686 s//\1/
36687 q
36688 }
36689 /^X\(\/\/\)[^/].*/{
36690 s//\1/
36691 q
36692 }
36693 /^X\(\/\/\)$/{
36694 s//\1/
36695 q
36696 }
36697 /^X\(\/\).*/{
36698 s//\1/
36699 q
36700 }
36701 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036702 ;;
36703
cristy8b350f62009-11-15 23:12:43 +000036704 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036705$as_echo "$as_me: executing $ac_file commands" >&6;}
36706 ;;
36707 esac
36708
36709
36710 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036711 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000036712ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36713ac_prefix_conf_PKG=`echo MagickCore`
36714ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36715ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36716ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36717if test ".$ac_prefix_conf_INP" = "."; then
36718 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36719 case "$ac_file" in
36720 *.h) ac_prefix_conf_INP=$ac_file ;;
36721 *)
36722 esac
36723 test ".$ac_prefix_conf_INP" != "." && break
36724 done
36725fi
36726if test ".$ac_prefix_conf_INP" = "."; then
36727 case "$ac_prefix_conf_OUT" in
36728 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36729 ;;
36730 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36731 ;;
36732 *) ac_prefix_conf_INP=config.h
36733 ;;
36734 esac
36735fi
36736if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036737 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036738else
36739 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36740 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36741 fi fi
36742 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36743$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36744 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036745 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36746 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36747 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36748 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36749 $as_echo "#endif/" >> conftest.prefix
36750 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36751 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36752 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036753 # now executing _script on _DEF input to create _OUT output file
36754 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36755 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36756 echo ' ' >>$tmp/pconfig.h
36757 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36758
36759 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36760 echo ' ' >>$tmp/pconfig.h
36761 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36762 echo "#endif" >>$tmp/pconfig.h
36763 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36764 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36765$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36766 else
36767 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36768$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36769 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36770 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36771 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36772$as_echo X"$ac_prefix_conf_OUT" |
36773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36774 s//\1/
36775 q
36776 }
36777 /^X\(\/\/\)[^/].*/{
36778 s//\1/
36779 q
36780 }
36781 /^X\(\/\/\)$/{
36782 s//\1/
36783 q
36784 }
36785 /^X\(\/\).*/{
36786 s//\1/
36787 q
36788 }
36789 s/.*/./; q'`
36790 as_dir="$ac_dir"; as_fn_mkdir_p
36791 rm -f "$ac_prefix_conf_OUT"
36792 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36793 fi
36794 cp conftest.prefix _configs.sed
36795 else
cristy98dddb52010-11-04 00:30:15 +000036796 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 +000036797 fi
36798 rm -f conftest.*
36799fi
36800 ;;
36801 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36802 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36803 # are listed without --file. Let's play safe and only enable the eval
36804 # if we detect the quoting.
36805 case $CONFIG_FILES in
36806 *\'*) eval set x "$CONFIG_FILES" ;;
36807 *) set x $CONFIG_FILES ;;
36808 esac
36809 shift
36810 for mf
36811 do
36812 # Strip MF so we end up with the name of the file.
36813 mf=`echo "$mf" | sed -e 's/:.*$//'`
36814 # Check whether this is an Automake generated Makefile or not.
36815 # We used to match only the files named `Makefile.in', but
36816 # some people rename them; so instead we look at the file content.
36817 # Grep'ing the first line is not enough: some people post-process
36818 # each Makefile.in and add a new line on top of each file to say so.
36819 # Grep'ing the whole file is not good either: AIX grep has a line
36820 # limit of 2048, but all sed's we know have understand at least 4000.
36821 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36822 dirpart=`$as_dirname -- "$mf" ||
36823$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36824 X"$mf" : 'X\(//\)[^/]' \| \
36825 X"$mf" : 'X\(//\)$' \| \
36826 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36827$as_echo X"$mf" |
36828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36829 s//\1/
36830 q
36831 }
36832 /^X\(\/\/\)[^/].*/{
36833 s//\1/
36834 q
36835 }
36836 /^X\(\/\/\)$/{
36837 s//\1/
36838 q
36839 }
36840 /^X\(\/\).*/{
36841 s//\1/
36842 q
36843 }
36844 s/.*/./; q'`
36845 else
36846 continue
36847 fi
36848 # Extract the definition of DEPDIR, am__include, and am__quote
36849 # from the Makefile without running `make'.
36850 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36851 test -z "$DEPDIR" && continue
36852 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36853 test -z "am__include" && continue
36854 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36855 # When using ansi2knr, U may be empty or an underscore; expand it
36856 U=`sed -n 's/^U = //p' < "$mf"`
36857 # Find all dependency output files, they are included files with
36858 # $(DEPDIR) in their names. We invoke sed twice because it is the
36859 # simplest approach to changing $(DEPDIR) to its actual value in the
36860 # expansion.
36861 for file in `sed -n "
36862 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36863 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36864 # Make sure the directory exists.
36865 test -f "$dirpart/$file" && continue
36866 fdir=`$as_dirname -- "$file" ||
36867$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36868 X"$file" : 'X\(//\)[^/]' \| \
36869 X"$file" : 'X\(//\)$' \| \
36870 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36871$as_echo X"$file" |
36872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36873 s//\1/
36874 q
36875 }
36876 /^X\(\/\/\)[^/].*/{
36877 s//\1/
36878 q
36879 }
36880 /^X\(\/\/\)$/{
36881 s//\1/
36882 q
36883 }
36884 /^X\(\/\).*/{
36885 s//\1/
36886 q
36887 }
36888 s/.*/./; q'`
36889 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36890 # echo "creating $dirpart/$file"
36891 echo '# dummy' > "$dirpart/$file"
36892 done
36893 done
36894}
36895 ;;
36896 "libtool":C)
36897
36898 # See if we are running on zsh, and set the options which allow our
36899 # commands through without removal of \ escapes.
36900 if test -n "${ZSH_VERSION+set}" ; then
36901 setopt NO_GLOB_SUBST
36902 fi
36903
36904 cfgfile="${ofile}T"
36905 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36906 $RM "$cfgfile"
36907
36908 cat <<_LT_EOF >> "$cfgfile"
36909#! $SHELL
36910
36911# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36912# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36913# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36914# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36915#
36916# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000036917# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36918# Inc.
cristy73bd4a52010-10-05 11:24:23 +000036919# Written by Gordon Matzigkeit, 1996
36920#
36921# This file is part of GNU Libtool.
36922#
36923# GNU Libtool is free software; you can redistribute it and/or
36924# modify it under the terms of the GNU General Public License as
36925# published by the Free Software Foundation; either version 2 of
36926# the License, or (at your option) any later version.
36927#
36928# As a special exception to the GNU General Public License,
36929# if you distribute this file as part of a program or library that
36930# is built using GNU Libtool, you may include this file under the
36931# same distribution terms that you use for the rest of that program.
36932#
36933# GNU Libtool is distributed in the hope that it will be useful,
36934# but WITHOUT ANY WARRANTY; without even the implied warranty of
36935# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36936# GNU General Public License for more details.
36937#
36938# You should have received a copy of the GNU General Public License
36939# along with GNU Libtool; see the file COPYING. If not, a copy
36940# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36941# obtained by writing to the Free Software Foundation, Inc.,
36942# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36943
36944
36945# The names of the tagged configurations supported by this script.
36946available_tags="CXX "
36947
36948# ### BEGIN LIBTOOL CONFIG
36949
36950# A sed program that does not truncate output.
36951SED=$lt_SED
36952
36953# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36954Xsed="\$SED -e 1s/^X//"
36955
36956# A grep program that handles long lines.
36957GREP=$lt_GREP
36958
36959# An ERE matcher.
36960EGREP=$lt_EGREP
36961
36962# A literal string matcher.
36963FGREP=$lt_FGREP
36964
cristy0c60a692010-11-04 01:09:47 +000036965# Shell to use when invoking shell scripts.
36966SHELL=$lt_SHELL
36967
36968# An echo program that protects backslashes.
36969ECHO=$lt_ECHO
36970
cristy73bd4a52010-10-05 11:24:23 +000036971# Which release of libtool.m4 was used?
36972macro_version=$macro_version
36973macro_revision=$macro_revision
36974
36975# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000036976AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000036977
36978# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000036979DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000036980
36981# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000036982OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000036983
36984# Whether or not to build shared libraries.
36985build_libtool_libs=$enable_shared
36986
36987# Whether or not to build static libraries.
36988build_old_libs=$enable_static
36989
36990# What type of objects to build.
36991pic_mode=$pic_mode
36992
36993# Whether or not to optimize for fast installation.
36994fast_install=$enable_fast_install
36995
36996# The host system.
36997host_alias=$host_alias
36998host=$host
36999host_os=$host_os
37000
37001# The build system.
37002build_alias=$build_alias
37003build=$build
37004build_os=$build_os
37005
37006# A BSD- or MS-compatible name lister.
37007NM=$lt_NM
37008
37009# Whether we need soft or hard links.
37010LN_S=$lt_LN_S
37011
37012# What is the maximum length of a command?
37013max_cmd_len=$max_cmd_len
37014
37015# Object file suffix (normally "o").
37016objext=$ac_objext
37017
37018# Executable file suffix (normally "").
37019exeext=$exeext
37020
37021# whether the shell understands "unset".
37022lt_unset=$lt_unset
37023
37024# turn spaces into newlines.
37025SP2NL=$lt_lt_SP2NL
37026
37027# turn newlines into spaces.
37028NL2SP=$lt_lt_NL2SP
37029
cristyda16f162011-02-19 23:52:17 +000037030# convert \$build file names to \$host format.
37031to_host_file_cmd=$lt_cv_to_host_file_cmd
37032
37033# convert \$build files to toolchain format.
37034to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37035
cristy73bd4a52010-10-05 11:24:23 +000037036# Method to check whether dependent libraries are shared objects.
37037deplibs_check_method=$lt_deplibs_check_method
37038
cristyda16f162011-02-19 23:52:17 +000037039# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037040file_magic_cmd=$lt_file_magic_cmd
37041
cristyda16f162011-02-19 23:52:17 +000037042# How to find potential files when deplibs_check_method = "file_magic".
37043file_magic_glob=$lt_file_magic_glob
37044
37045# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37046want_nocaseglob=$lt_want_nocaseglob
37047
37048# Command to associate shared and link libraries.
37049sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37050
cristy73bd4a52010-10-05 11:24:23 +000037051# The archiver.
37052AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037053
37054# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037055AR_FLAGS=$lt_AR_FLAGS
37056
cristyda16f162011-02-19 23:52:17 +000037057# How to feed a file listing to the archiver.
37058archiver_list_spec=$lt_archiver_list_spec
37059
cristy73bd4a52010-10-05 11:24:23 +000037060# A symbol stripping program.
37061STRIP=$lt_STRIP
37062
37063# Commands used to install an old-style archive.
37064RANLIB=$lt_RANLIB
37065old_postinstall_cmds=$lt_old_postinstall_cmds
37066old_postuninstall_cmds=$lt_old_postuninstall_cmds
37067
cristy0c60a692010-11-04 01:09:47 +000037068# Whether to use a lock for old archive extraction.
37069lock_old_archive_extraction=$lock_old_archive_extraction
37070
cristy73bd4a52010-10-05 11:24:23 +000037071# A C compiler.
37072LTCC=$lt_CC
37073
37074# LTCC compiler flags.
37075LTCFLAGS=$lt_CFLAGS
37076
37077# Take the output of nm and produce a listing of raw symbols and C names.
37078global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37079
37080# Transform the output of nm in a proper C declaration.
37081global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37082
37083# Transform the output of nm in a C name address pair.
37084global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37085
37086# Transform the output of nm in a C name address pair when lib prefix is needed.
37087global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37088
cristyda16f162011-02-19 23:52:17 +000037089# Specify filename containing input files for \$NM.
37090nm_file_list_spec=$lt_nm_file_list_spec
37091
37092# The root where to search for dependent libraries,and in which our libraries should be installed.
37093lt_sysroot=$lt_sysroot
37094
cristy73bd4a52010-10-05 11:24:23 +000037095# The name of the directory that contains temporary libtool files.
37096objdir=$objdir
37097
cristy73bd4a52010-10-05 11:24:23 +000037098# Used to examine libraries when file_magic_cmd begins with "file".
37099MAGIC_CMD=$MAGIC_CMD
37100
37101# Must we lock files when doing compilation?
37102need_locks=$lt_need_locks
37103
cristyda16f162011-02-19 23:52:17 +000037104# Manifest tool.
37105MANIFEST_TOOL=$lt_MANIFEST_TOOL
37106
cristy73bd4a52010-10-05 11:24:23 +000037107# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37108DSYMUTIL=$lt_DSYMUTIL
37109
37110# Tool to change global to local symbols on Mac OS X.
37111NMEDIT=$lt_NMEDIT
37112
37113# Tool to manipulate fat objects and archives on Mac OS X.
37114LIPO=$lt_LIPO
37115
37116# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37117OTOOL=$lt_OTOOL
37118
37119# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37120OTOOL64=$lt_OTOOL64
37121
37122# Old archive suffix (normally "a").
37123libext=$libext
37124
37125# Shared library suffix (normally ".so").
37126shrext_cmds=$lt_shrext_cmds
37127
37128# The commands to extract the exported symbol list from a shared archive.
37129extract_expsyms_cmds=$lt_extract_expsyms_cmds
37130
37131# Variables whose values should be saved in libtool wrapper scripts and
37132# restored at link time.
37133variables_saved_for_relink=$lt_variables_saved_for_relink
37134
37135# Do we need the "lib" prefix for modules?
37136need_lib_prefix=$need_lib_prefix
37137
37138# Do we need a version for libraries?
37139need_version=$need_version
37140
37141# Library versioning type.
37142version_type=$version_type
37143
37144# Shared library runtime path variable.
37145runpath_var=$runpath_var
37146
37147# Shared library path variable.
37148shlibpath_var=$shlibpath_var
37149
37150# Is shlibpath searched before the hard-coded library search path?
37151shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37152
37153# Format of library name prefix.
37154libname_spec=$lt_libname_spec
37155
37156# List of archive names. First name is the real one, the rest are links.
37157# The last name is the one that the linker finds with -lNAME
37158library_names_spec=$lt_library_names_spec
37159
37160# The coded name of the library, if different from the real name.
37161soname_spec=$lt_soname_spec
37162
cristy0c60a692010-11-04 01:09:47 +000037163# Permission mode override for installation of shared libraries.
37164install_override_mode=$lt_install_override_mode
37165
cristy73bd4a52010-10-05 11:24:23 +000037166# Command to use after installation of a shared archive.
37167postinstall_cmds=$lt_postinstall_cmds
37168
37169# Command to use after uninstallation of a shared archive.
37170postuninstall_cmds=$lt_postuninstall_cmds
37171
37172# Commands used to finish a libtool library installation in a directory.
37173finish_cmds=$lt_finish_cmds
37174
37175# As "finish_cmds", except a single script fragment to be evaled but
37176# not shown.
37177finish_eval=$lt_finish_eval
37178
37179# Whether we should hardcode library paths into libraries.
37180hardcode_into_libs=$hardcode_into_libs
37181
37182# Compile-time system search path for libraries.
37183sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37184
37185# Run-time system search path for libraries.
37186sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37187
37188# Whether dlopen is supported.
37189dlopen_support=$enable_dlopen
37190
37191# Whether dlopen of programs is supported.
37192dlopen_self=$enable_dlopen_self
37193
37194# Whether dlopen of statically linked programs is supported.
37195dlopen_self_static=$enable_dlopen_self_static
37196
37197# Commands to strip libraries.
37198old_striplib=$lt_old_striplib
37199striplib=$lt_striplib
37200
37201
37202# The linker used to build libraries.
37203LD=$lt_LD
37204
cristy0c60a692010-11-04 01:09:47 +000037205# How to create reloadable object files.
37206reload_flag=$lt_reload_flag
37207reload_cmds=$lt_reload_cmds
37208
cristy73bd4a52010-10-05 11:24:23 +000037209# Commands used to build an old-style archive.
37210old_archive_cmds=$lt_old_archive_cmds
37211
37212# A language specific compiler.
37213CC=$lt_compiler
37214
37215# Is the compiler the GNU compiler?
37216with_gcc=$GCC
37217
37218# Compiler flag to turn off builtin functions.
37219no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37220
cristy73bd4a52010-10-05 11:24:23 +000037221# Additional compiler flags for building library objects.
37222pic_flag=$lt_lt_prog_compiler_pic
37223
cristyda16f162011-02-19 23:52:17 +000037224# How to pass a linker flag through the compiler.
37225wl=$lt_lt_prog_compiler_wl
37226
cristy73bd4a52010-10-05 11:24:23 +000037227# Compiler flag to prevent dynamic linking.
37228link_static_flag=$lt_lt_prog_compiler_static
37229
37230# Does compiler simultaneously support -c and -o options?
37231compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37232
37233# Whether or not to add -lc for building shared libraries.
37234build_libtool_need_lc=$archive_cmds_need_lc
37235
37236# Whether or not to disallow shared libs when runtime libs are static.
37237allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37238
37239# Compiler flag to allow reflexive dlopens.
37240export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37241
37242# Compiler flag to generate shared objects directly from archives.
37243whole_archive_flag_spec=$lt_whole_archive_flag_spec
37244
37245# Whether the compiler copes with passing no objects directly.
37246compiler_needs_object=$lt_compiler_needs_object
37247
37248# Create an old-style archive from a shared archive.
37249old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37250
37251# Create a temporary old-style archive to link instead of a shared archive.
37252old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37253
37254# Commands used to build a shared archive.
37255archive_cmds=$lt_archive_cmds
37256archive_expsym_cmds=$lt_archive_expsym_cmds
37257
37258# Commands used to build a loadable module if different from building
37259# a shared archive.
37260module_cmds=$lt_module_cmds
37261module_expsym_cmds=$lt_module_expsym_cmds
37262
37263# Whether we are building with GNU ld or not.
37264with_gnu_ld=$lt_with_gnu_ld
37265
37266# Flag that allows shared libraries with undefined symbols to be built.
37267allow_undefined_flag=$lt_allow_undefined_flag
37268
37269# Flag that enforces no undefined symbols.
37270no_undefined_flag=$lt_no_undefined_flag
37271
37272# Flag to hardcode \$libdir into a binary during linking.
37273# This must work even if \$libdir does not exist
37274hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37275
37276# If ld is used when linking, flag to hardcode \$libdir into a binary
37277# during linking. This must work even if \$libdir does not exist.
37278hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37279
37280# Whether we need a single "-rpath" flag with a separated argument.
37281hardcode_libdir_separator=$lt_hardcode_libdir_separator
37282
37283# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37284# DIR into the resulting binary.
37285hardcode_direct=$hardcode_direct
37286
37287# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37288# DIR into the resulting binary and the resulting library dependency is
37289# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37290# library is relocated.
37291hardcode_direct_absolute=$hardcode_direct_absolute
37292
37293# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37294# into the resulting binary.
37295hardcode_minus_L=$hardcode_minus_L
37296
37297# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37298# into the resulting binary.
37299hardcode_shlibpath_var=$hardcode_shlibpath_var
37300
37301# Set to "yes" if building a shared library automatically hardcodes DIR
37302# into the library and all subsequent libraries and executables linked
37303# against it.
37304hardcode_automatic=$hardcode_automatic
37305
37306# Set to yes if linker adds runtime paths of dependent libraries
37307# to runtime path list.
37308inherit_rpath=$inherit_rpath
37309
37310# Whether libtool must link a program against all its dependency libraries.
37311link_all_deplibs=$link_all_deplibs
37312
cristy73bd4a52010-10-05 11:24:23 +000037313# Set to "yes" if exported symbols are required.
37314always_export_symbols=$always_export_symbols
37315
37316# The commands to list exported symbols.
37317export_symbols_cmds=$lt_export_symbols_cmds
37318
37319# Symbols that should not be listed in the preloaded symbols.
37320exclude_expsyms=$lt_exclude_expsyms
37321
37322# Symbols that must always be exported.
37323include_expsyms=$lt_include_expsyms
37324
37325# Commands necessary for linking programs (against libraries) with templates.
37326prelink_cmds=$lt_prelink_cmds
37327
cristyda16f162011-02-19 23:52:17 +000037328# Commands necessary for finishing linking programs.
37329postlink_cmds=$lt_postlink_cmds
37330
cristy73bd4a52010-10-05 11:24:23 +000037331# Specify filename containing input files.
37332file_list_spec=$lt_file_list_spec
37333
37334# How to hardcode a shared library path into an executable.
37335hardcode_action=$hardcode_action
37336
37337# The directories searched by this compiler when creating a shared library.
37338compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37339
37340# Dependencies to place before and after the objects being linked to
37341# create a shared library.
37342predep_objects=$lt_predep_objects
37343postdep_objects=$lt_postdep_objects
37344predeps=$lt_predeps
37345postdeps=$lt_postdeps
37346
37347# The library search path used internally by the compiler when linking
37348# a shared library.
37349compiler_lib_search_path=$lt_compiler_lib_search_path
37350
37351# ### END LIBTOOL CONFIG
37352
37353_LT_EOF
37354
37355 case $host_os in
37356 aix3*)
37357 cat <<\_LT_EOF >> "$cfgfile"
37358# AIX sometimes has problems with the GCC collect2 program. For some
37359# reason, if we set the COLLECT_NAMES environment variable, the problems
37360# vanish in a puff of smoke.
37361if test "X${COLLECT_NAMES+set}" != Xset; then
37362 COLLECT_NAMES=
37363 export COLLECT_NAMES
37364fi
37365_LT_EOF
37366 ;;
37367 esac
37368
37369
37370ltmain="$ac_aux_dir/ltmain.sh"
37371
37372
37373 # We use sed instead of cat because bash on DJGPP gets confused if
37374 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37375 # text mode, it properly converts lines to CR/LF. This bash problem
37376 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037377 sed '$q' "$ltmain" >> "$cfgfile" \
37378 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037379
cristyda16f162011-02-19 23:52:17 +000037380 if test x"$xsi_shell" = xyes; then
37381 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37382func_dirname ()\
37383{\
37384\ case ${1} in\
37385\ */*) func_dirname_result="${1%/*}${2}" ;;\
37386\ * ) func_dirname_result="${3}" ;;\
37387\ esac\
37388} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37389 && mv -f "$cfgfile.tmp" "$cfgfile" \
37390 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37391test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037392
37393
cristyda16f162011-02-19 23:52:17 +000037394 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37395func_basename ()\
37396{\
37397\ func_basename_result="${1##*/}"\
37398} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37399 && mv -f "$cfgfile.tmp" "$cfgfile" \
37400 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37401test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037402
37403
cristyda16f162011-02-19 23:52:17 +000037404 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37405func_dirname_and_basename ()\
37406{\
37407\ case ${1} in\
37408\ */*) func_dirname_result="${1%/*}${2}" ;;\
37409\ * ) func_dirname_result="${3}" ;;\
37410\ esac\
37411\ func_basename_result="${1##*/}"\
37412} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37413 && mv -f "$cfgfile.tmp" "$cfgfile" \
37414 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37415test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037416
cristyda16f162011-02-19 23:52:17 +000037417
37418 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37419func_stripname ()\
37420{\
37421\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37422\ # positional parameters, so assign one to ordinary parameter first.\
37423\ func_stripname_result=${3}\
37424\ func_stripname_result=${func_stripname_result#"${1}"}\
37425\ func_stripname_result=${func_stripname_result%"${2}"}\
37426} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37427 && mv -f "$cfgfile.tmp" "$cfgfile" \
37428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37429test 0 -eq $? || _lt_function_replace_fail=:
37430
37431
37432 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37433func_split_long_opt ()\
37434{\
37435\ func_split_long_opt_name=${1%%=*}\
37436\ func_split_long_opt_arg=${1#*=}\
37437} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37438 && mv -f "$cfgfile.tmp" "$cfgfile" \
37439 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37440test 0 -eq $? || _lt_function_replace_fail=:
37441
37442
37443 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37444func_split_short_opt ()\
37445{\
37446\ func_split_short_opt_arg=${1#??}\
37447\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37448} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37449 && mv -f "$cfgfile.tmp" "$cfgfile" \
37450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37451test 0 -eq $? || _lt_function_replace_fail=:
37452
37453
37454 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37455func_lo2o ()\
37456{\
37457\ case ${1} in\
37458\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37459\ *) func_lo2o_result=${1} ;;\
37460\ esac\
37461} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37462 && mv -f "$cfgfile.tmp" "$cfgfile" \
37463 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37464test 0 -eq $? || _lt_function_replace_fail=:
37465
37466
37467 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37468func_xform ()\
37469{\
37470 func_xform_result=${1%.*}.lo\
37471} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37472 && mv -f "$cfgfile.tmp" "$cfgfile" \
37473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37474test 0 -eq $? || _lt_function_replace_fail=:
37475
37476
37477 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37478func_arith ()\
37479{\
37480 func_arith_result=$(( $* ))\
37481} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37482 && mv -f "$cfgfile.tmp" "$cfgfile" \
37483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37484test 0 -eq $? || _lt_function_replace_fail=:
37485
37486
37487 sed -e '/^func_len ()$/,/^} # func_len /c\
37488func_len ()\
37489{\
37490 func_len_result=${#1}\
37491} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37492 && mv -f "$cfgfile.tmp" "$cfgfile" \
37493 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37494test 0 -eq $? || _lt_function_replace_fail=:
37495
37496fi
37497
37498if test x"$lt_shell_append" = xyes; then
37499 sed -e '/^func_append ()$/,/^} # func_append /c\
37500func_append ()\
37501{\
37502 eval "${1}+=\\${2}"\
37503} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37504 && mv -f "$cfgfile.tmp" "$cfgfile" \
37505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37506test 0 -eq $? || _lt_function_replace_fail=:
37507
37508
37509 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37510func_append_quoted ()\
37511{\
37512\ func_quote_for_eval "${2}"\
37513\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37514} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37515 && mv -f "$cfgfile.tmp" "$cfgfile" \
37516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37517test 0 -eq $? || _lt_function_replace_fail=:
37518
37519
37520 # Save a `func_append' function call where possible by direct use of '+='
37521 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37522 && mv -f "$cfgfile.tmp" "$cfgfile" \
37523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37524 test 0 -eq $? || _lt_function_replace_fail=:
37525else
37526 # Save a `func_append' function call even when '+=' is not available
37527 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37528 && mv -f "$cfgfile.tmp" "$cfgfile" \
37529 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37530 test 0 -eq $? || _lt_function_replace_fail=:
37531fi
37532
37533if test x"$_lt_function_replace_fail" = x":"; then
37534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37535$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37536fi
37537
37538
37539 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037540 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37541 chmod +x "$ofile"
37542
37543
37544 cat <<_LT_EOF >> "$ofile"
37545
37546# ### BEGIN LIBTOOL TAG CONFIG: CXX
37547
37548# The linker used to build libraries.
37549LD=$lt_LD_CXX
37550
cristy0c60a692010-11-04 01:09:47 +000037551# How to create reloadable object files.
37552reload_flag=$lt_reload_flag_CXX
37553reload_cmds=$lt_reload_cmds_CXX
37554
cristy73bd4a52010-10-05 11:24:23 +000037555# Commands used to build an old-style archive.
37556old_archive_cmds=$lt_old_archive_cmds_CXX
37557
37558# A language specific compiler.
37559CC=$lt_compiler_CXX
37560
37561# Is the compiler the GNU compiler?
37562with_gcc=$GCC_CXX
37563
37564# Compiler flag to turn off builtin functions.
37565no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37566
cristy73bd4a52010-10-05 11:24:23 +000037567# Additional compiler flags for building library objects.
37568pic_flag=$lt_lt_prog_compiler_pic_CXX
37569
cristyda16f162011-02-19 23:52:17 +000037570# How to pass a linker flag through the compiler.
37571wl=$lt_lt_prog_compiler_wl_CXX
37572
cristy73bd4a52010-10-05 11:24:23 +000037573# Compiler flag to prevent dynamic linking.
37574link_static_flag=$lt_lt_prog_compiler_static_CXX
37575
37576# Does compiler simultaneously support -c and -o options?
37577compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37578
37579# Whether or not to add -lc for building shared libraries.
37580build_libtool_need_lc=$archive_cmds_need_lc_CXX
37581
37582# Whether or not to disallow shared libs when runtime libs are static.
37583allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37584
37585# Compiler flag to allow reflexive dlopens.
37586export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37587
37588# Compiler flag to generate shared objects directly from archives.
37589whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37590
37591# Whether the compiler copes with passing no objects directly.
37592compiler_needs_object=$lt_compiler_needs_object_CXX
37593
37594# Create an old-style archive from a shared archive.
37595old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37596
37597# Create a temporary old-style archive to link instead of a shared archive.
37598old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37599
37600# Commands used to build a shared archive.
37601archive_cmds=$lt_archive_cmds_CXX
37602archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37603
37604# Commands used to build a loadable module if different from building
37605# a shared archive.
37606module_cmds=$lt_module_cmds_CXX
37607module_expsym_cmds=$lt_module_expsym_cmds_CXX
37608
37609# Whether we are building with GNU ld or not.
37610with_gnu_ld=$lt_with_gnu_ld_CXX
37611
37612# Flag that allows shared libraries with undefined symbols to be built.
37613allow_undefined_flag=$lt_allow_undefined_flag_CXX
37614
37615# Flag that enforces no undefined symbols.
37616no_undefined_flag=$lt_no_undefined_flag_CXX
37617
37618# Flag to hardcode \$libdir into a binary during linking.
37619# This must work even if \$libdir does not exist
37620hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37621
37622# If ld is used when linking, flag to hardcode \$libdir into a binary
37623# during linking. This must work even if \$libdir does not exist.
37624hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37625
37626# Whether we need a single "-rpath" flag with a separated argument.
37627hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37628
37629# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37630# DIR into the resulting binary.
37631hardcode_direct=$hardcode_direct_CXX
37632
37633# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37634# DIR into the resulting binary and the resulting library dependency is
37635# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37636# library is relocated.
37637hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37638
37639# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37640# into the resulting binary.
37641hardcode_minus_L=$hardcode_minus_L_CXX
37642
37643# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37644# into the resulting binary.
37645hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37646
37647# Set to "yes" if building a shared library automatically hardcodes DIR
37648# into the library and all subsequent libraries and executables linked
37649# against it.
37650hardcode_automatic=$hardcode_automatic_CXX
37651
37652# Set to yes if linker adds runtime paths of dependent libraries
37653# to runtime path list.
37654inherit_rpath=$inherit_rpath_CXX
37655
37656# Whether libtool must link a program against all its dependency libraries.
37657link_all_deplibs=$link_all_deplibs_CXX
37658
cristy73bd4a52010-10-05 11:24:23 +000037659# Set to "yes" if exported symbols are required.
37660always_export_symbols=$always_export_symbols_CXX
37661
37662# The commands to list exported symbols.
37663export_symbols_cmds=$lt_export_symbols_cmds_CXX
37664
37665# Symbols that should not be listed in the preloaded symbols.
37666exclude_expsyms=$lt_exclude_expsyms_CXX
37667
37668# Symbols that must always be exported.
37669include_expsyms=$lt_include_expsyms_CXX
37670
37671# Commands necessary for linking programs (against libraries) with templates.
37672prelink_cmds=$lt_prelink_cmds_CXX
37673
cristyda16f162011-02-19 23:52:17 +000037674# Commands necessary for finishing linking programs.
37675postlink_cmds=$lt_postlink_cmds_CXX
37676
cristy73bd4a52010-10-05 11:24:23 +000037677# Specify filename containing input files.
37678file_list_spec=$lt_file_list_spec_CXX
37679
37680# How to hardcode a shared library path into an executable.
37681hardcode_action=$hardcode_action_CXX
37682
37683# The directories searched by this compiler when creating a shared library.
37684compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37685
37686# Dependencies to place before and after the objects being linked to
37687# create a shared library.
37688predep_objects=$lt_predep_objects_CXX
37689postdep_objects=$lt_postdep_objects_CXX
37690predeps=$lt_predeps_CXX
37691postdeps=$lt_postdeps_CXX
37692
37693# The library search path used internally by the compiler when linking
37694# a shared library.
37695compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37696
37697# ### END LIBTOOL TAG CONFIG: CXX
37698_LT_EOF
37699
37700 ;;
cristy4c08aed2011-07-01 19:47:50 +000037701 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037702 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037703 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37704 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37705
37706 esac
37707done # for ac_tag
37708
37709
cristy8b350f62009-11-15 23:12:43 +000037710as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037711_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037712ac_clean_files=$ac_clean_files_save
37713
37714test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037715 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037716
37717
37718# configure is writing to config.log, and then calls config.status.
37719# config.status does its own redirection, appending to config.log.
37720# Unfortunately, on DOS this fails, as config.log is still kept open
37721# by configure, so config.status won't be able to write to it; its
37722# output is simply discarded. So we exec the FD to /dev/null,
37723# effectively closing config.log, so it can be properly (re)opened and
37724# appended to by config.status. When coming back to configure, we
37725# need to make the FD available again.
37726if test "$no_create" != yes; then
37727 ac_cs_success=:
37728 ac_config_status_args=
37729 test "$silent" = yes &&
37730 ac_config_status_args="$ac_config_status_args --quiet"
37731 exec 5>/dev/null
37732 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37733 exec 5>>config.log
37734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37735 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037736 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037737fi
37738if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037740$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37741fi
37742
37743
37744rm -f magick-version
37745
cristy430a7312010-01-21 20:44:04 +000037746result_dejavu_font_dir='none'
37747if test "${dejavu_font_dir}x" != 'x'; then
37748 result_dejavu_font_dir=$dejavu_font_dir
37749fi
37750
cristy3ed852e2009-09-05 21:47:34 +000037751result_ghostscript_font_dir='none'
37752if test "${ghostscript_font_dir}x" != 'x'; then
37753 result_ghostscript_font_dir=$ghostscript_font_dir
37754fi
37755
37756result_windows_font_dir='none'
37757if test "${windows_font_dir}x" != 'x'; then
37758 result_windows_font_dir=${windows_font_dir}
37759fi
37760
cristy8b350f62009-11-15 23:12:43 +000037761{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000037762ImageMagick is configured as follows. Please verify that this configuration
37763matches your expectations.
37764
37765Host system type: $host
37766Build system type: $build
37767
37768 Option Value
37769-------------------------------------------------------------------------------
37770Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37771Static libraries --enable-static=$enable_static $libtool_build_static_libs
37772Module support --with-modules=$with_modules $with_modules
37773GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37774Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37775High Dynamic Range Imagery
37776 --enable-hdri=$enable_hdri $enable_hdri
37777
37778Delegate Configuration:
37779BZLIB --with-bzlib=$with_bzlib $have_bzlib
37780Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037781Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037782DJVU --with-djvu=$with_djvu $have_djvu
37783DPS --with-dps=$with_dps $have_dps
37784FFTW --with-fftw=$with_fftw $have_fftw
37785FlashPIX --with-fpx=$with_fpx $have_fpx
37786FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37787FreeType --with-freetype=$with_freetype $have_freetype
37788GhostPCL None $PCLDelegate ($PCLVersion)
37789GhostXPS None $XPSDelegate ($XPSVersion)
37790Ghostscript None $PSDelegate ($GSVersion)
37791Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37792Ghostscript lib --with-gslib=$with_gslib $have_gslib
37793Graphviz --with-gvc=$with_gvc $have_gvc
37794JBIG --with-jbig=$with_jbig $have_jbig
37795JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37796JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037797LCMS v1 --with-lcms=$with_lcms $have_lcms
37798LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037799LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037800LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037801Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37802OpenEXR --with-openexr=$with_openexr $have_openexr
37803PERL --with-perl=$with_perl $have_perl
37804PNG --with-png=$with_png $have_png
37805RSVG --with-rsvg=$with_rsvg $have_rsvg
37806TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037807WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037808Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37809WMF --with-wmf=$with_wmf $have_wmf
37810X11 --with-x=$with_x $have_x
37811XML --with-xml=$with_xml $have_xml
37812ZLIB --with-zlib=$with_zlib $have_zlib
37813
37814X11 Configuration:
37815 X_CFLAGS = $X_CFLAGS
37816 X_PRE_LIBS = $X_PRE_LIBS
37817 X_LIBS = $X_LIBS
37818 X_EXTRA_LIBS = $X_EXTRA_LIBS
37819
37820Options used to compile and link:
37821 PREFIX = $PREFIX_DIR
37822 EXEC-PREFIX = $EXEC_PREFIX_DIR
37823 VERSION = $PACKAGE_VERSION
37824 CC = $CC
37825 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037826 CPPFLAGS = $MAGICK_CPPFLAGS
37827 PCFLAGS = $MAGICK_PCFLAGS
37828 DEFS = $DEFS
37829 LDFLAGS = $LDFLAGS
37830 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37831 LIBS = $MAGICK_LIBS
37832 CXX = $CXX
37833 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037834 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037835" >&5
37836$as_echo "
37837ImageMagick is configured as follows. Please verify that this configuration
37838matches your expectations.
37839
37840Host system type: $host
37841Build system type: $build
37842
37843 Option Value
37844-------------------------------------------------------------------------------
37845Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37846Static libraries --enable-static=$enable_static $libtool_build_static_libs
37847Module support --with-modules=$with_modules $with_modules
37848GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37849Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37850High Dynamic Range Imagery
37851 --enable-hdri=$enable_hdri $enable_hdri
37852
37853Delegate Configuration:
37854BZLIB --with-bzlib=$with_bzlib $have_bzlib
37855Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037856Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037857DJVU --with-djvu=$with_djvu $have_djvu
37858DPS --with-dps=$with_dps $have_dps
37859FFTW --with-fftw=$with_fftw $have_fftw
37860FlashPIX --with-fpx=$with_fpx $have_fpx
37861FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37862FreeType --with-freetype=$with_freetype $have_freetype
37863GhostPCL None $PCLDelegate ($PCLVersion)
37864GhostXPS None $XPSDelegate ($XPSVersion)
37865Ghostscript None $PSDelegate ($GSVersion)
37866Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37867Ghostscript lib --with-gslib=$with_gslib $have_gslib
37868Graphviz --with-gvc=$with_gvc $have_gvc
37869JBIG --with-jbig=$with_jbig $have_jbig
37870JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37871JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037872LCMS v1 --with-lcms=$with_lcms $have_lcms
37873LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037874LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037875LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037876Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37877OpenEXR --with-openexr=$with_openexr $have_openexr
37878PERL --with-perl=$with_perl $have_perl
37879PNG --with-png=$with_png $have_png
37880RSVG --with-rsvg=$with_rsvg $have_rsvg
37881TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037882WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037883Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37884WMF --with-wmf=$with_wmf $have_wmf
37885X11 --with-x=$with_x $have_x
37886XML --with-xml=$with_xml $have_xml
37887ZLIB --with-zlib=$with_zlib $have_zlib
37888
37889X11 Configuration:
37890 X_CFLAGS = $X_CFLAGS
37891 X_PRE_LIBS = $X_PRE_LIBS
37892 X_LIBS = $X_LIBS
37893 X_EXTRA_LIBS = $X_EXTRA_LIBS
37894
37895Options used to compile and link:
37896 PREFIX = $PREFIX_DIR
37897 EXEC-PREFIX = $EXEC_PREFIX_DIR
37898 VERSION = $PACKAGE_VERSION
37899 CC = $CC
37900 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037901 CPPFLAGS = $MAGICK_CPPFLAGS
37902 PCFLAGS = $MAGICK_PCFLAGS
37903 DEFS = $DEFS
37904 LDFLAGS = $LDFLAGS
37905 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37906 LIBS = $MAGICK_LIBS
37907 CXX = $CXX
37908 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037909 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037910" >&6; }