blob: b4f1897fe59b04b168030622b8e52def0617b6a5 [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'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy4c08aed2011-07-01 19:47:50 +0000577PACKAGE_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]
cristy09b53e12011-10-14 12:47:22 +00001767 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001768 --htmldir=DIR html documentation [DOCDIR]
1769 --dvidir=DIR dvi documentation [DOCDIR]
1770 --pdfdir=DIR pdf documentation [DOCDIR]
1771 --psdir=DIR ps documentation [DOCDIR]
1772_ACEOF
1773
1774 cat <<\_ACEOF
1775
cristy73bd4a52010-10-05 11:24:23 +00001776Program names:
1777 --program-prefix=PREFIX prepend PREFIX to installed program names
1778 --program-suffix=SUFFIX append SUFFIX to installed program names
1779 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1780
cristy3ed852e2009-09-05 21:47:34 +00001781X features:
1782 --x-includes=DIR X include files are in DIR
1783 --x-libraries=DIR X library files are in DIR
1784
1785System types:
1786 --build=BUILD configure for building on BUILD [guessed]
1787 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1788 --target=TARGET configure for building compilers for TARGET [HOST]
1789_ACEOF
1790fi
1791
1792if test -n "$ac_init_help"; then
1793 case $ac_init_help in
cristy4c08aed2011-07-01 19:47:50 +00001794 short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
cristy3ed852e2009-09-05 21:47:34 +00001795 esac
1796 cat <<\_ACEOF
1797
1798Optional Features:
1799 --disable-option-checking ignore unrecognized --enable/--with options
1800 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1801 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001802 --enable-silent-rules less verbose build output (undo: `make V=1')
1803 --disable-silent-rules verbose build output (undo: `make V=0')
1804 --disable-dependency-tracking speeds up one-time build
1805 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001806 --bounds-checking enable run-time bounds-checking
1807 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001808 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001809 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001810 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001811 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001812 --enable-shared[=PKGS] build shared libraries [default=yes]
1813 --enable-static[=PKGS] build static libraries [default=yes]
1814 --enable-fast-install[=PKGS]
1815 optimize for fast installation [default=yes]
1816 --disable-libtool-lock avoid locking (might break parallel builds)
1817 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001818 --enable-delegate-build look for delegate libraries in build directory
1819 --disable-deprecated exclude deprecated methods in MagickCore and
1820 MagickWand API's
1821 --disable-installed Formally install ImageMagick under PREFIX
1822 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001823 --enable-zero-configuration
1824 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001825 zero-configuration ImageMagick
1826 --enable-hdri accurately represent the wide range of intensity
1827 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001828 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001829 --enable-maintainer-mode enable make rules and dependencies not useful
1830 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001831 --enable-ccmalloc enable 'ccmalloc' memory debug support
1832 --enable-efence enable 'efence' memory debug support
1833 --enable-prof enable 'prof' profiling support
1834 --enable-gprof enable 'gprof' profiling support
1835 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001836 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001837
1838Optional Packages:
1839 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1840 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001841 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1842 --with-dmalloc use dmalloc, as in
1843 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001844 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001845 --with-pic try to use only PIC/non-PIC objects [default=use
1846 both]
cristyda16f162011-02-19 23:52:17 +00001847 --with-sysroot=DIR Search for dependent libraries within DIR
1848 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001849 --with-included-ltdl use the GNU ltdl sources included here
1850 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1851 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001852 --with-modules enable building dynamically loadable modules
1853 --with-method-prefix=PREFIX
1854 prefix MagickCore API methods
1855 --with-quantum-depth=DEPTH
1856 number of bits in a pixel quantum (default 16)
1857 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1858 memory)
1859 --with-frozenpaths freeze delegate paths
1860 --without-magick-plus-plus
1861 disable build/install of Magick++
1862 --with-perl enable build/install of PerlMagick
1863 --with-perl-options=OPTIONS
1864 options to pass on command-line when generating
1865 PerlMagick's build file
1866 --with-umem enable umem memory allocation library support
1867 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1868 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001869 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001870 --without-zlib disable ZLIB support
1871 --with-autotrace enable autotrace support
1872 --without-dps disable Display Postscript support
1873 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001874 --with-dejavu-font-dir=DIR
1875 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001876 --without-fftw disable FFTW support
1877 --without-fpx disable FlashPIX support
1878 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001879 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001880 --without-gslib enable Ghostscript library support
1881 --with-fontpath=DIR prepend to default font search path
1882 --with-gs-font-dir=DIR Ghostscript font directory
1883 --without-gvc disable GVC support
1884 --without-jbig disable JBIG support
1885 --without-jpeg disable JPEG support
1886 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001887 --without-lcms disable lcms (v1.1X) support
1888 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001889 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001890 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001891 --without-openexr disable OpenEXR support
1892 --without-png disable PNG support
1893 --without-rsvg disable RSVG support
1894 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001895 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001896 --with-windows-font-dir=DIR
1897 directory containing MS-Windows fonts
1898 --without-wmf disable WMF support
1899 --without-xml disable XML support
1900
1901Some influential environment variables:
1902 CC C compiler command
1903 CFLAGS C compiler flags
1904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1905 nonstandard directory <lib dir>
1906 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001907 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001908 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001909 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001910 CXX C++ compiler command
1911 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001912 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001913 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001914 XMKMF Path to xmkmf, Makefile generator for X Window System
1915 AUTOTRACE_CFLAGS
1916 C compiler flags for AUTOTRACE, overriding pkg-config
1917 AUTOTRACE_LIBS
1918 linker flags for AUTOTRACE, overriding pkg-config
1919 FONTCONFIG_CFLAGS
1920 C compiler flags for FONTCONFIG, overriding pkg-config
1921 FONTCONFIG_LIBS
1922 linker flags for FONTCONFIG, overriding pkg-config
1923 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1924 GVC_LIBS linker flags for GVC, overriding pkg-config
1925 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1926 LQR_LIBS linker flags for LQR, overriding pkg-config
1927 OPENEXR_CFLAGS
1928 C compiler flags for OPENEXR, overriding pkg-config
1929 OPENEXR_LIBS
1930 linker flags for OPENEXR, overriding pkg-config
1931 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1932 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1933 CAIRO_SVG_CFLAGS
1934 C compiler flags for CAIRO_SVG, overriding pkg-config
1935 CAIRO_SVG_LIBS
1936 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001937
1938Use these variables to override the choices made by `configure' or to help
1939it to find libraries and programs with nonstandard names/locations.
1940
1941Report bugs to <http://www.imagemagick.org>.
1942_ACEOF
1943ac_status=$?
1944fi
1945
1946if test "$ac_init_help" = "recursive"; then
1947 # If there are subdirs, report their specific --help.
1948 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1949 test -d "$ac_dir" ||
1950 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1951 continue
1952 ac_builddir=.
1953
1954case "$ac_dir" in
1955.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1956*)
1957 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1958 # A ".." for each directory in $ac_dir_suffix.
1959 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1960 case $ac_top_builddir_sub in
1961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1963 esac ;;
1964esac
1965ac_abs_top_builddir=$ac_pwd
1966ac_abs_builddir=$ac_pwd$ac_dir_suffix
1967# for backward compatibility:
1968ac_top_builddir=$ac_top_build_prefix
1969
1970case $srcdir in
1971 .) # We are building in place.
1972 ac_srcdir=.
1973 ac_top_srcdir=$ac_top_builddir_sub
1974 ac_abs_top_srcdir=$ac_pwd ;;
1975 [\\/]* | ?:[\\/]* ) # Absolute name.
1976 ac_srcdir=$srcdir$ac_dir_suffix;
1977 ac_top_srcdir=$srcdir
1978 ac_abs_top_srcdir=$srcdir ;;
1979 *) # Relative name.
1980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1981 ac_top_srcdir=$ac_top_build_prefix$srcdir
1982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1983esac
1984ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1985
1986 cd "$ac_dir" || { ac_status=$?; continue; }
1987 # Check for guested configure.
1988 if test -f "$ac_srcdir/configure.gnu"; then
1989 echo &&
1990 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1991 elif test -f "$ac_srcdir/configure"; then
1992 echo &&
1993 $SHELL "$ac_srcdir/configure" --help=recursive
1994 else
1995 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1996 fi || ac_status=$?
1997 cd "$ac_pwd" || { ac_status=$?; break; }
1998 done
1999fi
2000
2001test -n "$ac_init_help" && exit $ac_status
2002if $ac_init_version; then
2003 cat <<\_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00002004ImageMagick configure 7.0.0
cristyda16f162011-02-19 23:52:17 +00002005generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002006
cristy98dddb52010-11-04 00:30:15 +00002007Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002008This configure script is free software; the Free Software Foundation
2009gives unlimited permission to copy, distribute and modify it.
2010_ACEOF
2011 exit
2012fi
cristy8b350f62009-11-15 23:12:43 +00002013
2014## ------------------------ ##
2015## Autoconf initialization. ##
2016## ------------------------ ##
2017
2018# ac_fn_c_try_compile LINENO
2019# --------------------------
2020# Try to compile conftest.$ac_ext, and return whether this succeeded.
2021ac_fn_c_try_compile ()
2022{
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 rm -f conftest.$ac_objext
2025 if { { ac_try="$ac_compile"
2026case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2029esac
2030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031$as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_compile") 2>conftest.err
2033 ac_status=$?
2034 if test -s conftest.err; then
2035 grep -v '^ *+' conftest.err >conftest.er1
2036 cat conftest.er1 >&5
2037 mv -f conftest.er1 conftest.err
2038 fi
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; } && {
2041 test -z "$ac_c_werror_flag" ||
2042 test ! -s conftest.err
2043 } && test -s conftest.$ac_objext; then :
2044 ac_retval=0
2045else
2046 $as_echo "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_retval=1
2050fi
cristyda16f162011-02-19 23:52:17 +00002051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002052 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002053
2054} # ac_fn_c_try_compile
2055
cristy95646052009-11-28 23:05:30 +00002056# ac_fn_c_try_cpp LINENO
2057# ----------------------
2058# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2059ac_fn_c_try_cpp ()
2060{
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if { { ac_try="$ac_cpp conftest.$ac_ext"
2063case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066esac
2067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068$as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2070 ac_status=$?
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2075 fi
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002077 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2079 test ! -s conftest.err
2080 }; then :
2081 ac_retval=0
2082else
2083 $as_echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086 ac_retval=1
2087fi
cristyda16f162011-02-19 23:52:17 +00002088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002089 as_fn_set_status $ac_retval
2090
2091} # ac_fn_c_try_cpp
2092
cristy8b350f62009-11-15 23:12:43 +00002093# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2094# -------------------------------------------------------
2095# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2096# the include files in INCLUDES and setting the cache variable VAR
2097# accordingly.
2098ac_fn_c_check_header_mongrel ()
2099{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002101 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002104if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002105 $as_echo_n "(cached) " >&6
2106fi
2107eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109$as_echo "$ac_res" >&6; }
2110else
2111 # Is the header compilable?
2112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2113$as_echo_n "checking $2 usability... " >&6; }
2114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$4
2117#include <$2>
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_header_compiler=yes
2121else
2122 ac_header_compiler=no
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2126$as_echo "$ac_header_compiler" >&6; }
2127
2128# Is the header present?
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2130$as_echo_n "checking $2 presence... " >&6; }
2131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h. */
2133#include <$2>
2134_ACEOF
2135if ac_fn_c_try_cpp "$LINENO"; then :
2136 ac_header_preproc=yes
2137else
2138 ac_header_preproc=no
2139fi
cristyda16f162011-02-19 23:52:17 +00002140rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2142$as_echo "$ac_header_preproc" >&6; }
2143
2144# So? What about this header?
2145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2146 yes:no: )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2148$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2151 ;;
2152 no:yes:* )
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2154$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2156$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2158$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2160$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2162$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002163( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002164## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002165## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002166 ) | sed "s/^/$as_me: WARNING: /" >&2
2167 ;;
2168esac
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002171if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002172 $as_echo_n "(cached) " >&6
2173else
2174 eval "$3=\$ac_header_compiler"
2175fi
2176eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178$as_echo "$ac_res" >&6; }
2179fi
cristyda16f162011-02-19 23:52:17 +00002180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002181
2182} # ac_fn_c_check_header_mongrel
2183
2184# ac_fn_c_try_run LINENO
2185# ----------------------
2186# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2187# that executables *can* be run.
2188ac_fn_c_try_run ()
2189{
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 if { { ac_try="$ac_link"
2192case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195esac
2196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197$as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_link") 2>&5
2199 ac_status=$?
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2202 { { case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205esac
2206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207$as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_try") 2>&5
2209 ac_status=$?
2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211 test $ac_status = 0; }; }; then :
2212 ac_retval=0
2213else
2214 $as_echo "$as_me: program exited with status $ac_status" >&5
2215 $as_echo "$as_me: failed program was:" >&5
2216sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 ac_retval=$ac_status
2219fi
2220 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002222 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002223
2224} # ac_fn_c_try_run
2225
2226# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2227# -------------------------------------------------------
2228# Tests whether HEADER exists and can be compiled using the include files in
2229# INCLUDES, setting the cache variable VAR accordingly.
2230ac_fn_c_check_header_compile ()
2231{
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002235if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002236 $as_echo_n "(cached) " >&6
2237else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h. */
2240$4
2241#include <$2>
2242_ACEOF
2243if ac_fn_c_try_compile "$LINENO"; then :
2244 eval "$3=yes"
2245else
2246 eval "$3=no"
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249fi
2250eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002254
2255} # ac_fn_c_check_header_compile
2256
cristya0b81c32010-01-22 02:54:33 +00002257# ac_fn_cxx_try_compile LINENO
2258# ----------------------------
2259# Try to compile conftest.$ac_ext, and return whether this succeeded.
2260ac_fn_cxx_try_compile ()
2261{
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 rm -f conftest.$ac_objext
2264 if { { ac_try="$ac_compile"
2265case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268esac
2269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270$as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_compile") 2>conftest.err
2272 ac_status=$?
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2277 fi
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } && {
2280 test -z "$ac_cxx_werror_flag" ||
2281 test ! -s conftest.err
2282 } && test -s conftest.$ac_objext; then :
2283 ac_retval=0
2284else
2285 $as_echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 ac_retval=1
2289fi
cristyda16f162011-02-19 23:52:17 +00002290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002291 as_fn_set_status $ac_retval
2292
2293} # ac_fn_cxx_try_compile
2294
cristy8b350f62009-11-15 23:12:43 +00002295# ac_fn_c_try_link LINENO
2296# -----------------------
2297# Try to link conftest.$ac_ext, and return whether this succeeded.
2298ac_fn_c_try_link ()
2299{
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 rm -f conftest.$ac_objext conftest$ac_exeext
2302 if { { ac_try="$ac_link"
2303case "(($ac_try" in
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2306esac
2307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308$as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_link") 2>conftest.err
2310 ac_status=$?
2311 if test -s conftest.err; then
2312 grep -v '^ *+' conftest.err >conftest.er1
2313 cat conftest.er1 >&5
2314 mv -f conftest.er1 conftest.err
2315 fi
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; } && {
2318 test -z "$ac_c_werror_flag" ||
2319 test ! -s conftest.err
2320 } && test -s conftest$ac_exeext && {
2321 test "$cross_compiling" = yes ||
2322 $as_test_x conftest$ac_exeext
2323 }; then :
2324 ac_retval=0
2325else
2326 $as_echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 ac_retval=1
2330fi
2331 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2332 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2333 # interfere with the next link command; also delete a directory that is
2334 # left behind by Apple's compiler. We do this before executing the actions.
2335 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002337 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002338
2339} # ac_fn_c_try_link
2340
cristy73bd4a52010-10-05 11:24:23 +00002341# ac_fn_c_check_func LINENO FUNC VAR
2342# ----------------------------------
2343# Tests whether FUNC exists, setting the cache variable VAR accordingly
2344ac_fn_c_check_func ()
2345{
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002349if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002350 $as_echo_n "(cached) " >&6
2351else
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353/* end confdefs.h. */
2354/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2356#define $2 innocuous_$2
2357
2358/* System header to define __stub macros and hopefully few prototypes,
2359 which can conflict with char $2 (); below.
2360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2361 <limits.h> exists even on freestanding compilers. */
2362
2363#ifdef __STDC__
2364# include <limits.h>
2365#else
2366# include <assert.h>
2367#endif
2368
2369#undef $2
2370
2371/* Override any GCC internal prototype to avoid an error.
2372 Use char because int might match the return type of a GCC
2373 builtin and then its argument prototype would still apply. */
2374#ifdef __cplusplus
2375extern "C"
2376#endif
2377char $2 ();
2378/* The GNU C library defines this for functions which it implements
2379 to always fail with ENOSYS. Some functions are actually named
2380 something starting with __ and the normal name is an alias. */
2381#if defined __stub_$2 || defined __stub___$2
2382choke me
2383#endif
2384
2385int
2386main ()
2387{
2388return $2 ();
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393if ac_fn_c_try_link "$LINENO"; then :
2394 eval "$3=yes"
2395else
2396 eval "$3=no"
2397fi
2398rm -f core conftest.err conftest.$ac_objext \
2399 conftest$ac_exeext conftest.$ac_ext
2400fi
2401eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002405
2406} # ac_fn_c_check_func
2407
2408# ac_fn_cxx_try_cpp LINENO
2409# ------------------------
2410# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2411ac_fn_cxx_try_cpp ()
2412{
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 if { { ac_try="$ac_cpp conftest.$ac_ext"
2415case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418esac
2419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420$as_echo "$ac_try_echo"; } >&5
2421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2422 ac_status=$?
2423 if test -s conftest.err; then
2424 grep -v '^ *+' conftest.err >conftest.er1
2425 cat conftest.er1 >&5
2426 mv -f conftest.er1 conftest.err
2427 fi
2428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002429 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002430 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2431 test ! -s conftest.err
2432 }; then :
2433 ac_retval=0
2434else
2435 $as_echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 ac_retval=1
2439fi
cristyda16f162011-02-19 23:52:17 +00002440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002441 as_fn_set_status $ac_retval
2442
2443} # ac_fn_cxx_try_cpp
2444
2445# ac_fn_cxx_try_link LINENO
2446# -------------------------
2447# Try to link conftest.$ac_ext, and return whether this succeeded.
2448ac_fn_cxx_try_link ()
2449{
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { { ac_try="$ac_link"
2453case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
2457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458$as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_link") 2>conftest.err
2460 ac_status=$?
2461 if test -s conftest.err; then
2462 grep -v '^ *+' conftest.err >conftest.er1
2463 cat conftest.er1 >&5
2464 mv -f conftest.er1 conftest.err
2465 fi
2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467 test $ac_status = 0; } && {
2468 test -z "$ac_cxx_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest$ac_exeext && {
2471 test "$cross_compiling" = yes ||
2472 $as_test_x conftest$ac_exeext
2473 }; then :
2474 ac_retval=0
2475else
2476 $as_echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 ac_retval=1
2480fi
2481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2483 # interfere with the next link command; also delete a directory that is
2484 # left behind by Apple's compiler. We do this before executing the actions.
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002487 as_fn_set_status $ac_retval
2488
2489} # ac_fn_cxx_try_link
2490
cristy98dddb52010-11-04 00:30:15 +00002491# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2492# ---------------------------------------------
2493# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2494# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002495ac_fn_c_check_decl ()
2496{
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002498 as_decl_name=`echo $2|sed 's/ *(.*//'`
2499 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2501$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002502if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002503 $as_echo_n "(cached) " >&6
2504else
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506/* end confdefs.h. */
2507$4
2508int
2509main ()
2510{
cristy98dddb52010-11-04 00:30:15 +00002511#ifndef $as_decl_name
2512#ifdef __cplusplus
2513 (void) $as_decl_use;
2514#else
2515 (void) $as_decl_name;
2516#endif
cristy73bd4a52010-10-05 11:24:23 +00002517#endif
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523if ac_fn_c_try_compile "$LINENO"; then :
2524 eval "$3=yes"
2525else
2526 eval "$3=no"
2527fi
2528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529fi
2530eval ac_res=\$$3
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002534
2535} # ac_fn_c_check_decl
2536
cristy8b350f62009-11-15 23:12:43 +00002537# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2538# -------------------------------------------
2539# Tests whether TYPE exists after having included INCLUDES, setting cache
2540# variable VAR accordingly.
2541ac_fn_c_check_type ()
2542{
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002546if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002547 $as_echo_n "(cached) " >&6
2548else
2549 eval "$3=no"
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551/* end confdefs.h. */
2552$4
2553int
2554main ()
2555{
2556if (sizeof ($2))
2557 return 0;
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"; then :
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564/* end confdefs.h. */
2565$4
2566int
2567main ()
2568{
2569if (sizeof (($2)))
2570 return 0;
2571 ;
2572 return 0;
2573}
2574_ACEOF
2575if ac_fn_c_try_compile "$LINENO"; then :
2576
2577else
2578 eval "$3=yes"
2579fi
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581fi
2582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583fi
2584eval ac_res=\$$3
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002588
2589} # ac_fn_c_check_type
2590
cristy92703d82010-04-26 00:18:18 +00002591# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2592# ----------------------------------------------------
2593# Tries to find if the field MEMBER exists in type AGGR, after including
2594# INCLUDES, setting cache variable VAR accordingly.
2595ac_fn_c_check_member ()
2596{
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2599$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002600if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002601 $as_echo_n "(cached) " >&6
2602else
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604/* end confdefs.h. */
2605$5
2606int
2607main ()
2608{
2609static $2 ac_aggr;
2610if (ac_aggr.$3)
2611return 0;
2612 ;
2613 return 0;
2614}
2615_ACEOF
2616if ac_fn_c_try_compile "$LINENO"; then :
2617 eval "$4=yes"
2618else
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620/* end confdefs.h. */
2621$5
2622int
2623main ()
2624{
2625static $2 ac_aggr;
2626if (sizeof ac_aggr.$3)
2627return 0;
2628 ;
2629 return 0;
2630}
2631_ACEOF
2632if ac_fn_c_try_compile "$LINENO"; then :
2633 eval "$4=yes"
2634else
2635 eval "$4=no"
2636fi
2637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638fi
2639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640fi
2641eval ac_res=\$$4
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002645
2646} # ac_fn_c_check_member
2647
cristy501c8042011-05-26 17:46:28 +00002648# ac_fn_c_find_intX_t LINENO BITS VAR
2649# -----------------------------------
2650# Finds a signed integer type with width BITS, setting cache variable VAR
2651# accordingly.
2652ac_fn_c_find_intX_t ()
2653{
2654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2656$as_echo_n "checking for int$2_t... " >&6; }
2657if eval \${$3+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659else
2660 eval "$3=no"
2661 # Order is important - never check a type that is potentially smaller
2662 # than half of the expected target width.
2663 for ac_type in int$2_t 'int' 'long int' \
2664 'long long int' 'short int' 'signed char'; do
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h. */
2667$ac_includes_default
2668 enum { N = $2 / 2 - 1 };
2669int
2670main ()
2671{
2672static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2673test_array [0] = 0
2674
2675 ;
2676 return 0;
2677}
2678_ACEOF
2679if ac_fn_c_try_compile "$LINENO"; then :
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h. */
2682$ac_includes_default
2683 enum { N = $2 / 2 - 1 };
2684int
2685main ()
2686{
2687static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2688 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2689test_array [0] = 0
2690
2691 ;
2692 return 0;
2693}
2694_ACEOF
2695if ac_fn_c_try_compile "$LINENO"; then :
2696
2697else
2698 case $ac_type in #(
2699 int$2_t) :
2700 eval "$3=yes" ;; #(
2701 *) :
2702 eval "$3=\$ac_type" ;;
2703esac
2704fi
2705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706fi
2707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 if eval test \"x\$"$3"\" = x"no"; then :
2709
2710else
2711 break
2712fi
2713 done
2714fi
2715eval ac_res=\$$3
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717$as_echo "$ac_res" >&6; }
2718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719
2720} # ac_fn_c_find_intX_t
2721
2722# ac_fn_c_find_uintX_t LINENO BITS VAR
2723# ------------------------------------
2724# Finds an unsigned integer type with width BITS, setting cache variable VAR
2725# accordingly.
2726ac_fn_c_find_uintX_t ()
2727{
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2730$as_echo_n "checking for uint$2_t... " >&6; }
2731if eval \${$3+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733else
2734 eval "$3=no"
2735 # Order is important - never check a type that is potentially smaller
2736 # than half of the expected target width.
2737 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2738 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741$ac_includes_default
2742int
2743main ()
2744{
2745static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2746test_array [0] = 0
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752if ac_fn_c_try_compile "$LINENO"; then :
2753 case $ac_type in #(
2754 uint$2_t) :
2755 eval "$3=yes" ;; #(
2756 *) :
2757 eval "$3=\$ac_type" ;;
2758esac
2759fi
2760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 if eval test \"x\$"$3"\" = x"no"; then :
2762
2763else
2764 break
2765fi
2766 done
2767fi
2768eval ac_res=\$$3
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770$as_echo "$ac_res" >&6; }
2771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2772
2773} # ac_fn_c_find_uintX_t
2774
cristy8b350f62009-11-15 23:12:43 +00002775# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2776# --------------------------------------------
2777# Tries to find the compile-time value of EXPR in a program that includes
2778# INCLUDES, setting VAR accordingly. Returns whether the value could be
2779# computed
2780ac_fn_c_compute_int ()
2781{
2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783 if test "$cross_compiling" = yes; then
2784 # Depending upon the size, compute the lo and hi bounds.
2785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786/* end confdefs.h. */
2787$4
2788int
2789main ()
2790{
2791static int test_array [1 - 2 * !(($2) >= 0)];
2792test_array [0] = 0
2793
2794 ;
2795 return 0;
2796}
2797_ACEOF
2798if ac_fn_c_try_compile "$LINENO"; then :
2799 ac_lo=0 ac_mid=0
2800 while :; do
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802/* end confdefs.h. */
2803$4
2804int
2805main ()
2806{
2807static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2808test_array [0] = 0
2809
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814if ac_fn_c_try_compile "$LINENO"; then :
2815 ac_hi=$ac_mid; break
2816else
2817 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2818 if test $ac_lo -le $ac_mid; then
2819 ac_lo= ac_hi=
2820 break
2821 fi
2822 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2823fi
2824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 done
2826else
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828/* end confdefs.h. */
2829$4
2830int
2831main ()
2832{
2833static int test_array [1 - 2 * !(($2) < 0)];
2834test_array [0] = 0
2835
2836 ;
2837 return 0;
2838}
2839_ACEOF
2840if ac_fn_c_try_compile "$LINENO"; then :
2841 ac_hi=-1 ac_mid=-1
2842 while :; do
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h. */
2845$4
2846int
2847main ()
2848{
2849static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2850test_array [0] = 0
2851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856if ac_fn_c_try_compile "$LINENO"; then :
2857 ac_lo=$ac_mid; break
2858else
2859 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2860 if test $ac_mid -le $ac_hi; then
2861 ac_lo= ac_hi=
2862 break
2863 fi
2864 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2865fi
2866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 done
2868else
2869 ac_lo= ac_hi=
2870fi
2871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872fi
2873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874# Binary search between lo and hi bounds.
2875while test "x$ac_lo" != "x$ac_hi"; do
2876 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878/* end confdefs.h. */
2879$4
2880int
2881main ()
2882{
2883static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2884test_array [0] = 0
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890if ac_fn_c_try_compile "$LINENO"; then :
2891 ac_hi=$ac_mid
2892else
2893 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2894fi
2895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896done
2897case $ac_lo in #((
2898?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2899'') ac_retval=1 ;;
2900esac
2901 else
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903/* end confdefs.h. */
2904$4
2905static long int longval () { return $2; }
2906static unsigned long int ulongval () { return $2; }
2907#include <stdio.h>
2908#include <stdlib.h>
2909int
2910main ()
2911{
2912
2913 FILE *f = fopen ("conftest.val", "w");
2914 if (! f)
2915 return 1;
2916 if (($2) < 0)
2917 {
2918 long int i = longval ();
2919 if (i != ($2))
2920 return 1;
2921 fprintf (f, "%ld", i);
2922 }
2923 else
2924 {
2925 unsigned long int i = ulongval ();
2926 if (i != ($2))
2927 return 1;
2928 fprintf (f, "%lu", i);
2929 }
2930 /* Do not output a trailing newline, as this causes \r\n confusion
2931 on some platforms. */
2932 return ferror (f) || fclose (f) != 0;
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938if ac_fn_c_try_run "$LINENO"; then :
2939 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2940else
2941 ac_retval=1
2942fi
2943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2944 conftest.$ac_objext conftest.beam conftest.$ac_ext
2945rm -f conftest.val
2946
2947 fi
cristyda16f162011-02-19 23:52:17 +00002948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002949 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002950
2951} # ac_fn_c_compute_int
2952
2953# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2954# ---------------------------------------------------------
2955# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2956# the include files in INCLUDES and setting the cache variable VAR
2957# accordingly.
2958ac_fn_cxx_check_header_mongrel ()
2959{
2960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002961 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2963$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002964if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002965 $as_echo_n "(cached) " >&6
2966fi
2967eval ac_res=\$$3
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2969$as_echo "$ac_res" >&6; }
2970else
2971 # Is the header compilable?
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2973$as_echo_n "checking $2 usability... " >&6; }
2974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975/* end confdefs.h. */
2976$4
2977#include <$2>
2978_ACEOF
2979if ac_fn_cxx_try_compile "$LINENO"; then :
2980 ac_header_compiler=yes
2981else
2982 ac_header_compiler=no
2983fi
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2986$as_echo "$ac_header_compiler" >&6; }
2987
2988# Is the header present?
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2990$as_echo_n "checking $2 presence... " >&6; }
2991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992/* end confdefs.h. */
2993#include <$2>
2994_ACEOF
2995if ac_fn_cxx_try_cpp "$LINENO"; then :
2996 ac_header_preproc=yes
2997else
2998 ac_header_preproc=no
2999fi
cristyda16f162011-02-19 23:52:17 +00003000rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3002$as_echo "$ac_header_preproc" >&6; }
3003
3004# So? What about this header?
3005case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3006 yes:no: )
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3008$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3010$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3011 ;;
3012 no:yes:* )
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3014$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3016$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3018$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3020$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003023( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003024## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003025## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003026 ) | sed "s/^/$as_me: WARNING: /" >&2
3027 ;;
3028esac
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3030$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003031if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003032 $as_echo_n "(cached) " >&6
3033else
3034 eval "$3=\$ac_header_compiler"
3035fi
3036eval ac_res=\$$3
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038$as_echo "$ac_res" >&6; }
3039fi
cristyda16f162011-02-19 23:52:17 +00003040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003041
3042} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003043cat >config.log <<_ACEOF
3044This file contains any messages produced by compilers while
3045running configure, to aid debugging if configure makes a mistake.
3046
cristy4c08aed2011-07-01 19:47:50 +00003047It was created by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +00003048generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003049
3050 $ $0 $@
3051
3052_ACEOF
3053exec 5>>config.log
3054{
3055cat <<_ASUNAME
3056## --------- ##
3057## Platform. ##
3058## --------- ##
3059
3060hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3061uname -m = `(uname -m) 2>/dev/null || echo unknown`
3062uname -r = `(uname -r) 2>/dev/null || echo unknown`
3063uname -s = `(uname -s) 2>/dev/null || echo unknown`
3064uname -v = `(uname -v) 2>/dev/null || echo unknown`
3065
3066/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3067/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3068
3069/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3070/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3071/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3072/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3073/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3074/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3075/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3076
3077_ASUNAME
3078
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003084 $as_echo "PATH: $as_dir"
3085 done
cristy3ed852e2009-09-05 21:47:34 +00003086IFS=$as_save_IFS
3087
3088} >&5
3089
3090cat >&5 <<_ACEOF
3091
3092
3093## ----------- ##
3094## Core tests. ##
3095## ----------- ##
3096
3097_ACEOF
3098
3099
3100# Keep a trace of the command line.
3101# Strip out --no-create and --no-recursion so they do not pile up.
3102# Strip out --silent because we don't want to record it for future runs.
3103# Also quote any args containing shell meta-characters.
3104# Make two passes to allow for proper duplicate-argument suppression.
3105ac_configure_args=
3106ac_configure_args0=
3107ac_configure_args1=
3108ac_must_keep_next=false
3109for ac_pass in 1 2
3110do
3111 for ac_arg
3112 do
3113 case $ac_arg in
3114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3116 | -silent | --silent | --silen | --sile | --sil)
3117 continue ;;
3118 *\'*)
3119 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3120 esac
3121 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003122 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003123 2)
cristy8b350f62009-11-15 23:12:43 +00003124 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003125 if test $ac_must_keep_next = true; then
3126 ac_must_keep_next=false # Got value, back to normal.
3127 else
3128 case $ac_arg in
3129 *=* | --config-cache | -C | -disable-* | --disable-* \
3130 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3131 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3132 | -with-* | --with-* | -without-* | --without-* | --x)
3133 case "$ac_configure_args0 " in
3134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3135 esac
3136 ;;
3137 -* ) ac_must_keep_next=true ;;
3138 esac
3139 fi
cristy8b350f62009-11-15 23:12:43 +00003140 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003141 ;;
3142 esac
3143 done
3144done
cristy8b350f62009-11-15 23:12:43 +00003145{ ac_configure_args0=; unset ac_configure_args0;}
3146{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003147
3148# When interrupted or exit'd, cleanup temporary files, and complete
3149# config.log. We remove comments because anyway the quotes in there
3150# would cause problems or look ugly.
3151# WARNING: Use '\'' to represent an apostrophe within the trap.
3152# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3153trap 'exit_status=$?
3154 # Save into config.log some information that might help in debugging.
3155 {
3156 echo
3157
cristy98dddb52010-11-04 00:30:15 +00003158 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003159## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003160## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003161 echo
3162 # The following way of writing the cache mishandles newlines in values,
3163(
3164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3165 eval ac_val=\$$ac_var
3166 case $ac_val in #(
3167 *${as_nl}*)
3168 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3171 esac
3172 case $ac_var in #(
3173 _ | IFS | as_nl) ;; #(
3174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003175 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003176 esac ;;
3177 esac
3178 done
3179 (set) 2>&1 |
3180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3181 *${as_nl}ac_space=\ *)
3182 sed -n \
3183 "s/'\''/'\''\\\\'\'''\''/g;
3184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3185 ;; #(
3186 *)
3187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3188 ;;
3189 esac |
3190 sort
3191)
3192 echo
3193
cristy98dddb52010-11-04 00:30:15 +00003194 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003195## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003196## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003197 echo
3198 for ac_var in $ac_subst_vars
3199 do
3200 eval ac_val=\$$ac_var
3201 case $ac_val in
3202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3203 esac
3204 $as_echo "$ac_var='\''$ac_val'\''"
3205 done | sort
3206 echo
3207
3208 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003209 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003210## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003211## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003212 echo
3213 for ac_var in $ac_subst_files
3214 do
3215 eval ac_val=\$$ac_var
3216 case $ac_val in
3217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3218 esac
3219 $as_echo "$ac_var='\''$ac_val'\''"
3220 done | sort
3221 echo
3222 fi
3223
3224 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003225 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003226## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003227## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003228 echo
3229 cat confdefs.h
3230 echo
3231 fi
3232 test "$ac_signal" != 0 &&
3233 $as_echo "$as_me: caught signal $ac_signal"
3234 $as_echo "$as_me: exit $exit_status"
3235 } >&5
3236 rm -f core *.core core.conftest.* &&
3237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3238 exit $exit_status
3239' 0
3240for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003242done
3243ac_signal=0
3244
3245# confdefs.h avoids OS command line length limits that DEFS can exceed.
3246rm -f -r conftest* confdefs.h
3247
cristy8b350f62009-11-15 23:12:43 +00003248$as_echo "/* confdefs.h */" > confdefs.h
3249
cristy3ed852e2009-09-05 21:47:34 +00003250# Predefined preprocessor variables.
3251
3252cat >>confdefs.h <<_ACEOF
3253#define PACKAGE_NAME "$PACKAGE_NAME"
3254_ACEOF
3255
cristy3ed852e2009-09-05 21:47:34 +00003256cat >>confdefs.h <<_ACEOF
3257#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3258_ACEOF
3259
cristy3ed852e2009-09-05 21:47:34 +00003260cat >>confdefs.h <<_ACEOF
3261#define PACKAGE_VERSION "$PACKAGE_VERSION"
3262_ACEOF
3263
cristy3ed852e2009-09-05 21:47:34 +00003264cat >>confdefs.h <<_ACEOF
3265#define PACKAGE_STRING "$PACKAGE_STRING"
3266_ACEOF
3267
cristy3ed852e2009-09-05 21:47:34 +00003268cat >>confdefs.h <<_ACEOF
3269#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3270_ACEOF
3271
cristy8b350f62009-11-15 23:12:43 +00003272cat >>confdefs.h <<_ACEOF
3273#define PACKAGE_URL "$PACKAGE_URL"
3274_ACEOF
3275
cristy3ed852e2009-09-05 21:47:34 +00003276
3277# Let the site file select an alternate cache file if it wants to.
3278# Prefer an explicitly selected file to automatically selected ones.
3279ac_site_file1=NONE
3280ac_site_file2=NONE
3281if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003282 # We do not want a PATH search for config.site.
3283 case $CONFIG_SITE in #((
3284 -*) ac_site_file1=./$CONFIG_SITE;;
3285 */*) ac_site_file1=$CONFIG_SITE;;
3286 *) ac_site_file1=./$CONFIG_SITE;;
3287 esac
cristy3ed852e2009-09-05 21:47:34 +00003288elif test "x$prefix" != xNONE; then
3289 ac_site_file1=$prefix/share/config.site
3290 ac_site_file2=$prefix/etc/config.site
3291else
3292 ac_site_file1=$ac_default_prefix/share/config.site
3293 ac_site_file2=$ac_default_prefix/etc/config.site
3294fi
3295for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3296do
3297 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003298 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003300$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3301 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003302 . "$ac_site_file" \
3303 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305as_fn_error $? "failed to load site script $ac_site_file
3306See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003307 fi
3308done
3309
3310if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003311 # Some versions of bash will fail to source /dev/null (special files
3312 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3313 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003315$as_echo "$as_me: loading cache $cache_file" >&6;}
3316 case $cache_file in
3317 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3318 *) . "./$cache_file";;
3319 esac
3320 fi
3321else
cristy8b350f62009-11-15 23:12:43 +00003322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003323$as_echo "$as_me: creating cache $cache_file" >&6;}
3324 >$cache_file
3325fi
3326
cristycd4c5312009-11-22 01:19:08 +00003327as_fn_append ac_header_list " stdlib.h"
3328as_fn_append ac_header_list " unistd.h"
3329as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003330# Check that the precious variables saved in the cache have kept the same
3331# value.
3332ac_cache_corrupted=false
3333for ac_var in $ac_precious_vars; do
3334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3335 eval ac_new_set=\$ac_env_${ac_var}_set
3336 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3337 eval ac_new_val=\$ac_env_${ac_var}_value
3338 case $ac_old_set,$ac_new_set in
3339 set,)
cristy8b350f62009-11-15 23:12:43 +00003340 { $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 +00003341$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3342 ac_cache_corrupted=: ;;
3343 ,set)
cristy8b350f62009-11-15 23:12:43 +00003344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003345$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3346 ac_cache_corrupted=: ;;
3347 ,);;
3348 *)
3349 if test "x$ac_old_val" != "x$ac_new_val"; then
3350 # differences in whitespace do not lead to failure.
3351 ac_old_val_w=`echo x $ac_old_val`
3352 ac_new_val_w=`echo x $ac_new_val`
3353 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003355$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3356 ac_cache_corrupted=:
3357 else
cristy8b350f62009-11-15 23:12:43 +00003358 { $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 +00003359$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3360 eval $ac_var=\$ac_old_val
3361 fi
cristy8b350f62009-11-15 23:12:43 +00003362 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003363$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003364 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003365$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3366 fi;;
3367 esac
3368 # Pass precious variables to config.status.
3369 if test "$ac_new_set" = set; then
3370 case $ac_new_val in
3371 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3372 *) ac_arg=$ac_var=$ac_new_val ;;
3373 esac
3374 case " $ac_configure_args " in
3375 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003376 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003377 esac
3378 fi
3379done
3380if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003385 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003386fi
cristy8b350f62009-11-15 23:12:43 +00003387## -------------------- ##
3388## Main body of script. ##
3389## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003390
3391ac_ext=c
3392ac_cpp='$CPP $CPPFLAGS'
3393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
3398
3399ac_aux_dir=
3400for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003401 if test -f "$ac_dir/install-sh"; then
3402 ac_aux_dir=$ac_dir
3403 ac_install_sh="$ac_aux_dir/install-sh -c"
3404 break
3405 elif test -f "$ac_dir/install.sh"; then
3406 ac_aux_dir=$ac_dir
3407 ac_install_sh="$ac_aux_dir/install.sh -c"
3408 break
3409 elif test -f "$ac_dir/shtool"; then
3410 ac_aux_dir=$ac_dir
3411 ac_install_sh="$ac_aux_dir/shtool install -c"
3412 break
3413 fi
cristy3ed852e2009-09-05 21:47:34 +00003414done
3415if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003416 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003417fi
3418
3419# These three variables are undocumented and unsupported,
3420# and are intended to be withdrawn in a future Autoconf release.
3421# They can cause serious problems if a builder's source tree is in a directory
3422# whose full name contains unusual characters.
3423ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3424ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3425ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3426
3427
3428
3429
3430ac_config_headers="$ac_config_headers config/config.h"
3431
cristy24fc1fe2010-10-23 21:13:01 +00003432
cristy4c08aed2011-07-01 19:47:50 +00003433ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003434
cristy4c08aed2011-07-01 19:47:50 +00003435ac_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 +00003436
3437
3438#
3439# Save initial user-tunable values
3440#
3441USER_LIBS=$LIBS
3442for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3443 eval isset=\${$var+set}
3444 if test "$isset" = 'set'; then
3445 eval val=$`echo $var`
3446 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3447 fi
3448done
3449
3450
3451CONFIGURE_ARGS="$0 ${ac_configure_args}"
3452
3453
3454# Source file containing package/library versioning information.
3455. ${srcdir}/version.sh
3456
cristy15a88782010-01-31 23:24:49 +00003457echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003458# Make sure we can run config.sub.
3459$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003460 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003461
cristy8b350f62009-11-15 23:12:43 +00003462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003463$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003464if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003465 $as_echo_n "(cached) " >&6
3466else
3467 ac_build_alias=$build_alias
3468test "x$ac_build_alias" = x &&
3469 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3470test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003471 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003472ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003474
3475fi
cristy8b350f62009-11-15 23:12:43 +00003476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003477$as_echo "$ac_cv_build" >&6; }
3478case $ac_cv_build in
3479*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003480*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003481esac
3482build=$ac_cv_build
3483ac_save_IFS=$IFS; IFS='-'
3484set x $ac_cv_build
3485shift
3486build_cpu=$1
3487build_vendor=$2
3488shift; shift
3489# Remember, the first character of IFS is used to create $*,
3490# except with old shells:
3491build_os=$*
3492IFS=$ac_save_IFS
3493case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3494
3495
cristy8b350f62009-11-15 23:12:43 +00003496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003497$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003498if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003499 $as_echo_n "(cached) " >&6
3500else
3501 if test "x$host_alias" = x; then
3502 ac_cv_host=$ac_cv_build
3503else
3504 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003506fi
3507
3508fi
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo "$ac_cv_host" >&6; }
3511case $ac_cv_host in
3512*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003513*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003514esac
3515host=$ac_cv_host
3516ac_save_IFS=$IFS; IFS='-'
3517set x $ac_cv_host
3518shift
3519host_cpu=$1
3520host_vendor=$2
3521shift; shift
3522# Remember, the first character of IFS is used to create $*,
3523# except with old shells:
3524host_os=$*
3525IFS=$ac_save_IFS
3526case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3527
3528
cristy8b350f62009-11-15 23:12:43 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003530$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003531if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003532 $as_echo_n "(cached) " >&6
3533else
3534 if test "x$target_alias" = x; then
3535 ac_cv_target=$ac_cv_host
3536else
3537 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003539fi
3540
3541fi
cristy8b350f62009-11-15 23:12:43 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo "$ac_cv_target" >&6; }
3544case $ac_cv_target in
3545*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003546*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003547esac
3548target=$ac_cv_target
3549ac_save_IFS=$IFS; IFS='-'
3550set x $ac_cv_target
3551shift
3552target_cpu=$1
3553target_vendor=$2
3554shift; shift
3555# Remember, the first character of IFS is used to create $*,
3556# except with old shells:
3557target_os=$*
3558IFS=$ac_save_IFS
3559case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3560
3561
3562# The aliases save the names the user supplied, while $host etc.
3563# will get canonicalized.
3564test -n "$target_alias" &&
3565 test "$program_prefix$program_suffix$program_transform_name" = \
3566 NONENONEs,x,x, &&
3567 program_prefix=${target_alias}-
3568
cristy837d6dc2010-02-27 01:16:57 +00003569
3570
3571
cristy19615b82011-04-13 20:02:01 +00003572MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003573
3574
cristy19615b82011-04-13 20:02:01 +00003575MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003576
3577
cristy19615b82011-04-13 20:02:01 +00003578MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003579
3580
cristy3ed852e2009-09-05 21:47:34 +00003581# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003582MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3583
3584MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3585
cristya448bd22011-10-14 12:38:13 +00003586MAGICK_SVN_REVISION=5645
cristyd694ca32011-03-27 21:42:54 +00003587
3588
cristy3ed852e2009-09-05 21:47:34 +00003589
3590
3591# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3593$as_echo_n "checking whether build environment is sane... " >&6; }
3594# Just in case
3595sleep 1
3596echo timestamp > conftest.file
3597# Reject unsafe characters in $srcdir or the absolute working directory
3598# name. Accept space and tab only in the latter.
3599am_lf='
3600'
3601case `pwd` in
3602 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003603 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003604esac
3605case $srcdir in
3606 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003607 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003608esac
cristy3ed852e2009-09-05 21:47:34 +00003609
cristy73bd4a52010-10-05 11:24:23 +00003610# Do `set' in a subshell so we don't clobber the current shell's
3611# arguments. Must try -L first in case configure is actually a
3612# symlink; some systems play weird games with the mod time of symlinks
3613# (eg FreeBSD returns the mod time of the symlink's containing
3614# directory).
3615if (
3616 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3617 if test "$*" = "X"; then
3618 # -L didn't work.
3619 set X `ls -t "$srcdir/configure" conftest.file`
3620 fi
3621 rm -f conftest.file
3622 if test "$*" != "X $srcdir/configure conftest.file" \
3623 && test "$*" != "X conftest.file $srcdir/configure"; then
3624
3625 # If neither matched, then we have a broken ls. This can happen
3626 # if, for instance, CONFIG_SHELL is bash and it inherits a
3627 # broken ls alias from the environment. This has actually
3628 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003629 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003630alias in your environment" "$LINENO" 5
3631 fi
3632
3633 test "$2" = conftest.file
3634 )
3635then
3636 # Ok.
3637 :
3638else
cristy98dddb52010-11-04 00:30:15 +00003639 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003640Check your system clock" "$LINENO" 5
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3643$as_echo "yes" >&6; }
3644
3645am__api_version='1.11'
3646
3647# Find a good install program. We prefer a C program (faster),
3648# so one script is as good as another. But avoid the broken or
3649# incompatible versions:
3650# SysV /etc/install, /usr/sbin/install
3651# SunOS /usr/etc/install
3652# IRIX /sbin/install
3653# AIX /bin/install
3654# AmigaOS /C/install, which installs bootblocks on floppy discs
3655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658# OS/2's system install, which has a completely different semantic
3659# ./install, which can be erroneously created by make from ./install.sh.
3660# Reject install programs that cannot install multiple files.
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3662$as_echo_n "checking for a BSD-compatible install... " >&6; }
3663if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003664if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003665 $as_echo_n "(cached) " >&6
3666else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 # Account for people who put trailing slashes in PATH elements.
3673case $as_dir/ in #((
3674 ./ | .// | /[cC]/* | \
3675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3676 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3677 /usr/ucb/* ) ;;
3678 *)
3679 # OSF1 and SCO ODT 3.0 have their own names for install.
3680 # Don't use installbsd from OSF since it installs stuff as root
3681 # by default.
3682 for ac_prog in ginstall scoinst install; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3685 if test $ac_prog = install &&
3686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687 # AIX install. It has an incompatible calling convention.
3688 :
3689 elif test $ac_prog = install &&
3690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3691 # program-specific install script used by HP pwplus--don't use.
3692 :
3693 else
3694 rm -rf conftest.one conftest.two conftest.dir
3695 echo one > conftest.one
3696 echo two > conftest.two
3697 mkdir conftest.dir
3698 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3699 test -s conftest.one && test -s conftest.two &&
3700 test -s conftest.dir/conftest.one &&
3701 test -s conftest.dir/conftest.two
3702 then
3703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3704 break 3
3705 fi
3706 fi
3707 fi
3708 done
3709 done
3710 ;;
3711esac
3712
3713 done
3714IFS=$as_save_IFS
3715
3716rm -rf conftest.one conftest.two conftest.dir
3717
3718fi
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL=$ac_cv_path_install
3721 else
3722 # As a last resort, use the slow shell script. Don't cache a
3723 # value for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the value is a relative name.
3726 INSTALL=$ac_install_sh
3727 fi
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3730$as_echo "$INSTALL" >&6; }
3731
3732# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733# It thinks the first close brace ends the variable substitution.
3734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3735
3736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3737
3738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3739
3740test "$program_prefix" != NONE &&
3741 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3742# Use a double $ so make ignores it.
3743test "$program_suffix" != NONE &&
3744 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3745# Double any \ or $.
3746# By default was `s,x,x', remove it if useless.
3747ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3748program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3749
3750# expand $ac_aux_dir to an absolute path
3751am_aux_dir=`cd $ac_aux_dir && pwd`
3752
3753if test x"${MISSING+set}" != xset; then
3754 case $am_aux_dir in
3755 *\ * | *\ *)
3756 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3757 *)
3758 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3759 esac
3760fi
3761# Use eval to expand $SHELL
3762if eval "$MISSING --run true"; then
3763 am_missing_run="$MISSING --run "
3764else
3765 am_missing_run=
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3767$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3768fi
3769
3770if test x"${install_sh}" != xset; then
3771 case $am_aux_dir in
3772 *\ * | *\ *)
3773 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3774 *)
3775 install_sh="\${SHELL} $am_aux_dir/install-sh"
3776 esac
3777fi
3778
3779# Installed binaries are usually stripped using `strip' when the user
3780# run `make install-strip'. However `strip' might not be the right
3781# tool to use in cross-compilation environments, therefore Automake
3782# will honor the `STRIP' environment variable to overrule this program.
3783if test "$cross_compiling" != no; then
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3786set dummy ${ac_tool_prefix}strip; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003789if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003790 $as_echo_n "(cached) " >&6
3791else
3792 if test -n "$STRIP"; then
3793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806done
3807 done
3808IFS=$as_save_IFS
3809
3810fi
3811fi
3812STRIP=$ac_cv_prog_STRIP
3813if test -n "$STRIP"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3815$as_echo "$STRIP" >&6; }
3816else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
3820
3821
3822fi
3823if test -z "$ac_cv_prog_STRIP"; then
3824 ac_ct_STRIP=$STRIP
3825 # Extract the first word of "strip", so it can be a program name with args.
3826set dummy strip; ac_word=$2
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003829if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003830 $as_echo_n "(cached) " >&6
3831else
3832 if test -n "$ac_ct_STRIP"; then
3833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3834else
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 ac_cv_prog_ac_ct_STRIP="strip"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3845 fi
3846done
3847 done
3848IFS=$as_save_IFS
3849
3850fi
3851fi
3852ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3853if test -n "$ac_ct_STRIP"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3855$as_echo "$ac_ct_STRIP" >&6; }
3856else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
3860
3861 if test "x$ac_ct_STRIP" = x; then
3862 STRIP=":"
3863 else
3864 case $cross_compiling:$ac_tool_warned in
3865yes:)
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868ac_tool_warned=yes ;;
3869esac
3870 STRIP=$ac_ct_STRIP
3871 fi
3872else
3873 STRIP="$ac_cv_prog_STRIP"
3874fi
3875
3876fi
3877INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3878
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3880$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3881if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003882 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003883 $as_echo_n "(cached) " >&6
3884else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in mkdir gmkdir; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3893 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3894 'mkdir (GNU coreutils) '* | \
3895 'mkdir (coreutils) '* | \
3896 'mkdir (fileutils) '4.1*)
3897 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3898 break 3;;
3899 esac
3900 done
3901 done
3902 done
3903IFS=$as_save_IFS
3904
3905fi
3906
3907 test -d ./--version && rmdir ./--version
3908 if test "${ac_cv_path_mkdir+set}" = set; then
3909 MKDIR_P="$ac_cv_path_mkdir -p"
3910 else
3911 # As a last resort, use the slow shell script. Don't cache a
3912 # value for MKDIR_P within a source directory, because that will
3913 # break other packages using the cache if that directory is
3914 # removed, or if the value is a relative name.
3915 MKDIR_P="$ac_install_sh -d"
3916 fi
3917fi
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3919$as_echo "$MKDIR_P" >&6; }
3920
3921mkdir_p="$MKDIR_P"
3922case $mkdir_p in
3923 [\\/$]* | ?:[\\/]*) ;;
3924 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3925esac
3926
3927for ac_prog in gawk mawk nawk awk
3928do
3929 # Extract the first word of "$ac_prog", so it can be a program name with args.
3930set dummy $ac_prog; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003933if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003934 $as_echo_n "(cached) " >&6
3935else
3936 if test -n "$AWK"; then
3937 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_prog_AWK="$ac_prog"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951 done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956AWK=$ac_cv_prog_AWK
3957if test -n "$AWK"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3959$as_echo "$AWK" >&6; }
3960else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966 test -n "$AWK" && break
3967done
3968
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3970$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3971set x ${MAKE-make}
3972ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003973if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003974 $as_echo_n "(cached) " >&6
3975else
3976 cat >conftest.make <<\_ACEOF
3977SHELL = /bin/sh
3978all:
3979 @echo '@@@%%%=$(MAKE)=@@@%%%'
3980_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003981# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003982case `${MAKE-make} -f conftest.make 2>/dev/null` in
3983 *@@@%%%=?*=@@@%%%*)
3984 eval ac_cv_prog_make_${ac_make}_set=yes;;
3985 *)
3986 eval ac_cv_prog_make_${ac_make}_set=no;;
3987esac
3988rm -f conftest.make
3989fi
3990if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992$as_echo "yes" >&6; }
3993 SET_MAKE=
3994else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996$as_echo "no" >&6; }
3997 SET_MAKE="MAKE=${MAKE-make}"
3998fi
3999
4000rm -rf .tst 2>/dev/null
4001mkdir .tst 2>/dev/null
4002if test -d .tst; then
4003 am__leading_dot=.
4004else
4005 am__leading_dot=_
4006fi
4007rmdir .tst 2>/dev/null
4008
cristya448bd22011-10-14 12:38:13 +00004009# Check whether --enable-silent-rules was given.
4010if test "${enable_silent_rules+set}" = set; then :
4011 enableval=$enable_silent_rules;
4012fi
4013
4014case $enable_silent_rules in
4015yes) AM_DEFAULT_VERBOSITY=0;;
4016no) AM_DEFAULT_VERBOSITY=1;;
4017*) AM_DEFAULT_VERBOSITY=1;;
4018esac
4019AM_BACKSLASH='\'
4020
cristy73bd4a52010-10-05 11:24:23 +00004021if test "`cd $srcdir && pwd`" != "`pwd`"; then
4022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4023 # is not polluted with repeated "-I."
4024 am__isrc=' -I$(srcdir)'
4025 # test to see if srcdir already configured
4026 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004027 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004028 fi
4029fi
4030
4031# test whether we have cygpath
4032if test -z "$CYGPATH_W"; then
4033 if (cygpath --version) >/dev/null 2>/dev/null; then
4034 CYGPATH_W='cygpath -w'
4035 else
4036 CYGPATH_W=echo
4037 fi
4038fi
4039
4040
4041# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004042 PACKAGE='ImageMagick'
cristya448bd22011-10-14 12:38:13 +00004043 VERSION='7.0.0'
cristy73bd4a52010-10-05 11:24:23 +00004044
4045
cristya448bd22011-10-14 12:38:13 +00004046cat >>confdefs.h <<_ACEOF
4047#define PACKAGE "$PACKAGE"
4048_ACEOF
4049
4050
4051cat >>confdefs.h <<_ACEOF
4052#define VERSION "$VERSION"
4053_ACEOF
4054
cristy73bd4a52010-10-05 11:24:23 +00004055# Some tools Automake needs.
4056
4057ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4058
4059
4060AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4061
4062
4063AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4064
4065
4066AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4067
4068
4069MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4070
4071# We need awk for the "check" target. The system "awk" is bad on
4072# some platforms.
4073# Always define AMTAR for backward compatibility.
4074
4075AMTAR=${AMTAR-"${am_missing_run}tar"}
4076
4077am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4078
4079
4080
4081
4082
cristy3ed852e2009-09-05 21:47:34 +00004083
4084# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004085# Check whether --enable-silent-rules was given.
4086if test "${enable_silent_rules+set}" = set; then :
4087 enableval=$enable_silent_rules;
4088fi
4089
4090case $enable_silent_rules in
4091yes) AM_DEFAULT_VERBOSITY=0;;
4092no) AM_DEFAULT_VERBOSITY=1;;
4093*) AM_DEFAULT_VERBOSITY=0;;
4094esac
4095AM_BACKSLASH='\'
4096
cristy3ed852e2009-09-05 21:47:34 +00004097
4098MAGICK_LIB_VERSION="0x"
4099if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4100 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4101fi
4102MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4103if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4104 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4105fi
4106MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4107if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4108 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4109fi
4110MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4111
4112
4113# Definition used to define MagickLibVersionText in version.h
4114MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4115
4116
4117# Definition used to define MagickLibVersionNumber in version.h
4118MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4119
4120
4121# Regenerate config.status if ChangeLog or version.sh is updated.
4122CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4123
4124
4125PERLMAINCC=$CC
4126
4127MAGICK_CFLAGS=''
4128MAGICK_CPPFLAGS=$CPPFLAGS_USER
4129MAGICK_PCFLAGS=$CPPFLAGS_USER
4130MAGICK_LDFLAGS=''
4131MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004132MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004133
4134#
4135# Evaluate shell variable equivalents to Makefile directory variables
4136#
4137if test "x$prefix" = xNONE; then
4138 prefix=$ac_default_prefix
4139fi
4140# Let make expand exec_prefix.
4141if test "x$exec_prefix" = xNONE; then
4142 exec_prefix='${prefix}'
4143fi
4144
4145#
4146eval "eval PREFIX_DIR=${prefix}"
4147
4148eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4149
4150eval "eval BIN_DIR=$bindir"
4151
4152eval "eval SBIN_DIR=$sbindir"
4153
4154eval "eval LIBEXEC_DIR=$libexecdir"
4155
4156eval "eval DATA_DIR=$datadir"
4157
cristyd55889c2011-03-27 00:50:24 +00004158eval "eval DOC_DIR=$docdir"
4159
cristy3ed852e2009-09-05 21:47:34 +00004160eval "eval SYSCONF_DIR=$sysconfdir"
4161
4162eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4163
4164eval "eval LOCALSTATE_DIR=$localstatedir"
4165
4166eval "eval LIB_DIR=$libdir"
4167
4168eval "eval INCLUDE_DIR=$includedir"
4169
4170eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4171
4172eval "eval INFO_DIR=$infodir"
4173
4174eval "eval MAN_DIR=$mandir"
4175
4176
4177# Get full paths to source and build directories
4178srcdirfull="`cd $srcdir && pwd`"
4179builddir="`pwd`"
4180
4181#
4182# Compute variables useful for running uninstalled software.
4183#
4184MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4185MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4186MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4187MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4188DIRSEP=':'
4189case "${build_os}" in
4190 mingw* )
4191 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4192 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4193 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4194 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4195 DIRSEP=';'
4196 ;;
4197esac
4198case "${host_os}" in
4199 mingw* )
4200 DIRSEP=';'
4201 ;;
4202esac
4203
4204
4205
4206
4207
4208
cristya0b81c32010-01-22 02:54:33 +00004209
4210#
4211# Enable OS features.
4212#
cristy73bd4a52010-10-05 11:24:23 +00004213DEPDIR="${am__leading_dot}deps"
4214
4215ac_config_commands="$ac_config_commands depfiles"
4216
4217
4218am_make=${MAKE-make}
4219cat > confinc << 'END'
4220am__doit:
4221 @echo this is the am__doit target
4222.PHONY: am__doit
4223END
4224# If we don't find an include directive, just comment out the code.
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4226$as_echo_n "checking for style of include used by $am_make... " >&6; }
4227am__include="#"
4228am__quote=
4229_am_result=none
4230# First try GNU make style include.
4231echo "include confinc" > confmf
4232# Ignore all kinds of additional output from `make'.
4233case `$am_make -s -f confmf 2> /dev/null` in #(
4234*the\ am__doit\ target*)
4235 am__include=include
4236 am__quote=
4237 _am_result=GNU
4238 ;;
4239esac
4240# Now try BSD make style include.
4241if test "$am__include" = "#"; then
4242 echo '.include "confinc"' > confmf
4243 case `$am_make -s -f confmf 2> /dev/null` in #(
4244 *the\ am__doit\ target*)
4245 am__include=.include
4246 am__quote="\""
4247 _am_result=BSD
4248 ;;
4249 esac
4250fi
4251
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4254$as_echo "$_am_result" >&6; }
4255rm -f confinc confmf
4256
4257# Check whether --enable-dependency-tracking was given.
4258if test "${enable_dependency_tracking+set}" = set; then :
4259 enableval=$enable_dependency_tracking;
4260fi
4261
4262if test "x$enable_dependency_tracking" != xno; then
4263 am_depcomp="$ac_aux_dir/depcomp"
4264 AMDEPBACKSLASH='\'
4265fi
4266 if test "x$enable_dependency_tracking" != xno; then
4267 AMDEP_TRUE=
4268 AMDEP_FALSE='#'
4269else
4270 AMDEP_TRUE='#'
4271 AMDEP_FALSE=
4272fi
4273
4274
cristy3ed852e2009-09-05 21:47:34 +00004275ac_ext=c
4276ac_cpp='$CPP $CPPFLAGS'
4277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280if test -n "$ac_tool_prefix"; then
4281 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4282set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004284$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004285if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004286 $as_echo_n "(cached) " >&6
4287else
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4290else
4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004300 break 2
4301 fi
4302done
cristy8b350f62009-11-15 23:12:43 +00004303 done
cristy3ed852e2009-09-05 21:47:34 +00004304IFS=$as_save_IFS
4305
4306fi
4307fi
4308CC=$ac_cv_prog_CC
4309if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004311$as_echo "$CC" >&6; }
4312else
cristy8b350f62009-11-15 23:12:43 +00004313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004314$as_echo "no" >&6; }
4315fi
4316
4317
4318fi
4319if test -z "$ac_cv_prog_CC"; then
4320 ac_ct_CC=$CC
4321 # Extract the first word of "gcc", so it can be a program name with args.
4322set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004324$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004325if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004326 $as_echo_n "(cached) " >&6
4327else
4328 if test -n "$ac_ct_CC"; then
4329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4330else
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004340 break 2
4341 fi
4342done
cristy8b350f62009-11-15 23:12:43 +00004343 done
cristy3ed852e2009-09-05 21:47:34 +00004344IFS=$as_save_IFS
4345
4346fi
4347fi
4348ac_ct_CC=$ac_cv_prog_ac_ct_CC
4349if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004351$as_echo "$ac_ct_CC" >&6; }
4352else
cristy8b350f62009-11-15 23:12:43 +00004353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004354$as_echo "no" >&6; }
4355fi
4356
4357 if test "x$ac_ct_CC" = x; then
4358 CC=""
4359 else
4360 case $cross_compiling:$ac_tool_warned in
4361yes:)
cristy8b350f62009-11-15 23:12:43 +00004362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364ac_tool_warned=yes ;;
4365esac
4366 CC=$ac_ct_CC
4367 fi
4368else
4369 CC="$ac_cv_prog_CC"
4370fi
4371
4372if test -z "$CC"; then
4373 if test -n "$ac_tool_prefix"; then
4374 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4375set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004377$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004378if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004379 $as_echo_n "(cached) " >&6
4380else
4381 if test -n "$CC"; then
4382 ac_cv_prog_CC="$CC" # Let the user override the test.
4383else
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004393 break 2
4394 fi
4395done
cristy8b350f62009-11-15 23:12:43 +00004396 done
cristy3ed852e2009-09-05 21:47:34 +00004397IFS=$as_save_IFS
4398
4399fi
4400fi
4401CC=$ac_cv_prog_CC
4402if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004404$as_echo "$CC" >&6; }
4405else
cristy8b350f62009-11-15 23:12:43 +00004406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004407$as_echo "no" >&6; }
4408fi
4409
4410
4411 fi
4412fi
4413if test -z "$CC"; then
4414 # Extract the first word of "cc", so it can be a program name with args.
4415set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004418if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004419 $as_echo_n "(cached) " >&6
4420else
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC="$CC" # Let the user override the test.
4423else
4424 ac_prog_rejected=no
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4433 ac_prog_rejected=yes
4434 continue
4435 fi
4436 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004438 break 2
4439 fi
4440done
cristy8b350f62009-11-15 23:12:43 +00004441 done
cristy3ed852e2009-09-05 21:47:34 +00004442IFS=$as_save_IFS
4443
4444if test $ac_prog_rejected = yes; then
4445 # We found a bogon in the path, so make sure we never use it.
4446 set dummy $ac_cv_prog_CC
4447 shift
4448 if test $# != 0; then
4449 # We chose a different compiler from the bogus one.
4450 # However, it has the same basename, so the bogon will be chosen
4451 # first if we set CC to just the basename; use the full file name.
4452 shift
4453 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4454 fi
4455fi
4456fi
4457fi
4458CC=$ac_cv_prog_CC
4459if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004461$as_echo "$CC" >&6; }
4462else
cristy8b350f62009-11-15 23:12:43 +00004463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004464$as_echo "no" >&6; }
4465fi
4466
4467
4468fi
4469if test -z "$CC"; then
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in cl.exe
4472 do
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004477if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004478 $as_echo_n "(cached) " >&6
4479else
4480 if test -n "$CC"; then
4481 ac_cv_prog_CC="$CC" # Let the user override the test.
4482else
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004492 break 2
4493 fi
4494done
cristy8b350f62009-11-15 23:12:43 +00004495 done
cristy3ed852e2009-09-05 21:47:34 +00004496IFS=$as_save_IFS
4497
4498fi
4499fi
4500CC=$ac_cv_prog_CC
4501if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503$as_echo "$CC" >&6; }
4504else
cristy8b350f62009-11-15 23:12:43 +00004505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004506$as_echo "no" >&6; }
4507fi
4508
4509
4510 test -n "$CC" && break
4511 done
4512fi
4513if test -z "$CC"; then
4514 ac_ct_CC=$CC
4515 for ac_prog in cl.exe
4516do
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004521if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004522 $as_echo_n "(cached) " >&6
4523else
4524 if test -n "$ac_ct_CC"; then
4525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4526else
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004536 break 2
4537 fi
4538done
cristy8b350f62009-11-15 23:12:43 +00004539 done
cristy3ed852e2009-09-05 21:47:34 +00004540IFS=$as_save_IFS
4541
4542fi
4543fi
4544ac_ct_CC=$ac_cv_prog_ac_ct_CC
4545if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004547$as_echo "$ac_ct_CC" >&6; }
4548else
cristy8b350f62009-11-15 23:12:43 +00004549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004550$as_echo "no" >&6; }
4551fi
4552
4553
4554 test -n "$ac_ct_CC" && break
4555done
4556
4557 if test "x$ac_ct_CC" = x; then
4558 CC=""
4559 else
4560 case $cross_compiling:$ac_tool_warned in
4561yes:)
cristy8b350f62009-11-15 23:12:43 +00004562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564ac_tool_warned=yes ;;
4565esac
4566 CC=$ac_ct_CC
4567 fi
4568fi
4569
4570fi
4571
4572
cristy8b350f62009-11-15 23:12:43 +00004573test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004575as_fn_error $? "no acceptable C compiler found in \$PATH
4576See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004577
4578# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004579$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580set X $ac_compile
4581ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004582for ac_option in --version -v -V -qversion; do
4583 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004584case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587esac
cristy8b350f62009-11-15 23:12:43 +00004588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589$as_echo "$ac_try_echo"; } >&5
4590 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004591 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004592 if test -s conftest.err; then
4593 sed '10a\
4594... rest of stderr output deleted ...
4595 10q' conftest.err >conftest.er1
4596 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004597 fi
cristycd4c5312009-11-22 01:19:08 +00004598 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4600 test $ac_status = 0; }
4601done
cristy3ed852e2009-09-05 21:47:34 +00004602
cristy8b350f62009-11-15 23:12:43 +00004603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004604/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004605
cristy3ed852e2009-09-05 21:47:34 +00004606int
4607main ()
4608{
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004615ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004616# Try to create an executable without -o first, disregard a.out.
4617# It will help us diagnose broken compilers, and finding out an intuition
4618# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4620$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004621ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4622
4623# The possible output files:
4624ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4625
4626ac_rmfiles=
4627for ac_file in $ac_files
4628do
4629 case $ac_file in
4630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4631 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4632 esac
4633done
4634rm -f $ac_rmfiles
4635
cristy8b350f62009-11-15 23:12:43 +00004636if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004637case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640esac
cristy8b350f62009-11-15 23:12:43 +00004641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4642$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004643 (eval "$ac_link_default") 2>&5
4644 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004647 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4648# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4649# in a Makefile. We should not override ac_cv_exeext if it was cached,
4650# so that the user can short-circuit this test for compilers unknown to
4651# Autoconf.
4652for ac_file in $ac_files ''
4653do
4654 test -f "$ac_file" || continue
4655 case $ac_file in
4656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4657 ;;
4658 [ab].out )
4659 # We found the default executable, but exeext='' is most
4660 # certainly right.
4661 break;;
4662 *.* )
cristy8b350f62009-11-15 23:12:43 +00004663 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004664 then :; else
4665 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4666 fi
4667 # We set ac_cv_exeext here because the later test for it is not
4668 # safe: cross compilers may not add the suffix if given an `-o'
4669 # argument, so we may need to know it at that point already.
4670 # Even if this section looks crufty: it has the advantage of
4671 # actually working.
4672 break;;
4673 * )
4674 break;;
4675 esac
4676done
4677test "$ac_cv_exeext" = no && ac_cv_exeext=
4678
4679else
4680 ac_file=''
4681fi
cristy8b350f62009-11-15 23:12:43 +00004682if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
4685$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004686sed 's/^/| /' conftest.$ac_ext >&5
4687
cristy8b350f62009-11-15 23:12:43 +00004688{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004690as_fn_error 77 "C compiler cannot create executables
4691See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004692else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004695fi
cristycd4c5312009-11-22 01:19:08 +00004696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4697$as_echo_n "checking for C compiler default output file name... " >&6; }
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4699$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004700ac_exeext=$ac_cv_exeext
4701
cristycd4c5312009-11-22 01:19:08 +00004702rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004703ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004706if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004707case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710esac
cristy8b350f62009-11-15 23:12:43 +00004711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004713 (eval "$ac_link") 2>&5
4714 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4718# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4719# work properly (i.e., refer to `conftest.exe'), while it won't with
4720# `rm'.
4721for ac_file in conftest.exe conftest conftest.*; do
4722 test -f "$ac_file" || continue
4723 case $ac_file in
4724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4726 break;;
4727 * ) break;;
4728 esac
4729done
4730else
cristy8b350f62009-11-15 23:12:43 +00004731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004733as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4734See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004735fi
cristycd4c5312009-11-22 01:19:08 +00004736rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004738$as_echo "$ac_cv_exeext" >&6; }
4739
4740rm -f conftest.$ac_ext
4741EXEEXT=$ac_cv_exeext
4742ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h. */
4745#include <stdio.h>
4746int
4747main ()
4748{
4749FILE *f = fopen ("conftest.out", "w");
4750 return ferror (f) || fclose (f) != 0;
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
4756ac_clean_files="$ac_clean_files conftest.out"
4757# Check that the compiler produces executables we can run. If not, either
4758# the compiler is broken, or we cross compile.
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4760$as_echo_n "checking whether we are cross compiling... " >&6; }
4761if test "$cross_compiling" != yes; then
4762 { { ac_try="$ac_link"
4763case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766esac
4767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4768$as_echo "$ac_try_echo"; } >&5
4769 (eval "$ac_link") 2>&5
4770 ac_status=$?
4771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4772 test $ac_status = 0; }
4773 if { ac_try='./conftest$ac_cv_exeext'
4774 { { case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777esac
4778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779$as_echo "$ac_try_echo"; } >&5
4780 (eval "$ac_try") 2>&5
4781 ac_status=$?
4782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }; }; then
4784 cross_compiling=no
4785 else
4786 if test "$cross_compiling" = maybe; then
4787 cross_compiling=yes
4788 else
4789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004791as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004792If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004793See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004794 fi
4795 fi
4796fi
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4798$as_echo "$cross_compiling" >&6; }
4799
4800rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4801ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004803$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004804if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004805 $as_echo_n "(cached) " >&6
4806else
cristy8b350f62009-11-15 23:12:43 +00004807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004808/* end confdefs.h. */
4809
4810int
4811main ()
4812{
4813
4814 ;
4815 return 0;
4816}
4817_ACEOF
4818rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004819if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004820case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823esac
cristy8b350f62009-11-15 23:12:43 +00004824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4825$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004826 (eval "$ac_compile") 2>&5
4827 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4829 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004830 for ac_file in conftest.o conftest.obj conftest.*; do
4831 test -f "$ac_file" || continue;
4832 case $ac_file in
4833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4835 break;;
4836 esac
4837done
4838else
4839 $as_echo "$as_me: failed program was:" >&5
4840sed 's/^/| /' conftest.$ac_ext >&5
4841
cristy8b350f62009-11-15 23:12:43 +00004842{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004844as_fn_error $? "cannot compute suffix of object files: cannot compile
4845See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004846fi
cristy3ed852e2009-09-05 21:47:34 +00004847rm -f conftest.$ac_cv_objext conftest.$ac_ext
4848fi
cristy8b350f62009-11-15 23:12:43 +00004849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004850$as_echo "$ac_cv_objext" >&6; }
4851OBJEXT=$ac_cv_objext
4852ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004854$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004855if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004856 $as_echo_n "(cached) " >&6
4857else
cristy8b350f62009-11-15 23:12:43 +00004858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004859/* end confdefs.h. */
4860
4861int
4862main ()
4863{
4864#ifndef __GNUC__
4865 choke me
4866#endif
4867
4868 ;
4869 return 0;
4870}
4871_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004872if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004873 ac_compiler_gnu=yes
4874else
cristy8b350f62009-11-15 23:12:43 +00004875 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004876fi
cristy3ed852e2009-09-05 21:47:34 +00004877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878ac_cv_c_compiler_gnu=$ac_compiler_gnu
4879
4880fi
cristy8b350f62009-11-15 23:12:43 +00004881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004882$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4883if test $ac_compiler_gnu = yes; then
4884 GCC=yes
4885else
4886 GCC=
4887fi
4888ac_test_CFLAGS=${CFLAGS+set}
4889ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004891$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004892if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004893 $as_echo_n "(cached) " >&6
4894else
4895 ac_save_c_werror_flag=$ac_c_werror_flag
4896 ac_c_werror_flag=yes
4897 ac_cv_prog_cc_g=no
4898 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004900/* end confdefs.h. */
4901
4902int
4903main ()
4904{
4905
4906 ;
4907 return 0;
4908}
4909_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004910if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004911 ac_cv_prog_cc_g=yes
4912else
cristy8b350f62009-11-15 23:12:43 +00004913 CFLAGS=""
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004915/* end confdefs.h. */
4916
4917int
4918main ()
4919{
4920
4921 ;
4922 return 0;
4923}
4924_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004925if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004926
cristy8b350f62009-11-15 23:12:43 +00004927else
4928 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004929 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004931/* end confdefs.h. */
4932
4933int
4934main ()
4935{
4936
4937 ;
4938 return 0;
4939}
4940_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004941if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004942 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004943fi
cristy3ed852e2009-09-05 21:47:34 +00004944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945fi
cristy3ed852e2009-09-05 21:47:34 +00004946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947fi
cristy3ed852e2009-09-05 21:47:34 +00004948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 ac_c_werror_flag=$ac_save_c_werror_flag
4950fi
cristy8b350f62009-11-15 23:12:43 +00004951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004952$as_echo "$ac_cv_prog_cc_g" >&6; }
4953if test "$ac_test_CFLAGS" = set; then
4954 CFLAGS=$ac_save_CFLAGS
4955elif test $ac_cv_prog_cc_g = yes; then
4956 if test "$GCC" = yes; then
4957 CFLAGS="-g -O2"
4958 else
4959 CFLAGS="-g"
4960 fi
4961else
4962 if test "$GCC" = yes; then
4963 CFLAGS="-O2"
4964 else
4965 CFLAGS=
4966 fi
4967fi
cristy8b350f62009-11-15 23:12:43 +00004968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004969$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004970if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004971 $as_echo_n "(cached) " >&6
4972else
4973 ac_cv_prog_cc_c89=no
4974ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004976/* end confdefs.h. */
4977#include <stdarg.h>
4978#include <stdio.h>
4979#include <sys/types.h>
4980#include <sys/stat.h>
4981/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4982struct buf { int x; };
4983FILE * (*rcsopen) (struct buf *, struct stat *, int);
4984static char *e (p, i)
4985 char **p;
4986 int i;
4987{
4988 return p[i];
4989}
4990static char *f (char * (*g) (char **, int), char **p, ...)
4991{
4992 char *s;
4993 va_list v;
4994 va_start (v,p);
4995 s = g (p, va_arg (v,int));
4996 va_end (v);
4997 return s;
4998}
4999
5000/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5001 function prototypes and stuff, but not '\xHH' hex character constants.
5002 These don't provoke an error unfortunately, instead are silently treated
5003 as 'x'. The following induces an error, until -std is added to get
5004 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5005 array size at least. It's necessary to write '\x00'==0 to get something
5006 that's true only with -std. */
5007int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5008
5009/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5010 inside strings and character constants. */
5011#define FOO(x) 'x'
5012int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5013
5014int test (int i, double x);
5015struct s1 {int (*f) (int a);};
5016struct s2 {int (*f) (double a);};
5017int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5018int argc;
5019char **argv;
5020int
5021main ()
5022{
5023return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5029 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5030do
5031 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005032 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005033 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005034fi
cristy3ed852e2009-09-05 21:47:34 +00005035rm -f core conftest.err conftest.$ac_objext
5036 test "x$ac_cv_prog_cc_c89" != "xno" && break
5037done
5038rm -f conftest.$ac_ext
5039CC=$ac_save_CC
5040
5041fi
5042# AC_CACHE_VAL
5043case "x$ac_cv_prog_cc_c89" in
5044 x)
cristy8b350f62009-11-15 23:12:43 +00005045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005046$as_echo "none needed" >&6; } ;;
5047 xno)
cristy8b350f62009-11-15 23:12:43 +00005048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005049$as_echo "unsupported" >&6; } ;;
5050 *)
5051 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005053$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5054esac
cristy8b350f62009-11-15 23:12:43 +00005055if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005056
cristy8b350f62009-11-15 23:12:43 +00005057fi
cristy3ed852e2009-09-05 21:47:34 +00005058
5059ac_ext=c
5060ac_cpp='$CPP $CPPFLAGS'
5061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005064
cristy73bd4a52010-10-05 11:24:23 +00005065depcc="$CC" am_compiler_list=
5066
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5068$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005069if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005070 $as_echo_n "(cached) " >&6
5071else
5072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5073 # We make a subdir and do the tests there. Otherwise we can end up
5074 # making bogus files that we don't know about and never remove. For
5075 # instance it was reported that on HP-UX the gcc test will end up
5076 # making a dummy file named `D' -- because `-MD' means `put the output
5077 # in D'.
5078 mkdir conftest.dir
5079 # Copy depcomp to subdir because otherwise we won't find it if we're
5080 # using a relative directory.
5081 cp "$am_depcomp" conftest.dir
5082 cd conftest.dir
5083 # We will build objects and dependencies in a subdirectory because
5084 # it helps to detect inapplicable dependency modes. For instance
5085 # both Tru64's cc and ICC support -MD to output dependencies as a
5086 # side effect of compilation, but ICC will put the dependencies in
5087 # the current directory while Tru64 will put them in the object
5088 # directory.
5089 mkdir sub
5090
5091 am_cv_CC_dependencies_compiler_type=none
5092 if test "$am_compiler_list" = ""; then
5093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5094 fi
5095 am__universal=false
5096 case " $depcc " in #(
5097 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5098 esac
5099
5100 for depmode in $am_compiler_list; do
5101 # Setup a source with many dependencies, because some compilers
5102 # like to wrap large dependency lists on column 80 (with \), and
5103 # we should not choose a depcomp mode which is confused by this.
5104 #
5105 # We need to recreate these files for each test, as the compiler may
5106 # overwrite some of them when testing with obscure command lines.
5107 # This happens at least with the AIX C compiler.
5108 : > sub/conftest.c
5109 for i in 1 2 3 4 5 6; do
5110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5111 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5112 # Solaris 8's {/usr,}/bin/sh.
5113 touch sub/conftst$i.h
5114 done
5115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5116
5117 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5118 # mode. It turns out that the SunPro C++ compiler does not properly
5119 # handle `-M -o', and we need to detect this. Also, some Intel
5120 # versions had trouble with output in subdirs
5121 am__obj=sub/conftest.${OBJEXT-o}
5122 am__minus_obj="-o $am__obj"
5123 case $depmode in
5124 gcc)
5125 # This depmode causes a compiler race in universal mode.
5126 test "$am__universal" = false || continue
5127 ;;
5128 nosideeffect)
5129 # after this tag, mechanisms are not by side-effect, so they'll
5130 # only be used when explicitly requested
5131 if test "x$enable_dependency_tracking" = xyes; then
5132 continue
5133 else
5134 break
5135 fi
5136 ;;
5137 msvisualcpp | msvcmsys)
5138 # This compiler won't grok `-c -o', but also, the minuso test has
5139 # not run yet. These depmodes are late enough in the game, and
5140 # so weak that their functioning should not be impacted.
5141 am__obj=conftest.${OBJEXT-o}
5142 am__minus_obj=
5143 ;;
5144 none) break ;;
5145 esac
5146 if depmode=$depmode \
5147 source=sub/conftest.c object=$am__obj \
5148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5150 >/dev/null 2>conftest.err &&
5151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5155 # icc doesn't choke on unknown options, it will just issue warnings
5156 # or remarks (even with -Werror). So we grep stderr for any message
5157 # that says an option was ignored or not supported.
5158 # When given -MP, icc 7.0 and 7.1 complain thusly:
5159 # icc: Command line warning: ignoring option '-M'; no argument required
5160 # The diagnosis changed in icc 8.0:
5161 # icc: Command line remark: option '-MP' not supported
5162 if (grep 'ignoring option' conftest.err ||
5163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5164 am_cv_CC_dependencies_compiler_type=$depmode
5165 break
5166 fi
5167 fi
5168 done
5169
5170 cd ..
5171 rm -rf conftest.dir
5172else
5173 am_cv_CC_dependencies_compiler_type=none
5174fi
5175
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5178$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5179CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5180
5181 if
5182 test "x$enable_dependency_tracking" != xno \
5183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5184 am__fastdepCC_TRUE=
5185 am__fastdepCC_FALSE='#'
5186else
5187 am__fastdepCC_TRUE='#'
5188 am__fastdepCC_FALSE=
5189fi
5190
5191
cristy3ed852e2009-09-05 21:47:34 +00005192
cristya0b81c32010-01-22 02:54:33 +00005193ac_ext=c
5194ac_cpp='$CPP $CPPFLAGS'
5195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5199$as_echo_n "checking how to run the C preprocessor... " >&6; }
5200# On Suns, sometimes $CPP names a directory.
5201if test -n "$CPP" && test -d "$CPP"; then
5202 CPP=
5203fi
5204if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005205 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005206 $as_echo_n "(cached) " >&6
5207else
5208 # Double quotes because CPP needs to be expanded
5209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5210 do
5211 ac_preproc_ok=false
5212for ac_c_preproc_warn_flag in '' yes
5213do
5214 # Use a header file that comes with gcc, so configuring glibc
5215 # with a fresh cross-compiler works.
5216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5217 # <limits.h> exists even on freestanding compilers.
5218 # On the NeXT, cc -E runs the code through the compiler's parser,
5219 # not just through cpp. "Syntax error" is here to catch this case.
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h. */
5222#ifdef __STDC__
5223# include <limits.h>
5224#else
5225# include <assert.h>
5226#endif
5227 Syntax error
5228_ACEOF
5229if ac_fn_c_try_cpp "$LINENO"; then :
5230
5231else
5232 # Broken: fails on valid input.
5233continue
5234fi
cristyda16f162011-02-19 23:52:17 +00005235rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005236
5237 # OK, works on sane cases. Now check whether nonexistent headers
5238 # can be detected and how.
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240/* end confdefs.h. */
5241#include <ac_nonexistent.h>
5242_ACEOF
5243if ac_fn_c_try_cpp "$LINENO"; then :
5244 # Broken: success on invalid input.
5245continue
5246else
5247 # Passes both tests.
5248ac_preproc_ok=:
5249break
5250fi
cristyda16f162011-02-19 23:52:17 +00005251rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005252
5253done
5254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005255rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005256if $ac_preproc_ok; then :
5257 break
5258fi
5259
5260 done
5261 ac_cv_prog_CPP=$CPP
5262
5263fi
5264 CPP=$ac_cv_prog_CPP
5265else
5266 ac_cv_prog_CPP=$CPP
5267fi
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5269$as_echo "$CPP" >&6; }
5270ac_preproc_ok=false
5271for ac_c_preproc_warn_flag in '' yes
5272do
5273 # Use a header file that comes with gcc, so configuring glibc
5274 # with a fresh cross-compiler works.
5275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5276 # <limits.h> exists even on freestanding compilers.
5277 # On the NeXT, cc -E runs the code through the compiler's parser,
5278 # not just through cpp. "Syntax error" is here to catch this case.
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280/* end confdefs.h. */
5281#ifdef __STDC__
5282# include <limits.h>
5283#else
5284# include <assert.h>
5285#endif
5286 Syntax error
5287_ACEOF
5288if ac_fn_c_try_cpp "$LINENO"; then :
5289
5290else
5291 # Broken: fails on valid input.
5292continue
5293fi
cristyda16f162011-02-19 23:52:17 +00005294rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005295
5296 # OK, works on sane cases. Now check whether nonexistent headers
5297 # can be detected and how.
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h. */
5300#include <ac_nonexistent.h>
5301_ACEOF
5302if ac_fn_c_try_cpp "$LINENO"; then :
5303 # Broken: success on invalid input.
5304continue
5305else
5306 # Passes both tests.
5307ac_preproc_ok=:
5308break
5309fi
cristyda16f162011-02-19 23:52:17 +00005310rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005311
5312done
5313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005314rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005315if $ac_preproc_ok; then :
5316
5317else
5318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005320as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5321See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005322fi
5323
5324ac_ext=c
5325ac_cpp='$CPP $CPPFLAGS'
5326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329
5330
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5332$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005333if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005334 $as_echo_n "(cached) " >&6
5335else
5336 if test -z "$GREP"; then
5337 ac_path_GREP_found=false
5338 # Loop through the user's path and test for each of PROGNAME-LIST
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5341do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_prog in grep ggrep; do
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5347 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5348# Check for GNU ac_path_GREP and select it if it is found.
5349 # Check for GNU $ac_path_GREP
5350case `"$ac_path_GREP" --version 2>&1` in
5351*GNU*)
5352 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5353*)
5354 ac_count=0
5355 $as_echo_n 0123456789 >"conftest.in"
5356 while :
5357 do
5358 cat "conftest.in" "conftest.in" >"conftest.tmp"
5359 mv "conftest.tmp" "conftest.in"
5360 cp "conftest.in" "conftest.nl"
5361 $as_echo 'GREP' >> "conftest.nl"
5362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5364 as_fn_arith $ac_count + 1 && ac_count=$as_val
5365 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5366 # Best one so far, save it but keep looking for a better one
5367 ac_cv_path_GREP="$ac_path_GREP"
5368 ac_path_GREP_max=$ac_count
5369 fi
5370 # 10*(2^10) chars as input seems more than enough
5371 test $ac_count -gt 10 && break
5372 done
5373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5374esac
5375
5376 $ac_path_GREP_found && break 3
5377 done
5378 done
5379 done
5380IFS=$as_save_IFS
5381 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005382 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005383 fi
5384else
5385 ac_cv_path_GREP=$GREP
5386fi
5387
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5390$as_echo "$ac_cv_path_GREP" >&6; }
5391 GREP="$ac_cv_path_GREP"
5392
5393
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5395$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005396if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005397 $as_echo_n "(cached) " >&6
5398else
5399 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5400 then ac_cv_path_EGREP="$GREP -E"
5401 else
5402 if test -z "$EGREP"; then
5403 ac_path_EGREP_found=false
5404 # Loop through the user's path and test for each of PROGNAME-LIST
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_prog in egrep; do
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5414# Check for GNU ac_path_EGREP and select it if it is found.
5415 # Check for GNU $ac_path_EGREP
5416case `"$ac_path_EGREP" --version 2>&1` in
5417*GNU*)
5418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5419*)
5420 ac_count=0
5421 $as_echo_n 0123456789 >"conftest.in"
5422 while :
5423 do
5424 cat "conftest.in" "conftest.in" >"conftest.tmp"
5425 mv "conftest.tmp" "conftest.in"
5426 cp "conftest.in" "conftest.nl"
5427 $as_echo 'EGREP' >> "conftest.nl"
5428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5430 as_fn_arith $ac_count + 1 && ac_count=$as_val
5431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5432 # Best one so far, save it but keep looking for a better one
5433 ac_cv_path_EGREP="$ac_path_EGREP"
5434 ac_path_EGREP_max=$ac_count
5435 fi
5436 # 10*(2^10) chars as input seems more than enough
5437 test $ac_count -gt 10 && break
5438 done
5439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5440esac
5441
5442 $ac_path_EGREP_found && break 3
5443 done
5444 done
5445 done
5446IFS=$as_save_IFS
5447 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005448 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005449 fi
5450else
5451 ac_cv_path_EGREP=$EGREP
5452fi
5453
5454 fi
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5457$as_echo "$ac_cv_path_EGREP" >&6; }
5458 EGREP="$ac_cv_path_EGREP"
5459
5460
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5462$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005463if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005464 $as_echo_n "(cached) " >&6
5465else
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h. */
5468#include <stdlib.h>
5469#include <stdarg.h>
5470#include <string.h>
5471#include <float.h>
5472
5473int
5474main ()
5475{
5476
5477 ;
5478 return 0;
5479}
5480_ACEOF
5481if ac_fn_c_try_compile "$LINENO"; then :
5482 ac_cv_header_stdc=yes
5483else
5484 ac_cv_header_stdc=no
5485fi
5486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487
5488if test $ac_cv_header_stdc = yes; then
5489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h. */
5492#include <string.h>
5493
5494_ACEOF
5495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496 $EGREP "memchr" >/dev/null 2>&1; then :
5497
5498else
5499 ac_cv_header_stdc=no
5500fi
5501rm -f conftest*
5502
5503fi
5504
5505if test $ac_cv_header_stdc = yes; then
5506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508/* end confdefs.h. */
5509#include <stdlib.h>
5510
5511_ACEOF
5512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 $EGREP "free" >/dev/null 2>&1; then :
5514
5515else
5516 ac_cv_header_stdc=no
5517fi
5518rm -f conftest*
5519
5520fi
5521
5522if test $ac_cv_header_stdc = yes; then
5523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5524 if test "$cross_compiling" = yes; then :
5525 :
5526else
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528/* end confdefs.h. */
5529#include <ctype.h>
5530#include <stdlib.h>
5531#if ((' ' & 0x0FF) == 0x020)
5532# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5533# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5534#else
5535# define ISLOWER(c) \
5536 (('a' <= (c) && (c) <= 'i') \
5537 || ('j' <= (c) && (c) <= 'r') \
5538 || ('s' <= (c) && (c) <= 'z'))
5539# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5540#endif
5541
5542#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5543int
5544main ()
5545{
5546 int i;
5547 for (i = 0; i < 256; i++)
5548 if (XOR (islower (i), ISLOWER (i))
5549 || toupper (i) != TOUPPER (i))
5550 return 2;
5551 return 0;
5552}
5553_ACEOF
5554if ac_fn_c_try_run "$LINENO"; then :
5555
5556else
5557 ac_cv_header_stdc=no
5558fi
5559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5560 conftest.$ac_objext conftest.beam conftest.$ac_ext
5561fi
5562
5563fi
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5566$as_echo "$ac_cv_header_stdc" >&6; }
5567if test $ac_cv_header_stdc = yes; then
5568
5569$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5570
5571fi
5572
5573# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5574for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5575 inttypes.h stdint.h unistd.h
5576do :
5577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5578ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5579"
cristy98dddb52010-11-04 00:30:15 +00005580if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005581 cat >>confdefs.h <<_ACEOF
5582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5583_ACEOF
5584
5585fi
5586
5587done
5588
5589
5590
5591 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 +00005592if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005593 MINIX=yes
5594else
5595 MINIX=
5596fi
5597
5598
5599 if test "$MINIX" = yes; then
5600
5601$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5602
5603
5604$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5605
5606
5607$as_echo "#define _MINIX 1" >>confdefs.h
5608
5609 fi
5610
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5613$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005614if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005615 $as_echo_n "(cached) " >&6
5616else
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h. */
5619
5620# define __EXTENSIONS__ 1
5621 $ac_includes_default
5622int
5623main ()
5624{
5625
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630if ac_fn_c_try_compile "$LINENO"; then :
5631 ac_cv_safe_to_define___extensions__=yes
5632else
5633 ac_cv_safe_to_define___extensions__=no
5634fi
5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636fi
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5638$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5639 test $ac_cv_safe_to_define___extensions__ = yes &&
5640 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5641
5642 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5643
5644 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5645
5646 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5647
5648 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5649
5650
5651
5652# Check for programs
5653ac_ext=c
5654ac_cpp='$CPP $CPPFLAGS'
5655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658if test -n "$ac_tool_prefix"; then
5659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5660set dummy ${ac_tool_prefix}gcc; ac_word=$2
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005663if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005664 $as_echo_n "(cached) " >&6
5665else
5666 if test -n "$CC"; then
5667 ac_cv_prog_CC="$CC" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680done
5681 done
5682IFS=$as_save_IFS
5683
5684fi
5685fi
5686CC=$ac_cv_prog_CC
5687if test -n "$CC"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5689$as_echo "$CC" >&6; }
5690else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693fi
5694
5695
5696fi
5697if test -z "$ac_cv_prog_CC"; then
5698 ac_ct_CC=$CC
5699 # Extract the first word of "gcc", so it can be a program name with args.
5700set dummy gcc; ac_word=$2
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005703if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005704 $as_echo_n "(cached) " >&6
5705else
5706 if test -n "$ac_ct_CC"; then
5707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5708else
5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_prog_ac_ct_CC="gcc"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720done
5721 done
5722IFS=$as_save_IFS
5723
5724fi
5725fi
5726ac_ct_CC=$ac_cv_prog_ac_ct_CC
5727if test -n "$ac_ct_CC"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5729$as_echo "$ac_ct_CC" >&6; }
5730else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732$as_echo "no" >&6; }
5733fi
5734
5735 if test "x$ac_ct_CC" = x; then
5736 CC=""
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739yes:)
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742ac_tool_warned=yes ;;
5743esac
5744 CC=$ac_ct_CC
5745 fi
5746else
5747 CC="$ac_cv_prog_CC"
5748fi
5749
5750if test -z "$CC"; then
5751 if test -n "$ac_tool_prefix"; then
5752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5753set dummy ${ac_tool_prefix}cc; ac_word=$2
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005756if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005757 $as_echo_n "(cached) " >&6
5758else
5759 if test -n "$CC"; then
5760 ac_cv_prog_CC="$CC" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_CC="${ac_tool_prefix}cc"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
5774 done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779CC=$ac_cv_prog_CC
5780if test -n "$CC"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5782$as_echo "$CC" >&6; }
5783else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788
5789 fi
5790fi
5791if test -z "$CC"; then
5792 # Extract the first word of "cc", so it can be a program name with args.
5793set dummy cc; ac_word=$2
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005796if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005797 $as_echo_n "(cached) " >&6
5798else
5799 if test -n "$CC"; then
5800 ac_cv_prog_CC="$CC" # Let the user override the test.
5801else
5802 ac_prog_rejected=no
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5811 ac_prog_rejected=yes
5812 continue
5813 fi
5814 ac_cv_prog_CC="cc"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819 done
5820IFS=$as_save_IFS
5821
5822if test $ac_prog_rejected = yes; then
5823 # We found a bogon in the path, so make sure we never use it.
5824 set dummy $ac_cv_prog_CC
5825 shift
5826 if test $# != 0; then
5827 # We chose a different compiler from the bogus one.
5828 # However, it has the same basename, so the bogon will be chosen
5829 # first if we set CC to just the basename; use the full file name.
5830 shift
5831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5832 fi
5833fi
5834fi
5835fi
5836CC=$ac_cv_prog_CC
5837if test -n "$CC"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5839$as_echo "$CC" >&6; }
5840else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842$as_echo "no" >&6; }
5843fi
5844
5845
5846fi
5847if test -z "$CC"; then
5848 if test -n "$ac_tool_prefix"; then
5849 for ac_prog in cl.exe
5850 do
5851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005855if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005856 $as_echo_n "(cached) " >&6
5857else
5858 if test -n "$CC"; then
5859 ac_cv_prog_CC="$CC" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872done
5873 done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878CC=$ac_cv_prog_CC
5879if test -n "$CC"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5881$as_echo "$CC" >&6; }
5882else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887
5888 test -n "$CC" && break
5889 done
5890fi
5891if test -z "$CC"; then
5892 ac_ct_CC=$CC
5893 for ac_prog in cl.exe
5894do
5895 # Extract the first word of "$ac_prog", so it can be a program name with args.
5896set dummy $ac_prog; ac_word=$2
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005899if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005900 $as_echo_n "(cached) " >&6
5901else
5902 if test -n "$ac_ct_CC"; then
5903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_ac_ct_CC="$ac_prog"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916done
5917 done
5918IFS=$as_save_IFS
5919
5920fi
5921fi
5922ac_ct_CC=$ac_cv_prog_ac_ct_CC
5923if test -n "$ac_ct_CC"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5925$as_echo "$ac_ct_CC" >&6; }
5926else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928$as_echo "no" >&6; }
5929fi
5930
5931
5932 test -n "$ac_ct_CC" && break
5933done
5934
5935 if test "x$ac_ct_CC" = x; then
5936 CC=""
5937 else
5938 case $cross_compiling:$ac_tool_warned in
5939yes:)
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5942ac_tool_warned=yes ;;
5943esac
5944 CC=$ac_ct_CC
5945 fi
5946fi
5947
5948fi
5949
5950
5951test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005953as_fn_error $? "no acceptable C compiler found in \$PATH
5954See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005955
5956# Provide some information about the compiler.
5957$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5958set X $ac_compile
5959ac_compiler=$2
5960for ac_option in --version -v -V -qversion; do
5961 { { ac_try="$ac_compiler $ac_option >&5"
5962case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965esac
5966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5967$as_echo "$ac_try_echo"; } >&5
5968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5969 ac_status=$?
5970 if test -s conftest.err; then
5971 sed '10a\
5972... rest of stderr output deleted ...
5973 10q' conftest.err >conftest.er1
5974 cat conftest.er1 >&5
5975 fi
5976 rm -f conftest.er1 conftest.err
5977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978 test $ac_status = 0; }
5979done
5980
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5982$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005983if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005984 $as_echo_n "(cached) " >&6
5985else
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h. */
5988
5989int
5990main ()
5991{
5992#ifndef __GNUC__
5993 choke me
5994#endif
5995
5996 ;
5997 return 0;
5998}
5999_ACEOF
6000if ac_fn_c_try_compile "$LINENO"; then :
6001 ac_compiler_gnu=yes
6002else
6003 ac_compiler_gnu=no
6004fi
6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006ac_cv_c_compiler_gnu=$ac_compiler_gnu
6007
6008fi
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6010$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6011if test $ac_compiler_gnu = yes; then
6012 GCC=yes
6013else
6014 GCC=
6015fi
6016ac_test_CFLAGS=${CFLAGS+set}
6017ac_save_CFLAGS=$CFLAGS
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6019$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006020if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006021 $as_echo_n "(cached) " >&6
6022else
6023 ac_save_c_werror_flag=$ac_c_werror_flag
6024 ac_c_werror_flag=yes
6025 ac_cv_prog_cc_g=no
6026 CFLAGS="-g"
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h. */
6029
6030int
6031main ()
6032{
6033
6034 ;
6035 return 0;
6036}
6037_ACEOF
6038if ac_fn_c_try_compile "$LINENO"; then :
6039 ac_cv_prog_cc_g=yes
6040else
6041 CFLAGS=""
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h. */
6044
6045int
6046main ()
6047{
6048
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"; then :
6054
6055else
6056 ac_c_werror_flag=$ac_save_c_werror_flag
6057 CFLAGS="-g"
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059/* end confdefs.h. */
6060
6061int
6062main ()
6063{
6064
6065 ;
6066 return 0;
6067}
6068_ACEOF
6069if ac_fn_c_try_compile "$LINENO"; then :
6070 ac_cv_prog_cc_g=yes
6071fi
6072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073fi
6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075fi
6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_c_werror_flag=$ac_save_c_werror_flag
6078fi
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6080$as_echo "$ac_cv_prog_cc_g" >&6; }
6081if test "$ac_test_CFLAGS" = set; then
6082 CFLAGS=$ac_save_CFLAGS
6083elif test $ac_cv_prog_cc_g = yes; then
6084 if test "$GCC" = yes; then
6085 CFLAGS="-g -O2"
6086 else
6087 CFLAGS="-g"
6088 fi
6089else
6090 if test "$GCC" = yes; then
6091 CFLAGS="-O2"
6092 else
6093 CFLAGS=
6094 fi
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6097$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006098if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006099 $as_echo_n "(cached) " >&6
6100else
6101 ac_cv_prog_cc_c89=no
6102ac_save_CC=$CC
6103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h. */
6105#include <stdarg.h>
6106#include <stdio.h>
6107#include <sys/types.h>
6108#include <sys/stat.h>
6109/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6110struct buf { int x; };
6111FILE * (*rcsopen) (struct buf *, struct stat *, int);
6112static char *e (p, i)
6113 char **p;
6114 int i;
6115{
6116 return p[i];
6117}
6118static char *f (char * (*g) (char **, int), char **p, ...)
6119{
6120 char *s;
6121 va_list v;
6122 va_start (v,p);
6123 s = g (p, va_arg (v,int));
6124 va_end (v);
6125 return s;
6126}
6127
6128/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6129 function prototypes and stuff, but not '\xHH' hex character constants.
6130 These don't provoke an error unfortunately, instead are silently treated
6131 as 'x'. The following induces an error, until -std is added to get
6132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6133 array size at least. It's necessary to write '\x00'==0 to get something
6134 that's true only with -std. */
6135int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6136
6137/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6138 inside strings and character constants. */
6139#define FOO(x) 'x'
6140int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6141
6142int test (int i, double x);
6143struct s1 {int (*f) (int a);};
6144struct s2 {int (*f) (double a);};
6145int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6146int argc;
6147char **argv;
6148int
6149main ()
6150{
6151return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6152 ;
6153 return 0;
6154}
6155_ACEOF
6156for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6158do
6159 CC="$ac_save_CC $ac_arg"
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161 ac_cv_prog_cc_c89=$ac_arg
6162fi
6163rm -f core conftest.err conftest.$ac_objext
6164 test "x$ac_cv_prog_cc_c89" != "xno" && break
6165done
6166rm -f conftest.$ac_ext
6167CC=$ac_save_CC
6168
6169fi
6170# AC_CACHE_VAL
6171case "x$ac_cv_prog_cc_c89" in
6172 x)
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6174$as_echo "none needed" >&6; } ;;
6175 xno)
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6177$as_echo "unsupported" >&6; } ;;
6178 *)
6179 CC="$CC $ac_cv_prog_cc_c89"
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6181$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6182esac
6183if test "x$ac_cv_prog_cc_c89" != xno; then :
6184
6185fi
6186
6187ac_ext=c
6188ac_cpp='$CPP $CPPFLAGS'
6189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
cristy73bd4a52010-10-05 11:24:23 +00006193depcc="$CC" am_compiler_list=
6194
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6196$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006197if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006198 $as_echo_n "(cached) " >&6
6199else
6200 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6201 # We make a subdir and do the tests there. Otherwise we can end up
6202 # making bogus files that we don't know about and never remove. For
6203 # instance it was reported that on HP-UX the gcc test will end up
6204 # making a dummy file named `D' -- because `-MD' means `put the output
6205 # in D'.
6206 mkdir conftest.dir
6207 # Copy depcomp to subdir because otherwise we won't find it if we're
6208 # using a relative directory.
6209 cp "$am_depcomp" conftest.dir
6210 cd conftest.dir
6211 # We will build objects and dependencies in a subdirectory because
6212 # it helps to detect inapplicable dependency modes. For instance
6213 # both Tru64's cc and ICC support -MD to output dependencies as a
6214 # side effect of compilation, but ICC will put the dependencies in
6215 # the current directory while Tru64 will put them in the object
6216 # directory.
6217 mkdir sub
6218
6219 am_cv_CC_dependencies_compiler_type=none
6220 if test "$am_compiler_list" = ""; then
6221 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6222 fi
6223 am__universal=false
6224 case " $depcc " in #(
6225 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6226 esac
6227
6228 for depmode in $am_compiler_list; do
6229 # Setup a source with many dependencies, because some compilers
6230 # like to wrap large dependency lists on column 80 (with \), and
6231 # we should not choose a depcomp mode which is confused by this.
6232 #
6233 # We need to recreate these files for each test, as the compiler may
6234 # overwrite some of them when testing with obscure command lines.
6235 # This happens at least with the AIX C compiler.
6236 : > sub/conftest.c
6237 for i in 1 2 3 4 5 6; do
6238 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6239 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6240 # Solaris 8's {/usr,}/bin/sh.
6241 touch sub/conftst$i.h
6242 done
6243 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6244
6245 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6246 # mode. It turns out that the SunPro C++ compiler does not properly
6247 # handle `-M -o', and we need to detect this. Also, some Intel
6248 # versions had trouble with output in subdirs
6249 am__obj=sub/conftest.${OBJEXT-o}
6250 am__minus_obj="-o $am__obj"
6251 case $depmode in
6252 gcc)
6253 # This depmode causes a compiler race in universal mode.
6254 test "$am__universal" = false || continue
6255 ;;
6256 nosideeffect)
6257 # after this tag, mechanisms are not by side-effect, so they'll
6258 # only be used when explicitly requested
6259 if test "x$enable_dependency_tracking" = xyes; then
6260 continue
6261 else
6262 break
6263 fi
6264 ;;
6265 msvisualcpp | msvcmsys)
6266 # This compiler won't grok `-c -o', but also, the minuso test has
6267 # not run yet. These depmodes are late enough in the game, and
6268 # so weak that their functioning should not be impacted.
6269 am__obj=conftest.${OBJEXT-o}
6270 am__minus_obj=
6271 ;;
6272 none) break ;;
6273 esac
6274 if depmode=$depmode \
6275 source=sub/conftest.c object=$am__obj \
6276 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6277 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6278 >/dev/null 2>conftest.err &&
6279 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6280 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6281 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6282 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6283 # icc doesn't choke on unknown options, it will just issue warnings
6284 # or remarks (even with -Werror). So we grep stderr for any message
6285 # that says an option was ignored or not supported.
6286 # When given -MP, icc 7.0 and 7.1 complain thusly:
6287 # icc: Command line warning: ignoring option '-M'; no argument required
6288 # The diagnosis changed in icc 8.0:
6289 # icc: Command line remark: option '-MP' not supported
6290 if (grep 'ignoring option' conftest.err ||
6291 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6292 am_cv_CC_dependencies_compiler_type=$depmode
6293 break
6294 fi
6295 fi
6296 done
6297
6298 cd ..
6299 rm -rf conftest.dir
6300else
6301 am_cv_CC_dependencies_compiler_type=none
6302fi
6303
6304fi
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6306$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6307CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6308
6309 if
6310 test "x$enable_dependency_tracking" != xno \
6311 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6312 am__fastdepCC_TRUE=
6313 am__fastdepCC_FALSE='#'
6314else
6315 am__fastdepCC_TRUE='#'
6316 am__fastdepCC_FALSE=
6317fi
6318
6319
cristy95646052009-11-28 23:05:30 +00006320ac_ext=cpp
6321ac_cpp='$CXXCPP $CPPFLAGS'
6322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6325if test -z "$CXX"; then
6326 if test -n "$CCC"; then
6327 CXX=$CCC
6328 else
6329 if test -n "$ac_tool_prefix"; then
6330 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6331 do
6332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006336if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006337 $as_echo_n "(cached) " >&6
6338else
6339 if test -n "$CXX"; then
6340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353done
6354 done
6355IFS=$as_save_IFS
6356
6357fi
6358fi
6359CXX=$ac_cv_prog_CXX
6360if test -n "$CXX"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6362$as_echo "$CXX" >&6; }
6363else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366fi
6367
6368
6369 test -n "$CXX" && break
6370 done
6371fi
6372if test -z "$CXX"; then
6373 ac_ct_CXX=$CXX
6374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6375do
6376 # Extract the first word of "$ac_prog", so it can be a program name with args.
6377set dummy $ac_prog; ac_word=$2
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006380if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006381 $as_echo_n "(cached) " >&6
6382else
6383 if test -n "$ac_ct_CXX"; then
6384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_ac_ct_CXX="$ac_prog"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397done
6398 done
6399IFS=$as_save_IFS
6400
6401fi
6402fi
6403ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6404if test -n "$ac_ct_CXX"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6406$as_echo "$ac_ct_CXX" >&6; }
6407else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409$as_echo "no" >&6; }
6410fi
6411
6412
6413 test -n "$ac_ct_CXX" && break
6414done
6415
6416 if test "x$ac_ct_CXX" = x; then
6417 CXX="g++"
6418 else
6419 case $cross_compiling:$ac_tool_warned in
6420yes:)
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423ac_tool_warned=yes ;;
6424esac
6425 CXX=$ac_ct_CXX
6426 fi
6427fi
6428
6429 fi
6430fi
6431# Provide some information about the compiler.
6432$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6433set X $ac_compile
6434ac_compiler=$2
6435for ac_option in --version -v -V -qversion; do
6436 { { ac_try="$ac_compiler $ac_option >&5"
6437case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6442$as_echo "$ac_try_echo"; } >&5
6443 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6444 ac_status=$?
6445 if test -s conftest.err; then
6446 sed '10a\
6447... rest of stderr output deleted ...
6448 10q' conftest.err >conftest.er1
6449 cat conftest.er1 >&5
6450 fi
6451 rm -f conftest.er1 conftest.err
6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453 test $ac_status = 0; }
6454done
6455
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6457$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006458if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006459 $as_echo_n "(cached) " >&6
6460else
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h. */
6463
6464int
6465main ()
6466{
6467#ifndef __GNUC__
6468 choke me
6469#endif
6470
6471 ;
6472 return 0;
6473}
6474_ACEOF
6475if ac_fn_cxx_try_compile "$LINENO"; then :
6476 ac_compiler_gnu=yes
6477else
6478 ac_compiler_gnu=no
6479fi
6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6482
6483fi
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6485$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6486if test $ac_compiler_gnu = yes; then
6487 GXX=yes
6488else
6489 GXX=
6490fi
6491ac_test_CXXFLAGS=${CXXFLAGS+set}
6492ac_save_CXXFLAGS=$CXXFLAGS
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6494$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006495if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006496 $as_echo_n "(cached) " >&6
6497else
6498 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6499 ac_cxx_werror_flag=yes
6500 ac_cv_prog_cxx_g=no
6501 CXXFLAGS="-g"
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503/* end confdefs.h. */
6504
6505int
6506main ()
6507{
6508
6509 ;
6510 return 0;
6511}
6512_ACEOF
6513if ac_fn_cxx_try_compile "$LINENO"; then :
6514 ac_cv_prog_cxx_g=yes
6515else
6516 CXXFLAGS=""
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h. */
6519
6520int
6521main ()
6522{
6523
6524 ;
6525 return 0;
6526}
6527_ACEOF
6528if ac_fn_cxx_try_compile "$LINENO"; then :
6529
6530else
6531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6532 CXXFLAGS="-g"
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h. */
6535
6536int
6537main ()
6538{
6539
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544if ac_fn_cxx_try_compile "$LINENO"; then :
6545 ac_cv_prog_cxx_g=yes
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548fi
6549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550fi
6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6553fi
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6555$as_echo "$ac_cv_prog_cxx_g" >&6; }
6556if test "$ac_test_CXXFLAGS" = set; then
6557 CXXFLAGS=$ac_save_CXXFLAGS
6558elif test $ac_cv_prog_cxx_g = yes; then
6559 if test "$GXX" = yes; then
6560 CXXFLAGS="-g -O2"
6561 else
6562 CXXFLAGS="-g"
6563 fi
6564else
6565 if test "$GXX" = yes; then
6566 CXXFLAGS="-O2"
6567 else
6568 CXXFLAGS=
6569 fi
6570fi
6571ac_ext=c
6572ac_cpp='$CPP $CPPFLAGS'
6573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576
cristy73bd4a52010-10-05 11:24:23 +00006577depcc="$CXX" am_compiler_list=
6578
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6580$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006581if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006582 $as_echo_n "(cached) " >&6
6583else
6584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6585 # We make a subdir and do the tests there. Otherwise we can end up
6586 # making bogus files that we don't know about and never remove. For
6587 # instance it was reported that on HP-UX the gcc test will end up
6588 # making a dummy file named `D' -- because `-MD' means `put the output
6589 # in D'.
6590 mkdir conftest.dir
6591 # Copy depcomp to subdir because otherwise we won't find it if we're
6592 # using a relative directory.
6593 cp "$am_depcomp" conftest.dir
6594 cd conftest.dir
6595 # We will build objects and dependencies in a subdirectory because
6596 # it helps to detect inapplicable dependency modes. For instance
6597 # both Tru64's cc and ICC support -MD to output dependencies as a
6598 # side effect of compilation, but ICC will put the dependencies in
6599 # the current directory while Tru64 will put them in the object
6600 # directory.
6601 mkdir sub
6602
6603 am_cv_CXX_dependencies_compiler_type=none
6604 if test "$am_compiler_list" = ""; then
6605 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6606 fi
6607 am__universal=false
6608 case " $depcc " in #(
6609 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6610 esac
6611
6612 for depmode in $am_compiler_list; do
6613 # Setup a source with many dependencies, because some compilers
6614 # like to wrap large dependency lists on column 80 (with \), and
6615 # we should not choose a depcomp mode which is confused by this.
6616 #
6617 # We need to recreate these files for each test, as the compiler may
6618 # overwrite some of them when testing with obscure command lines.
6619 # This happens at least with the AIX C compiler.
6620 : > sub/conftest.c
6621 for i in 1 2 3 4 5 6; do
6622 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6623 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6624 # Solaris 8's {/usr,}/bin/sh.
6625 touch sub/conftst$i.h
6626 done
6627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6628
6629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6630 # mode. It turns out that the SunPro C++ compiler does not properly
6631 # handle `-M -o', and we need to detect this. Also, some Intel
6632 # versions had trouble with output in subdirs
6633 am__obj=sub/conftest.${OBJEXT-o}
6634 am__minus_obj="-o $am__obj"
6635 case $depmode in
6636 gcc)
6637 # This depmode causes a compiler race in universal mode.
6638 test "$am__universal" = false || continue
6639 ;;
6640 nosideeffect)
6641 # after this tag, mechanisms are not by side-effect, so they'll
6642 # only be used when explicitly requested
6643 if test "x$enable_dependency_tracking" = xyes; then
6644 continue
6645 else
6646 break
6647 fi
6648 ;;
6649 msvisualcpp | msvcmsys)
6650 # This compiler won't grok `-c -o', but also, the minuso test has
6651 # not run yet. These depmodes are late enough in the game, and
6652 # so weak that their functioning should not be impacted.
6653 am__obj=conftest.${OBJEXT-o}
6654 am__minus_obj=
6655 ;;
6656 none) break ;;
6657 esac
6658 if depmode=$depmode \
6659 source=sub/conftest.c object=$am__obj \
6660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6661 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6662 >/dev/null 2>conftest.err &&
6663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6665 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6667 # icc doesn't choke on unknown options, it will just issue warnings
6668 # or remarks (even with -Werror). So we grep stderr for any message
6669 # that says an option was ignored or not supported.
6670 # When given -MP, icc 7.0 and 7.1 complain thusly:
6671 # icc: Command line warning: ignoring option '-M'; no argument required
6672 # The diagnosis changed in icc 8.0:
6673 # icc: Command line remark: option '-MP' not supported
6674 if (grep 'ignoring option' conftest.err ||
6675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6676 am_cv_CXX_dependencies_compiler_type=$depmode
6677 break
6678 fi
6679 fi
6680 done
6681
6682 cd ..
6683 rm -rf conftest.dir
6684else
6685 am_cv_CXX_dependencies_compiler_type=none
6686fi
6687
6688fi
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6690$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6691CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6692
6693 if
6694 test "x$enable_dependency_tracking" != xno \
6695 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6696 am__fastdepCXX_TRUE=
6697 am__fastdepCXX_FALSE='#'
6698else
6699 am__fastdepCXX_TRUE='#'
6700 am__fastdepCXX_FALSE=
6701fi
6702
6703
cristy8b350f62009-11-15 23:12:43 +00006704 case $ac_cv_prog_cc_stdc in #(
6705 no) :
6706 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6707 *) :
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006709$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006710if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006711 $as_echo_n "(cached) " >&6
6712else
6713 ac_cv_prog_cc_c99=no
6714ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006716/* end confdefs.h. */
6717#include <stdarg.h>
6718#include <stdbool.h>
6719#include <stdlib.h>
6720#include <wchar.h>
6721#include <stdio.h>
6722
6723// Check varargs macros. These examples are taken from C99 6.10.3.5.
6724#define debug(...) fprintf (stderr, __VA_ARGS__)
6725#define showlist(...) puts (#__VA_ARGS__)
6726#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6727static void
6728test_varargs_macros (void)
6729{
6730 int x = 1234;
6731 int y = 5678;
6732 debug ("Flag");
6733 debug ("X = %d\n", x);
6734 showlist (The first, second, and third items.);
6735 report (x>y, "x is %d but y is %d", x, y);
6736}
6737
6738// Check long long types.
6739#define BIG64 18446744073709551615ull
6740#define BIG32 4294967295ul
6741#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6742#if !BIG_OK
6743 your preprocessor is broken;
6744#endif
6745#if BIG_OK
6746#else
6747 your preprocessor is broken;
6748#endif
6749static long long int bignum = -9223372036854775807LL;
6750static unsigned long long int ubignum = BIG64;
6751
6752struct incomplete_array
6753{
6754 int datasize;
6755 double data[];
6756};
6757
6758struct named_init {
6759 int number;
6760 const wchar_t *name;
6761 double average;
6762};
6763
6764typedef const char *ccp;
6765
6766static inline int
6767test_restrict (ccp restrict text)
6768{
6769 // See if C++-style comments work.
6770 // Iterate through items via the restricted pointer.
6771 // Also check for declarations in for loops.
6772 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6773 continue;
6774 return 0;
6775}
6776
6777// Check varargs and va_copy.
6778static void
6779test_varargs (const char *format, ...)
6780{
6781 va_list args;
6782 va_start (args, format);
6783 va_list args_copy;
6784 va_copy (args_copy, args);
6785
6786 const char *str;
6787 int number;
6788 float fnumber;
6789
6790 while (*format)
6791 {
6792 switch (*format++)
6793 {
6794 case 's': // string
6795 str = va_arg (args_copy, const char *);
6796 break;
6797 case 'd': // int
6798 number = va_arg (args_copy, int);
6799 break;
6800 case 'f': // float
6801 fnumber = va_arg (args_copy, double);
6802 break;
6803 default:
6804 break;
6805 }
6806 }
6807 va_end (args_copy);
6808 va_end (args);
6809}
6810
6811int
6812main ()
6813{
6814
6815 // Check bool.
6816 _Bool success = false;
6817
6818 // Check restrict.
6819 if (test_restrict ("String literal") == 0)
6820 success = true;
6821 char *restrict newvar = "Another string";
6822
6823 // Check varargs.
6824 test_varargs ("s, d' f .", "string", 65, 34.234);
6825 test_varargs_macros ();
6826
6827 // Check flexible array members.
6828 struct incomplete_array *ia =
6829 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6830 ia->datasize = 10;
6831 for (int i = 0; i < ia->datasize; ++i)
6832 ia->data[i] = i * 1.234;
6833
6834 // Check named initializers.
6835 struct named_init ni = {
6836 .number = 34,
6837 .name = L"Test wide string",
6838 .average = 543.34343,
6839 };
6840
6841 ni.number = 58;
6842
6843 int dynamic_array[ni.number];
6844 dynamic_array[ni.number - 1] = 543;
6845
6846 // work around unused variable warnings
6847 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6848 || dynamic_array[ni.number - 1] != 543);
6849
6850 ;
6851 return 0;
6852}
6853_ACEOF
6854for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6855do
6856 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006857 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006858 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006859fi
cristy3ed852e2009-09-05 21:47:34 +00006860rm -f core conftest.err conftest.$ac_objext
6861 test "x$ac_cv_prog_cc_c99" != "xno" && break
6862done
6863rm -f conftest.$ac_ext
6864CC=$ac_save_CC
6865
6866fi
6867# AC_CACHE_VAL
6868case "x$ac_cv_prog_cc_c99" in
6869 x)
cristy8b350f62009-11-15 23:12:43 +00006870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006871$as_echo "none needed" >&6; } ;;
6872 xno)
cristy8b350f62009-11-15 23:12:43 +00006873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006874$as_echo "unsupported" >&6; } ;;
6875 *)
6876 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006878$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6879esac
cristy8b350f62009-11-15 23:12:43 +00006880if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006881 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6882else
cristy8b350f62009-11-15 23:12:43 +00006883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006884$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006885if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006886 $as_echo_n "(cached) " >&6
6887else
6888 ac_cv_prog_cc_c89=no
6889ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006891/* end confdefs.h. */
6892#include <stdarg.h>
6893#include <stdio.h>
6894#include <sys/types.h>
6895#include <sys/stat.h>
6896/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6897struct buf { int x; };
6898FILE * (*rcsopen) (struct buf *, struct stat *, int);
6899static char *e (p, i)
6900 char **p;
6901 int i;
6902{
6903 return p[i];
6904}
6905static char *f (char * (*g) (char **, int), char **p, ...)
6906{
6907 char *s;
6908 va_list v;
6909 va_start (v,p);
6910 s = g (p, va_arg (v,int));
6911 va_end (v);
6912 return s;
6913}
6914
6915/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6916 function prototypes and stuff, but not '\xHH' hex character constants.
6917 These don't provoke an error unfortunately, instead are silently treated
6918 as 'x'. The following induces an error, until -std is added to get
6919 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6920 array size at least. It's necessary to write '\x00'==0 to get something
6921 that's true only with -std. */
6922int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6923
6924/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6925 inside strings and character constants. */
6926#define FOO(x) 'x'
6927int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6928
6929int test (int i, double x);
6930struct s1 {int (*f) (int a);};
6931struct s2 {int (*f) (double a);};
6932int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6933int argc;
6934char **argv;
6935int
6936main ()
6937{
6938return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6939 ;
6940 return 0;
6941}
6942_ACEOF
6943for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6944 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6945do
6946 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006947 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006948 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006949fi
cristy3ed852e2009-09-05 21:47:34 +00006950rm -f core conftest.err conftest.$ac_objext
6951 test "x$ac_cv_prog_cc_c89" != "xno" && break
6952done
6953rm -f conftest.$ac_ext
6954CC=$ac_save_CC
6955
6956fi
6957# AC_CACHE_VAL
6958case "x$ac_cv_prog_cc_c89" in
6959 x)
cristy8b350f62009-11-15 23:12:43 +00006960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006961$as_echo "none needed" >&6; } ;;
6962 xno)
cristy8b350f62009-11-15 23:12:43 +00006963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006964$as_echo "unsupported" >&6; } ;;
6965 *)
6966 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006968$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6969esac
cristy8b350f62009-11-15 23:12:43 +00006970if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006971 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6972else
6973 ac_cv_prog_cc_stdc=no
6974fi
6975
cristy3ed852e2009-09-05 21:47:34 +00006976fi
cristy3ed852e2009-09-05 21:47:34 +00006977 ;;
6978esac
cristy8b350f62009-11-15 23:12:43 +00006979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006980$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006981 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006982 $as_echo_n "(cached) " >&6
6983fi
6984
cristy8b350f62009-11-15 23:12:43 +00006985 case $ac_cv_prog_cc_stdc in #(
6986 no) :
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6988$as_echo "unsupported" >&6; } ;; #(
6989 '') :
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6991$as_echo "none needed" >&6; } ;; #(
6992 *) :
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006994$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6995esac
6996
cristy3ed852e2009-09-05 21:47:34 +00006997ac_ext=c
6998ac_cpp='$CPP $CPPFLAGS'
6999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7001ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007003$as_echo_n "checking how to run the C preprocessor... " >&6; }
7004# On Suns, sometimes $CPP names a directory.
7005if test -n "$CPP" && test -d "$CPP"; then
7006 CPP=
7007fi
7008if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007009 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007010 $as_echo_n "(cached) " >&6
7011else
7012 # Double quotes because CPP needs to be expanded
7013 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7014 do
7015 ac_preproc_ok=false
7016for ac_c_preproc_warn_flag in '' yes
7017do
7018 # Use a header file that comes with gcc, so configuring glibc
7019 # with a fresh cross-compiler works.
7020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7021 # <limits.h> exists even on freestanding compilers.
7022 # On the NeXT, cc -E runs the code through the compiler's parser,
7023 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007025/* end confdefs.h. */
7026#ifdef __STDC__
7027# include <limits.h>
7028#else
7029# include <assert.h>
7030#endif
7031 Syntax error
7032_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007033if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007034
cristy8b350f62009-11-15 23:12:43 +00007035else
cristy3ed852e2009-09-05 21:47:34 +00007036 # Broken: fails on valid input.
7037continue
7038fi
cristyda16f162011-02-19 23:52:17 +00007039rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007040
7041 # OK, works on sane cases. Now check whether nonexistent headers
7042 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007044/* end confdefs.h. */
7045#include <ac_nonexistent.h>
7046_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007047if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007048 # Broken: success on invalid input.
7049continue
7050else
cristy3ed852e2009-09-05 21:47:34 +00007051 # Passes both tests.
7052ac_preproc_ok=:
7053break
7054fi
cristyda16f162011-02-19 23:52:17 +00007055rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007056
7057done
7058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007059rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007060if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007061 break
7062fi
7063
7064 done
7065 ac_cv_prog_CPP=$CPP
7066
7067fi
7068 CPP=$ac_cv_prog_CPP
7069else
7070 ac_cv_prog_CPP=$CPP
7071fi
cristy8b350f62009-11-15 23:12:43 +00007072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007073$as_echo "$CPP" >&6; }
7074ac_preproc_ok=false
7075for ac_c_preproc_warn_flag in '' yes
7076do
7077 # Use a header file that comes with gcc, so configuring glibc
7078 # with a fresh cross-compiler works.
7079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7080 # <limits.h> exists even on freestanding compilers.
7081 # On the NeXT, cc -E runs the code through the compiler's parser,
7082 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007084/* end confdefs.h. */
7085#ifdef __STDC__
7086# include <limits.h>
7087#else
7088# include <assert.h>
7089#endif
7090 Syntax error
7091_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007092if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007093
cristy8b350f62009-11-15 23:12:43 +00007094else
cristy3ed852e2009-09-05 21:47:34 +00007095 # Broken: fails on valid input.
7096continue
7097fi
cristyda16f162011-02-19 23:52:17 +00007098rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007099
7100 # OK, works on sane cases. Now check whether nonexistent headers
7101 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007103/* end confdefs.h. */
7104#include <ac_nonexistent.h>
7105_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007106if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007107 # Broken: success on invalid input.
7108continue
7109else
cristy3ed852e2009-09-05 21:47:34 +00007110 # Passes both tests.
7111ac_preproc_ok=:
7112break
7113fi
cristyda16f162011-02-19 23:52:17 +00007114rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007115
7116done
7117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007118rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007119if $ac_preproc_ok; then :
7120
cristy3ed852e2009-09-05 21:47:34 +00007121else
cristy8b350f62009-11-15 23:12:43 +00007122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007124as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7125See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007126fi
7127
7128ac_ext=c
7129ac_cpp='$CPP $CPPFLAGS'
7130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7132ac_compiler_gnu=$ac_cv_c_compiler_gnu
7133
cristy73bd4a52010-10-05 11:24:23 +00007134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7135$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007136if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007137 $as_echo_n "(cached) " >&6
7138else
7139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7140 for ac_i in 1 2 3 4 5 6 7; do
7141 ac_script="$ac_script$as_nl$ac_script"
7142 done
7143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7144 { ac_script=; unset ac_script;}
7145 if test -z "$SED"; then
7146 ac_path_SED_found=false
7147 # Loop through the user's path and test for each of PROGNAME-LIST
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_prog in sed gsed; do
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7156 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7157# Check for GNU ac_path_SED and select it if it is found.
7158 # Check for GNU $ac_path_SED
7159case `"$ac_path_SED" --version 2>&1` in
7160*GNU*)
7161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7162*)
7163 ac_count=0
7164 $as_echo_n 0123456789 >"conftest.in"
7165 while :
7166 do
7167 cat "conftest.in" "conftest.in" >"conftest.tmp"
7168 mv "conftest.tmp" "conftest.in"
7169 cp "conftest.in" "conftest.nl"
7170 $as_echo '' >> "conftest.nl"
7171 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7173 as_fn_arith $ac_count + 1 && ac_count=$as_val
7174 if test $ac_count -gt ${ac_path_SED_max-0}; then
7175 # Best one so far, save it but keep looking for a better one
7176 ac_cv_path_SED="$ac_path_SED"
7177 ac_path_SED_max=$ac_count
7178 fi
7179 # 10*(2^10) chars as input seems more than enough
7180 test $ac_count -gt 10 && break
7181 done
7182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7183esac
7184
7185 $ac_path_SED_found && break 3
7186 done
7187 done
7188 done
7189IFS=$as_save_IFS
7190 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007191 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007192 fi
7193else
7194 ac_cv_path_SED=$SED
7195fi
7196
7197fi
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7199$as_echo "$ac_cv_path_SED" >&6; }
7200 SED="$ac_cv_path_SED"
7201 rm -f conftest.sed
7202
7203test -z "$SED" && SED=sed
7204Xsed="$SED -e 1s/^X//"
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7217$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007218if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007219 $as_echo_n "(cached) " >&6
7220else
7221 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7222 then ac_cv_path_FGREP="$GREP -F"
7223 else
7224 if test -z "$FGREP"; then
7225 ac_path_FGREP_found=false
7226 # Loop through the user's path and test for each of PROGNAME-LIST
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_prog in fgrep; do
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7235 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7236# Check for GNU ac_path_FGREP and select it if it is found.
7237 # Check for GNU $ac_path_FGREP
7238case `"$ac_path_FGREP" --version 2>&1` in
7239*GNU*)
7240 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7241*)
7242 ac_count=0
7243 $as_echo_n 0123456789 >"conftest.in"
7244 while :
7245 do
7246 cat "conftest.in" "conftest.in" >"conftest.tmp"
7247 mv "conftest.tmp" "conftest.in"
7248 cp "conftest.in" "conftest.nl"
7249 $as_echo 'FGREP' >> "conftest.nl"
7250 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7252 as_fn_arith $ac_count + 1 && ac_count=$as_val
7253 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7254 # Best one so far, save it but keep looking for a better one
7255 ac_cv_path_FGREP="$ac_path_FGREP"
7256 ac_path_FGREP_max=$ac_count
7257 fi
7258 # 10*(2^10) chars as input seems more than enough
7259 test $ac_count -gt 10 && break
7260 done
7261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7262esac
7263
7264 $ac_path_FGREP_found && break 3
7265 done
7266 done
7267 done
7268IFS=$as_save_IFS
7269 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007270 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007271 fi
7272else
7273 ac_cv_path_FGREP=$FGREP
7274fi
7275
7276 fi
7277fi
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7279$as_echo "$ac_cv_path_FGREP" >&6; }
7280 FGREP="$ac_cv_path_FGREP"
7281
7282
7283test -z "$GREP" && GREP=grep
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
cristy0c60a692010-11-04 01:09:47 +00007301ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7302ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7303ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7304
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7306$as_echo_n "checking how to print strings... " >&6; }
7307# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007308if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007309 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7310 ECHO='print -r --'
7311elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7312 ECHO='printf %s\n'
7313else
7314 # Use this function as a fallback that always works.
7315 func_fallback_echo ()
7316 {
7317 eval 'cat <<_LTECHO_EOF
7318$1
7319_LTECHO_EOF'
7320 }
7321 ECHO='func_fallback_echo'
7322fi
7323
7324# func_echo_all arg...
7325# Invoke $ECHO with all args, space-separated.
7326func_echo_all ()
7327{
7328 $ECHO ""
7329}
7330
7331case "$ECHO" in
7332 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7333$as_echo "printf" >&6; } ;;
7334 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7335$as_echo "print -r" >&6; } ;;
7336 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7337$as_echo "cat" >&6; } ;;
7338esac
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
cristy73bd4a52010-10-05 11:24:23 +00007353
7354
7355# Check whether --with-gnu-ld was given.
7356if test "${with_gnu_ld+set}" = set; then :
7357 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7358else
7359 with_gnu_ld=no
7360fi
7361
7362ac_prog=ld
7363if test "$GCC" = yes; then
7364 # Check if gcc -print-prog-name=ld gives a path.
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7366$as_echo_n "checking for ld used by $CC... " >&6; }
7367 case $host in
7368 *-*-mingw*)
7369 # gcc leaves a trailing carriage return which upsets mingw
7370 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7371 *)
7372 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7373 esac
7374 case $ac_prog in
7375 # Accept absolute paths.
7376 [\\/]* | ?:[\\/]*)
7377 re_direlt='/[^/][^/]*/\.\./'
7378 # Canonicalize the pathname of ld
7379 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7380 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7381 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7382 done
7383 test -z "$LD" && LD="$ac_prog"
7384 ;;
7385 "")
7386 # If it fails, then pretend we aren't using GCC.
7387 ac_prog=ld
7388 ;;
7389 *)
7390 # If it is relative, then search for the first ld in PATH.
7391 with_gnu_ld=unknown
7392 ;;
7393 esac
7394elif test "$with_gnu_ld" = yes; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7396$as_echo_n "checking for GNU ld... " >&6; }
7397else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7399$as_echo_n "checking for non-GNU ld... " >&6; }
7400fi
cristyda16f162011-02-19 23:52:17 +00007401if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007402 $as_echo_n "(cached) " >&6
7403else
7404 if test -z "$LD"; then
7405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7406 for ac_dir in $PATH; do
7407 IFS="$lt_save_ifs"
7408 test -z "$ac_dir" && ac_dir=.
7409 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7410 lt_cv_path_LD="$ac_dir/$ac_prog"
7411 # Check to see if the program is GNU ld. I'd rather use --version,
7412 # but apparently some variants of GNU ld only accept -v.
7413 # Break only if it was the GNU/non-GNU ld that we prefer.
7414 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7415 *GNU* | *'with BFD'*)
7416 test "$with_gnu_ld" != no && break
7417 ;;
7418 *)
7419 test "$with_gnu_ld" != yes && break
7420 ;;
7421 esac
7422 fi
7423 done
7424 IFS="$lt_save_ifs"
7425else
7426 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7427fi
7428fi
7429
7430LD="$lt_cv_path_LD"
7431if test -n "$LD"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7433$as_echo "$LD" >&6; }
7434else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
7437fi
cristy98dddb52010-11-04 00:30:15 +00007438test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7440$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007441if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007442 $as_echo_n "(cached) " >&6
7443else
7444 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7445case `$LD -v 2>&1 </dev/null` in
7446*GNU* | *'with BFD'*)
7447 lt_cv_prog_gnu_ld=yes
7448 ;;
7449*)
7450 lt_cv_prog_gnu_ld=no
7451 ;;
7452esac
7453fi
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7455$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7456with_gnu_ld=$lt_cv_prog_gnu_ld
7457
7458
7459
7460
7461
7462
7463
7464
7465
cristy3ed852e2009-09-05 21:47:34 +00007466
cristy837d6dc2010-02-27 01:16:57 +00007467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7468$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007469if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007470 $as_echo_n "(cached) " >&6
7471else
7472 ac_cv_prog_cc_c99=no
7473ac_save_CC=$CC
7474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h. */
7476#include <stdarg.h>
7477#include <stdbool.h>
7478#include <stdlib.h>
7479#include <wchar.h>
7480#include <stdio.h>
7481
7482// Check varargs macros. These examples are taken from C99 6.10.3.5.
7483#define debug(...) fprintf (stderr, __VA_ARGS__)
7484#define showlist(...) puts (#__VA_ARGS__)
7485#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7486static void
7487test_varargs_macros (void)
7488{
7489 int x = 1234;
7490 int y = 5678;
7491 debug ("Flag");
7492 debug ("X = %d\n", x);
7493 showlist (The first, second, and third items.);
7494 report (x>y, "x is %d but y is %d", x, y);
7495}
7496
7497// Check long long types.
7498#define BIG64 18446744073709551615ull
7499#define BIG32 4294967295ul
7500#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7501#if !BIG_OK
7502 your preprocessor is broken;
7503#endif
7504#if BIG_OK
7505#else
7506 your preprocessor is broken;
7507#endif
7508static long long int bignum = -9223372036854775807LL;
7509static unsigned long long int ubignum = BIG64;
7510
7511struct incomplete_array
7512{
7513 int datasize;
7514 double data[];
7515};
7516
7517struct named_init {
7518 int number;
7519 const wchar_t *name;
7520 double average;
7521};
7522
7523typedef const char *ccp;
7524
7525static inline int
7526test_restrict (ccp restrict text)
7527{
7528 // See if C++-style comments work.
7529 // Iterate through items via the restricted pointer.
7530 // Also check for declarations in for loops.
7531 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7532 continue;
7533 return 0;
7534}
7535
7536// Check varargs and va_copy.
7537static void
7538test_varargs (const char *format, ...)
7539{
7540 va_list args;
7541 va_start (args, format);
7542 va_list args_copy;
7543 va_copy (args_copy, args);
7544
7545 const char *str;
7546 int number;
7547 float fnumber;
7548
7549 while (*format)
7550 {
7551 switch (*format++)
7552 {
7553 case 's': // string
7554 str = va_arg (args_copy, const char *);
7555 break;
7556 case 'd': // int
7557 number = va_arg (args_copy, int);
7558 break;
7559 case 'f': // float
7560 fnumber = va_arg (args_copy, double);
7561 break;
7562 default:
7563 break;
7564 }
7565 }
7566 va_end (args_copy);
7567 va_end (args);
7568}
7569
7570int
7571main ()
7572{
7573
7574 // Check bool.
7575 _Bool success = false;
7576
7577 // Check restrict.
7578 if (test_restrict ("String literal") == 0)
7579 success = true;
7580 char *restrict newvar = "Another string";
7581
7582 // Check varargs.
7583 test_varargs ("s, d' f .", "string", 65, 34.234);
7584 test_varargs_macros ();
7585
7586 // Check flexible array members.
7587 struct incomplete_array *ia =
7588 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7589 ia->datasize = 10;
7590 for (int i = 0; i < ia->datasize; ++i)
7591 ia->data[i] = i * 1.234;
7592
7593 // Check named initializers.
7594 struct named_init ni = {
7595 .number = 34,
7596 .name = L"Test wide string",
7597 .average = 543.34343,
7598 };
7599
7600 ni.number = 58;
7601
7602 int dynamic_array[ni.number];
7603 dynamic_array[ni.number - 1] = 543;
7604
7605 // work around unused variable warnings
7606 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7607 || dynamic_array[ni.number - 1] != 543);
7608
7609 ;
7610 return 0;
7611}
7612_ACEOF
7613for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7614do
7615 CC="$ac_save_CC $ac_arg"
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617 ac_cv_prog_cc_c99=$ac_arg
7618fi
7619rm -f core conftest.err conftest.$ac_objext
7620 test "x$ac_cv_prog_cc_c99" != "xno" && break
7621done
7622rm -f conftest.$ac_ext
7623CC=$ac_save_CC
7624
7625fi
7626# AC_CACHE_VAL
7627case "x$ac_cv_prog_cc_c99" in
7628 x)
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7630$as_echo "none needed" >&6; } ;;
7631 xno)
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7633$as_echo "unsupported" >&6; } ;;
7634 *)
7635 CC="$CC $ac_cv_prog_cc_c99"
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7637$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7638esac
7639if test "x$ac_cv_prog_cc_c99" != xno; then :
7640
7641fi
7642
7643
cristy73bd4a52010-10-05 11:24:23 +00007644if test "x$CC" != xcc; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7646$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7647else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7649$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7650fi
7651set dummy $CC; ac_cc=`$as_echo "$2" |
7652 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007653if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007654 $as_echo_n "(cached) " >&6
7655else
cristy73bd4a52010-10-05 11:24:23 +00007656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h. */
7658
7659int
7660main ()
7661{
7662
7663 ;
7664 return 0;
7665}
7666_ACEOF
7667# Make sure it works both with $CC and with simple cc.
7668# We do the test twice because some compilers refuse to overwrite an
7669# existing .o file with -o, though they will create one.
7670ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7671rm -f conftest2.*
7672if { { case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675esac
7676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7677$as_echo "$ac_try_echo"; } >&5
7678 (eval "$ac_try") 2>&5
7679 ac_status=$?
7680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681 test $ac_status = 0; } &&
7682 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685esac
7686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7687$as_echo "$ac_try_echo"; } >&5
7688 (eval "$ac_try") 2>&5
7689 ac_status=$?
7690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7691 test $ac_status = 0; };
7692then
7693 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7694 if test "x$CC" != xcc; then
7695 # Test first that cc exists at all.
7696 if { ac_try='cc -c conftest.$ac_ext >&5'
7697 { { case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700esac
7701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7702$as_echo "$ac_try_echo"; } >&5
7703 (eval "$ac_try") 2>&5
7704 ac_status=$?
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; }; }; then
7707 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7708 rm -f conftest2.*
7709 if { { case "(($ac_try" in
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7712esac
7713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7714$as_echo "$ac_try_echo"; } >&5
7715 (eval "$ac_try") 2>&5
7716 ac_status=$?
7717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718 test $ac_status = 0; } &&
7719 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7722esac
7723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7724$as_echo "$ac_try_echo"; } >&5
7725 (eval "$ac_try") 2>&5
7726 ac_status=$?
7727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7728 test $ac_status = 0; };
7729 then
7730 # cc works too.
7731 :
7732 else
7733 # cc exists but doesn't like -o.
7734 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7735 fi
7736 fi
7737 fi
7738else
7739 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7740fi
7741rm -f core conftest*
7742
7743fi
7744if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746$as_echo "yes" >&6; }
7747else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749$as_echo "no" >&6; }
7750
7751$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7752
7753fi
7754
7755# FIXME: we rely on the cache variable name because
7756# there is no other way.
7757set dummy $CC
7758am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7759eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7760if test "$am_t" != yes; then
7761 # Losing compiler, so override with the script.
7762 # FIXME: It is wrong to rewrite CC.
7763 # But if we don't then we get into trouble of one sort or another.
7764 # A longer-term fix would be to have automake use am__CC in this case,
7765 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7766 CC="$am_aux_dir/compile $CC"
7767fi
7768
7769
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7771$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007772if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007773 $as_echo_n "(cached) " >&6
7774else
7775 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007776 ac_ext=c
7777ac_cpp='$CPP $CPPFLAGS'
7778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782 ac_save_CFLAGS="$CFLAGS"
7783for 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" #
7784do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787
7788int
7789main ()
7790{
cristy24fc1fe2010-10-23 21:13:01 +00007791
cristy73bd4a52010-10-05 11:24:23 +00007792 ;
7793 return 0;
7794}
7795_ACEOF
7796if ac_fn_c_try_compile "$LINENO"; then :
7797 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7798fi
7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800done
7801 CFLAGS="$ac_save_CFLAGS"
7802 ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7811$as_echo "$ac_cv_cflags_warn_all" >&6; }
7812case ".$ac_cv_cflags_warn_all" in
7813 .ok|.ok,*) ;;
7814 .|.no|.no,*)
7815 ;;
7816 *)
7817 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7818 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7819 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7820 ac_status=$?
7821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }
7823 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7824 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7825 ac_status=$?
7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }
7828 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7829 fi
7830 ;;
nicolas6237c462010-10-05 06:11:49 +00007831esac
cristy3ed852e2009-09-05 21:47:34 +00007832
cristya0b81c32010-01-22 02:54:33 +00007833
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7835$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7836set x ${MAKE-make}
7837ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007838if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007839 $as_echo_n "(cached) " >&6
7840else
7841 cat >conftest.make <<\_ACEOF
7842SHELL = /bin/sh
7843all:
7844 @echo '@@@%%%=$(MAKE)=@@@%%%'
7845_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007846# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007847case `${MAKE-make} -f conftest.make 2>/dev/null` in
7848 *@@@%%%=?*=@@@%%%*)
7849 eval ac_cv_prog_make_${ac_make}_set=yes;;
7850 *)
7851 eval ac_cv_prog_make_${ac_make}_set=no;;
7852esac
7853rm -f conftest.make
7854fi
7855if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7857$as_echo "yes" >&6; }
7858 SET_MAKE=
7859else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861$as_echo "no" >&6; }
7862 SET_MAKE="MAKE=${MAKE-make}"
7863fi
7864
cristy8b350f62009-11-15 23:12:43 +00007865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007866$as_echo_n "checking whether ln -s works... " >&6; }
7867LN_S=$as_ln_s
7868if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007870$as_echo "yes" >&6; }
7871else
cristy8b350f62009-11-15 23:12:43 +00007872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007873$as_echo "no, using $LN_S" >&6; }
7874fi
7875
cristy73bd4a52010-10-05 11:24:23 +00007876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7877$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7878
7879# Check whether --with-dmalloc was given.
7880if test "${with_dmalloc+set}" = set; then :
7881 withval=$with_dmalloc; if test "$withval" = yes; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883$as_echo "yes" >&6; }
7884
7885$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7886
7887 LIBS="$LIBS -ldmalloc"
7888 LDFLAGS="$LDFLAGS -g"
7889else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891$as_echo "no" >&6; }
7892fi
7893else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
7896fi
7897
7898
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7901$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007902if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007903 $as_echo_n "(cached) " >&6
7904else
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h. */
7907#include <stdlib.h>
7908 static void foo(void) __attribute__ ((unused));
7909 static void
7910 foo(void) {
7911 exit(1);
7912 }
7913
7914int
7915main ()
7916{
7917
7918 ;
7919 return 0;
7920}
7921_ACEOF
7922if ac_fn_c_try_compile "$LINENO"; then :
7923 ax_cv___attribute__=yes
7924else
7925 ax_cv___attribute__=no
7926
7927fi
7928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929
7930fi
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7932$as_echo "$ax_cv___attribute__" >&6; }
7933 if test "$ax_cv___attribute__" = "yes"; then
7934
7935$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7936
7937 fi
7938
7939
7940
7941if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7944set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007947if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007948 $as_echo_n "(cached) " >&6
7949else
7950 case $PKG_CONFIG in
7951 [\\/]* | ?:[\\/]*)
7952 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7953 ;;
7954 *)
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966done
7967 done
7968IFS=$as_save_IFS
7969
7970 ;;
7971esac
7972fi
7973PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7974if test -n "$PKG_CONFIG"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7976$as_echo "$PKG_CONFIG" >&6; }
7977else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
7980fi
7981
7982
7983fi
7984if test -z "$ac_cv_path_PKG_CONFIG"; then
7985 ac_pt_PKG_CONFIG=$PKG_CONFIG
7986 # Extract the first word of "pkg-config", so it can be a program name with args.
7987set dummy pkg-config; ac_word=$2
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007990if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007991 $as_echo_n "(cached) " >&6
7992else
7993 case $ac_pt_PKG_CONFIG in
7994 [\\/]* | ?:[\\/]*)
7995 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7996 ;;
7997 *)
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8008 fi
8009done
8010 done
8011IFS=$as_save_IFS
8012
8013 ;;
8014esac
8015fi
8016ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8017if test -n "$ac_pt_PKG_CONFIG"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8019$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8020else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022$as_echo "no" >&6; }
8023fi
8024
8025 if test "x$ac_pt_PKG_CONFIG" = x; then
8026 PKG_CONFIG=""
8027 else
8028 case $cross_compiling:$ac_tool_warned in
8029yes:)
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8032ac_tool_warned=yes ;;
8033esac
8034 PKG_CONFIG=$ac_pt_PKG_CONFIG
8035 fi
8036else
8037 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8038fi
8039
8040fi
8041if test -n "$PKG_CONFIG"; then
8042 _pkg_min_version=0.9.0
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8044$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8045 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8047$as_echo "yes" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050$as_echo "no" >&6; }
8051 PKG_CONFIG=""
8052 fi
8053
8054fi
cristy3ed852e2009-09-05 21:47:34 +00008055
8056#
cristy3ed852e2009-09-05 21:47:34 +00008057# Enable run-time checking.
8058#
8059# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008060if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008061 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8062else
8063 enable_bounds_checking='no'
8064fi
8065
8066
8067if test "$enable_bounds_checking" = yes; then
8068
cristy8b350f62009-11-15 23:12:43 +00008069$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008070
8071fi
8072
8073#
8074# Tests for Windows
8075#
8076
8077
cristy73bd4a52010-10-05 11:24:23 +00008078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8079$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008080if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008081 $as_echo_n "(cached) " >&6
8082else
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084/* end confdefs.h. */
8085
8086int
8087main ()
8088{
8089#ifndef _MSC_VER
8090 choke me
8091#endif
8092
8093 ;
8094 return 0;
8095}
8096_ACEOF
8097if ac_fn_c_try_compile "$LINENO"; then :
8098 ax_compiler_ms=yes
8099else
8100 ax_compiler_ms=no
8101fi
8102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103ax_cv_c_compiler_ms=$ax_compiler_ms
8104
8105fi
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8107$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008108
8109GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008110native_win32_build='no'
8111cygwin_build='no'
8112case "${host_os}" in
8113 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008114 cygwin_build='yes'
8115 GDI32_LIBS='-lgdi32'
8116 ;;
8117 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008118 native_win32_build='yes'
8119 GDI32_LIBS='-lgdi32'
8120 ;;
8121esac
8122if test "${GDI32_LIBS}x" != 'x'; then
8123
cristy8b350f62009-11-15 23:12:43 +00008124$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008125
8126fi
8127
cristy73bd4a52010-10-05 11:24:23 +00008128 if test "${GDI32_LIBS}x" != 'x' ; then
8129 WINGDI32_DELEGATE_TRUE=
8130 WINGDI32_DELEGATE_FALSE='#'
8131else
8132 WINGDI32_DELEGATE_TRUE='#'
8133 WINGDI32_DELEGATE_FALSE=
8134fi
8135
8136 if test "${native_win32_build}" = 'yes' ; then
8137 WIN32_NATIVE_BUILD_TRUE=
8138 WIN32_NATIVE_BUILD_FALSE='#'
8139else
8140 WIN32_NATIVE_BUILD_TRUE='#'
8141 WIN32_NATIVE_BUILD_FALSE=
8142fi
8143
8144 if test "${cygwin_build}" = 'yes' ; then
8145 CYGWIN_BUILD_TRUE=
8146 CYGWIN_BUILD_FALSE='#'
8147else
8148 CYGWIN_BUILD_TRUE='#'
8149 CYGWIN_BUILD_FALSE=
8150fi
8151
8152 if test "x${CC}" = 'xcl.exe' ; then
8153 USING_CL_TRUE=
8154 USING_CL_FALSE='#'
8155else
8156 USING_CL_TRUE='#'
8157 USING_CL_FALSE=
8158fi
8159
cristy3ed852e2009-09-05 21:47:34 +00008160
8161WinPathScript="${srcdirfull}/winpath.sh"
8162
8163
8164#
8165# Compiler flags tweaks
8166#
8167if test "${GCC}" != "yes"; then
8168 case "${host}" in
8169 *-*-hpux* )
8170 # aCC: HP ANSI C++ B3910B A.03.34
8171 CFLAGS="${CFLAGS} -Wp,-H30000"
8172 if test -n "${CXXFLAGS}"; then
8173 CXXFLAGS='-AA'
8174 else
8175 CXXFLAGS="${CXXFLAGS} -AA"
8176 fi
8177 ;;
8178 *-dec-osf5.* )
8179 # Compaq alphaev68-dec-osf5.1 compiler
8180 if test -n "${CXXFLAGS}"; then
8181 CXXFLAGS='-std strict_ansi -noimplicit_include'
8182 else
8183 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8184 fi
8185 esac
8186fi
8187
8188# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008190$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008191if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008192 $as_echo_n "(cached) " >&6
8193else
8194
8195im_cv_ld_lazyload='none'
8196case "${host}" in
8197 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8198 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8199 im_cv_ld_lazyload='-Wl,-zlazyload'
8200 fi
8201 ;;
8202esac
8203
8204fi
cristy8b350f62009-11-15 23:12:43 +00008205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008206$as_echo "$im_cv_ld_lazyload" >&6; }
8207if test "${im_cv_ld_lazyload}" != 'none' ; then
8208 if test -z "${LDFLAGS}" ; then
8209 LDFLAGS="${im_cv_ld_lazyload}"
8210 else
8211 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8212 fi
8213fi
8214
8215case "$host" in
8216*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008217 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008218if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008219 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8220else
8221 build_osxuniversal=no
8222fi
8223
8224
8225 if test "${build_osxuniversal}" != no ; then
8226 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008227 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008228Please re-run configure with these options:
8229 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008230 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008231 fi
8232 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8233 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8234 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8235 fi
8236 ;;
8237esac
8238
8239# Enable support for threads
8240
8241# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008242if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008243 withval=$with_threads; with_threads=$withval
8244else
8245 with_threads='yes'
8246fi
8247
8248
8249have_threads=no
8250if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008251
8252
8253
8254ac_ext=c
8255ac_cpp='$CPP $CPPFLAGS'
8256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258ac_compiler_gnu=$ac_cv_c_compiler_gnu
8259
8260ax_pthread_ok=no
8261
8262# We used to check for pthread.h first, but this fails if pthread.h
8263# requires special compiler flags (e.g. on True64 or Sequent).
8264# It gets checked for in the link test anyway.
8265
8266# First of all, check if the user has set any of the PTHREAD_LIBS,
8267# etcetera environment variables, and if threads linking works using
8268# them:
8269if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8270 save_CFLAGS="$CFLAGS"
8271 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8272 save_LIBS="$LIBS"
8273 LIBS="$PTHREAD_LIBS $LIBS"
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8275$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h. */
8278
8279/* Override any GCC internal prototype to avoid an error.
8280 Use char because int might match the return type of a GCC
8281 builtin and then its argument prototype would still apply. */
8282#ifdef __cplusplus
8283extern "C"
8284#endif
8285char pthread_join ();
8286int
8287main ()
8288{
8289return pthread_join ();
8290 ;
8291 return 0;
8292}
8293_ACEOF
8294if ac_fn_c_try_link "$LINENO"; then :
8295 ax_pthread_ok=yes
8296fi
8297rm -f core conftest.err conftest.$ac_objext \
8298 conftest$ac_exeext conftest.$ac_ext
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8300$as_echo "$ax_pthread_ok" >&6; }
8301 if test x"$ax_pthread_ok" = xno; then
8302 PTHREAD_LIBS=""
8303 PTHREAD_CFLAGS=""
8304 fi
8305 LIBS="$save_LIBS"
8306 CFLAGS="$save_CFLAGS"
8307fi
8308
8309# We must check for the threads library under a number of different
8310# names; the ordering is very important because some systems
8311# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8312# libraries is broken (non-POSIX).
8313
8314# Create a list of thread flags to try. Items starting with a "-" are
8315# C compiler flags, and other items are library names, except for "none"
8316# which indicates that we try without any flags at all, and "pthread-config"
8317# which is a program returning the flags for the Pth emulation library.
8318
8319ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8320
8321# The ordering *is* (sometimes) important. Some notes on the
8322# individual items follow:
8323
8324# pthreads: AIX (must check this before -lpthread)
8325# none: in case threads are in libc; should be tried before -Kthread and
8326# other compiler flags to prevent continual compiler warnings
8327# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8328# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8329# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8330# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8331# -pthreads: Solaris/gcc
8332# -mthreads: Mingw32/gcc, Lynx/gcc
8333# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8334# doesn't hurt to check since this sometimes defines pthreads too;
8335# also defines -D_REENTRANT)
8336# ... -mt is also the pthreads flag for HP/aCC
8337# pthread: Linux, etcetera
8338# --thread-safe: KAI C++
8339# pthread-config: use pthread-config program (for GNU Pth library)
8340
8341case "${host_cpu}-${host_os}" in
8342 *solaris*)
8343
8344 # On Solaris (at least, for some versions), libc contains stubbed
8345 # (non-functional) versions of the pthreads routines, so link-based
8346 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8347 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8348 # a function called by this macro, so we could check for that, but
8349 # who knows whether they'll stub that too in a future libc.) So,
8350 # we'll just look for -pthreads and -lpthread first:
8351
8352 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8353 ;;
8354
8355 *-darwin*)
8356 ax_pthread_flags="-pthread $ax_pthread_flags"
8357 ;;
8358esac
8359
8360if test x"$ax_pthread_ok" = xno; then
8361for flag in $ax_pthread_flags; do
8362
8363 case $flag in
8364 none)
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8366$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8367 ;;
8368
8369 -*)
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8371$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8372 PTHREAD_CFLAGS="$flag"
8373 ;;
8374
8375 pthread-config)
8376 # Extract the first word of "pthread-config", so it can be a program name with args.
8377set dummy pthread-config; ac_word=$2
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008380if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008381 $as_echo_n "(cached) " >&6
8382else
8383 if test -n "$ax_pthread_config"; then
8384 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8385else
8386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387for as_dir in $PATH
8388do
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8393 ac_cv_prog_ax_pthread_config="yes"
8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 break 2
8396 fi
8397done
8398 done
8399IFS=$as_save_IFS
8400
8401 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8402fi
8403fi
8404ax_pthread_config=$ac_cv_prog_ax_pthread_config
8405if test -n "$ax_pthread_config"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8407$as_echo "$ax_pthread_config" >&6; }
8408else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410$as_echo "no" >&6; }
8411fi
8412
8413
8414 if test x"$ax_pthread_config" = xno; then continue; fi
8415 PTHREAD_CFLAGS="`pthread-config --cflags`"
8416 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8417 ;;
8418
8419 *)
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8421$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8422 PTHREAD_LIBS="-l$flag"
8423 ;;
8424 esac
8425
8426 save_LIBS="$LIBS"
8427 save_CFLAGS="$CFLAGS"
8428 LIBS="$PTHREAD_LIBS $LIBS"
8429 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8430
8431 # Check for various functions. We must include pthread.h,
8432 # since some functions may be macros. (On the Sequent, we
8433 # need a special flag -Kthread to make this header compile.)
8434 # We check for pthread_join because it is in -lpthread on IRIX
8435 # while pthread_create is in libc. We check for pthread_attr_init
8436 # due to DEC craziness with -lpthreads. We check for
8437 # pthread_cleanup_push because it is one of the few pthread
8438 # functions on Solaris that doesn't have a non-functional libc stub.
8439 # We try pthread_create on general principles.
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441/* end confdefs.h. */
8442#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008443 static void routine(void* a) {a=0;}
8444 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008445int
8446main ()
8447{
8448pthread_t th; pthread_attr_t attr;
8449 pthread_create(&th,0,start_routine,0);
8450 pthread_join(th, 0);
8451 pthread_attr_init(&attr);
8452 pthread_cleanup_push(routine, 0);
8453 pthread_cleanup_pop(0);
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458if ac_fn_c_try_link "$LINENO"; then :
8459 ax_pthread_ok=yes
8460fi
8461rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8463
8464 LIBS="$save_LIBS"
8465 CFLAGS="$save_CFLAGS"
8466
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8468$as_echo "$ax_pthread_ok" >&6; }
8469 if test "x$ax_pthread_ok" = xyes; then
8470 break;
8471 fi
8472
8473 PTHREAD_LIBS=""
8474 PTHREAD_CFLAGS=""
8475done
8476fi
8477
8478# Various other checks:
8479if test "x$ax_pthread_ok" = xyes; then
8480 save_LIBS="$LIBS"
8481 LIBS="$PTHREAD_LIBS $LIBS"
8482 save_CFLAGS="$CFLAGS"
8483 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8484
8485 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8487$as_echo_n "checking for joinable pthread attribute... " >&6; }
8488 attr_name=unknown
8489 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h. */
8492#include <pthread.h>
8493int
8494main ()
8495{
8496int attr=$attr; return attr;
8497 ;
8498 return 0;
8499}
8500_ACEOF
8501if ac_fn_c_try_link "$LINENO"; then :
8502 attr_name=$attr; break
8503fi
8504rm -f core conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 done
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8508$as_echo "$attr_name" >&6; }
8509 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8510
8511cat >>confdefs.h <<_ACEOF
8512#define PTHREAD_CREATE_JOINABLE $attr_name
8513_ACEOF
8514
8515 fi
8516
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8518$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8519 flag=no
8520 case "${host_cpu}-${host_os}" in
8521 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8522 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8523 esac
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8525$as_echo "${flag}" >&6; }
8526 if test "x$flag" != xno; then
8527 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8528 fi
8529
8530 LIBS="$save_LIBS"
8531 CFLAGS="$save_CFLAGS"
8532
8533 # More AIX lossage: must compile with xlc_r or cc_r
8534 if test x"$GCC" != xyes; then
8535 for ac_prog in xlc_r cc_r
8536do
8537 # Extract the first word of "$ac_prog", so it can be a program name with args.
8538set dummy $ac_prog; ac_word=$2
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008541if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008542 $as_echo_n "(cached) " >&6
8543else
8544 if test -n "$PTHREAD_CC"; then
8545 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8546else
8547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548for as_dir in $PATH
8549do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554 ac_cv_prog_PTHREAD_CC="$ac_prog"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8557 fi
8558done
8559 done
8560IFS=$as_save_IFS
8561
8562fi
8563fi
8564PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8565if test -n "$PTHREAD_CC"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8567$as_echo "$PTHREAD_CC" >&6; }
8568else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570$as_echo "no" >&6; }
8571fi
8572
8573
8574 test -n "$PTHREAD_CC" && break
8575done
8576test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8577
8578 else
8579 PTHREAD_CC=$CC
8580 fi
8581else
8582 PTHREAD_CC="$CC"
8583fi
8584
8585
8586
8587
8588
8589# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8590if test x"$ax_pthread_ok" = xyes; then
8591
8592$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8593
8594 :
8595else
8596 ax_pthread_ok=no
8597
8598fi
8599ac_ext=c
8600ac_cpp='$CPP $CPPFLAGS'
8601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603ac_compiler_gnu=$ac_cv_c_compiler_gnu
8604
8605
cristy7acf8fb2010-09-23 19:58:53 +00008606 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008607 have_threads=yes
8608 DEF_THREAD="$PTHREAD_CFLAGS"
8609 CFLAGS="$CFLAGS $DEF_THREAD"
8610 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8611 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008612 { $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 +00008613$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8614 CC="$PTHREAD_CC"
8615 fi
cristy55bf91c2010-09-24 00:29:41 +00008616
8617$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8618
cristy3ed852e2009-09-05 21:47:34 +00008619 fi
8620fi
8621
8622# Enable support for OpenMP
8623if test "$have_threads" != 'yes'; then
8624 ac_cv_prog_c_openmp=unsupported
8625fi
8626
8627 OPENMP_CFLAGS=
8628 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008629if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008630 enableval=$enable_openmp;
8631fi
8632
8633 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008635$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008636if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008637 $as_echo_n "(cached) " >&6
8638else
cristy8b350f62009-11-15 23:12:43 +00008639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008641
8642#ifndef _OPENMP
8643 choke me
8644#endif
8645#include <omp.h>
8646int main () { return omp_get_num_threads (); }
8647
8648_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008649if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008650 ac_cv_prog_c_openmp='none needed'
8651else
cristy8b350f62009-11-15 23:12:43 +00008652 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008653 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8654 ac_save_CFLAGS=$CFLAGS
8655 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008658
8659#ifndef _OPENMP
8660 choke me
8661#endif
8662#include <omp.h>
8663int main () { return omp_get_num_threads (); }
8664
8665_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008666if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008667 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008668fi
cristy8b350f62009-11-15 23:12:43 +00008669rm -f core conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008671 CFLAGS=$ac_save_CFLAGS
8672 if test "$ac_cv_prog_c_openmp" != unsupported; then
8673 break
8674 fi
8675 done
8676fi
cristy8b350f62009-11-15 23:12:43 +00008677rm -f core conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008679fi
cristy8b350f62009-11-15 23:12:43 +00008680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008681$as_echo "$ac_cv_prog_c_openmp" >&6; }
8682 case $ac_cv_prog_c_openmp in #(
8683 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008684 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008685 *)
cristy8b350f62009-11-15 23:12:43 +00008686 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008687 esac
8688 fi
8689
8690
8691CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8692MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8693
cristy391f1ce2010-09-09 17:23:28 +00008694if test "$enable_openmp" != no; then
8695 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8696 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8697 fi
8698fi
cristy3ed852e2009-09-05 21:47:34 +00008699
cristy736173a2009-09-20 21:18:22 +00008700# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008701
8702
8703
8704ac_ext=c
8705ac_cpp='$CPP $CPPFLAGS'
8706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8708ac_compiler_gnu=$ac_cv_c_compiler_gnu
8709
8710ax_pthread_ok=no
8711
8712# We used to check for pthread.h first, but this fails if pthread.h
8713# requires special compiler flags (e.g. on True64 or Sequent).
8714# It gets checked for in the link test anyway.
8715
8716# First of all, check if the user has set any of the PTHREAD_LIBS,
8717# etcetera environment variables, and if threads linking works using
8718# them:
8719if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8720 save_CFLAGS="$CFLAGS"
8721 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8722 save_LIBS="$LIBS"
8723 LIBS="$PTHREAD_LIBS $LIBS"
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8725$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h. */
8728
8729/* Override any GCC internal prototype to avoid an error.
8730 Use char because int might match the return type of a GCC
8731 builtin and then its argument prototype would still apply. */
8732#ifdef __cplusplus
8733extern "C"
8734#endif
8735char pthread_join ();
8736int
8737main ()
8738{
8739return pthread_join ();
8740 ;
8741 return 0;
8742}
8743_ACEOF
8744if ac_fn_c_try_link "$LINENO"; then :
8745 ax_pthread_ok=yes
8746fi
8747rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8750$as_echo "$ax_pthread_ok" >&6; }
8751 if test x"$ax_pthread_ok" = xno; then
8752 PTHREAD_LIBS=""
8753 PTHREAD_CFLAGS=""
8754 fi
8755 LIBS="$save_LIBS"
8756 CFLAGS="$save_CFLAGS"
8757fi
8758
8759# We must check for the threads library under a number of different
8760# names; the ordering is very important because some systems
8761# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8762# libraries is broken (non-POSIX).
8763
8764# Create a list of thread flags to try. Items starting with a "-" are
8765# C compiler flags, and other items are library names, except for "none"
8766# which indicates that we try without any flags at all, and "pthread-config"
8767# which is a program returning the flags for the Pth emulation library.
8768
8769ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8770
8771# The ordering *is* (sometimes) important. Some notes on the
8772# individual items follow:
8773
8774# pthreads: AIX (must check this before -lpthread)
8775# none: in case threads are in libc; should be tried before -Kthread and
8776# other compiler flags to prevent continual compiler warnings
8777# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8778# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8779# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8780# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8781# -pthreads: Solaris/gcc
8782# -mthreads: Mingw32/gcc, Lynx/gcc
8783# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8784# doesn't hurt to check since this sometimes defines pthreads too;
8785# also defines -D_REENTRANT)
8786# ... -mt is also the pthreads flag for HP/aCC
8787# pthread: Linux, etcetera
8788# --thread-safe: KAI C++
8789# pthread-config: use pthread-config program (for GNU Pth library)
8790
8791case "${host_cpu}-${host_os}" in
8792 *solaris*)
8793
8794 # On Solaris (at least, for some versions), libc contains stubbed
8795 # (non-functional) versions of the pthreads routines, so link-based
8796 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8797 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8798 # a function called by this macro, so we could check for that, but
8799 # who knows whether they'll stub that too in a future libc.) So,
8800 # we'll just look for -pthreads and -lpthread first:
8801
8802 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8803 ;;
8804
8805 *-darwin*)
8806 ax_pthread_flags="-pthread $ax_pthread_flags"
8807 ;;
8808esac
8809
8810if test x"$ax_pthread_ok" = xno; then
8811for flag in $ax_pthread_flags; do
8812
8813 case $flag in
8814 none)
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8816$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8817 ;;
8818
8819 -*)
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8821$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8822 PTHREAD_CFLAGS="$flag"
8823 ;;
8824
8825 pthread-config)
8826 # Extract the first word of "pthread-config", so it can be a program name with args.
8827set dummy pthread-config; ac_word=$2
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008830if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008831 $as_echo_n "(cached) " >&6
8832else
8833 if test -n "$ax_pthread_config"; then
8834 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8835else
8836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837for as_dir in $PATH
8838do
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_prog_ax_pthread_config="yes"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8846 fi
8847done
8848 done
8849IFS=$as_save_IFS
8850
8851 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8852fi
8853fi
8854ax_pthread_config=$ac_cv_prog_ax_pthread_config
8855if test -n "$ax_pthread_config"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8857$as_echo "$ax_pthread_config" >&6; }
8858else
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860$as_echo "no" >&6; }
8861fi
8862
8863
8864 if test x"$ax_pthread_config" = xno; then continue; fi
8865 PTHREAD_CFLAGS="`pthread-config --cflags`"
8866 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8867 ;;
8868
8869 *)
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8871$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8872 PTHREAD_LIBS="-l$flag"
8873 ;;
8874 esac
8875
8876 save_LIBS="$LIBS"
8877 save_CFLAGS="$CFLAGS"
8878 LIBS="$PTHREAD_LIBS $LIBS"
8879 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8880
8881 # Check for various functions. We must include pthread.h,
8882 # since some functions may be macros. (On the Sequent, we
8883 # need a special flag -Kthread to make this header compile.)
8884 # We check for pthread_join because it is in -lpthread on IRIX
8885 # while pthread_create is in libc. We check for pthread_attr_init
8886 # due to DEC craziness with -lpthreads. We check for
8887 # pthread_cleanup_push because it is one of the few pthread
8888 # functions on Solaris that doesn't have a non-functional libc stub.
8889 # We try pthread_create on general principles.
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891/* end confdefs.h. */
8892#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008893 static void routine(void* a) {a=0;}
8894 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008895int
8896main ()
8897{
8898pthread_t th; pthread_attr_t attr;
8899 pthread_create(&th,0,start_routine,0);
8900 pthread_join(th, 0);
8901 pthread_attr_init(&attr);
8902 pthread_cleanup_push(routine, 0);
8903 pthread_cleanup_pop(0);
8904 ;
8905 return 0;
8906}
8907_ACEOF
8908if ac_fn_c_try_link "$LINENO"; then :
8909 ax_pthread_ok=yes
8910fi
8911rm -f core conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
8913
8914 LIBS="$save_LIBS"
8915 CFLAGS="$save_CFLAGS"
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8918$as_echo "$ax_pthread_ok" >&6; }
8919 if test "x$ax_pthread_ok" = xyes; then
8920 break;
8921 fi
8922
8923 PTHREAD_LIBS=""
8924 PTHREAD_CFLAGS=""
8925done
8926fi
8927
8928# Various other checks:
8929if test "x$ax_pthread_ok" = xyes; then
8930 save_LIBS="$LIBS"
8931 LIBS="$PTHREAD_LIBS $LIBS"
8932 save_CFLAGS="$CFLAGS"
8933 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8934
8935 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8937$as_echo_n "checking for joinable pthread attribute... " >&6; }
8938 attr_name=unknown
8939 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h. */
8942#include <pthread.h>
8943int
8944main ()
8945{
8946int attr=$attr; return attr;
8947 ;
8948 return 0;
8949}
8950_ACEOF
8951if ac_fn_c_try_link "$LINENO"; then :
8952 attr_name=$attr; break
8953fi
8954rm -f core conftest.err conftest.$ac_objext \
8955 conftest$ac_exeext conftest.$ac_ext
8956 done
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8958$as_echo "$attr_name" >&6; }
8959 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8960
8961cat >>confdefs.h <<_ACEOF
8962#define PTHREAD_CREATE_JOINABLE $attr_name
8963_ACEOF
8964
8965 fi
8966
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8968$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8969 flag=no
8970 case "${host_cpu}-${host_os}" in
8971 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8972 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8973 esac
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8975$as_echo "${flag}" >&6; }
8976 if test "x$flag" != xno; then
8977 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8978 fi
8979
8980 LIBS="$save_LIBS"
8981 CFLAGS="$save_CFLAGS"
8982
8983 # More AIX lossage: must compile with xlc_r or cc_r
8984 if test x"$GCC" != xyes; then
8985 for ac_prog in xlc_r cc_r
8986do
8987 # Extract the first word of "$ac_prog", so it can be a program name with args.
8988set dummy $ac_prog; ac_word=$2
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008991if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008992 $as_echo_n "(cached) " >&6
8993else
8994 if test -n "$PTHREAD_CC"; then
8995 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8996else
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9004 ac_cv_prog_PTHREAD_CC="$ac_prog"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9007 fi
9008done
9009 done
9010IFS=$as_save_IFS
9011
9012fi
9013fi
9014PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9015if test -n "$PTHREAD_CC"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9017$as_echo "$PTHREAD_CC" >&6; }
9018else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020$as_echo "no" >&6; }
9021fi
9022
9023
9024 test -n "$PTHREAD_CC" && break
9025done
9026test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9027
9028 else
9029 PTHREAD_CC=$CC
9030 fi
9031else
9032 PTHREAD_CC="$CC"
9033fi
9034
9035
9036
9037
9038
9039# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9040if test x"$ax_pthread_ok" = xyes; then
9041
9042$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9043
9044 :
9045else
9046 ax_pthread_ok=no
9047
9048fi
9049ac_ext=c
9050ac_cpp='$CPP $CPPFLAGS'
9051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9053ac_compiler_gnu=$ac_cv_c_compiler_gnu
9054
9055
9056
9057# Check whether --enable-opencl was given.
9058if test "${enable_opencl+set}" = set; then :
9059 enableval=$enable_opencl; disable_opencl=$enableval
9060else
9061 disable_opencl='yes'
9062fi
9063
9064
9065if test "$disable_opencl" = 'yes'; then
9066 ac_ext=c
9067ac_cpp='$CPP $CPPFLAGS'
9068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9070ac_compiler_gnu=$ac_cv_c_compiler_gnu
9071
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9073$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009074if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009075 $as_echo_n "(cached) " >&6
9076else
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h. */
9079
9080int
9081main ()
9082{
9083#ifndef _MSC_VER
9084 choke me
9085#endif
9086
9087 ;
9088 return 0;
9089}
9090_ACEOF
9091if ac_fn_c_try_compile "$LINENO"; then :
9092 ax_compiler_ms=yes
9093else
9094 ax_compiler_ms=no
9095fi
9096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097ax_cv_c_compiler_ms=$ax_compiler_ms
9098
9099fi
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9101$as_echo "$ax_cv_c_compiler_ms" >&6; }
9102 if test X$ax_compiler_ms = Xno; then :
9103 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9104fi
9105
9106 ax_save_CPPFLAGS=$CPPFLAGS
9107 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9108 for ac_header in CL/cl.h OpenCL/cl.h
9109do :
9110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9111ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009113 cat >>confdefs.h <<_ACEOF
9114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9115_ACEOF
9116
9117fi
9118
9119done
9120
9121 CPPFLAGS=$ax_save_CPPFLAGS
9122
9123 for ac_header in windows.h
9124do :
9125 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009126if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009127 cat >>confdefs.h <<_ACEOF
9128#define HAVE_WINDOWS_H 1
9129_ACEOF
9130
9131fi
9132
9133done
9134
9135
9136
9137
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9139$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009140if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009141 $as_echo_n "(cached) " >&6
9142else
9143 ax_cv_check_cl_libcl=no
9144 case $host_cpu in
9145 x86_64) ax_check_cl_libdir=lib64 ;;
9146 *) ax_check_cl_libdir=lib ;;
9147 esac
9148 ax_save_CPPFLAGS=$CPPFLAGS
9149 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9150 ax_save_LIBS=$LIBS
9151 LIBS=""
9152 ax_check_libs="-lOpenCL -lCL -lclparser"
9153 for ax_lib in $ax_check_libs; do
9154 if test X$ax_compiler_ms = Xyes; then :
9155 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9156else
9157 ax_try_lib=$ax_lib
9158fi
9159 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h. */
9162
9163 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9164 # include <windows.h>
9165 # endif
9166 # ifdef HAVE_CL_CL_H
9167 # include <CL/cl.h>
9168 # elif defined(HAVE_OPENCL_CL_H)
9169 # include <OpenCL/cl.h>
9170 # else
9171 # error no CL.h
9172 # endif
9173int
9174main ()
9175{
9176clCreateContextFromType(0,0,0,0,0)
9177 ;
9178 return 0;
9179}
9180_ACEOF
9181if ac_fn_c_try_link "$LINENO"; then :
9182 ax_cv_check_cl_libcl=$ax_try_lib; break
9183else
9184 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"
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h. */
9187
9188 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9189 # include <windows.h>
9190 # endif
9191 # ifdef HAVE_CL_CL_H
9192 # include <CL/cl.h>
9193 # elif defined(HAVE_OPENCL_CL_H)
9194 # include <OpenCL/cl.h>
9195 # else
9196 # error no CL.h
9197 # endif
9198int
9199main ()
9200{
9201clCreateContextFromType(0,0,0,0,0)
9202 ;
9203 return 0;
9204}
9205_ACEOF
9206if ac_fn_c_try_link "$LINENO"; then :
9207 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9208else
cristy78c5a0c2010-12-04 20:00:59 +00009209 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 +00009210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211/* end confdefs.h. */
9212
9213 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9214 # include <windows.h>
9215 # endif
9216 # ifdef HAVE_CL_CL_H
9217 # include <CL/cl.h>
9218 # elif defined(HAVE_OPENCL_CL_H)
9219 # include <OpenCL/cl.h>
9220 # else
9221 # error no CL.h
9222 # endif
9223int
9224main ()
9225{
9226clCreateContextFromType(0,0,0,0,0)
9227 ;
9228 return 0;
9229}
9230_ACEOF
9231if ac_fn_c_try_link "$LINENO"; then :
9232 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9233fi
9234rm -f core conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236fi
9237rm -f core conftest.err conftest.$ac_objext \
9238 conftest$ac_exeext conftest.$ac_ext
9239fi
9240rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 done
9243
9244 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009245 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247/* end confdefs.h. */
9248
9249 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9250 # include <windows.h>
9251 # endif
9252 # ifdef HAVE_CL_CL_H
9253 # include <CL/cl.h>
9254 # elif defined(HAVE_OPENCL_CL_H)
9255 # include <OpenCL/cl.h>
9256 # else
9257 # error no CL.h
9258 # endif
9259int
9260main ()
9261{
9262clCreateContextFromType(0,0,0,0,0)
9263 ;
9264 return 0;
9265}
9266_ACEOF
9267if ac_fn_c_try_link "$LINENO"; then :
9268 ax_cv_check_cl_libcl=$LIBS
9269fi
9270rm -f core conftest.err conftest.$ac_objext \
9271 conftest$ac_exeext conftest.$ac_ext
9272fi
9273
9274 LIBS=$ax_save_LIBS
9275 CPPFLAGS=$ax_save_CPPFLAGS
9276fi
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9278$as_echo "$ax_cv_check_cl_libcl" >&6; }
9279
9280 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9281 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9282else
9283 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9284$as_echo "#define _OPENCL 1" >>confdefs.h
9285
9286fi
9287 ac_ext=c
9288ac_cpp='$CPP $CPPFLAGS'
9289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291ac_compiler_gnu=$ac_cv_c_compiler_gnu
9292
9293fi
9294
9295
9296
9297
cristyc7083c12009-10-14 03:16:55 +00009298CFLAGS="$CL_CFLAGS $CFLAGS"
9299LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009300
cristy391f1ce2010-09-09 17:23:28 +00009301if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009302 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009303 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9304 fi
cristyfd9dcd42010-08-08 18:07:02 +00009305fi
cristy2e8b51d2009-10-17 18:26:15 +00009306
cristy3ed852e2009-09-05 21:47:34 +00009307########
9308#
9309# Check for large file support
9310#
9311########
9312# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009313if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009314 enableval=$enable_largefile;
9315fi
9316
9317if test "$enable_largefile" != no; then
9318
cristy8b350f62009-11-15 23:12:43 +00009319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009320$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009321if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009322 $as_echo_n "(cached) " >&6
9323else
9324 ac_cv_sys_largefile_CC=no
9325 if test "$GCC" != yes; then
9326 ac_save_CC=$CC
9327 while :; do
9328 # IRIX 6.2 and later do not support large files by default,
9329 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009331/* end confdefs.h. */
9332#include <sys/types.h>
9333 /* Check that off_t can represent 2**63 - 1 correctly.
9334 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9335 since some C++ compilers masquerading as C compilers
9336 incorrectly reject 9223372036854775807. */
9337#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9338 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9339 && LARGE_OFF_T % 2147483647 == 1)
9340 ? 1 : -1];
9341int
9342main ()
9343{
9344
9345 ;
9346 return 0;
9347}
9348_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009349 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009350 break
cristy3ed852e2009-09-05 21:47:34 +00009351fi
cristy3ed852e2009-09-05 21:47:34 +00009352rm -f core conftest.err conftest.$ac_objext
9353 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009354 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009355 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009356fi
cristy3ed852e2009-09-05 21:47:34 +00009357rm -f core conftest.err conftest.$ac_objext
9358 break
9359 done
9360 CC=$ac_save_CC
9361 rm -f conftest.$ac_ext
9362 fi
9363fi
cristy8b350f62009-11-15 23:12:43 +00009364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009365$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9366 if test "$ac_cv_sys_largefile_CC" != no; then
9367 CC=$CC$ac_cv_sys_largefile_CC
9368 fi
9369
cristy8b350f62009-11-15 23:12:43 +00009370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009371$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009372if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009373 $as_echo_n "(cached) " >&6
9374else
9375 while :; do
cristy8b350f62009-11-15 23:12:43 +00009376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009377/* end confdefs.h. */
9378#include <sys/types.h>
9379 /* Check that off_t can represent 2**63 - 1 correctly.
9380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9381 since some C++ compilers masquerading as C compilers
9382 incorrectly reject 9223372036854775807. */
9383#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9385 && LARGE_OFF_T % 2147483647 == 1)
9386 ? 1 : -1];
9387int
9388main ()
9389{
9390
9391 ;
9392 return 0;
9393}
9394_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009395if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009396 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009397fi
cristy3ed852e2009-09-05 21:47:34 +00009398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009400/* end confdefs.h. */
9401#define _FILE_OFFSET_BITS 64
9402#include <sys/types.h>
9403 /* Check that off_t can represent 2**63 - 1 correctly.
9404 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9405 since some C++ compilers masquerading as C compilers
9406 incorrectly reject 9223372036854775807. */
9407#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9408 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9409 && LARGE_OFF_T % 2147483647 == 1)
9410 ? 1 : -1];
9411int
9412main ()
9413{
9414
9415 ;
9416 return 0;
9417}
9418_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009419if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009420 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009421fi
cristy3ed852e2009-09-05 21:47:34 +00009422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9423 ac_cv_sys_file_offset_bits=unknown
9424 break
9425done
9426fi
cristy8b350f62009-11-15 23:12:43 +00009427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009428$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9429case $ac_cv_sys_file_offset_bits in #(
9430 no | unknown) ;;
9431 *)
9432cat >>confdefs.h <<_ACEOF
9433#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9434_ACEOF
9435;;
9436esac
9437rm -rf conftest*
9438 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009440$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009441if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009442 $as_echo_n "(cached) " >&6
9443else
9444 while :; do
cristy8b350f62009-11-15 23:12:43 +00009445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009446/* end confdefs.h. */
9447#include <sys/types.h>
9448 /* Check that off_t can represent 2**63 - 1 correctly.
9449 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9450 since some C++ compilers masquerading as C compilers
9451 incorrectly reject 9223372036854775807. */
9452#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9453 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9454 && LARGE_OFF_T % 2147483647 == 1)
9455 ? 1 : -1];
9456int
9457main ()
9458{
9459
9460 ;
9461 return 0;
9462}
9463_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009464if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009465 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009466fi
cristy3ed852e2009-09-05 21:47:34 +00009467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009469/* end confdefs.h. */
9470#define _LARGE_FILES 1
9471#include <sys/types.h>
9472 /* Check that off_t can represent 2**63 - 1 correctly.
9473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9474 since some C++ compilers masquerading as C compilers
9475 incorrectly reject 9223372036854775807. */
9476#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9478 && LARGE_OFF_T % 2147483647 == 1)
9479 ? 1 : -1];
9480int
9481main ()
9482{
9483
9484 ;
9485 return 0;
9486}
9487_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009488if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009489 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009490fi
cristy3ed852e2009-09-05 21:47:34 +00009491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 ac_cv_sys_large_files=unknown
9493 break
9494done
9495fi
cristy8b350f62009-11-15 23:12:43 +00009496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009497$as_echo "$ac_cv_sys_large_files" >&6; }
9498case $ac_cv_sys_large_files in #(
9499 no | unknown) ;;
9500 *)
9501cat >>confdefs.h <<_ACEOF
9502#define _LARGE_FILES $ac_cv_sys_large_files
9503_ACEOF
9504;;
9505esac
9506rm -rf conftest*
9507 fi
9508fi
9509
cristy8b350f62009-11-15 23:12:43 +00009510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009511$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009512if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009513 $as_echo_n "(cached) " >&6
9514else
9515 while :; do
cristy8b350f62009-11-15 23:12:43 +00009516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009517/* end confdefs.h. */
9518#include <sys/types.h> /* for off_t */
9519 #include <stdio.h>
9520int
9521main ()
9522{
9523int (*fp) (FILE *, off_t, int) = fseeko;
9524 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9525 ;
9526 return 0;
9527}
9528_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009530 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009531fi
cristy8b350f62009-11-15 23:12:43 +00009532rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009535/* end confdefs.h. */
9536#define _LARGEFILE_SOURCE 1
9537#include <sys/types.h> /* for off_t */
9538 #include <stdio.h>
9539int
9540main ()
9541{
9542int (*fp) (FILE *, off_t, int) = fseeko;
9543 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9544 ;
9545 return 0;
9546}
9547_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009548if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009549 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009550fi
cristy8b350f62009-11-15 23:12:43 +00009551rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009553 ac_cv_sys_largefile_source=unknown
9554 break
9555done
9556fi
cristy8b350f62009-11-15 23:12:43 +00009557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009558$as_echo "$ac_cv_sys_largefile_source" >&6; }
9559case $ac_cv_sys_largefile_source in #(
9560 no | unknown) ;;
9561 *)
9562cat >>confdefs.h <<_ACEOF
9563#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9564_ACEOF
9565;;
9566esac
9567rm -rf conftest*
9568
9569# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9570# in glibc 2.1.3, but that breaks too many other things.
9571# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9572if test $ac_cv_sys_largefile_source != unknown; then
9573
cristy8b350f62009-11-15 23:12:43 +00009574$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009575
9576fi
9577
9578LFS_CPPFLAGS=''
9579if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009580 case $ac_cv_sys_file_offset_bits in
9581 no)
9582 # nothing to do here as the host supports LFS fine
9583 ;;
9584 unknown)
cristy8b350f62009-11-15 23:12:43 +00009585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009586$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009587 if test "$cross_compiling" = yes; then :
9588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009590as_fn_error $? "cannot run test program while cross compiling
9591See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009592else
cristy8b350f62009-11-15 23:12:43 +00009593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009595#include <unistd.h>
9596 main () {
9597 exit(!(sizeof(off_t) == 8));
9598 }
cristyda16f162011-02-19 23:52:17 +00009599int
9600main ()
9601{
9602
9603 ;
9604 return 0;
9605}
cristy3ed852e2009-09-05 21:47:34 +00009606_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009607if ac_fn_c_try_run "$LINENO"; then :
9608 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009609
cristy09b53e12011-10-14 12:47:22 +00009610 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9611$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009612else
cristy09b53e12011-10-14 12:47:22 +00009613 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9614$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009615fi
cristy8b350f62009-11-15 23:12:43 +00009616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9617 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009618fi
9619
cristyc1e0cc12011-09-21 16:41:16 +00009620 ;;
9621 *)
9622 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9623 ;;
9624 esac
cristy3ed852e2009-09-05 21:47:34 +00009625 if test "$ac_cv_sys_large_files" != 'no'; then
9626 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9627 fi
9628 if test "$ac_cv_sys_largefile_source" != 'no'; then
9629 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9630 fi
9631fi
9632
9633
9634#
9635# Configure libtool & libltdl
9636#
9637# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009638enable_dlopen=yes
9639
9640
9641
9642case `pwd` in
9643 *\ * | *\ *)
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9645$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9646esac
9647
9648
9649
cristyda16f162011-02-19 23:52:17 +00009650macro_version='2.4'
9651macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665ltmain="$ac_aux_dir/ltmain.sh"
9666
cristy0c60a692010-11-04 01:09:47 +00009667# Backslashify metacharacters that are still active within
9668# double-quoted strings.
9669sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9670
9671# Same as above, but do not quote variable references.
9672double_quote_subst='s/\(["`\\]\)/\\\1/g'
9673
9674# Sed substitution to delay expansion of an escaped shell variable in a
9675# double_quote_subst'ed string.
9676delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9677
9678# Sed substitution to delay expansion of an escaped single quote.
9679delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9680
9681# Sed substitution to avoid accidental globbing in evaled expressions
9682no_glob_subst='s/\*/\\\*/g'
9683
cristy73bd4a52010-10-05 11:24:23 +00009684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9685$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009686if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009687 $as_echo_n "(cached) " >&6
9688else
9689 if test -n "$NM"; then
9690 # Let the user override the test.
9691 lt_cv_path_NM="$NM"
9692else
9693 lt_nm_to_check="${ac_tool_prefix}nm"
9694 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9695 lt_nm_to_check="$lt_nm_to_check nm"
9696 fi
9697 for lt_tmp_nm in $lt_nm_to_check; do
9698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9699 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9700 IFS="$lt_save_ifs"
9701 test -z "$ac_dir" && ac_dir=.
9702 tmp_nm="$ac_dir/$lt_tmp_nm"
9703 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9704 # Check to see if the nm accepts a BSD-compat flag.
9705 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9706 # nm: unknown option "B" ignored
9707 # Tru64's nm complains that /dev/null is an invalid object file
9708 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9709 */dev/null* | *'Invalid file or object type'*)
9710 lt_cv_path_NM="$tmp_nm -B"
9711 break
9712 ;;
9713 *)
9714 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9715 */dev/null*)
9716 lt_cv_path_NM="$tmp_nm -p"
9717 break
9718 ;;
9719 *)
9720 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9721 continue # so that we can try to find one that supports BSD flags
9722 ;;
9723 esac
9724 ;;
9725 esac
9726 fi
9727 done
9728 IFS="$lt_save_ifs"
9729 done
9730 : ${lt_cv_path_NM=no}
9731fi
9732fi
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9734$as_echo "$lt_cv_path_NM" >&6; }
9735if test "$lt_cv_path_NM" != "no"; then
9736 NM="$lt_cv_path_NM"
9737else
9738 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009739 if test -n "$DUMPBIN"; then :
9740 # Let the user override the test.
9741 else
9742 if test -n "$ac_tool_prefix"; then
9743 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009744 do
9745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9746set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009749if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009750 $as_echo_n "(cached) " >&6
9751else
9752 if test -n "$DUMPBIN"; then
9753 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9754else
9755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756for as_dir in $PATH
9757do
9758 IFS=$as_save_IFS
9759 test -z "$as_dir" && as_dir=.
9760 for ac_exec_ext in '' $ac_executable_extensions; do
9761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9762 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9764 break 2
9765 fi
9766done
9767 done
9768IFS=$as_save_IFS
9769
9770fi
9771fi
9772DUMPBIN=$ac_cv_prog_DUMPBIN
9773if test -n "$DUMPBIN"; then
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9775$as_echo "$DUMPBIN" >&6; }
9776else
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778$as_echo "no" >&6; }
9779fi
9780
9781
9782 test -n "$DUMPBIN" && break
9783 done
9784fi
9785if test -z "$DUMPBIN"; then
9786 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009787 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009788do
9789 # Extract the first word of "$ac_prog", so it can be a program name with args.
9790set dummy $ac_prog; ac_word=$2
9791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009793if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009794 $as_echo_n "(cached) " >&6
9795else
9796 if test -n "$ac_ct_DUMPBIN"; then
9797 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9798else
9799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9800for as_dir in $PATH
9801do
9802 IFS=$as_save_IFS
9803 test -z "$as_dir" && as_dir=.
9804 for ac_exec_ext in '' $ac_executable_extensions; do
9805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9806 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9808 break 2
9809 fi
9810done
9811 done
9812IFS=$as_save_IFS
9813
9814fi
9815fi
9816ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9817if test -n "$ac_ct_DUMPBIN"; then
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9819$as_echo "$ac_ct_DUMPBIN" >&6; }
9820else
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822$as_echo "no" >&6; }
9823fi
9824
9825
9826 test -n "$ac_ct_DUMPBIN" && break
9827done
9828
9829 if test "x$ac_ct_DUMPBIN" = x; then
9830 DUMPBIN=":"
9831 else
9832 case $cross_compiling:$ac_tool_warned in
9833yes:)
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9836ac_tool_warned=yes ;;
9837esac
9838 DUMPBIN=$ac_ct_DUMPBIN
9839 fi
9840fi
9841
cristy0c60a692010-11-04 01:09:47 +00009842 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9843 *COFF*)
9844 DUMPBIN="$DUMPBIN -symbols"
9845 ;;
9846 *)
9847 DUMPBIN=:
9848 ;;
9849 esac
9850 fi
cristy73bd4a52010-10-05 11:24:23 +00009851
9852 if test "$DUMPBIN" != ":"; then
9853 NM="$DUMPBIN"
9854 fi
9855fi
9856test -z "$NM" && NM=nm
9857
9858
9859
9860
9861
9862
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9864$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009865if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009866 $as_echo_n "(cached) " >&6
9867else
9868 lt_cv_nm_interface="BSD nm"
9869 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009870 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009871 (eval "$ac_compile" 2>conftest.err)
9872 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009873 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009874 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9875 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009876 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009877 cat conftest.out >&5
9878 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9879 lt_cv_nm_interface="MS dumpbin"
9880 fi
9881 rm -f conftest*
9882fi
9883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9884$as_echo "$lt_cv_nm_interface" >&6; }
9885
9886# find the maximum length of command line arguments
9887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9888$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009889if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009890 $as_echo_n "(cached) " >&6
9891else
9892 i=0
9893 teststring="ABCD"
9894
9895 case $build_os in
9896 msdosdjgpp*)
9897 # On DJGPP, this test can blow up pretty badly due to problems in libc
9898 # (any single argument exceeding 2000 bytes causes a buffer overrun
9899 # during glob expansion). Even if it were fixed, the result of this
9900 # check would be larger than it should be.
9901 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9902 ;;
9903
9904 gnu*)
9905 # Under GNU Hurd, this test is not required because there is
9906 # no limit to the length of command line arguments.
9907 # Libtool will interpret -1 as no limit whatsoever
9908 lt_cv_sys_max_cmd_len=-1;
9909 ;;
9910
9911 cygwin* | mingw* | cegcc*)
9912 # On Win9x/ME, this test blows up -- it succeeds, but takes
9913 # about 5 minutes as the teststring grows exponentially.
9914 # Worse, since 9x/ME are not pre-emptively multitasking,
9915 # you end up with a "frozen" computer, even though with patience
9916 # the test eventually succeeds (with a max line length of 256k).
9917 # Instead, let's just punt: use the minimum linelength reported by
9918 # all of the supported platforms: 8192 (on NT/2K/XP).
9919 lt_cv_sys_max_cmd_len=8192;
9920 ;;
9921
cristy0c60a692010-11-04 01:09:47 +00009922 mint*)
9923 # On MiNT this can take a long time and run out of memory.
9924 lt_cv_sys_max_cmd_len=8192;
9925 ;;
9926
cristy73bd4a52010-10-05 11:24:23 +00009927 amigaos*)
9928 # On AmigaOS with pdksh, this test takes hours, literally.
9929 # So we just punt and use a minimum line length of 8192.
9930 lt_cv_sys_max_cmd_len=8192;
9931 ;;
9932
9933 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9934 # This has been around since 386BSD, at least. Likely further.
9935 if test -x /sbin/sysctl; then
9936 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9937 elif test -x /usr/sbin/sysctl; then
9938 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9939 else
9940 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9941 fi
9942 # And add a safety zone
9943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9945 ;;
9946
9947 interix*)
9948 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9949 lt_cv_sys_max_cmd_len=196608
9950 ;;
9951
9952 osf*)
9953 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9954 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9955 # nice to cause kernel panics so lets avoid the loop below.
9956 # First set a reasonable default.
9957 lt_cv_sys_max_cmd_len=16384
9958 #
9959 if test -x /sbin/sysconfig; then
9960 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9961 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9962 esac
9963 fi
9964 ;;
9965 sco3.2v5*)
9966 lt_cv_sys_max_cmd_len=102400
9967 ;;
9968 sysv5* | sco5v6* | sysv4.2uw2*)
9969 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9970 if test -n "$kargmax"; then
9971 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9972 else
9973 lt_cv_sys_max_cmd_len=32768
9974 fi
9975 ;;
9976 *)
9977 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9978 if test -n "$lt_cv_sys_max_cmd_len"; then
9979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9981 else
9982 # Make teststring a little bigger before we do anything with it.
9983 # a 1K string should be a reasonable start.
9984 for i in 1 2 3 4 5 6 7 8 ; do
9985 teststring=$teststring$teststring
9986 done
9987 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9988 # If test is not a shell built-in, we'll probably end up computing a
9989 # maximum length that is only half of the actual maximum length, but
9990 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009991 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9992 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009993 test $i != 17 # 1/2 MB should be enough
9994 do
9995 i=`expr $i + 1`
9996 teststring=$teststring$teststring
9997 done
9998 # Only check the string length outside the loop.
9999 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10000 teststring=
10001 # Add a significant safety factor because C++ compilers can tack on
10002 # massive amounts of additional arguments before passing them to the
10003 # linker. It appears as though 1/2 is a usable value.
10004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10005 fi
10006 ;;
10007 esac
10008
10009fi
10010
10011if test -n $lt_cv_sys_max_cmd_len ; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10013$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10014else
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10016$as_echo "none" >&6; }
10017fi
10018max_cmd_len=$lt_cv_sys_max_cmd_len
10019
10020
10021
10022
10023
10024
10025: ${CP="cp -f"}
10026: ${MV="mv -f"}
10027: ${RM="rm -f"}
10028
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10030$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10031# Try some XSI features
10032xsi_shell=no
10033( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010034 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10035 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010036 && eval 'test $(( 1 + 1 )) -eq 2 \
10037 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10038 && xsi_shell=yes
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10040$as_echo "$xsi_shell" >&6; }
10041
10042
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10044$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10045lt_shell_append=no
10046( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10047 >/dev/null 2>&1 \
10048 && lt_shell_append=yes
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10050$as_echo "$lt_shell_append" >&6; }
10051
10052
10053if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10054 lt_unset=unset
10055else
10056 lt_unset=false
10057fi
10058
10059
10060
10061
10062
10063# test EBCDIC or ASCII
10064case `echo X|tr X '\101'` in
10065 A) # ASCII based system
10066 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10067 lt_SP2NL='tr \040 \012'
10068 lt_NL2SP='tr \015\012 \040\040'
10069 ;;
10070 *) # EBCDIC based system
10071 lt_SP2NL='tr \100 \n'
10072 lt_NL2SP='tr \r\n \100\100'
10073 ;;
10074esac
10075
10076
10077
10078
10079
10080
10081
10082
10083
cristyda16f162011-02-19 23:52:17 +000010084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10085$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10086if ${lt_cv_to_host_file_cmd+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088else
10089 case $host in
10090 *-*-mingw* )
10091 case $build in
10092 *-*-mingw* ) # actually msys
10093 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10094 ;;
10095 *-*-cygwin* )
10096 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10097 ;;
10098 * ) # otherwise, assume *nix
10099 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10100 ;;
10101 esac
10102 ;;
10103 *-*-cygwin* )
10104 case $build in
10105 *-*-mingw* ) # actually msys
10106 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10107 ;;
10108 *-*-cygwin* )
10109 lt_cv_to_host_file_cmd=func_convert_file_noop
10110 ;;
10111 * ) # otherwise, assume *nix
10112 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10113 ;;
10114 esac
10115 ;;
10116 * ) # unhandled hosts (and "normal" native builds)
10117 lt_cv_to_host_file_cmd=func_convert_file_noop
10118 ;;
10119esac
10120
10121fi
10122
10123to_host_file_cmd=$lt_cv_to_host_file_cmd
10124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10125$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10126
10127
10128
10129
10130
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10132$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10133if ${lt_cv_to_tool_file_cmd+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135else
10136 #assume ordinary cross tools, or native build.
10137lt_cv_to_tool_file_cmd=func_convert_file_noop
10138case $host in
10139 *-*-mingw* )
10140 case $build in
10141 *-*-mingw* ) # actually msys
10142 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10143 ;;
10144 esac
10145 ;;
10146esac
10147
10148fi
10149
10150to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10152$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10153
10154
10155
10156
10157
cristy73bd4a52010-10-05 11:24:23 +000010158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10159$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010160if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010161 $as_echo_n "(cached) " >&6
10162else
10163 lt_cv_ld_reload_flag='-r'
10164fi
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10166$as_echo "$lt_cv_ld_reload_flag" >&6; }
10167reload_flag=$lt_cv_ld_reload_flag
10168case $reload_flag in
10169"" | " "*) ;;
10170*) reload_flag=" $reload_flag" ;;
10171esac
10172reload_cmds='$LD$reload_flag -o $output$reload_objs'
10173case $host_os in
cristyda16f162011-02-19 23:52:17 +000010174 cygwin* | mingw* | pw32* | cegcc*)
10175 if test "$GCC" != yes; then
10176 reload_cmds=false
10177 fi
10178 ;;
cristy73bd4a52010-10-05 11:24:23 +000010179 darwin*)
10180 if test "$GCC" = yes; then
10181 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10182 else
10183 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10184 fi
10185 ;;
10186esac
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196if test -n "$ac_tool_prefix"; then
10197 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10198set dummy ${ac_tool_prefix}objdump; ac_word=$2
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010201if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010202 $as_echo_n "(cached) " >&6
10203else
10204 if test -n "$OBJDUMP"; then
10205 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10206else
10207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208for as_dir in $PATH
10209do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218done
10219 done
10220IFS=$as_save_IFS
10221
10222fi
10223fi
10224OBJDUMP=$ac_cv_prog_OBJDUMP
10225if test -n "$OBJDUMP"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10227$as_echo "$OBJDUMP" >&6; }
10228else
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230$as_echo "no" >&6; }
10231fi
10232
10233
10234fi
10235if test -z "$ac_cv_prog_OBJDUMP"; then
10236 ac_ct_OBJDUMP=$OBJDUMP
10237 # Extract the first word of "objdump", so it can be a program name with args.
10238set dummy objdump; ac_word=$2
10239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010241if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010242 $as_echo_n "(cached) " >&6
10243else
10244 if test -n "$ac_ct_OBJDUMP"; then
10245 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10246else
10247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248for as_dir in $PATH
10249do
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10256 break 2
10257 fi
10258done
10259 done
10260IFS=$as_save_IFS
10261
10262fi
10263fi
10264ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10265if test -n "$ac_ct_OBJDUMP"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10267$as_echo "$ac_ct_OBJDUMP" >&6; }
10268else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270$as_echo "no" >&6; }
10271fi
10272
10273 if test "x$ac_ct_OBJDUMP" = x; then
10274 OBJDUMP="false"
10275 else
10276 case $cross_compiling:$ac_tool_warned in
10277yes:)
10278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10280ac_tool_warned=yes ;;
10281esac
10282 OBJDUMP=$ac_ct_OBJDUMP
10283 fi
10284else
10285 OBJDUMP="$ac_cv_prog_OBJDUMP"
10286fi
10287
10288test -z "$OBJDUMP" && OBJDUMP=objdump
10289
10290
10291
10292
10293
10294
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10296$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010297if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010298 $as_echo_n "(cached) " >&6
10299else
10300 lt_cv_file_magic_cmd='$MAGIC_CMD'
10301lt_cv_file_magic_test_file=
10302lt_cv_deplibs_check_method='unknown'
10303# Need to set the preceding variable on all platforms that support
10304# interlibrary dependencies.
10305# 'none' -- dependencies not supported.
10306# `unknown' -- same as none, but documents that we really don't know.
10307# 'pass_all' -- all dependencies passed with no checks.
10308# 'test_compile' -- check by making test program.
10309# 'file_magic [[regex]]' -- check by looking for files in library path
10310# which responds to the $file_magic_cmd with a given extended regex.
10311# If you have `file' or equivalent on your system and you're not sure
10312# whether `pass_all' will *always* work, you probably want this one.
10313
10314case $host_os in
10315aix[4-9]*)
10316 lt_cv_deplibs_check_method=pass_all
10317 ;;
10318
10319beos*)
10320 lt_cv_deplibs_check_method=pass_all
10321 ;;
10322
10323bsdi[45]*)
10324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10325 lt_cv_file_magic_cmd='/usr/bin/file -L'
10326 lt_cv_file_magic_test_file=/shlib/libc.so
10327 ;;
10328
10329cygwin*)
10330 # func_win32_libid is a shell function defined in ltmain.sh
10331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10332 lt_cv_file_magic_cmd='func_win32_libid'
10333 ;;
10334
10335mingw* | pw32*)
10336 # Base MSYS/MinGW do not provide the 'file' command needed by
10337 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10338 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010339 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10340 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010341 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10342 lt_cv_file_magic_cmd='func_win32_libid'
10343 else
cristy0c60a692010-11-04 01:09:47 +000010344 # Keep this pattern in sync with the one in func_win32_libid.
10345 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 +000010346 lt_cv_file_magic_cmd='$OBJDUMP -f'
10347 fi
10348 ;;
10349
cristy0c60a692010-11-04 01:09:47 +000010350cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010351 # use the weaker test based on 'objdump'. See mingw*.
10352 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10353 lt_cv_file_magic_cmd='$OBJDUMP -f'
10354 ;;
10355
10356darwin* | rhapsody*)
10357 lt_cv_deplibs_check_method=pass_all
10358 ;;
10359
10360freebsd* | dragonfly*)
10361 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10362 case $host_cpu in
10363 i*86 )
10364 # Not sure whether the presence of OpenBSD here was a mistake.
10365 # Let's accept both of them until this is cleared up.
10366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10367 lt_cv_file_magic_cmd=/usr/bin/file
10368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10369 ;;
10370 esac
10371 else
10372 lt_cv_deplibs_check_method=pass_all
10373 fi
10374 ;;
10375
10376gnu*)
10377 lt_cv_deplibs_check_method=pass_all
10378 ;;
10379
cristy0c60a692010-11-04 01:09:47 +000010380haiku*)
10381 lt_cv_deplibs_check_method=pass_all
10382 ;;
10383
cristy73bd4a52010-10-05 11:24:23 +000010384hpux10.20* | hpux11*)
10385 lt_cv_file_magic_cmd=/usr/bin/file
10386 case $host_cpu in
10387 ia64*)
10388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10389 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10390 ;;
10391 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010392 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 +000010393 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10394 ;;
10395 *)
cristy0c60a692010-11-04 01:09:47 +000010396 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 +000010397 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10398 ;;
10399 esac
10400 ;;
10401
10402interix[3-9]*)
10403 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10405 ;;
10406
10407irix5* | irix6* | nonstopux*)
10408 case $LD in
10409 *-32|*"-32 ") libmagic=32-bit;;
10410 *-n32|*"-n32 ") libmagic=N32;;
10411 *-64|*"-64 ") libmagic=64-bit;;
10412 *) libmagic=never-match;;
10413 esac
10414 lt_cv_deplibs_check_method=pass_all
10415 ;;
10416
10417# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010418linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010419 lt_cv_deplibs_check_method=pass_all
10420 ;;
10421
10422netbsd*)
10423 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10425 else
10426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10427 fi
10428 ;;
10429
10430newos6*)
10431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10432 lt_cv_file_magic_cmd=/usr/bin/file
10433 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10434 ;;
10435
10436*nto* | *qnx*)
10437 lt_cv_deplibs_check_method=pass_all
10438 ;;
10439
10440openbsd*)
10441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10443 else
10444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10445 fi
10446 ;;
10447
10448osf3* | osf4* | osf5*)
10449 lt_cv_deplibs_check_method=pass_all
10450 ;;
10451
10452rdos*)
10453 lt_cv_deplibs_check_method=pass_all
10454 ;;
10455
10456solaris*)
10457 lt_cv_deplibs_check_method=pass_all
10458 ;;
10459
10460sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10461 lt_cv_deplibs_check_method=pass_all
10462 ;;
10463
10464sysv4 | sysv4.3*)
10465 case $host_vendor in
10466 motorola)
10467 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]'
10468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10469 ;;
10470 ncr)
10471 lt_cv_deplibs_check_method=pass_all
10472 ;;
10473 sequent)
10474 lt_cv_file_magic_cmd='/bin/file'
10475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10476 ;;
10477 sni)
10478 lt_cv_file_magic_cmd='/bin/file'
10479 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10480 lt_cv_file_magic_test_file=/lib/libc.so
10481 ;;
10482 siemens)
10483 lt_cv_deplibs_check_method=pass_all
10484 ;;
10485 pc)
10486 lt_cv_deplibs_check_method=pass_all
10487 ;;
10488 esac
10489 ;;
10490
10491tpf*)
10492 lt_cv_deplibs_check_method=pass_all
10493 ;;
10494esac
10495
10496fi
10497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10498$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010499
10500file_magic_glob=
10501want_nocaseglob=no
10502if test "$build" = "$host"; then
10503 case $host_os in
10504 mingw* | pw32*)
10505 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10506 want_nocaseglob=yes
10507 else
10508 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10509 fi
10510 ;;
10511 esac
10512fi
10513
cristy73bd4a52010-10-05 11:24:23 +000010514file_magic_cmd=$lt_cv_file_magic_cmd
10515deplibs_check_method=$lt_cv_deplibs_check_method
10516test -z "$deplibs_check_method" && deplibs_check_method=unknown
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
cristyda16f162011-02-19 23:52:17 +000010529
10530
10531
10532
10533
10534
10535
10536
10537
10538
cristy73bd4a52010-10-05 11:24:23 +000010539if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010540 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10541set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010544if ${ac_cv_prog_DLLTOOL+:} false; then :
10545 $as_echo_n "(cached) " >&6
10546else
10547 if test -n "$DLLTOOL"; then
10548 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10549else
10550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551for as_dir in $PATH
10552do
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
10555 for ac_exec_ext in '' $ac_executable_extensions; do
10556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10557 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559 break 2
10560 fi
10561done
10562 done
10563IFS=$as_save_IFS
10564
10565fi
10566fi
10567DLLTOOL=$ac_cv_prog_DLLTOOL
10568if test -n "$DLLTOOL"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10570$as_echo "$DLLTOOL" >&6; }
10571else
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
10574fi
10575
10576
10577fi
10578if test -z "$ac_cv_prog_DLLTOOL"; then
10579 ac_ct_DLLTOOL=$DLLTOOL
10580 # Extract the first word of "dlltool", so it can be a program name with args.
10581set dummy dlltool; ac_word=$2
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583$as_echo_n "checking for $ac_word... " >&6; }
10584if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586else
10587 if test -n "$ac_ct_DLLTOOL"; then
10588 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10589else
10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10597 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601done
10602 done
10603IFS=$as_save_IFS
10604
10605fi
10606fi
10607ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10608if test -n "$ac_ct_DLLTOOL"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10610$as_echo "$ac_ct_DLLTOOL" >&6; }
10611else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613$as_echo "no" >&6; }
10614fi
10615
10616 if test "x$ac_ct_DLLTOOL" = x; then
10617 DLLTOOL="false"
10618 else
10619 case $cross_compiling:$ac_tool_warned in
10620yes:)
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10623ac_tool_warned=yes ;;
10624esac
10625 DLLTOOL=$ac_ct_DLLTOOL
10626 fi
10627else
10628 DLLTOOL="$ac_cv_prog_DLLTOOL"
10629fi
10630
10631test -z "$DLLTOOL" && DLLTOOL=dlltool
10632
10633
10634
10635
10636
10637
10638
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10640$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10641if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10642 $as_echo_n "(cached) " >&6
10643else
10644 lt_cv_sharedlib_from_linklib_cmd='unknown'
10645
10646case $host_os in
10647cygwin* | mingw* | pw32* | cegcc*)
10648 # two different shell functions defined in ltmain.sh
10649 # decide which to use based on capabilities of $DLLTOOL
10650 case `$DLLTOOL --help 2>&1` in
10651 *--identify-strict*)
10652 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10653 ;;
10654 *)
10655 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10656 ;;
10657 esac
10658 ;;
10659*)
10660 # fallback: assume linklib IS sharedlib
10661 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10662 ;;
10663esac
10664
10665fi
10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10667$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10668sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10669test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10670
10671
10672
10673
10674
10675
10676
10677if test -n "$ac_tool_prefix"; then
10678 for ac_prog in ar
10679 do
10680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10681set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683$as_echo_n "checking for $ac_word... " >&6; }
10684if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010685 $as_echo_n "(cached) " >&6
10686else
10687 if test -n "$AR"; then
10688 ac_cv_prog_AR="$AR" # Let the user override the test.
10689else
10690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
10692do
10693 IFS=$as_save_IFS
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 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 +000010697 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 break 2
10700 fi
10701done
10702 done
10703IFS=$as_save_IFS
10704
10705fi
10706fi
10707AR=$ac_cv_prog_AR
10708if test -n "$AR"; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10710$as_echo "$AR" >&6; }
10711else
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713$as_echo "no" >&6; }
10714fi
10715
10716
cristyda16f162011-02-19 23:52:17 +000010717 test -n "$AR" && break
10718 done
cristy73bd4a52010-10-05 11:24:23 +000010719fi
cristyda16f162011-02-19 23:52:17 +000010720if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010721 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010722 for ac_prog in ar
10723do
10724 # Extract the first word of "$ac_prog", so it can be a program name with args.
10725set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10727$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010728if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010729 $as_echo_n "(cached) " >&6
10730else
10731 if test -n "$ac_ct_AR"; then
10732 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10733else
10734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735for as_dir in $PATH
10736do
10737 IFS=$as_save_IFS
10738 test -z "$as_dir" && as_dir=.
10739 for ac_exec_ext in '' $ac_executable_extensions; do
10740 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 +000010741 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10743 break 2
10744 fi
10745done
10746 done
10747IFS=$as_save_IFS
10748
10749fi
10750fi
10751ac_ct_AR=$ac_cv_prog_ac_ct_AR
10752if test -n "$ac_ct_AR"; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10754$as_echo "$ac_ct_AR" >&6; }
10755else
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757$as_echo "no" >&6; }
10758fi
10759
cristyda16f162011-02-19 23:52:17 +000010760
10761 test -n "$ac_ct_AR" && break
10762done
10763
cristy73bd4a52010-10-05 11:24:23 +000010764 if test "x$ac_ct_AR" = x; then
10765 AR="false"
10766 else
10767 case $cross_compiling:$ac_tool_warned in
10768yes:)
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10771ac_tool_warned=yes ;;
10772esac
10773 AR=$ac_ct_AR
10774 fi
cristy73bd4a52010-10-05 11:24:23 +000010775fi
10776
cristyda16f162011-02-19 23:52:17 +000010777: ${AR=ar}
10778: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
cristyda16f162011-02-19 23:52:17 +000010790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10791$as_echo_n "checking for archiver @FILE support... " >&6; }
10792if ${lt_cv_ar_at_file+:} false; then :
10793 $as_echo_n "(cached) " >&6
10794else
10795 lt_cv_ar_at_file=no
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h. */
10798
10799int
10800main ()
10801{
10802
10803 ;
10804 return 0;
10805}
10806_ACEOF
10807if ac_fn_c_try_compile "$LINENO"; then :
10808 echo conftest.$ac_objext > conftest.lst
10809 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10811 (eval $lt_ar_try) 2>&5
10812 ac_status=$?
10813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10814 test $ac_status = 0; }
10815 if test "$ac_status" -eq 0; then
10816 # Ensure the archiver fails upon bogus file names.
10817 rm -f conftest.$ac_objext libconftest.a
10818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10819 (eval $lt_ar_try) 2>&5
10820 ac_status=$?
10821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10822 test $ac_status = 0; }
10823 if test "$ac_status" -ne 0; then
10824 lt_cv_ar_at_file=@
10825 fi
10826 fi
10827 rm -f conftest.* libconftest.a
10828
10829fi
10830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831
10832fi
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10834$as_echo "$lt_cv_ar_at_file" >&6; }
10835
10836if test "x$lt_cv_ar_at_file" = xno; then
10837 archiver_list_spec=
10838else
10839 archiver_list_spec=$lt_cv_ar_at_file
10840fi
10841
10842
10843
10844
10845
10846
10847
cristy73bd4a52010-10-05 11:24:23 +000010848if test -n "$ac_tool_prefix"; then
10849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10850set dummy ${ac_tool_prefix}strip; ac_word=$2
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010853if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010854 $as_echo_n "(cached) " >&6
10855else
10856 if test -n "$STRIP"; then
10857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10858else
10859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860for as_dir in $PATH
10861do
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10869 fi
10870done
10871 done
10872IFS=$as_save_IFS
10873
10874fi
10875fi
10876STRIP=$ac_cv_prog_STRIP
10877if test -n "$STRIP"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10879$as_echo "$STRIP" >&6; }
10880else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882$as_echo "no" >&6; }
10883fi
10884
10885
10886fi
10887if test -z "$ac_cv_prog_STRIP"; then
10888 ac_ct_STRIP=$STRIP
10889 # Extract the first word of "strip", so it can be a program name with args.
10890set dummy strip; ac_word=$2
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010893if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010894 $as_echo_n "(cached) " >&6
10895else
10896 if test -n "$ac_ct_STRIP"; then
10897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10898else
10899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10900for as_dir in $PATH
10901do
10902 IFS=$as_save_IFS
10903 test -z "$as_dir" && as_dir=.
10904 for ac_exec_ext in '' $ac_executable_extensions; do
10905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10906 ac_cv_prog_ac_ct_STRIP="strip"
10907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10908 break 2
10909 fi
10910done
10911 done
10912IFS=$as_save_IFS
10913
10914fi
10915fi
10916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10917if test -n "$ac_ct_STRIP"; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10919$as_echo "$ac_ct_STRIP" >&6; }
10920else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922$as_echo "no" >&6; }
10923fi
10924
10925 if test "x$ac_ct_STRIP" = x; then
10926 STRIP=":"
10927 else
10928 case $cross_compiling:$ac_tool_warned in
10929yes:)
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10932ac_tool_warned=yes ;;
10933esac
10934 STRIP=$ac_ct_STRIP
10935 fi
10936else
10937 STRIP="$ac_cv_prog_STRIP"
10938fi
10939
10940test -z "$STRIP" && STRIP=:
10941
10942
10943
10944
10945
10946
10947if test -n "$ac_tool_prefix"; then
10948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10949set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010952if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010953 $as_echo_n "(cached) " >&6
10954else
10955 if test -n "$RANLIB"; then
10956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10957else
10958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959for as_dir in $PATH
10960do
10961 IFS=$as_save_IFS
10962 test -z "$as_dir" && as_dir=.
10963 for ac_exec_ext in '' $ac_executable_extensions; do
10964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10965 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10967 break 2
10968 fi
10969done
10970 done
10971IFS=$as_save_IFS
10972
10973fi
10974fi
10975RANLIB=$ac_cv_prog_RANLIB
10976if test -n "$RANLIB"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10978$as_echo "$RANLIB" >&6; }
10979else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981$as_echo "no" >&6; }
10982fi
10983
10984
10985fi
10986if test -z "$ac_cv_prog_RANLIB"; then
10987 ac_ct_RANLIB=$RANLIB
10988 # Extract the first word of "ranlib", so it can be a program name with args.
10989set dummy ranlib; ac_word=$2
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10991$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010992if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010993 $as_echo_n "(cached) " >&6
10994else
10995 if test -n "$ac_ct_RANLIB"; then
10996 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10997else
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11005 ac_cv_prog_ac_ct_RANLIB="ranlib"
11006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010 done
11011IFS=$as_save_IFS
11012
11013fi
11014fi
11015ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11016if test -n "$ac_ct_RANLIB"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11018$as_echo "$ac_ct_RANLIB" >&6; }
11019else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021$as_echo "no" >&6; }
11022fi
11023
11024 if test "x$ac_ct_RANLIB" = x; then
11025 RANLIB=":"
11026 else
11027 case $cross_compiling:$ac_tool_warned in
11028yes:)
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11031ac_tool_warned=yes ;;
11032esac
11033 RANLIB=$ac_ct_RANLIB
11034 fi
11035else
11036 RANLIB="$ac_cv_prog_RANLIB"
11037fi
11038
11039test -z "$RANLIB" && RANLIB=:
11040
11041
11042
11043
11044
11045
11046# Determine commands to create old-style static archives.
11047old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11048old_postinstall_cmds='chmod 644 $oldlib'
11049old_postuninstall_cmds=
11050
11051if test -n "$RANLIB"; then
11052 case $host_os in
11053 openbsd*)
11054 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11055 ;;
11056 *)
11057 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11058 ;;
11059 esac
11060 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11061fi
11062
cristy0c60a692010-11-04 01:09:47 +000011063case $host_os in
11064 darwin*)
11065 lock_old_archive_extraction=yes ;;
11066 *)
11067 lock_old_archive_extraction=no ;;
11068esac
11069
11070
11071
11072
11073
11074
cristy73bd4a52010-10-05 11:24:23 +000011075
11076
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# If no C compiler was specified, use CC.
11109LTCC=${LTCC-"$CC"}
11110
11111# If no C compiler flags were specified, use CFLAGS.
11112LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11113
11114# Allow CC to be a program name with arguments.
11115compiler=$CC
11116
11117
11118# Check for command to grab the raw symbol name followed by C symbol from nm.
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11120$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011121if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011122 $as_echo_n "(cached) " >&6
11123else
11124
11125# These are sane defaults that work on at least a few old systems.
11126# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11127
11128# Character class describing NM global symbol codes.
11129symcode='[BCDEGRST]'
11130
11131# Regexp to match symbols that can be accessed directly from C.
11132sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11133
11134# Define system-specific variables.
11135case $host_os in
11136aix*)
11137 symcode='[BCDT]'
11138 ;;
11139cygwin* | mingw* | pw32* | cegcc*)
11140 symcode='[ABCDGISTW]'
11141 ;;
11142hpux*)
11143 if test "$host_cpu" = ia64; then
11144 symcode='[ABCDEGRST]'
11145 fi
11146 ;;
11147irix* | nonstopux*)
11148 symcode='[BCDEGRST]'
11149 ;;
11150osf*)
11151 symcode='[BCDEGQRST]'
11152 ;;
11153solaris*)
11154 symcode='[BDRT]'
11155 ;;
11156sco3.2v5*)
11157 symcode='[DT]'
11158 ;;
11159sysv4.2uw2*)
11160 symcode='[DT]'
11161 ;;
11162sysv5* | sco5v6* | unixware* | OpenUNIX*)
11163 symcode='[ABDT]'
11164 ;;
11165sysv4)
11166 symcode='[DFNSTU]'
11167 ;;
11168esac
11169
11170# If we're using GNU nm, then use its standard symbol codes.
11171case `$NM -V 2>&1` in
11172*GNU* | *'with BFD'*)
11173 symcode='[ABCDGIRSTW]' ;;
11174esac
11175
11176# Transform an extracted symbol line into a proper C declaration.
11177# Some systems (esp. on ia64) link data and code symbols differently,
11178# so use this general approach.
11179lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11180
11181# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011182lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11183lt_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 +000011184
11185# Handle CRLF in mingw tool chain
11186opt_cr=
11187case $build_os in
11188mingw*)
11189 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11190 ;;
11191esac
11192
11193# Try without a prefix underscore, then with it.
11194for ac_symprfx in "" "_"; do
11195
11196 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11197 symxfrm="\\1 $ac_symprfx\\2 \\2"
11198
11199 # Write the raw and C identifiers.
11200 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11201 # Fake it for dumpbin and say T for any non-static function
11202 # and D for any global variable.
11203 # Also find C++ and __fastcall symbols from MSVC++,
11204 # which start with @ or ?.
11205 lt_cv_sys_global_symbol_pipe="$AWK '"\
11206" {last_section=section; section=\$ 3};"\
11207" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11208" \$ 0!~/External *\|/{next};"\
11209" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11210" {if(hide[section]) next};"\
11211" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11212" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11213" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11214" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11215" ' prfx=^$ac_symprfx"
11216 else
11217 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11218 fi
cristyda16f162011-02-19 23:52:17 +000011219 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011220
11221 # Check to see that the pipe works correctly.
11222 pipe_works=no
11223
11224 rm -f conftest*
11225 cat > conftest.$ac_ext <<_LT_EOF
11226#ifdef __cplusplus
11227extern "C" {
11228#endif
11229char nm_test_var;
11230void nm_test_func(void);
11231void nm_test_func(void){}
11232#ifdef __cplusplus
11233}
11234#endif
11235int main(){nm_test_var='a';nm_test_func();return(0);}
11236_LT_EOF
11237
11238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11239 (eval $ac_compile) 2>&5
11240 ac_status=$?
11241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11242 test $ac_status = 0; }; then
11243 # Now try to grab the symbols.
11244 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11246 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011247 ac_status=$?
11248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11249 test $ac_status = 0; } && test -s "$nlist"; then
11250 # Try sorting and uniquifying the output.
11251 if sort "$nlist" | uniq > "$nlist"T; then
11252 mv -f "$nlist"T "$nlist"
11253 else
11254 rm -f "$nlist"T
11255 fi
11256
11257 # Make sure that we snagged all the symbols we need.
11258 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11259 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11260 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011261/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11262#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11263/* DATA imports from DLLs on WIN32 con't be const, because runtime
11264 relocations are performed -- see ld's documentation on pseudo-relocs. */
11265# define LT_DLSYM_CONST
11266#elif defined(__osf__)
11267/* This system does not cope well with relocations in const data. */
11268# define LT_DLSYM_CONST
11269#else
11270# define LT_DLSYM_CONST const
11271#endif
11272
cristy73bd4a52010-10-05 11:24:23 +000011273#ifdef __cplusplus
11274extern "C" {
11275#endif
11276
11277_LT_EOF
11278 # Now generate the symbol file.
11279 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11280
11281 cat <<_LT_EOF >> conftest.$ac_ext
11282
11283/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011284LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011285 const char *name;
11286 void *address;
11287}
11288lt__PROGRAM__LTX_preloaded_symbols[] =
11289{
11290 { "@PROGRAM@", (void *) 0 },
11291_LT_EOF
11292 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11293 cat <<\_LT_EOF >> conftest.$ac_ext
11294 {0, (void *) 0}
11295};
11296
11297/* This works around a problem in FreeBSD linker */
11298#ifdef FREEBSD_WORKAROUND
11299static const void *lt_preloaded_setup() {
11300 return lt__PROGRAM__LTX_preloaded_symbols;
11301}
11302#endif
11303
11304#ifdef __cplusplus
11305}
11306#endif
11307_LT_EOF
11308 # Now try linking the two files.
11309 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011310 lt_globsym_save_LIBS=$LIBS
11311 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011312 LIBS="conftstm.$ac_objext"
11313 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11315 (eval $ac_link) 2>&5
11316 ac_status=$?
11317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11318 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11319 pipe_works=yes
11320 fi
cristyda16f162011-02-19 23:52:17 +000011321 LIBS=$lt_globsym_save_LIBS
11322 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011323 else
11324 echo "cannot find nm_test_func in $nlist" >&5
11325 fi
11326 else
11327 echo "cannot find nm_test_var in $nlist" >&5
11328 fi
11329 else
11330 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11331 fi
11332 else
11333 echo "$progname: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 fi
11336 rm -rf conftest* conftst*
11337
11338 # Do not use the global_symbol_pipe unless it works.
11339 if test "$pipe_works" = yes; then
11340 break
11341 else
11342 lt_cv_sys_global_symbol_pipe=
11343 fi
11344done
11345
11346fi
11347
11348if test -z "$lt_cv_sys_global_symbol_pipe"; then
11349 lt_cv_sys_global_symbol_to_cdecl=
11350fi
11351if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11353$as_echo "failed" >&6; }
11354else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11356$as_echo "ok" >&6; }
11357fi
11358
cristyda16f162011-02-19 23:52:17 +000011359# Response file support.
11360if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11361 nm_file_list_spec='@'
11362elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11363 nm_file_list_spec='@'
11364fi
cristy73bd4a52010-10-05 11:24:23 +000011365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
cristyda16f162011-02-19 23:52:17 +000011386
11387
11388
11389
11390
11391
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11393$as_echo_n "checking for sysroot... " >&6; }
11394
11395# Check whether --with-sysroot was given.
11396if test "${with_sysroot+set}" = set; then :
11397 withval=$with_sysroot;
11398else
11399 with_sysroot=no
11400fi
11401
11402
11403lt_sysroot=
11404case ${with_sysroot} in #(
11405 yes)
11406 if test "$GCC" = yes; then
11407 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11408 fi
11409 ;; #(
11410 /*)
11411 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11412 ;; #(
11413 no|'')
11414 ;; #(
11415 *)
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11417$as_echo "${with_sysroot}" >&6; }
11418 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11419 ;;
11420esac
11421
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11423$as_echo "${lt_sysroot:-no}" >&6; }
11424
11425
11426
11427
11428
cristy73bd4a52010-10-05 11:24:23 +000011429# Check whether --enable-libtool-lock was given.
11430if test "${enable_libtool_lock+set}" = set; then :
11431 enableval=$enable_libtool_lock;
11432fi
11433
11434test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11435
11436# Some flags need to be propagated to the compiler or linker for good
11437# libtool support.
11438case $host in
11439ia64-*-hpux*)
11440 # Find out which ABI we are using.
11441 echo 'int i;' > conftest.$ac_ext
11442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11443 (eval $ac_compile) 2>&5
11444 ac_status=$?
11445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11446 test $ac_status = 0; }; then
11447 case `/usr/bin/file conftest.$ac_objext` in
11448 *ELF-32*)
11449 HPUX_IA64_MODE="32"
11450 ;;
11451 *ELF-64*)
11452 HPUX_IA64_MODE="64"
11453 ;;
11454 esac
11455 fi
11456 rm -rf conftest*
11457 ;;
11458*-*-irix6*)
11459 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011460 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11462 (eval $ac_compile) 2>&5
11463 ac_status=$?
11464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11465 test $ac_status = 0; }; then
11466 if test "$lt_cv_prog_gnu_ld" = yes; then
11467 case `/usr/bin/file conftest.$ac_objext` in
11468 *32-bit*)
11469 LD="${LD-ld} -melf32bsmip"
11470 ;;
11471 *N32*)
11472 LD="${LD-ld} -melf32bmipn32"
11473 ;;
11474 *64-bit*)
11475 LD="${LD-ld} -melf64bmip"
11476 ;;
11477 esac
11478 else
11479 case `/usr/bin/file conftest.$ac_objext` in
11480 *32-bit*)
11481 LD="${LD-ld} -32"
11482 ;;
11483 *N32*)
11484 LD="${LD-ld} -n32"
11485 ;;
11486 *64-bit*)
11487 LD="${LD-ld} -64"
11488 ;;
11489 esac
11490 fi
11491 fi
11492 rm -rf conftest*
11493 ;;
11494
11495x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11496s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11497 # Find out which ABI we are using.
11498 echo 'int i;' > conftest.$ac_ext
11499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11500 (eval $ac_compile) 2>&5
11501 ac_status=$?
11502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11503 test $ac_status = 0; }; then
11504 case `/usr/bin/file conftest.o` in
11505 *32-bit*)
11506 case $host in
11507 x86_64-*kfreebsd*-gnu)
11508 LD="${LD-ld} -m elf_i386_fbsd"
11509 ;;
11510 x86_64-*linux*)
11511 LD="${LD-ld} -m elf_i386"
11512 ;;
11513 ppc64-*linux*|powerpc64-*linux*)
11514 LD="${LD-ld} -m elf32ppclinux"
11515 ;;
11516 s390x-*linux*)
11517 LD="${LD-ld} -m elf_s390"
11518 ;;
11519 sparc64-*linux*)
11520 LD="${LD-ld} -m elf32_sparc"
11521 ;;
11522 esac
11523 ;;
11524 *64-bit*)
11525 case $host in
11526 x86_64-*kfreebsd*-gnu)
11527 LD="${LD-ld} -m elf_x86_64_fbsd"
11528 ;;
11529 x86_64-*linux*)
11530 LD="${LD-ld} -m elf_x86_64"
11531 ;;
11532 ppc*-*linux*|powerpc*-*linux*)
11533 LD="${LD-ld} -m elf64ppc"
11534 ;;
11535 s390*-*linux*|s390*-*tpf*)
11536 LD="${LD-ld} -m elf64_s390"
11537 ;;
11538 sparc*-*linux*)
11539 LD="${LD-ld} -m elf64_sparc"
11540 ;;
11541 esac
11542 ;;
11543 esac
11544 fi
11545 rm -rf conftest*
11546 ;;
11547
11548*-*-sco3.2v5*)
11549 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11550 SAVE_CFLAGS="$CFLAGS"
11551 CFLAGS="$CFLAGS -belf"
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11553$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011554if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011555 $as_echo_n "(cached) " >&6
11556else
11557 ac_ext=c
11558ac_cpp='$CPP $CPPFLAGS'
11559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11561ac_compiler_gnu=$ac_cv_c_compiler_gnu
11562
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564/* end confdefs.h. */
11565
11566int
11567main ()
11568{
11569
11570 ;
11571 return 0;
11572}
11573_ACEOF
11574if ac_fn_c_try_link "$LINENO"; then :
11575 lt_cv_cc_needs_belf=yes
11576else
11577 lt_cv_cc_needs_belf=no
11578fi
11579rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 ac_ext=c
11582ac_cpp='$CPP $CPPFLAGS'
11583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11585ac_compiler_gnu=$ac_cv_c_compiler_gnu
11586
11587fi
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11589$as_echo "$lt_cv_cc_needs_belf" >&6; }
11590 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11591 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11592 CFLAGS="$SAVE_CFLAGS"
11593 fi
11594 ;;
11595sparc*-*solaris*)
11596 # Find out which ABI we are using.
11597 echo 'int i;' > conftest.$ac_ext
11598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11599 (eval $ac_compile) 2>&5
11600 ac_status=$?
11601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11602 test $ac_status = 0; }; then
11603 case `/usr/bin/file conftest.o` in
11604 *64-bit*)
11605 case $lt_cv_prog_gnu_ld in
11606 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11607 *)
11608 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11609 LD="${LD-ld} -64"
11610 fi
11611 ;;
11612 esac
11613 ;;
11614 esac
11615 fi
11616 rm -rf conftest*
11617 ;;
11618esac
11619
11620need_locks="$enable_libtool_lock"
11621
cristyda16f162011-02-19 23:52:17 +000011622if test -n "$ac_tool_prefix"; then
11623 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11624set dummy ${ac_tool_prefix}mt; ac_word=$2
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626$as_echo_n "checking for $ac_word... " >&6; }
11627if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11628 $as_echo_n "(cached) " >&6
11629else
11630 if test -n "$MANIFEST_TOOL"; then
11631 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11632else
11633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634for as_dir in $PATH
11635do
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11643 fi
11644done
11645 done
11646IFS=$as_save_IFS
11647
11648fi
11649fi
11650MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11651if test -n "$MANIFEST_TOOL"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11653$as_echo "$MANIFEST_TOOL" >&6; }
11654else
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656$as_echo "no" >&6; }
11657fi
11658
11659
11660fi
11661if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11662 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11663 # Extract the first word of "mt", so it can be a program name with args.
11664set dummy mt; ac_word=$2
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666$as_echo_n "checking for $ac_word... " >&6; }
11667if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669else
11670 if test -n "$ac_ct_MANIFEST_TOOL"; then
11671 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11672else
11673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674for as_dir in $PATH
11675do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11680 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11683 fi
11684done
11685 done
11686IFS=$as_save_IFS
11687
11688fi
11689fi
11690ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11691if test -n "$ac_ct_MANIFEST_TOOL"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11693$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11694else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696$as_echo "no" >&6; }
11697fi
11698
11699 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11700 MANIFEST_TOOL=":"
11701 else
11702 case $cross_compiling:$ac_tool_warned in
11703yes:)
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11706ac_tool_warned=yes ;;
11707esac
11708 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11709 fi
11710else
11711 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11712fi
11713
11714test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11716$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11717if ${lt_cv_path_mainfest_tool+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719else
11720 lt_cv_path_mainfest_tool=no
11721 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11722 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11723 cat conftest.err >&5
11724 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11725 lt_cv_path_mainfest_tool=yes
11726 fi
11727 rm -f conftest*
11728fi
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11730$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11731if test "x$lt_cv_path_mainfest_tool" != xyes; then
11732 MANIFEST_TOOL=:
11733fi
11734
11735
11736
11737
11738
cristy73bd4a52010-10-05 11:24:23 +000011739
11740 case $host_os in
11741 rhapsody* | darwin*)
11742 if test -n "$ac_tool_prefix"; then
11743 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11744set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011747if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011748 $as_echo_n "(cached) " >&6
11749else
11750 if test -n "$DSYMUTIL"; then
11751 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11752else
11753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754for as_dir in $PATH
11755do
11756 IFS=$as_save_IFS
11757 test -z "$as_dir" && as_dir=.
11758 for ac_exec_ext in '' $ac_executable_extensions; do
11759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11760 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 break 2
11763 fi
11764done
11765 done
11766IFS=$as_save_IFS
11767
11768fi
11769fi
11770DSYMUTIL=$ac_cv_prog_DSYMUTIL
11771if test -n "$DSYMUTIL"; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11773$as_echo "$DSYMUTIL" >&6; }
11774else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776$as_echo "no" >&6; }
11777fi
11778
11779
11780fi
11781if test -z "$ac_cv_prog_DSYMUTIL"; then
11782 ac_ct_DSYMUTIL=$DSYMUTIL
11783 # Extract the first word of "dsymutil", so it can be a program name with args.
11784set dummy dsymutil; ac_word=$2
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011787if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011788 $as_echo_n "(cached) " >&6
11789else
11790 if test -n "$ac_ct_DSYMUTIL"; then
11791 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11792else
11793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794for as_dir in $PATH
11795do
11796 IFS=$as_save_IFS
11797 test -z "$as_dir" && as_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
11799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11800 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 break 2
11803 fi
11804done
11805 done
11806IFS=$as_save_IFS
11807
11808fi
11809fi
11810ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11811if test -n "$ac_ct_DSYMUTIL"; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11813$as_echo "$ac_ct_DSYMUTIL" >&6; }
11814else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
11817fi
11818
11819 if test "x$ac_ct_DSYMUTIL" = x; then
11820 DSYMUTIL=":"
11821 else
11822 case $cross_compiling:$ac_tool_warned in
11823yes:)
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11826ac_tool_warned=yes ;;
11827esac
11828 DSYMUTIL=$ac_ct_DSYMUTIL
11829 fi
11830else
11831 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11832fi
11833
11834 if test -n "$ac_tool_prefix"; then
11835 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11836set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011839if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011840 $as_echo_n "(cached) " >&6
11841else
11842 if test -n "$NMEDIT"; then
11843 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11844else
11845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846for as_dir in $PATH
11847do
11848 IFS=$as_save_IFS
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11852 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 break 2
11855 fi
11856done
11857 done
11858IFS=$as_save_IFS
11859
11860fi
11861fi
11862NMEDIT=$ac_cv_prog_NMEDIT
11863if test -n "$NMEDIT"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11865$as_echo "$NMEDIT" >&6; }
11866else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868$as_echo "no" >&6; }
11869fi
11870
11871
11872fi
11873if test -z "$ac_cv_prog_NMEDIT"; then
11874 ac_ct_NMEDIT=$NMEDIT
11875 # Extract the first word of "nmedit", so it can be a program name with args.
11876set dummy nmedit; ac_word=$2
11877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011879if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011880 $as_echo_n "(cached) " >&6
11881else
11882 if test -n "$ac_ct_NMEDIT"; then
11883 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11884else
11885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886for as_dir in $PATH
11887do
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11892 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 break 2
11895 fi
11896done
11897 done
11898IFS=$as_save_IFS
11899
11900fi
11901fi
11902ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11903if test -n "$ac_ct_NMEDIT"; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11905$as_echo "$ac_ct_NMEDIT" >&6; }
11906else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908$as_echo "no" >&6; }
11909fi
11910
11911 if test "x$ac_ct_NMEDIT" = x; then
11912 NMEDIT=":"
11913 else
11914 case $cross_compiling:$ac_tool_warned in
11915yes:)
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11918ac_tool_warned=yes ;;
11919esac
11920 NMEDIT=$ac_ct_NMEDIT
11921 fi
11922else
11923 NMEDIT="$ac_cv_prog_NMEDIT"
11924fi
11925
11926 if test -n "$ac_tool_prefix"; then
11927 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11928set dummy ${ac_tool_prefix}lipo; ac_word=$2
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011931if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011932 $as_echo_n "(cached) " >&6
11933else
11934 if test -n "$LIPO"; then
11935 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11936else
11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938for as_dir in $PATH
11939do
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11944 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11947 fi
11948done
11949 done
11950IFS=$as_save_IFS
11951
11952fi
11953fi
11954LIPO=$ac_cv_prog_LIPO
11955if test -n "$LIPO"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11957$as_echo "$LIPO" >&6; }
11958else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
11961fi
11962
11963
11964fi
11965if test -z "$ac_cv_prog_LIPO"; then
11966 ac_ct_LIPO=$LIPO
11967 # Extract the first word of "lipo", so it can be a program name with args.
11968set dummy lipo; ac_word=$2
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011971if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011972 $as_echo_n "(cached) " >&6
11973else
11974 if test -n "$ac_ct_LIPO"; then
11975 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11976else
11977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978for as_dir in $PATH
11979do
11980 IFS=$as_save_IFS
11981 test -z "$as_dir" && as_dir=.
11982 for ac_exec_ext in '' $ac_executable_extensions; do
11983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11984 ac_cv_prog_ac_ct_LIPO="lipo"
11985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986 break 2
11987 fi
11988done
11989 done
11990IFS=$as_save_IFS
11991
11992fi
11993fi
11994ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11995if test -n "$ac_ct_LIPO"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11997$as_echo "$ac_ct_LIPO" >&6; }
11998else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
12001fi
12002
12003 if test "x$ac_ct_LIPO" = x; then
12004 LIPO=":"
12005 else
12006 case $cross_compiling:$ac_tool_warned in
12007yes:)
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12010ac_tool_warned=yes ;;
12011esac
12012 LIPO=$ac_ct_LIPO
12013 fi
12014else
12015 LIPO="$ac_cv_prog_LIPO"
12016fi
12017
12018 if test -n "$ac_tool_prefix"; then
12019 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12020set dummy ${ac_tool_prefix}otool; ac_word=$2
12021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012023if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012024 $as_echo_n "(cached) " >&6
12025else
12026 if test -n "$OTOOL"; then
12027 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12028else
12029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030for as_dir in $PATH
12031do
12032 IFS=$as_save_IFS
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12036 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 break 2
12039 fi
12040done
12041 done
12042IFS=$as_save_IFS
12043
12044fi
12045fi
12046OTOOL=$ac_cv_prog_OTOOL
12047if test -n "$OTOOL"; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12049$as_echo "$OTOOL" >&6; }
12050else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052$as_echo "no" >&6; }
12053fi
12054
12055
12056fi
12057if test -z "$ac_cv_prog_OTOOL"; then
12058 ac_ct_OTOOL=$OTOOL
12059 # Extract the first word of "otool", so it can be a program name with args.
12060set dummy otool; ac_word=$2
12061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012063if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012064 $as_echo_n "(cached) " >&6
12065else
12066 if test -n "$ac_ct_OTOOL"; then
12067 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12068else
12069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070for as_dir in $PATH
12071do
12072 IFS=$as_save_IFS
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12076 ac_cv_prog_ac_ct_OTOOL="otool"
12077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 break 2
12079 fi
12080done
12081 done
12082IFS=$as_save_IFS
12083
12084fi
12085fi
12086ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12087if test -n "$ac_ct_OTOOL"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12089$as_echo "$ac_ct_OTOOL" >&6; }
12090else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092$as_echo "no" >&6; }
12093fi
12094
12095 if test "x$ac_ct_OTOOL" = x; then
12096 OTOOL=":"
12097 else
12098 case $cross_compiling:$ac_tool_warned in
12099yes:)
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12102ac_tool_warned=yes ;;
12103esac
12104 OTOOL=$ac_ct_OTOOL
12105 fi
12106else
12107 OTOOL="$ac_cv_prog_OTOOL"
12108fi
12109
12110 if test -n "$ac_tool_prefix"; then
12111 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12112set dummy ${ac_tool_prefix}otool64; ac_word=$2
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012115if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012116 $as_echo_n "(cached) " >&6
12117else
12118 if test -n "$OTOOL64"; then
12119 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12120else
12121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122for as_dir in $PATH
12123do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12128 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12131 fi
12132done
12133 done
12134IFS=$as_save_IFS
12135
12136fi
12137fi
12138OTOOL64=$ac_cv_prog_OTOOL64
12139if test -n "$OTOOL64"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12141$as_echo "$OTOOL64" >&6; }
12142else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144$as_echo "no" >&6; }
12145fi
12146
12147
12148fi
12149if test -z "$ac_cv_prog_OTOOL64"; then
12150 ac_ct_OTOOL64=$OTOOL64
12151 # Extract the first word of "otool64", so it can be a program name with args.
12152set dummy otool64; ac_word=$2
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012155if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012156 $as_echo_n "(cached) " >&6
12157else
12158 if test -n "$ac_ct_OTOOL64"; then
12159 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12160else
12161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162for as_dir in $PATH
12163do
12164 IFS=$as_save_IFS
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12168 ac_cv_prog_ac_ct_OTOOL64="otool64"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 break 2
12171 fi
12172done
12173 done
12174IFS=$as_save_IFS
12175
12176fi
12177fi
12178ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12179if test -n "$ac_ct_OTOOL64"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12181$as_echo "$ac_ct_OTOOL64" >&6; }
12182else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184$as_echo "no" >&6; }
12185fi
12186
12187 if test "x$ac_ct_OTOOL64" = x; then
12188 OTOOL64=":"
12189 else
12190 case $cross_compiling:$ac_tool_warned in
12191yes:)
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12194ac_tool_warned=yes ;;
12195esac
12196 OTOOL64=$ac_ct_OTOOL64
12197 fi
12198else
12199 OTOOL64="$ac_cv_prog_OTOOL64"
12200fi
12201
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12229$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012230if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012231 $as_echo_n "(cached) " >&6
12232else
12233 lt_cv_apple_cc_single_mod=no
12234 if test -z "${LT_MULTI_MODULE}"; then
12235 # By default we will add the -single_module flag. You can override
12236 # by either setting the environment variable LT_MULTI_MODULE
12237 # non-empty at configure time, or by adding -multi_module to the
12238 # link flags.
12239 rm -rf libconftest.dylib*
12240 echo "int foo(void){return 1;}" > conftest.c
12241 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12242-dynamiclib -Wl,-single_module conftest.c" >&5
12243 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12244 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12245 _lt_result=$?
12246 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12247 lt_cv_apple_cc_single_mod=yes
12248 else
12249 cat conftest.err >&5
12250 fi
12251 rm -rf libconftest.dylib*
12252 rm -f conftest.*
12253 fi
12254fi
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12256$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12258$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012259if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012260 $as_echo_n "(cached) " >&6
12261else
12262 lt_cv_ld_exported_symbols_list=no
12263 save_LDFLAGS=$LDFLAGS
12264 echo "_main" > conftest.sym
12265 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267/* end confdefs.h. */
12268
12269int
12270main ()
12271{
12272
12273 ;
12274 return 0;
12275}
12276_ACEOF
12277if ac_fn_c_try_link "$LINENO"; then :
12278 lt_cv_ld_exported_symbols_list=yes
12279else
12280 lt_cv_ld_exported_symbols_list=no
12281fi
12282rm -f core conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
12284 LDFLAGS="$save_LDFLAGS"
12285
12286fi
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12288$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12290$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012291if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012292 $as_echo_n "(cached) " >&6
12293else
12294 lt_cv_ld_force_load=no
12295 cat > conftest.c << _LT_EOF
12296int forced_loaded() { return 2;}
12297_LT_EOF
12298 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12299 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12300 echo "$AR cru libconftest.a conftest.o" >&5
12301 $AR cru libconftest.a conftest.o 2>&5
12302 echo "$RANLIB libconftest.a" >&5
12303 $RANLIB libconftest.a 2>&5
12304 cat > conftest.c << _LT_EOF
12305int main() { return 0;}
12306_LT_EOF
12307 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12308 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12309 _lt_result=$?
12310 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12311 lt_cv_ld_force_load=yes
12312 else
12313 cat conftest.err >&5
12314 fi
12315 rm -f conftest.err libconftest.a conftest conftest.c
12316 rm -rf conftest.dSYM
12317
12318fi
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12320$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012321 case $host_os in
12322 rhapsody* | darwin1.[012])
12323 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12324 darwin1.*)
12325 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12326 darwin*) # darwin 5.x on
12327 # if running on 10.5 or later, the deployment target defaults
12328 # to the OS version, if on x86, and 10.4, the deployment
12329 # target defaults to 10.4. Don't you love it?
12330 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12331 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12332 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12333 10.[012]*)
12334 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12335 10.*)
12336 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12337 esac
12338 ;;
12339 esac
12340 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12341 _lt_dar_single_mod='$single_module'
12342 fi
12343 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12344 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12345 else
12346 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12347 fi
cristy0c60a692010-11-04 01:09:47 +000012348 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012349 _lt_dsymutil='~$DSYMUTIL $lib || :'
12350 else
12351 _lt_dsymutil=
12352 fi
12353 ;;
12354 esac
12355
12356for ac_header in dlfcn.h
12357do :
12358 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12359"
cristyda16f162011-02-19 23:52:17 +000012360if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012361 cat >>confdefs.h <<_ACEOF
12362#define HAVE_DLFCN_H 1
12363_ACEOF
12364
12365fi
12366
12367done
12368
12369
12370
cristy73bd4a52010-10-05 11:24:23 +000012371
cristyda16f162011-02-19 23:52:17 +000012372func_stripname_cnf ()
12373{
12374 case ${2} in
12375 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12376 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12377 esac
12378} # func_stripname_cnf
12379
12380
12381
cristy73bd4a52010-10-05 11:24:23 +000012382
12383
12384# Set options
12385enable_win32_dll=yes
12386
12387case $host in
cristy0c60a692010-11-04 01:09:47 +000012388*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012389 if test -n "$ac_tool_prefix"; then
12390 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12391set dummy ${ac_tool_prefix}as; ac_word=$2
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012394if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012395 $as_echo_n "(cached) " >&6
12396else
12397 if test -n "$AS"; then
12398 ac_cv_prog_AS="$AS" # Let the user override the test.
12399else
12400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401for as_dir in $PATH
12402do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12407 ac_cv_prog_AS="${ac_tool_prefix}as"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12409 break 2
12410 fi
12411done
12412 done
12413IFS=$as_save_IFS
12414
12415fi
12416fi
12417AS=$ac_cv_prog_AS
12418if test -n "$AS"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12420$as_echo "$AS" >&6; }
12421else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
12424fi
12425
12426
12427fi
12428if test -z "$ac_cv_prog_AS"; then
12429 ac_ct_AS=$AS
12430 # Extract the first word of "as", so it can be a program name with args.
12431set dummy as; ac_word=$2
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012434if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012435 $as_echo_n "(cached) " >&6
12436else
12437 if test -n "$ac_ct_AS"; then
12438 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12439else
12440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441for as_dir in $PATH
12442do
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 for ac_exec_ext in '' $ac_executable_extensions; do
12446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12447 ac_cv_prog_ac_ct_AS="as"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 break 2
12450 fi
12451done
12452 done
12453IFS=$as_save_IFS
12454
12455fi
12456fi
12457ac_ct_AS=$ac_cv_prog_ac_ct_AS
12458if test -n "$ac_ct_AS"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12460$as_echo "$ac_ct_AS" >&6; }
12461else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463$as_echo "no" >&6; }
12464fi
12465
12466 if test "x$ac_ct_AS" = x; then
12467 AS="false"
12468 else
12469 case $cross_compiling:$ac_tool_warned in
12470yes:)
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12473ac_tool_warned=yes ;;
12474esac
12475 AS=$ac_ct_AS
12476 fi
12477else
12478 AS="$ac_cv_prog_AS"
12479fi
12480
12481 if test -n "$ac_tool_prefix"; then
12482 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12483set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012486if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012487 $as_echo_n "(cached) " >&6
12488else
12489 if test -n "$DLLTOOL"; then
12490 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12491else
12492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493for as_dir in $PATH
12494do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12499 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12502 fi
12503done
12504 done
12505IFS=$as_save_IFS
12506
12507fi
12508fi
12509DLLTOOL=$ac_cv_prog_DLLTOOL
12510if test -n "$DLLTOOL"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12512$as_echo "$DLLTOOL" >&6; }
12513else
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515$as_echo "no" >&6; }
12516fi
12517
12518
12519fi
12520if test -z "$ac_cv_prog_DLLTOOL"; then
12521 ac_ct_DLLTOOL=$DLLTOOL
12522 # Extract the first word of "dlltool", so it can be a program name with args.
12523set dummy dlltool; ac_word=$2
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012526if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012527 $as_echo_n "(cached) " >&6
12528else
12529 if test -n "$ac_ct_DLLTOOL"; then
12530 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12531else
12532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533for as_dir in $PATH
12534do
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
12537 for ac_exec_ext in '' $ac_executable_extensions; do
12538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12539 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12541 break 2
12542 fi
12543done
12544 done
12545IFS=$as_save_IFS
12546
12547fi
12548fi
12549ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12550if test -n "$ac_ct_DLLTOOL"; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12552$as_echo "$ac_ct_DLLTOOL" >&6; }
12553else
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555$as_echo "no" >&6; }
12556fi
12557
12558 if test "x$ac_ct_DLLTOOL" = x; then
12559 DLLTOOL="false"
12560 else
12561 case $cross_compiling:$ac_tool_warned in
12562yes:)
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12565ac_tool_warned=yes ;;
12566esac
12567 DLLTOOL=$ac_ct_DLLTOOL
12568 fi
12569else
12570 DLLTOOL="$ac_cv_prog_DLLTOOL"
12571fi
12572
12573 if test -n "$ac_tool_prefix"; then
12574 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12575set dummy ${ac_tool_prefix}objdump; ac_word=$2
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012578if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012579 $as_echo_n "(cached) " >&6
12580else
12581 if test -n "$OBJDUMP"; then
12582 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12583else
12584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585for as_dir in $PATH
12586do
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12591 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 break 2
12594 fi
12595done
12596 done
12597IFS=$as_save_IFS
12598
12599fi
12600fi
12601OBJDUMP=$ac_cv_prog_OBJDUMP
12602if test -n "$OBJDUMP"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12604$as_echo "$OBJDUMP" >&6; }
12605else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607$as_echo "no" >&6; }
12608fi
12609
12610
12611fi
12612if test -z "$ac_cv_prog_OBJDUMP"; then
12613 ac_ct_OBJDUMP=$OBJDUMP
12614 # Extract the first word of "objdump", so it can be a program name with args.
12615set dummy objdump; ac_word=$2
12616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012618if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012619 $as_echo_n "(cached) " >&6
12620else
12621 if test -n "$ac_ct_OBJDUMP"; then
12622 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12623else
12624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625for as_dir in $PATH
12626do
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12631 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12634 fi
12635done
12636 done
12637IFS=$as_save_IFS
12638
12639fi
12640fi
12641ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12642if test -n "$ac_ct_OBJDUMP"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12644$as_echo "$ac_ct_OBJDUMP" >&6; }
12645else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647$as_echo "no" >&6; }
12648fi
12649
12650 if test "x$ac_ct_OBJDUMP" = x; then
12651 OBJDUMP="false"
12652 else
12653 case $cross_compiling:$ac_tool_warned in
12654yes:)
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12657ac_tool_warned=yes ;;
12658esac
12659 OBJDUMP=$ac_ct_OBJDUMP
12660 fi
12661else
12662 OBJDUMP="$ac_cv_prog_OBJDUMP"
12663fi
12664
12665 ;;
12666esac
12667
12668test -z "$AS" && AS=as
12669
12670
12671
12672
12673
12674test -z "$DLLTOOL" && DLLTOOL=dlltool
12675
12676
12677
12678
12679
12680test -z "$OBJDUMP" && OBJDUMP=objdump
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690 # Check whether --enable-shared was given.
12691if test "${enable_shared+set}" = set; then :
12692 enableval=$enable_shared; p=${PACKAGE-default}
12693 case $enableval in
12694 yes) enable_shared=yes ;;
12695 no) enable_shared=no ;;
12696 *)
12697 enable_shared=no
12698 # Look at the argument we got. We use all the common list separators.
12699 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12700 for pkg in $enableval; do
12701 IFS="$lt_save_ifs"
12702 if test "X$pkg" = "X$p"; then
12703 enable_shared=yes
12704 fi
12705 done
12706 IFS="$lt_save_ifs"
12707 ;;
12708 esac
12709else
12710 enable_shared=yes
12711fi
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721 # Check whether --enable-static was given.
12722if test "${enable_static+set}" = set; then :
12723 enableval=$enable_static; p=${PACKAGE-default}
12724 case $enableval in
12725 yes) enable_static=yes ;;
12726 no) enable_static=no ;;
12727 *)
12728 enable_static=no
12729 # Look at the argument we got. We use all the common list separators.
12730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12731 for pkg in $enableval; do
12732 IFS="$lt_save_ifs"
12733 if test "X$pkg" = "X$p"; then
12734 enable_static=yes
12735 fi
12736 done
12737 IFS="$lt_save_ifs"
12738 ;;
12739 esac
12740else
12741 enable_static=yes
12742fi
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753# Check whether --with-pic was given.
12754if test "${with_pic+set}" = set; then :
12755 withval=$with_pic; pic_mode="$withval"
12756else
12757 pic_mode=default
12758fi
12759
12760
12761test -z "$pic_mode" && pic_mode=default
12762
12763
12764
12765
12766
12767
12768
12769 # Check whether --enable-fast-install was given.
12770if test "${enable_fast_install+set}" = set; then :
12771 enableval=$enable_fast_install; p=${PACKAGE-default}
12772 case $enableval in
12773 yes) enable_fast_install=yes ;;
12774 no) enable_fast_install=no ;;
12775 *)
12776 enable_fast_install=no
12777 # Look at the argument we got. We use all the common list separators.
12778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12779 for pkg in $enableval; do
12780 IFS="$lt_save_ifs"
12781 if test "X$pkg" = "X$p"; then
12782 enable_fast_install=yes
12783 fi
12784 done
12785 IFS="$lt_save_ifs"
12786 ;;
12787 esac
12788else
12789 enable_fast_install=yes
12790fi
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802# This can be used to rebuild libtool when needed
12803LIBTOOL_DEPS="$ltmain"
12804
12805# Always use our own libtool.
12806LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
cristy0c60a692010-11-04 01:09:47 +000012832
cristy73bd4a52010-10-05 11:24:23 +000012833test -z "$LN_S" && LN_S="ln -s"
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848if test -n "${ZSH_VERSION+set}" ; then
12849 setopt NO_GLOB_SUBST
12850fi
12851
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12853$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012854if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012855 $as_echo_n "(cached) " >&6
12856else
12857 rm -f .libs 2>/dev/null
12858mkdir .libs 2>/dev/null
12859if test -d .libs; then
12860 lt_cv_objdir=.libs
12861else
12862 # MS-DOS does not allow filenames that begin with a dot.
12863 lt_cv_objdir=_libs
12864fi
12865rmdir .libs 2>/dev/null
12866fi
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12868$as_echo "$lt_cv_objdir" >&6; }
12869objdir=$lt_cv_objdir
12870
12871
12872
12873
12874
12875cat >>confdefs.h <<_ACEOF
12876#define LT_OBJDIR "$lt_cv_objdir/"
12877_ACEOF
12878
12879
12880
12881
cristy73bd4a52010-10-05 11:24:23 +000012882case $host_os in
12883aix3*)
12884 # AIX sometimes has problems with the GCC collect2 program. For some
12885 # reason, if we set the COLLECT_NAMES environment variable, the problems
12886 # vanish in a puff of smoke.
12887 if test "X${COLLECT_NAMES+set}" != Xset; then
12888 COLLECT_NAMES=
12889 export COLLECT_NAMES
12890 fi
12891 ;;
12892esac
12893
cristy73bd4a52010-10-05 11:24:23 +000012894# Global variables:
12895ofile=libtool
12896can_build_shared=yes
12897
12898# All known linkers require a `.a' archive for static linking (except MSVC,
12899# which needs '.lib').
12900libext=a
12901
12902with_gnu_ld="$lt_cv_prog_gnu_ld"
12903
12904old_CC="$CC"
12905old_CFLAGS="$CFLAGS"
12906
12907# Set sane defaults for various variables
12908test -z "$CC" && CC=cc
12909test -z "$LTCC" && LTCC=$CC
12910test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12911test -z "$LD" && LD=ld
12912test -z "$ac_objext" && ac_objext=o
12913
12914for cc_temp in $compiler""; do
12915 case $cc_temp in
12916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12918 \-*) ;;
12919 *) break;;
12920 esac
12921done
cristy0c60a692010-11-04 01:09:47 +000012922cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012923
12924
12925# Only perform the check for file, if the check method requires it
12926test -z "$MAGIC_CMD" && MAGIC_CMD=file
12927case $deplibs_check_method in
12928file_magic*)
12929 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12931$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012932if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012933 $as_echo_n "(cached) " >&6
12934else
12935 case $MAGIC_CMD in
12936[\\/*] | ?:[\\/]*)
12937 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12938 ;;
12939*)
12940 lt_save_MAGIC_CMD="$MAGIC_CMD"
12941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12942 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12943 for ac_dir in $ac_dummy; do
12944 IFS="$lt_save_ifs"
12945 test -z "$ac_dir" && ac_dir=.
12946 if test -f $ac_dir/${ac_tool_prefix}file; then
12947 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12948 if test -n "$file_magic_test_file"; then
12949 case $deplibs_check_method in
12950 "file_magic "*)
12951 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12954 $EGREP "$file_magic_regex" > /dev/null; then
12955 :
12956 else
12957 cat <<_LT_EOF 1>&2
12958
12959*** Warning: the command libtool uses to detect shared libraries,
12960*** $file_magic_cmd, produces output that libtool cannot recognize.
12961*** The result is that libtool may fail to recognize shared libraries
12962*** as such. This will affect the creation of libtool libraries that
12963*** depend on shared libraries, but programs linked with such libtool
12964*** libraries will work regardless of this problem. Nevertheless, you
12965*** may want to report the problem to your system manager and/or to
12966*** bug-libtool@gnu.org
12967
12968_LT_EOF
12969 fi ;;
12970 esac
12971 fi
12972 break
12973 fi
12974 done
12975 IFS="$lt_save_ifs"
12976 MAGIC_CMD="$lt_save_MAGIC_CMD"
12977 ;;
12978esac
12979fi
12980
12981MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12982if test -n "$MAGIC_CMD"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12984$as_echo "$MAGIC_CMD" >&6; }
12985else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
12988fi
12989
12990
12991
12992
12993
12994if test -z "$lt_cv_path_MAGIC_CMD"; then
12995 if test -n "$ac_tool_prefix"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12997$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012998if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012999 $as_echo_n "(cached) " >&6
13000else
13001 case $MAGIC_CMD in
13002[\\/*] | ?:[\\/]*)
13003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13004 ;;
13005*)
13006 lt_save_MAGIC_CMD="$MAGIC_CMD"
13007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13009 for ac_dir in $ac_dummy; do
13010 IFS="$lt_save_ifs"
13011 test -z "$ac_dir" && ac_dir=.
13012 if test -f $ac_dir/file; then
13013 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13014 if test -n "$file_magic_test_file"; then
13015 case $deplibs_check_method in
13016 "file_magic "*)
13017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13020 $EGREP "$file_magic_regex" > /dev/null; then
13021 :
13022 else
13023 cat <<_LT_EOF 1>&2
13024
13025*** Warning: the command libtool uses to detect shared libraries,
13026*** $file_magic_cmd, produces output that libtool cannot recognize.
13027*** The result is that libtool may fail to recognize shared libraries
13028*** as such. This will affect the creation of libtool libraries that
13029*** depend on shared libraries, but programs linked with such libtool
13030*** libraries will work regardless of this problem. Nevertheless, you
13031*** may want to report the problem to your system manager and/or to
13032*** bug-libtool@gnu.org
13033
13034_LT_EOF
13035 fi ;;
13036 esac
13037 fi
13038 break
13039 fi
13040 done
13041 IFS="$lt_save_ifs"
13042 MAGIC_CMD="$lt_save_MAGIC_CMD"
13043 ;;
13044esac
13045fi
13046
13047MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13048if test -n "$MAGIC_CMD"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13050$as_echo "$MAGIC_CMD" >&6; }
13051else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053$as_echo "no" >&6; }
13054fi
13055
13056
13057 else
13058 MAGIC_CMD=:
13059 fi
13060fi
13061
13062 fi
13063 ;;
13064esac
13065
13066# Use C for the default configuration in the libtool script
13067
13068lt_save_CC="$CC"
13069ac_ext=c
13070ac_cpp='$CPP $CPPFLAGS'
13071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13073ac_compiler_gnu=$ac_cv_c_compiler_gnu
13074
13075
13076# Source file extension for C test sources.
13077ac_ext=c
13078
13079# Object file extension for compiled C test sources.
13080objext=o
13081objext=$objext
13082
13083# Code to be used in simple compile tests
13084lt_simple_compile_test_code="int some_variable = 0;"
13085
13086# Code to be used in simple link tests
13087lt_simple_link_test_code='int main(){return(0);}'
13088
13089
13090
13091
13092
13093
13094
13095# If no C compiler was specified, use CC.
13096LTCC=${LTCC-"$CC"}
13097
13098# If no C compiler flags were specified, use CFLAGS.
13099LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13100
13101# Allow CC to be a program name with arguments.
13102compiler=$CC
13103
13104# Save the default compiler, since it gets overwritten when the other
13105# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13106compiler_DEFAULT=$CC
13107
13108# save warnings/boilerplate of simple test code
13109ac_outfile=conftest.$ac_objext
13110echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13111eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13112_lt_compiler_boilerplate=`cat conftest.err`
13113$RM conftest*
13114
13115ac_outfile=conftest.$ac_objext
13116echo "$lt_simple_link_test_code" >conftest.$ac_ext
13117eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13118_lt_linker_boilerplate=`cat conftest.err`
13119$RM -r conftest*
13120
13121
13122## CAVEAT EMPTOR:
13123## There is no encapsulation within the following macros, do not change
13124## the running order or otherwise move them around unless you know exactly
13125## what you are doing...
13126if test -n "$compiler"; then
13127
13128lt_prog_compiler_no_builtin_flag=
13129
13130if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013131 case $cc_basename in
13132 nvcc*)
13133 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13134 *)
13135 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13136 esac
cristy73bd4a52010-10-05 11:24:23 +000013137
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13139$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013140if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013141 $as_echo_n "(cached) " >&6
13142else
13143 lt_cv_prog_compiler_rtti_exceptions=no
13144 ac_outfile=conftest.$ac_objext
13145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13146 lt_compiler_flag="-fno-rtti -fno-exceptions"
13147 # Insert the option either (1) after the last *FLAGS variable, or
13148 # (2) before a word containing "conftest.", or (3) at the end.
13149 # Note that $ac_compile itself does not contain backslashes and begins
13150 # with a dollar sign (not a hyphen), so the echo should work correctly.
13151 # The option is referenced via a variable to avoid confusing sed.
13152 lt_compile=`echo "$ac_compile" | $SED \
13153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13155 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013156 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013157 (eval "$lt_compile" 2>conftest.err)
13158 ac_status=$?
13159 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013161 if (exit $ac_status) && test -s "$ac_outfile"; then
13162 # The compiler can only warn and ignore the option if not recognized
13163 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13166 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13167 lt_cv_prog_compiler_rtti_exceptions=yes
13168 fi
13169 fi
13170 $RM conftest*
13171
13172fi
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13174$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13175
13176if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13177 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13178else
13179 :
13180fi
13181
13182fi
13183
13184
13185
13186
13187
13188
13189 lt_prog_compiler_wl=
13190lt_prog_compiler_pic=
13191lt_prog_compiler_static=
13192
cristy73bd4a52010-10-05 11:24:23 +000013193
13194 if test "$GCC" = yes; then
13195 lt_prog_compiler_wl='-Wl,'
13196 lt_prog_compiler_static='-static'
13197
13198 case $host_os in
13199 aix*)
13200 # All AIX code is PIC.
13201 if test "$host_cpu" = ia64; then
13202 # AIX 5 now supports IA64 processor
13203 lt_prog_compiler_static='-Bstatic'
13204 fi
13205 ;;
13206
13207 amigaos*)
13208 case $host_cpu in
13209 powerpc)
13210 # see comment about AmigaOS4 .so support
13211 lt_prog_compiler_pic='-fPIC'
13212 ;;
13213 m68k)
13214 # FIXME: we need at least 68020 code to build shared libraries, but
13215 # adding the `-m68020' flag to GCC prevents building anything better,
13216 # like `-m68040'.
13217 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13218 ;;
13219 esac
13220 ;;
13221
13222 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13223 # PIC is the default for these OSes.
13224 ;;
13225
13226 mingw* | cygwin* | pw32* | os2* | cegcc*)
13227 # This hack is so that the source file can tell whether it is being
13228 # built for inclusion in a dll (and should export symbols for example).
13229 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13230 # (--disable-auto-import) libraries
13231 lt_prog_compiler_pic='-DDLL_EXPORT'
13232 ;;
13233
13234 darwin* | rhapsody*)
13235 # PIC is the default on this platform
13236 # Common symbols not allowed in MH_DYLIB files
13237 lt_prog_compiler_pic='-fno-common'
13238 ;;
13239
cristy0c60a692010-11-04 01:09:47 +000013240 haiku*)
13241 # PIC is the default for Haiku.
13242 # The "-static" flag exists, but is broken.
13243 lt_prog_compiler_static=
13244 ;;
13245
cristy73bd4a52010-10-05 11:24:23 +000013246 hpux*)
13247 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13248 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13249 # sets the default TLS model and affects inlining.
13250 case $host_cpu in
13251 hppa*64*)
13252 # +Z the default
13253 ;;
13254 *)
13255 lt_prog_compiler_pic='-fPIC'
13256 ;;
13257 esac
13258 ;;
13259
13260 interix[3-9]*)
13261 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13262 # Instead, we relocate shared libraries at runtime.
13263 ;;
13264
13265 msdosdjgpp*)
13266 # Just because we use GCC doesn't mean we suddenly get shared libraries
13267 # on systems that don't support them.
13268 lt_prog_compiler_can_build_shared=no
13269 enable_shared=no
13270 ;;
13271
13272 *nto* | *qnx*)
13273 # QNX uses GNU C++, but need to define -shared option too, otherwise
13274 # it will coredump.
13275 lt_prog_compiler_pic='-fPIC -shared'
13276 ;;
13277
13278 sysv4*MP*)
13279 if test -d /usr/nec; then
13280 lt_prog_compiler_pic=-Kconform_pic
13281 fi
13282 ;;
13283
13284 *)
13285 lt_prog_compiler_pic='-fPIC'
13286 ;;
13287 esac
cristy0c60a692010-11-04 01:09:47 +000013288
13289 case $cc_basename in
13290 nvcc*) # Cuda Compiler Driver 2.2
13291 lt_prog_compiler_wl='-Xlinker '
13292 lt_prog_compiler_pic='-Xcompiler -fPIC'
13293 ;;
13294 esac
cristy73bd4a52010-10-05 11:24:23 +000013295 else
13296 # PORTME Check for flag to pass linker flags through the system compiler.
13297 case $host_os in
13298 aix*)
13299 lt_prog_compiler_wl='-Wl,'
13300 if test "$host_cpu" = ia64; then
13301 # AIX 5 now supports IA64 processor
13302 lt_prog_compiler_static='-Bstatic'
13303 else
13304 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13305 fi
13306 ;;
13307
13308 mingw* | cygwin* | pw32* | os2* | cegcc*)
13309 # This hack is so that the source file can tell whether it is being
13310 # built for inclusion in a dll (and should export symbols for example).
13311 lt_prog_compiler_pic='-DDLL_EXPORT'
13312 ;;
13313
13314 hpux9* | hpux10* | hpux11*)
13315 lt_prog_compiler_wl='-Wl,'
13316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13317 # not for PA HP-UX.
13318 case $host_cpu in
13319 hppa*64*|ia64*)
13320 # +Z the default
13321 ;;
13322 *)
13323 lt_prog_compiler_pic='+Z'
13324 ;;
13325 esac
13326 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13327 lt_prog_compiler_static='${wl}-a ${wl}archive'
13328 ;;
13329
13330 irix5* | irix6* | nonstopux*)
13331 lt_prog_compiler_wl='-Wl,'
13332 # PIC (with -KPIC) is the default.
13333 lt_prog_compiler_static='-non_shared'
13334 ;;
13335
cristy0c60a692010-11-04 01:09:47 +000013336 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013337 case $cc_basename in
13338 # old Intel for x86_64 which still supported -KPIC.
13339 ecc*)
13340 lt_prog_compiler_wl='-Wl,'
13341 lt_prog_compiler_pic='-KPIC'
13342 lt_prog_compiler_static='-static'
13343 ;;
13344 # icc used to be incompatible with GCC.
13345 # ICC 10 doesn't accept -KPIC any more.
13346 icc* | ifort*)
13347 lt_prog_compiler_wl='-Wl,'
13348 lt_prog_compiler_pic='-fPIC'
13349 lt_prog_compiler_static='-static'
13350 ;;
13351 # Lahey Fortran 8.1.
13352 lf95*)
13353 lt_prog_compiler_wl='-Wl,'
13354 lt_prog_compiler_pic='--shared'
13355 lt_prog_compiler_static='--static'
13356 ;;
cristyda16f162011-02-19 23:52:17 +000013357 nagfor*)
13358 # NAG Fortran compiler
13359 lt_prog_compiler_wl='-Wl,-Wl,,'
13360 lt_prog_compiler_pic='-PIC'
13361 lt_prog_compiler_static='-Bstatic'
13362 ;;
cristy0c60a692010-11-04 01:09:47 +000013363 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013364 # Portland Group compilers (*not* the Pentium gcc compiler,
13365 # which looks to be a dead project)
13366 lt_prog_compiler_wl='-Wl,'
13367 lt_prog_compiler_pic='-fpic'
13368 lt_prog_compiler_static='-Bstatic'
13369 ;;
13370 ccc*)
13371 lt_prog_compiler_wl='-Wl,'
13372 # All Alpha code is PIC.
13373 lt_prog_compiler_static='-non_shared'
13374 ;;
cristy0c60a692010-11-04 01:09:47 +000013375 xl* | bgxl* | bgf* | mpixl*)
13376 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013377 lt_prog_compiler_wl='-Wl,'
13378 lt_prog_compiler_pic='-qpic'
13379 lt_prog_compiler_static='-qstaticlink'
13380 ;;
13381 *)
13382 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013383 *Sun\ F* | *Sun*Fortran*)
13384 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13385 lt_prog_compiler_pic='-KPIC'
13386 lt_prog_compiler_static='-Bstatic'
13387 lt_prog_compiler_wl=''
13388 ;;
cristy73bd4a52010-10-05 11:24:23 +000013389 *Sun\ C*)
13390 # Sun C 5.9
13391 lt_prog_compiler_pic='-KPIC'
13392 lt_prog_compiler_static='-Bstatic'
13393 lt_prog_compiler_wl='-Wl,'
13394 ;;
cristy73bd4a52010-10-05 11:24:23 +000013395 esac
13396 ;;
13397 esac
13398 ;;
13399
13400 newsos6)
13401 lt_prog_compiler_pic='-KPIC'
13402 lt_prog_compiler_static='-Bstatic'
13403 ;;
13404
13405 *nto* | *qnx*)
13406 # QNX uses GNU C++, but need to define -shared option too, otherwise
13407 # it will coredump.
13408 lt_prog_compiler_pic='-fPIC -shared'
13409 ;;
13410
13411 osf3* | osf4* | osf5*)
13412 lt_prog_compiler_wl='-Wl,'
13413 # All OSF/1 code is PIC.
13414 lt_prog_compiler_static='-non_shared'
13415 ;;
13416
13417 rdos*)
13418 lt_prog_compiler_static='-non_shared'
13419 ;;
13420
13421 solaris*)
13422 lt_prog_compiler_pic='-KPIC'
13423 lt_prog_compiler_static='-Bstatic'
13424 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013425 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013426 lt_prog_compiler_wl='-Qoption ld ';;
13427 *)
13428 lt_prog_compiler_wl='-Wl,';;
13429 esac
13430 ;;
13431
13432 sunos4*)
13433 lt_prog_compiler_wl='-Qoption ld '
13434 lt_prog_compiler_pic='-PIC'
13435 lt_prog_compiler_static='-Bstatic'
13436 ;;
13437
13438 sysv4 | sysv4.2uw2* | sysv4.3*)
13439 lt_prog_compiler_wl='-Wl,'
13440 lt_prog_compiler_pic='-KPIC'
13441 lt_prog_compiler_static='-Bstatic'
13442 ;;
13443
13444 sysv4*MP*)
13445 if test -d /usr/nec ;then
13446 lt_prog_compiler_pic='-Kconform_pic'
13447 lt_prog_compiler_static='-Bstatic'
13448 fi
13449 ;;
13450
13451 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13452 lt_prog_compiler_wl='-Wl,'
13453 lt_prog_compiler_pic='-KPIC'
13454 lt_prog_compiler_static='-Bstatic'
13455 ;;
13456
13457 unicos*)
13458 lt_prog_compiler_wl='-Wl,'
13459 lt_prog_compiler_can_build_shared=no
13460 ;;
13461
13462 uts4*)
13463 lt_prog_compiler_pic='-pic'
13464 lt_prog_compiler_static='-Bstatic'
13465 ;;
13466
13467 *)
13468 lt_prog_compiler_can_build_shared=no
13469 ;;
13470 esac
13471 fi
13472
13473case $host_os in
13474 # For platforms which do not support PIC, -DPIC is meaningless:
13475 *djgpp*)
13476 lt_prog_compiler_pic=
13477 ;;
13478 *)
13479 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13480 ;;
13481esac
cristy73bd4a52010-10-05 11:24:23 +000013482
cristyda16f162011-02-19 23:52:17 +000013483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13484$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13485if ${lt_cv_prog_compiler_pic+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487else
13488 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13489fi
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13491$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13492lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013493
13494#
13495# Check to make sure the PIC flag actually works.
13496#
13497if test -n "$lt_prog_compiler_pic"; then
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13499$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013500if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013501 $as_echo_n "(cached) " >&6
13502else
13503 lt_cv_prog_compiler_pic_works=no
13504 ac_outfile=conftest.$ac_objext
13505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13506 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13507 # Insert the option either (1) after the last *FLAGS variable, or
13508 # (2) before a word containing "conftest.", or (3) at the end.
13509 # Note that $ac_compile itself does not contain backslashes and begins
13510 # with a dollar sign (not a hyphen), so the echo should work correctly.
13511 # The option is referenced via a variable to avoid confusing sed.
13512 lt_compile=`echo "$ac_compile" | $SED \
13513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13515 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013517 (eval "$lt_compile" 2>conftest.err)
13518 ac_status=$?
13519 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013521 if (exit $ac_status) && test -s "$ac_outfile"; then
13522 # The compiler can only warn and ignore the option if not recognized
13523 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13527 lt_cv_prog_compiler_pic_works=yes
13528 fi
13529 fi
13530 $RM conftest*
13531
13532fi
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13534$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13535
13536if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13537 case $lt_prog_compiler_pic in
13538 "" | " "*) ;;
13539 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13540 esac
13541else
13542 lt_prog_compiler_pic=
13543 lt_prog_compiler_can_build_shared=no
13544fi
13545
13546fi
13547
13548
13549
13550
13551
13552
cristyda16f162011-02-19 23:52:17 +000013553
13554
13555
13556
13557
cristy73bd4a52010-10-05 11:24:23 +000013558#
13559# Check to make sure the static flag actually works.
13560#
13561wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13563$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013564if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013565 $as_echo_n "(cached) " >&6
13566else
13567 lt_cv_prog_compiler_static_works=no
13568 save_LDFLAGS="$LDFLAGS"
13569 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13570 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13572 # The linker can only warn and ignore the option if not recognized
13573 # So say no if there are warnings
13574 if test -s conftest.err; then
13575 # Append any errors to the config.log.
13576 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013577 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13579 if diff conftest.exp conftest.er2 >/dev/null; then
13580 lt_cv_prog_compiler_static_works=yes
13581 fi
13582 else
13583 lt_cv_prog_compiler_static_works=yes
13584 fi
13585 fi
13586 $RM -r conftest*
13587 LDFLAGS="$save_LDFLAGS"
13588
13589fi
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13591$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13592
13593if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13594 :
13595else
13596 lt_prog_compiler_static=
13597fi
13598
13599
13600
13601
13602
13603
13604
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13606$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013607if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013608 $as_echo_n "(cached) " >&6
13609else
13610 lt_cv_prog_compiler_c_o=no
13611 $RM -r conftest 2>/dev/null
13612 mkdir conftest
13613 cd conftest
13614 mkdir out
13615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13616
13617 lt_compiler_flag="-o out/conftest2.$ac_objext"
13618 # Insert the option either (1) after the last *FLAGS variable, or
13619 # (2) before a word containing "conftest.", or (3) at the end.
13620 # Note that $ac_compile itself does not contain backslashes and begins
13621 # with a dollar sign (not a hyphen), so the echo should work correctly.
13622 lt_compile=`echo "$ac_compile" | $SED \
13623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13625 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013627 (eval "$lt_compile" 2>out/conftest.err)
13628 ac_status=$?
13629 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13632 then
13633 # The compiler can only warn and ignore the option if not recognized
13634 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013636 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13637 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13638 lt_cv_prog_compiler_c_o=yes
13639 fi
13640 fi
13641 chmod u+w . 2>&5
13642 $RM conftest*
13643 # SGI C++ compiler will create directory out/ii_files/ for
13644 # template instantiation
13645 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13646 $RM out/* && rmdir out
13647 cd ..
13648 $RM -r conftest
13649 $RM conftest*
13650
13651fi
13652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13653$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13654
13655
13656
13657
13658
13659
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13661$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013662if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013663 $as_echo_n "(cached) " >&6
13664else
13665 lt_cv_prog_compiler_c_o=no
13666 $RM -r conftest 2>/dev/null
13667 mkdir conftest
13668 cd conftest
13669 mkdir out
13670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13671
13672 lt_compiler_flag="-o out/conftest2.$ac_objext"
13673 # Insert the option either (1) after the last *FLAGS variable, or
13674 # (2) before a word containing "conftest.", or (3) at the end.
13675 # Note that $ac_compile itself does not contain backslashes and begins
13676 # with a dollar sign (not a hyphen), so the echo should work correctly.
13677 lt_compile=`echo "$ac_compile" | $SED \
13678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13680 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013682 (eval "$lt_compile" 2>out/conftest.err)
13683 ac_status=$?
13684 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13687 then
13688 # The compiler can only warn and ignore the option if not recognized
13689 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013690 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13693 lt_cv_prog_compiler_c_o=yes
13694 fi
13695 fi
13696 chmod u+w . 2>&5
13697 $RM conftest*
13698 # SGI C++ compiler will create directory out/ii_files/ for
13699 # template instantiation
13700 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13701 $RM out/* && rmdir out
13702 cd ..
13703 $RM -r conftest
13704 $RM conftest*
13705
13706fi
13707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13708$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13709
13710
13711
13712
13713hard_links="nottested"
13714if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13715 # do not overwrite the value of need_locks provided by the user
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13717$as_echo_n "checking if we can lock with hard links... " >&6; }
13718 hard_links=yes
13719 $RM conftest*
13720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13721 touch conftest.a
13722 ln conftest.a conftest.b 2>&5 || hard_links=no
13723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13725$as_echo "$hard_links" >&6; }
13726 if test "$hard_links" = no; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13728$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13729 need_locks=warn
13730 fi
13731else
13732 need_locks=no
13733fi
13734
13735
13736
13737
13738
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13741$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13742
13743 runpath_var=
13744 allow_undefined_flag=
13745 always_export_symbols=no
13746 archive_cmds=
13747 archive_expsym_cmds=
13748 compiler_needs_object=no
13749 enable_shared_with_static_runtimes=no
13750 export_dynamic_flag_spec=
13751 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13752 hardcode_automatic=no
13753 hardcode_direct=no
13754 hardcode_direct_absolute=no
13755 hardcode_libdir_flag_spec=
13756 hardcode_libdir_flag_spec_ld=
13757 hardcode_libdir_separator=
13758 hardcode_minus_L=no
13759 hardcode_shlibpath_var=unsupported
13760 inherit_rpath=no
13761 link_all_deplibs=unknown
13762 module_cmds=
13763 module_expsym_cmds=
13764 old_archive_from_new_cmds=
13765 old_archive_from_expsyms_cmds=
13766 thread_safe_flag_spec=
13767 whole_archive_flag_spec=
13768 # include_expsyms should be a list of space-separated symbols to be *always*
13769 # included in the symbol list
13770 include_expsyms=
13771 # exclude_expsyms can be an extended regexp of symbols to exclude
13772 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13773 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13774 # as well as any symbol that contains `d'.
13775 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13776 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13777 # platforms (ab)use it in PIC code, but their linkers get confused if
13778 # the symbol is explicitly referenced. Since portable code cannot
13779 # rely on this symbol name, it's probably fine to never include it in
13780 # preloaded symbol tables.
13781 # Exclude shared library initialization/finalization symbols.
13782 extract_expsyms_cmds=
13783
13784 case $host_os in
13785 cygwin* | mingw* | pw32* | cegcc*)
13786 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13787 # When not using gcc, we currently assume that we are using
13788 # Microsoft Visual C++.
13789 if test "$GCC" != yes; then
13790 with_gnu_ld=no
13791 fi
13792 ;;
13793 interix*)
13794 # we just hope/assume this is gcc and not c89 (= MSVC++)
13795 with_gnu_ld=yes
13796 ;;
13797 openbsd*)
13798 with_gnu_ld=no
13799 ;;
13800 esac
13801
13802 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013803
13804 # On some targets, GNU ld is compatible enough with the native linker
13805 # that we're better off using the native interface for both.
13806 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013807 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013808 case $host_os in
13809 aix*)
13810 # The AIX port of GNU ld has always aspired to compatibility
13811 # with the native linker. However, as the warning in the GNU ld
13812 # block says, versions before 2.19.5* couldn't really create working
13813 # shared libraries, regardless of the interface used.
13814 case `$LD -v 2>&1` in
13815 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13816 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13817 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13818 *)
13819 lt_use_gnu_ld_interface=yes
13820 ;;
13821 esac
13822 ;;
13823 *)
13824 lt_use_gnu_ld_interface=yes
13825 ;;
13826 esac
13827 fi
13828
13829 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013830 # If archive_cmds runs LD, not CC, wlarc should be empty
13831 wlarc='${wl}'
13832
13833 # Set some defaults for GNU ld with shared library support. These
13834 # are reset later if shared libraries are not supported. Putting them
13835 # here allows them to be overridden if necessary.
13836 runpath_var=LD_RUN_PATH
13837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13838 export_dynamic_flag_spec='${wl}--export-dynamic'
13839 # ancient GNU ld didn't support --whole-archive et. al.
13840 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13841 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13842 else
13843 whole_archive_flag_spec=
13844 fi
13845 supports_anon_versioning=no
13846 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013847 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013848 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13849 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13850 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13851 *\ 2.11.*) ;; # other 2.11 versions
13852 *) supports_anon_versioning=yes ;;
13853 esac
13854
13855 # See if GNU ld supports shared libraries.
13856 case $host_os in
13857 aix[3-9]*)
13858 # On AIX/PPC, the GNU linker is very broken
13859 if test "$host_cpu" != ia64; then
13860 ld_shlibs=no
13861 cat <<_LT_EOF 1>&2
13862
cristy0c60a692010-11-04 01:09:47 +000013863*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013864*** to be unable to reliably create shared libraries on AIX.
13865*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013866*** really care for shared libraries, you may want to install binutils
13867*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13868*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013869
13870_LT_EOF
13871 fi
13872 ;;
13873
13874 amigaos*)
13875 case $host_cpu in
13876 powerpc)
13877 # see comment about AmigaOS4 .so support
13878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13879 archive_expsym_cmds=''
13880 ;;
13881 m68k)
13882 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)'
13883 hardcode_libdir_flag_spec='-L$libdir'
13884 hardcode_minus_L=yes
13885 ;;
13886 esac
13887 ;;
13888
13889 beos*)
13890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13891 allow_undefined_flag=unsupported
13892 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13893 # support --undefined. This deserves some investigation. FIXME
13894 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13895 else
13896 ld_shlibs=no
13897 fi
13898 ;;
13899
13900 cygwin* | mingw* | pw32* | cegcc*)
13901 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13902 # as there is no search path for DLLs.
13903 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013904 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013905 allow_undefined_flag=unsupported
13906 always_export_symbols=no
13907 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013908 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'
13909 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 +000013910
13911 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13913 # If the export-symbols file already is a .def file (1st line
13914 # is EXPORTS), use it as is; otherwise, prepend...
13915 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13916 cp $export_symbols $output_objdir/$soname.def;
13917 else
13918 echo EXPORTS > $output_objdir/$soname.def;
13919 cat $export_symbols >> $output_objdir/$soname.def;
13920 fi~
13921 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13922 else
13923 ld_shlibs=no
13924 fi
13925 ;;
13926
cristy0c60a692010-11-04 01:09:47 +000013927 haiku*)
13928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13929 link_all_deplibs=yes
13930 ;;
13931
cristy73bd4a52010-10-05 11:24:23 +000013932 interix[3-9]*)
13933 hardcode_direct=no
13934 hardcode_shlibpath_var=no
13935 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13936 export_dynamic_flag_spec='${wl}-E'
13937 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13938 # Instead, shared libraries are loaded at an image base (0x10000000 by
13939 # default) and relocated if they conflict, which is a slow very memory
13940 # consuming and fragmenting process. To avoid this, we pick a random,
13941 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13942 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13943 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13944 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'
13945 ;;
13946
cristy0c60a692010-11-04 01:09:47 +000013947 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013948 tmp_diet=no
13949 if test "$host_os" = linux-dietlibc; then
13950 case $cc_basename in
13951 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13952 esac
13953 fi
13954 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13955 && test "$tmp_diet" = no
13956 then
cristyda16f162011-02-19 23:52:17 +000013957 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013958 tmp_sharedflag='-shared'
13959 case $cc_basename,$host_cpu in
13960 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013961 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 +000013962 tmp_addflag=' $pic_flag'
13963 ;;
cristy0c60a692010-11-04 01:09:47 +000013964 pgf77* | pgf90* | pgf95* | pgfortran*)
13965 # Portland Group f77 and f90 compilers
13966 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 +000013967 tmp_addflag=' $pic_flag -Mnomain' ;;
13968 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13969 tmp_addflag=' -i_dynamic' ;;
13970 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13971 tmp_addflag=' -i_dynamic -nofor_main' ;;
13972 ifc* | ifort*) # Intel Fortran compiler
13973 tmp_addflag=' -nofor_main' ;;
13974 lf95*) # Lahey Fortran 8.1
13975 whole_archive_flag_spec=
13976 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013977 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013978 tmp_sharedflag='-qmkshrobj'
13979 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013980 nvcc*) # Cuda Compiler Driver 2.2
13981 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'
13982 compiler_needs_object=yes
13983 ;;
cristy73bd4a52010-10-05 11:24:23 +000013984 esac
13985 case `$CC -V 2>&1 | sed 5q` in
13986 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013987 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 +000013988 compiler_needs_object=yes
13989 tmp_sharedflag='-G' ;;
13990 *Sun\ F*) # Sun Fortran 8.3
13991 tmp_sharedflag='-G' ;;
13992 esac
13993 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13994
13995 if test "x$supports_anon_versioning" = xyes; then
13996 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13997 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13998 echo "local: *; };" >> $output_objdir/$libname.ver~
13999 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14000 fi
14001
14002 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014003 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014004 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14005 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14006 hardcode_libdir_flag_spec=
14007 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014008 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014009 if test "x$supports_anon_versioning" = xyes; then
14010 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14012 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014013 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014014 fi
14015 ;;
14016 esac
14017 else
14018 ld_shlibs=no
14019 fi
14020 ;;
14021
14022 netbsd*)
14023 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14024 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14025 wlarc=
14026 else
cristyda16f162011-02-19 23:52:17 +000014027 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14028 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 +000014029 fi
14030 ;;
14031
14032 solaris*)
14033 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14034 ld_shlibs=no
14035 cat <<_LT_EOF 1>&2
14036
14037*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14038*** create shared libraries on Solaris systems. Therefore, libtool
14039*** is disabling shared libraries support. We urge you to upgrade GNU
14040*** binutils to release 2.9.1 or newer. Another option is to modify
14041*** your PATH or compiler configuration so that the native linker is
14042*** used, and then restart.
14043
14044_LT_EOF
14045 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14047 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 +000014048 else
14049 ld_shlibs=no
14050 fi
14051 ;;
14052
14053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14054 case `$LD -v 2>&1` in
14055 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14056 ld_shlibs=no
14057 cat <<_LT_EOF 1>&2
14058
14059*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14060*** reliably create shared libraries on SCO systems. Therefore, libtool
14061*** is disabling shared libraries support. We urge you to upgrade GNU
14062*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14063*** your PATH or compiler configuration so that the native linker is
14064*** used, and then restart.
14065
14066_LT_EOF
14067 ;;
14068 *)
14069 # For security reasons, it is highly recommended that you always
14070 # use absolute paths for naming shared libraries, and exclude the
14071 # DT_RUNPATH tag from executables and libraries. But doing so
14072 # requires that you compile everything twice, which is a pain.
14073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14077 else
14078 ld_shlibs=no
14079 fi
14080 ;;
14081 esac
14082 ;;
14083
14084 sunos4*)
14085 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14086 wlarc=
14087 hardcode_direct=yes
14088 hardcode_shlibpath_var=no
14089 ;;
14090
14091 *)
14092 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14094 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 +000014095 else
14096 ld_shlibs=no
14097 fi
14098 ;;
14099 esac
14100
14101 if test "$ld_shlibs" = no; then
14102 runpath_var=
14103 hardcode_libdir_flag_spec=
14104 export_dynamic_flag_spec=
14105 whole_archive_flag_spec=
14106 fi
14107 else
14108 # PORTME fill in a description of your system's linker (not GNU ld)
14109 case $host_os in
14110 aix3*)
14111 allow_undefined_flag=unsupported
14112 always_export_symbols=yes
14113 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'
14114 # Note: this linker hardcodes the directories in LIBPATH if there
14115 # are no directories specified by -L.
14116 hardcode_minus_L=yes
14117 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14118 # Neither direct hardcoding nor static linking is supported with a
14119 # broken collect2.
14120 hardcode_direct=unsupported
14121 fi
14122 ;;
14123
14124 aix[4-9]*)
14125 if test "$host_cpu" = ia64; then
14126 # On IA64, the linker does run time linking by default, so we don't
14127 # have to do anything special.
14128 aix_use_runtimelinking=no
14129 exp_sym_flag='-Bexport'
14130 no_entry_flag=""
14131 else
14132 # If we're using GNU nm, then we don't want the "-C" option.
14133 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014134 # Also, AIX nm treats weak defined symbols like other global
14135 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014136 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014137 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 +000014138 else
14139 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'
14140 fi
14141 aix_use_runtimelinking=no
14142
14143 # Test if we are trying to use run time linking or normal
14144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14145 # need to do runtime linking.
14146 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14147 for ld_flag in $LDFLAGS; do
14148 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14149 aix_use_runtimelinking=yes
14150 break
14151 fi
14152 done
14153 ;;
14154 esac
14155
14156 exp_sym_flag='-bexport'
14157 no_entry_flag='-bnoentry'
14158 fi
14159
14160 # When large executables or shared objects are built, AIX ld can
14161 # have problems creating the table of contents. If linking a library
14162 # or program results in "error TOC overflow" add -mminimal-toc to
14163 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14164 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14165
14166 archive_cmds=''
14167 hardcode_direct=yes
14168 hardcode_direct_absolute=yes
14169 hardcode_libdir_separator=':'
14170 link_all_deplibs=yes
14171 file_list_spec='${wl}-f,'
14172
14173 if test "$GCC" = yes; then
14174 case $host_os in aix4.[012]|aix4.[012].*)
14175 # We only want to do this on AIX 4.2 and lower, the check
14176 # below for broken collect2 doesn't work under 4.3+
14177 collect2name=`${CC} -print-prog-name=collect2`
14178 if test -f "$collect2name" &&
14179 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14180 then
14181 # We have reworked collect2
14182 :
14183 else
14184 # We have old collect2
14185 hardcode_direct=unsupported
14186 # It fails to find uninstalled libraries when the uninstalled
14187 # path is not listed in the libpath. Setting hardcode_minus_L
14188 # to unsupported forces relinking
14189 hardcode_minus_L=yes
14190 hardcode_libdir_flag_spec='-L$libdir'
14191 hardcode_libdir_separator=
14192 fi
14193 ;;
14194 esac
14195 shared_flag='-shared'
14196 if test "$aix_use_runtimelinking" = yes; then
14197 shared_flag="$shared_flag "'${wl}-G'
14198 fi
14199 else
14200 # not using gcc
14201 if test "$host_cpu" = ia64; then
14202 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14203 # chokes on -Wl,-G. The following line is correct:
14204 shared_flag='-G'
14205 else
14206 if test "$aix_use_runtimelinking" = yes; then
14207 shared_flag='${wl}-G'
14208 else
14209 shared_flag='${wl}-bM:SRE'
14210 fi
14211 fi
14212 fi
14213
14214 export_dynamic_flag_spec='${wl}-bexpall'
14215 # It seems that -bexpall does not export symbols beginning with
14216 # underscore (_), so it is better to generate a list of symbols to export.
14217 always_export_symbols=yes
14218 if test "$aix_use_runtimelinking" = yes; then
14219 # Warning - without using the other runtime loading flags (-brtl),
14220 # -berok will link without error, but may produce a broken library.
14221 allow_undefined_flag='-berok'
14222 # Determine the default libpath from the value encoded in an
14223 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014224 if test "${lt_cv_aix_libpath+set}" = set; then
14225 aix_libpath=$lt_cv_aix_libpath
14226else
14227 if ${lt_cv_aix_libpath_+:} false; then :
14228 $as_echo_n "(cached) " >&6
14229else
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014231/* end confdefs.h. */
14232
14233int
14234main ()
14235{
14236
14237 ;
14238 return 0;
14239}
14240_ACEOF
14241if ac_fn_c_try_link "$LINENO"; then :
14242
cristyda16f162011-02-19 23:52:17 +000014243 lt_aix_libpath_sed='
14244 /Import File Strings/,/^$/ {
14245 /^0/ {
14246 s/^0 *\([^ ]*\) *$/\1/
14247 p
14248 }
14249 }'
14250 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14251 # Check for a 64-bit object if we didn't find anything.
14252 if test -z "$lt_cv_aix_libpath_"; then
14253 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14254 fi
cristy73bd4a52010-10-05 11:24:23 +000014255fi
14256rm -f core conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014258 if test -z "$lt_cv_aix_libpath_"; then
14259 lt_cv_aix_libpath_="/usr/lib:/lib"
14260 fi
14261
14262fi
14263
14264 aix_libpath=$lt_cv_aix_libpath_
14265fi
cristy73bd4a52010-10-05 11:24:23 +000014266
14267 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014268 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 +000014269 else
14270 if test "$host_cpu" = ia64; then
14271 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14272 allow_undefined_flag="-z nodefs"
14273 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"
14274 else
14275 # Determine the default libpath from the value encoded in an
14276 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014277 if test "${lt_cv_aix_libpath+set}" = set; then
14278 aix_libpath=$lt_cv_aix_libpath
14279else
14280 if ${lt_cv_aix_libpath_+:} false; then :
14281 $as_echo_n "(cached) " >&6
14282else
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014284/* end confdefs.h. */
14285
14286int
14287main ()
14288{
14289
14290 ;
14291 return 0;
14292}
14293_ACEOF
14294if ac_fn_c_try_link "$LINENO"; then :
14295
cristyda16f162011-02-19 23:52:17 +000014296 lt_aix_libpath_sed='
14297 /Import File Strings/,/^$/ {
14298 /^0/ {
14299 s/^0 *\([^ ]*\) *$/\1/
14300 p
14301 }
14302 }'
14303 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14304 # Check for a 64-bit object if we didn't find anything.
14305 if test -z "$lt_cv_aix_libpath_"; then
14306 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14307 fi
cristy73bd4a52010-10-05 11:24:23 +000014308fi
14309rm -f core conftest.err conftest.$ac_objext \
14310 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014311 if test -z "$lt_cv_aix_libpath_"; then
14312 lt_cv_aix_libpath_="/usr/lib:/lib"
14313 fi
14314
14315fi
14316
14317 aix_libpath=$lt_cv_aix_libpath_
14318fi
cristy73bd4a52010-10-05 11:24:23 +000014319
14320 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14321 # Warning - without using the other run time loading flags,
14322 # -berok will link without error, but may produce a broken library.
14323 no_undefined_flag=' ${wl}-bernotok'
14324 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014325 if test "$with_gnu_ld" = yes; then
14326 # We only use this code for GNU lds that support --whole-archive.
14327 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14328 else
14329 # Exported symbols can be pulled into shared objects from archives
14330 whole_archive_flag_spec='$convenience'
14331 fi
cristy73bd4a52010-10-05 11:24:23 +000014332 archive_cmds_need_lc=yes
14333 # This is similar to how AIX traditionally builds its shared libraries.
14334 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'
14335 fi
14336 fi
14337 ;;
14338
14339 amigaos*)
14340 case $host_cpu in
14341 powerpc)
14342 # see comment about AmigaOS4 .so support
14343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14344 archive_expsym_cmds=''
14345 ;;
14346 m68k)
14347 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)'
14348 hardcode_libdir_flag_spec='-L$libdir'
14349 hardcode_minus_L=yes
14350 ;;
14351 esac
14352 ;;
14353
14354 bsdi[45]*)
14355 export_dynamic_flag_spec=-rdynamic
14356 ;;
14357
14358 cygwin* | mingw* | pw32* | cegcc*)
14359 # When not using gcc, we currently assume that we are using
14360 # Microsoft Visual C++.
14361 # hardcode_libdir_flag_spec is actually meaningless, as there is
14362 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014363 case $cc_basename in
14364 cl*)
14365 # Native MSVC
14366 hardcode_libdir_flag_spec=' '
14367 allow_undefined_flag=unsupported
14368 always_export_symbols=yes
14369 file_list_spec='@'
14370 # Tell ltmain to make .lib files, not .a files.
14371 libext=lib
14372 # Tell ltmain to make .dll files, not .so files.
14373 shrext_cmds=".dll"
14374 # FIXME: Setting linknames here is a bad hack.
14375 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14376 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14377 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14378 else
14379 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14380 fi~
14381 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14382 linknames='
14383 # The linker will not automatically build a static lib if we build a DLL.
14384 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14385 enable_shared_with_static_runtimes=yes
14386 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14387 # Don't use ranlib
14388 old_postinstall_cmds='chmod 644 $oldlib'
14389 postlink_cmds='lt_outputfile="@OUTPUT@"~
14390 lt_tool_outputfile="@TOOL_OUTPUT@"~
14391 case $lt_outputfile in
14392 *.exe|*.EXE) ;;
14393 *)
14394 lt_outputfile="$lt_outputfile.exe"
14395 lt_tool_outputfile="$lt_tool_outputfile.exe"
14396 ;;
14397 esac~
14398 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14399 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14400 $RM "$lt_outputfile.manifest";
14401 fi'
14402 ;;
14403 *)
14404 # Assume MSVC wrapper
14405 hardcode_libdir_flag_spec=' '
14406 allow_undefined_flag=unsupported
14407 # Tell ltmain to make .lib files, not .a files.
14408 libext=lib
14409 # Tell ltmain to make .dll files, not .so files.
14410 shrext_cmds=".dll"
14411 # FIXME: Setting linknames here is a bad hack.
14412 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14413 # The linker will automatically build a .lib file if we build a DLL.
14414 old_archive_from_new_cmds='true'
14415 # FIXME: Should let the user specify the lib program.
14416 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14417 enable_shared_with_static_runtimes=yes
14418 ;;
14419 esac
cristy73bd4a52010-10-05 11:24:23 +000014420 ;;
14421
14422 darwin* | rhapsody*)
14423
14424
14425 archive_cmds_need_lc=no
14426 hardcode_direct=no
14427 hardcode_automatic=yes
14428 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014429 if test "$lt_cv_ld_force_load" = "yes"; then
14430 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\"`'
14431 else
14432 whole_archive_flag_spec=''
14433 fi
cristy73bd4a52010-10-05 11:24:23 +000014434 link_all_deplibs=yes
14435 allow_undefined_flag="$_lt_dar_allow_undefined"
14436 case $cc_basename in
14437 ifort*) _lt_dar_can_shared=yes ;;
14438 *) _lt_dar_can_shared=$GCC ;;
14439 esac
14440 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014441 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014442 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14443 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14444 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}"
14445 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}"
14446
14447 else
14448 ld_shlibs=no
14449 fi
14450
14451 ;;
14452
14453 dgux*)
14454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14455 hardcode_libdir_flag_spec='-L$libdir'
14456 hardcode_shlibpath_var=no
14457 ;;
14458
14459 freebsd1*)
14460 ld_shlibs=no
14461 ;;
14462
14463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14464 # support. Future versions do this automatically, but an explicit c++rt0.o
14465 # does not break anything, and helps significantly (at the cost of a little
14466 # extra space).
14467 freebsd2.2*)
14468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14469 hardcode_libdir_flag_spec='-R$libdir'
14470 hardcode_direct=yes
14471 hardcode_shlibpath_var=no
14472 ;;
14473
14474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14475 freebsd2*)
14476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14477 hardcode_direct=yes
14478 hardcode_minus_L=yes
14479 hardcode_shlibpath_var=no
14480 ;;
14481
14482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14483 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014485 hardcode_libdir_flag_spec='-R$libdir'
14486 hardcode_direct=yes
14487 hardcode_shlibpath_var=no
14488 ;;
14489
14490 hpux9*)
14491 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014492 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 +000014493 else
14494 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'
14495 fi
14496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14497 hardcode_libdir_separator=:
14498 hardcode_direct=yes
14499
14500 # hardcode_minus_L: Not really in the search PATH,
14501 # but as the default location of the library.
14502 hardcode_minus_L=yes
14503 export_dynamic_flag_spec='${wl}-E'
14504 ;;
14505
14506 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014507 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014508 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 +000014509 else
14510 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14511 fi
14512 if test "$with_gnu_ld" = no; then
14513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14514 hardcode_libdir_flag_spec_ld='+b $libdir'
14515 hardcode_libdir_separator=:
14516 hardcode_direct=yes
14517 hardcode_direct_absolute=yes
14518 export_dynamic_flag_spec='${wl}-E'
14519 # hardcode_minus_L: Not really in the search PATH,
14520 # but as the default location of the library.
14521 hardcode_minus_L=yes
14522 fi
14523 ;;
14524
14525 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014526 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014527 case $host_cpu in
14528 hppa*64*)
14529 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14530 ;;
14531 ia64*)
cristyda16f162011-02-19 23:52:17 +000014532 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014533 ;;
14534 *)
cristyda16f162011-02-19 23:52:17 +000014535 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 +000014536 ;;
14537 esac
14538 else
14539 case $host_cpu in
14540 hppa*64*)
14541 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14542 ;;
14543 ia64*)
14544 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14545 ;;
14546 *)
cristy0c60a692010-11-04 01:09:47 +000014547
14548 # Older versions of the 11.00 compiler do not understand -b yet
14549 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14551$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014552if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014553 $as_echo_n "(cached) " >&6
14554else
14555 lt_cv_prog_compiler__b=no
14556 save_LDFLAGS="$LDFLAGS"
14557 LDFLAGS="$LDFLAGS -b"
14558 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14560 # The linker can only warn and ignore the option if not recognized
14561 # So say no if there are warnings
14562 if test -s conftest.err; then
14563 # Append any errors to the config.log.
14564 cat conftest.err 1>&5
14565 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14567 if diff conftest.exp conftest.er2 >/dev/null; then
14568 lt_cv_prog_compiler__b=yes
14569 fi
14570 else
14571 lt_cv_prog_compiler__b=yes
14572 fi
14573 fi
14574 $RM -r conftest*
14575 LDFLAGS="$save_LDFLAGS"
14576
14577fi
14578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14579$as_echo "$lt_cv_prog_compiler__b" >&6; }
14580
14581if test x"$lt_cv_prog_compiler__b" = xyes; then
14582 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14583else
14584 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14585fi
14586
cristy73bd4a52010-10-05 11:24:23 +000014587 ;;
14588 esac
14589 fi
14590 if test "$with_gnu_ld" = no; then
14591 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14592 hardcode_libdir_separator=:
14593
14594 case $host_cpu in
14595 hppa*64*|ia64*)
14596 hardcode_direct=no
14597 hardcode_shlibpath_var=no
14598 ;;
14599 *)
14600 hardcode_direct=yes
14601 hardcode_direct_absolute=yes
14602 export_dynamic_flag_spec='${wl}-E'
14603
14604 # hardcode_minus_L: Not really in the search PATH,
14605 # but as the default location of the library.
14606 hardcode_minus_L=yes
14607 ;;
14608 esac
14609 fi
14610 ;;
14611
14612 irix5* | irix6* | nonstopux*)
14613 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014614 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 +000014615 # Try to use the -exported_symbol ld option, if it does not
14616 # work, assume that -exports_file does not work either and
14617 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014618 # This should be the same for all languages, so no per-tag cache variable.
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14620$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14621if ${lt_cv_irix_exported_symbol+:} false; then :
14622 $as_echo_n "(cached) " >&6
14623else
14624 save_LDFLAGS="$LDFLAGS"
14625 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014627/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014628int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014629_ACEOF
14630if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014631 lt_cv_irix_exported_symbol=yes
14632else
14633 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014634fi
14635rm -f core conftest.err conftest.$ac_objext \
14636 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014637 LDFLAGS="$save_LDFLAGS"
14638fi
14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14640$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14641 if test "$lt_cv_irix_exported_symbol" = yes; then
14642 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'
14643 fi
cristy73bd4a52010-10-05 11:24:23 +000014644 else
cristy0c60a692010-11-04 01:09:47 +000014645 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'
14646 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 +000014647 fi
14648 archive_cmds_need_lc='no'
14649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14650 hardcode_libdir_separator=:
14651 inherit_rpath=yes
14652 link_all_deplibs=yes
14653 ;;
14654
14655 netbsd*)
14656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14658 else
14659 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14660 fi
14661 hardcode_libdir_flag_spec='-R$libdir'
14662 hardcode_direct=yes
14663 hardcode_shlibpath_var=no
14664 ;;
14665
14666 newsos6)
14667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14668 hardcode_direct=yes
14669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14670 hardcode_libdir_separator=:
14671 hardcode_shlibpath_var=no
14672 ;;
14673
14674 *nto* | *qnx*)
14675 ;;
14676
14677 openbsd*)
14678 if test -f /usr/libexec/ld.so; then
14679 hardcode_direct=yes
14680 hardcode_shlibpath_var=no
14681 hardcode_direct_absolute=yes
14682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14683 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14684 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14686 export_dynamic_flag_spec='${wl}-E'
14687 else
14688 case $host_os in
14689 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14691 hardcode_libdir_flag_spec='-R$libdir'
14692 ;;
14693 *)
14694 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14695 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14696 ;;
14697 esac
14698 fi
14699 else
14700 ld_shlibs=no
14701 fi
14702 ;;
14703
14704 os2*)
14705 hardcode_libdir_flag_spec='-L$libdir'
14706 hardcode_minus_L=yes
14707 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014708 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 +000014709 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14710 ;;
14711
14712 osf3*)
14713 if test "$GCC" = yes; then
14714 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014715 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 +000014716 else
14717 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014718 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 +000014719 fi
14720 archive_cmds_need_lc='no'
14721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14722 hardcode_libdir_separator=:
14723 ;;
14724
14725 osf4* | osf5*) # as osf3* with the addition of -msym flag
14726 if test "$GCC" = yes; then
14727 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014728 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 +000014729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14730 else
14731 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014732 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 +000014733 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 +000014734 $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 +000014735
14736 # Both c and cxx compiler support -rpath directly
14737 hardcode_libdir_flag_spec='-rpath $libdir'
14738 fi
14739 archive_cmds_need_lc='no'
14740 hardcode_libdir_separator=:
14741 ;;
14742
14743 solaris*)
14744 no_undefined_flag=' -z defs'
14745 if test "$GCC" = yes; then
14746 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014747 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 +000014748 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 +000014749 $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 +000014750 else
14751 case `$CC -V 2>&1` in
14752 *"Compilers 5.0"*)
14753 wlarc=''
14754 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14755 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14756 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14757 ;;
14758 *)
14759 wlarc='${wl}'
14760 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14761 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14762 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14763 ;;
14764 esac
14765 fi
14766 hardcode_libdir_flag_spec='-R$libdir'
14767 hardcode_shlibpath_var=no
14768 case $host_os in
14769 solaris2.[0-5] | solaris2.[0-5].*) ;;
14770 *)
14771 # The compiler driver will combine and reorder linker options,
14772 # but understands `-z linker_flag'. GCC discards it without `$wl',
14773 # but is careful enough not to reorder.
14774 # Supported since Solaris 2.6 (maybe 2.5.1?)
14775 if test "$GCC" = yes; then
14776 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14777 else
14778 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14779 fi
14780 ;;
14781 esac
14782 link_all_deplibs=yes
14783 ;;
14784
14785 sunos4*)
14786 if test "x$host_vendor" = xsequent; then
14787 # Use $CC to link under sequent, because it throws in some extra .o
14788 # files that make .init and .fini sections work.
14789 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14790 else
14791 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14792 fi
14793 hardcode_libdir_flag_spec='-L$libdir'
14794 hardcode_direct=yes
14795 hardcode_minus_L=yes
14796 hardcode_shlibpath_var=no
14797 ;;
14798
14799 sysv4)
14800 case $host_vendor in
14801 sni)
14802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_direct=yes # is this really true???
14804 ;;
14805 siemens)
14806 ## LD is ld it makes a PLAMLIB
14807 ## CC just makes a GrossModule.
14808 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14809 reload_cmds='$CC -r -o $output$reload_objs'
14810 hardcode_direct=no
14811 ;;
14812 motorola)
14813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14814 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14815 ;;
14816 esac
14817 runpath_var='LD_RUN_PATH'
14818 hardcode_shlibpath_var=no
14819 ;;
14820
14821 sysv4.3*)
14822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14823 hardcode_shlibpath_var=no
14824 export_dynamic_flag_spec='-Bexport'
14825 ;;
14826
14827 sysv4*MP*)
14828 if test -d /usr/nec; then
14829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14830 hardcode_shlibpath_var=no
14831 runpath_var=LD_RUN_PATH
14832 hardcode_runpath_var=yes
14833 ld_shlibs=yes
14834 fi
14835 ;;
14836
14837 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14838 no_undefined_flag='${wl}-z,text'
14839 archive_cmds_need_lc=no
14840 hardcode_shlibpath_var=no
14841 runpath_var='LD_RUN_PATH'
14842
14843 if test "$GCC" = yes; then
14844 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14845 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846 else
14847 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14849 fi
14850 ;;
14851
14852 sysv5* | sco3.2v5* | sco5v6*)
14853 # Note: We can NOT use -z defs as we might desire, because we do not
14854 # link with -lc, and that would cause any symbols used from libc to
14855 # always be unresolved, which means just about no library would
14856 # ever link correctly. If we're not using GNU ld we use -z text
14857 # though, which does catch some bad symbols but isn't as heavy-handed
14858 # as -z defs.
14859 no_undefined_flag='${wl}-z,text'
14860 allow_undefined_flag='${wl}-z,nodefs'
14861 archive_cmds_need_lc=no
14862 hardcode_shlibpath_var=no
14863 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14864 hardcode_libdir_separator=':'
14865 link_all_deplibs=yes
14866 export_dynamic_flag_spec='${wl}-Bexport'
14867 runpath_var='LD_RUN_PATH'
14868
14869 if test "$GCC" = yes; then
14870 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14871 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14872 else
14873 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14874 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14875 fi
14876 ;;
14877
14878 uts4*)
14879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14880 hardcode_libdir_flag_spec='-L$libdir'
14881 hardcode_shlibpath_var=no
14882 ;;
14883
14884 *)
14885 ld_shlibs=no
14886 ;;
14887 esac
14888
14889 if test x$host_vendor = xsni; then
14890 case $host in
14891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14892 export_dynamic_flag_spec='${wl}-Blargedynsym'
14893 ;;
14894 esac
14895 fi
14896 fi
14897
14898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14899$as_echo "$ld_shlibs" >&6; }
14900test "$ld_shlibs" = no && can_build_shared=no
14901
14902with_gnu_ld=$with_gnu_ld
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918#
14919# Do we need to explicitly link libc?
14920#
14921case "x$archive_cmds_need_lc" in
14922x|xyes)
14923 # Assume -lc should be added
14924 archive_cmds_need_lc=yes
14925
14926 if test "$enable_shared" = yes && test "$GCC" = yes; then
14927 case $archive_cmds in
14928 *'~'*)
14929 # FIXME: we may have to deal with multi-command sequences.
14930 ;;
14931 '$CC '*)
14932 # Test whether the compiler implicitly links with -lc since on some
14933 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14934 # to ld, don't add -lc before -lgcc.
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14936$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014937if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014938 $as_echo_n "(cached) " >&6
14939else
14940 $RM conftest*
14941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014942
cristy0c60a692010-11-04 01:09:47 +000014943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014944 (eval $ac_compile) 2>&5
14945 ac_status=$?
14946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14947 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014948 soname=conftest
14949 lib=conftest
14950 libobjs=conftest.$ac_objext
14951 deplibs=
14952 wl=$lt_prog_compiler_wl
14953 pic_flag=$lt_prog_compiler_pic
14954 compiler_flags=-v
14955 linker_flags=-v
14956 verstring=
14957 output_objdir=.
14958 libname=conftest
14959 lt_save_allow_undefined_flag=$allow_undefined_flag
14960 allow_undefined_flag=
14961 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 +000014962 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14963 ac_status=$?
14964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14965 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014966 then
14967 lt_cv_archive_cmds_need_lc=no
14968 else
14969 lt_cv_archive_cmds_need_lc=yes
14970 fi
14971 allow_undefined_flag=$lt_save_allow_undefined_flag
14972 else
14973 cat conftest.err 1>&5
14974 fi
14975 $RM conftest*
14976
14977fi
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14979$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14980 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014981 ;;
14982 esac
14983 fi
14984 ;;
14985esac
14986
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15144$as_echo_n "checking dynamic linker characteristics... " >&6; }
15145
15146if test "$GCC" = yes; then
15147 case $host_os in
15148 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15149 *) lt_awk_arg="/^libraries:/" ;;
15150 esac
cristy0c60a692010-11-04 01:09:47 +000015151 case $host_os in
15152 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15153 *) lt_sed_strip_eq="s,=/,/,g" ;;
15154 esac
15155 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15156 case $lt_search_path_spec in
15157 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015158 # if the path contains ";" then we assume it to be the separator
15159 # otherwise default to the standard path separator (i.e. ":") - it is
15160 # assumed that no part of a normal pathname contains ";" but that should
15161 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015162 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15163 ;;
15164 *)
15165 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15166 ;;
15167 esac
cristy73bd4a52010-10-05 11:24:23 +000015168 # Ok, now we have the path, separated by spaces, we can step through it
15169 # and add multilib dir if necessary.
15170 lt_tmp_lt_search_path_spec=
15171 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15172 for lt_sys_path in $lt_search_path_spec; do
15173 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15174 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15175 else
15176 test -d "$lt_sys_path" && \
15177 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15178 fi
15179 done
cristy0c60a692010-11-04 01:09:47 +000015180 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015181BEGIN {RS=" "; FS="/|\n";} {
15182 lt_foo="";
15183 lt_count=0;
15184 for (lt_i = NF; lt_i > 0; lt_i--) {
15185 if ($lt_i != "" && $lt_i != ".") {
15186 if ($lt_i == "..") {
15187 lt_count++;
15188 } else {
15189 if (lt_count == 0) {
15190 lt_foo="/" $lt_i lt_foo;
15191 } else {
15192 lt_count--;
15193 }
15194 }
15195 }
15196 }
15197 if (lt_foo != "") { lt_freq[lt_foo]++; }
15198 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15199}'`
cristy0c60a692010-11-04 01:09:47 +000015200 # AWK program above erroneously prepends '/' to C:/dos/paths
15201 # for these hosts.
15202 case $host_os in
15203 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15204 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15205 esac
15206 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015207else
15208 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15209fi
15210library_names_spec=
15211libname_spec='lib$name'
15212soname_spec=
15213shrext_cmds=".so"
15214postinstall_cmds=
15215postuninstall_cmds=
15216finish_cmds=
15217finish_eval=
15218shlibpath_var=
15219shlibpath_overrides_runpath=unknown
15220version_type=none
15221dynamic_linker="$host_os ld.so"
15222sys_lib_dlsearch_path_spec="/lib /usr/lib"
15223need_lib_prefix=unknown
15224hardcode_into_libs=no
15225
15226# when you set need_version to no, make sure it does not cause -set_version
15227# flags to be left without arguments
15228need_version=unknown
15229
15230case $host_os in
15231aix3*)
15232 version_type=linux
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15234 shlibpath_var=LIBPATH
15235
15236 # AIX 3 has no versioning support, so we append a major version to the name.
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 ;;
15239
15240aix[4-9]*)
15241 version_type=linux
15242 need_lib_prefix=no
15243 need_version=no
15244 hardcode_into_libs=yes
15245 if test "$host_cpu" = ia64; then
15246 # AIX 5 supports IA64
15247 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15248 shlibpath_var=LD_LIBRARY_PATH
15249 else
15250 # With GCC up to 2.95.x, collect2 would create an import file
15251 # for dependence libraries. The import file would start with
15252 # the line `#! .'. This would cause the generated library to
15253 # depend on `.', always an invalid library. This was fixed in
15254 # development snapshots of GCC prior to 3.0.
15255 case $host_os in
15256 aix4 | aix4.[01] | aix4.[01].*)
15257 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15258 echo ' yes '
15259 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15260 :
15261 else
15262 can_build_shared=no
15263 fi
15264 ;;
15265 esac
15266 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15267 # soname into executable. Probably we can add versioning support to
15268 # collect2, so additional links can be useful in future.
15269 if test "$aix_use_runtimelinking" = yes; then
15270 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15271 # instead of lib<name>.a to let people know that these are not
15272 # typical AIX shared libraries.
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 else
15275 # We preserve .a as extension for shared libraries through AIX4.2
15276 # and later when we are not doing run time linking.
15277 library_names_spec='${libname}${release}.a $libname.a'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 fi
15280 shlibpath_var=LIBPATH
15281 fi
15282 ;;
15283
15284amigaos*)
15285 case $host_cpu in
15286 powerpc)
15287 # Since July 2007 AmigaOS4 officially supports .so libraries.
15288 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290 ;;
15291 m68k)
15292 library_names_spec='$libname.ixlibrary $libname.a'
15293 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015294 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 +000015295 ;;
15296 esac
15297 ;;
15298
15299beos*)
15300 library_names_spec='${libname}${shared_ext}'
15301 dynamic_linker="$host_os ld.so"
15302 shlibpath_var=LIBRARY_PATH
15303 ;;
15304
15305bsdi[45]*)
15306 version_type=linux
15307 need_version=no
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309 soname_spec='${libname}${release}${shared_ext}$major'
15310 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15311 shlibpath_var=LD_LIBRARY_PATH
15312 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15313 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15314 # the default ld.so.conf also contains /usr/contrib/lib and
15315 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15316 # libtool to hard-code these into programs
15317 ;;
15318
15319cygwin* | mingw* | pw32* | cegcc*)
15320 version_type=windows
15321 shrext_cmds=".dll"
15322 need_version=no
15323 need_lib_prefix=no
15324
cristyda16f162011-02-19 23:52:17 +000015325 case $GCC,$cc_basename in
15326 yes,*)
15327 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015328 library_names_spec='$libname.dll.a'
15329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15330 postinstall_cmds='base_file=`basename \${file}`~
15331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15332 dldir=$destdir/`dirname \$dlpath`~
15333 test -d \$dldir || mkdir -p \$dldir~
15334 $install_prog $dir/$dlname \$dldir/$dlname~
15335 chmod a+x \$dldir/$dlname~
15336 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15337 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15338 fi'
15339 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15340 dlpath=$dir/\$dldll~
15341 $RM \$dlpath'
15342 shlibpath_overrides_runpath=yes
15343
15344 case $host_os in
15345 cygwin*)
15346 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15347 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015348
15349 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015350 ;;
15351 mingw* | cegcc*)
15352 # MinGW DLLs use traditional 'lib' prefix
15353 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015354 ;;
15355 pw32*)
15356 # pw32 DLLs use 'pw' prefix rather than 'lib'
15357 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15358 ;;
15359 esac
cristyda16f162011-02-19 23:52:17 +000015360 dynamic_linker='Win32 ld.exe'
15361 ;;
15362
15363 *,cl*)
15364 # Native MSVC
15365 libname_spec='$name'
15366 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15367 library_names_spec='${libname}.dll.lib'
15368
15369 case $build_os in
15370 mingw*)
15371 sys_lib_search_path_spec=
15372 lt_save_ifs=$IFS
15373 IFS=';'
15374 for lt_path in $LIB
15375 do
15376 IFS=$lt_save_ifs
15377 # Let DOS variable expansion print the short 8.3 style file name.
15378 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15379 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15380 done
15381 IFS=$lt_save_ifs
15382 # Convert to MSYS style.
15383 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15384 ;;
15385 cygwin*)
15386 # Convert to unix form, then to dos form, then back to unix form
15387 # but this time dos style (no spaces!) so that the unix form looks
15388 # like /cygdrive/c/PROGRA~1:/cygdr...
15389 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15390 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15391 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15392 ;;
15393 *)
15394 sys_lib_search_path_spec="$LIB"
15395 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15396 # It is most probably a Windows format PATH.
15397 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15398 else
15399 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15400 fi
15401 # FIXME: find the short name or the path components, as spaces are
15402 # common. (e.g. "Program Files" -> "PROGRA~1")
15403 ;;
15404 esac
15405
15406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15407 postinstall_cmds='base_file=`basename \${file}`~
15408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15409 dldir=$destdir/`dirname \$dlpath`~
15410 test -d \$dldir || mkdir -p \$dldir~
15411 $install_prog $dir/$dlname \$dldir/$dlname'
15412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15413 dlpath=$dir/\$dldll~
15414 $RM \$dlpath'
15415 shlibpath_overrides_runpath=yes
15416 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015417 ;;
15418
15419 *)
cristyda16f162011-02-19 23:52:17 +000015420 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015422 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015423 ;;
15424 esac
cristy73bd4a52010-10-05 11:24:23 +000015425 # FIXME: first we should search . and the directory the executable is in
15426 shlibpath_var=PATH
15427 ;;
15428
15429darwin* | rhapsody*)
15430 dynamic_linker="$host_os dyld"
15431 version_type=darwin
15432 need_lib_prefix=no
15433 need_version=no
15434 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15435 soname_spec='${libname}${release}${major}$shared_ext'
15436 shlibpath_overrides_runpath=yes
15437 shlibpath_var=DYLD_LIBRARY_PATH
15438 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15439
15440 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15442 ;;
15443
15444dgux*)
15445 version_type=linux
15446 need_lib_prefix=no
15447 need_version=no
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 ;;
15452
15453freebsd1*)
15454 dynamic_linker=no
15455 ;;
15456
15457freebsd* | dragonfly*)
15458 # DragonFly does not have aout. When/if they implement a new
15459 # versioning mechanism, adjust this.
15460 if test -x /usr/bin/objformat; then
15461 objformat=`/usr/bin/objformat`
15462 else
15463 case $host_os in
15464 freebsd[123]*) objformat=aout ;;
15465 *) objformat=elf ;;
15466 esac
15467 fi
15468 version_type=freebsd-$objformat
15469 case $version_type in
15470 freebsd-elf*)
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15472 need_version=no
15473 need_lib_prefix=no
15474 ;;
15475 freebsd-*)
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15477 need_version=yes
15478 ;;
15479 esac
15480 shlibpath_var=LD_LIBRARY_PATH
15481 case $host_os in
15482 freebsd2*)
15483 shlibpath_overrides_runpath=yes
15484 ;;
15485 freebsd3.[01]* | freebsdelf3.[01]*)
15486 shlibpath_overrides_runpath=yes
15487 hardcode_into_libs=yes
15488 ;;
15489 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15490 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15491 shlibpath_overrides_runpath=no
15492 hardcode_into_libs=yes
15493 ;;
15494 *) # from 4.6 on, and DragonFly
15495 shlibpath_overrides_runpath=yes
15496 hardcode_into_libs=yes
15497 ;;
15498 esac
15499 ;;
15500
15501gnu*)
15502 version_type=linux
15503 need_lib_prefix=no
15504 need_version=no
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15506 soname_spec='${libname}${release}${shared_ext}$major'
15507 shlibpath_var=LD_LIBRARY_PATH
15508 hardcode_into_libs=yes
15509 ;;
15510
cristy0c60a692010-11-04 01:09:47 +000015511haiku*)
15512 version_type=linux
15513 need_lib_prefix=no
15514 need_version=no
15515 dynamic_linker="$host_os runtime_loader"
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 shlibpath_var=LIBRARY_PATH
15519 shlibpath_overrides_runpath=yes
15520 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15521 hardcode_into_libs=yes
15522 ;;
15523
cristy73bd4a52010-10-05 11:24:23 +000015524hpux9* | hpux10* | hpux11*)
15525 # Give a soname corresponding to the major version so that dld.sl refuses to
15526 # link against other versions.
15527 version_type=sunos
15528 need_lib_prefix=no
15529 need_version=no
15530 case $host_cpu in
15531 ia64*)
15532 shrext_cmds='.so'
15533 hardcode_into_libs=yes
15534 dynamic_linker="$host_os dld.so"
15535 shlibpath_var=LD_LIBRARY_PATH
15536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 if test "X$HPUX_IA64_MODE" = X32; then
15540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15541 else
15542 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15543 fi
15544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15545 ;;
15546 hppa*64*)
15547 shrext_cmds='.sl'
15548 hardcode_into_libs=yes
15549 dynamic_linker="$host_os dld.sl"
15550 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15556 ;;
15557 *)
15558 shrext_cmds='.sl'
15559 dynamic_linker="$host_os dld.sl"
15560 shlibpath_var=SHLIB_PATH
15561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 ;;
15565 esac
cristy0c60a692010-11-04 01:09:47 +000015566 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015567 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015568 # or fails outright, so override atomically:
15569 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015570 ;;
15571
15572interix[3-9]*)
15573 version_type=linux
15574 need_lib_prefix=no
15575 need_version=no
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15579 shlibpath_var=LD_LIBRARY_PATH
15580 shlibpath_overrides_runpath=no
15581 hardcode_into_libs=yes
15582 ;;
15583
15584irix5* | irix6* | nonstopux*)
15585 case $host_os in
15586 nonstopux*) version_type=nonstopux ;;
15587 *)
15588 if test "$lt_cv_prog_gnu_ld" = yes; then
15589 version_type=linux
15590 else
15591 version_type=irix
15592 fi ;;
15593 esac
15594 need_lib_prefix=no
15595 need_version=no
15596 soname_spec='${libname}${release}${shared_ext}$major'
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15598 case $host_os in
15599 irix5* | nonstopux*)
15600 libsuff= shlibsuff=
15601 ;;
15602 *)
15603 case $LD in # libtool.m4 will add one of these switches to LD
15604 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15605 libsuff= shlibsuff= libmagic=32-bit;;
15606 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15607 libsuff=32 shlibsuff=N32 libmagic=N32;;
15608 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15609 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15610 *) libsuff= shlibsuff= libmagic=never-match;;
15611 esac
15612 ;;
15613 esac
15614 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15615 shlibpath_overrides_runpath=no
15616 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15617 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15618 hardcode_into_libs=yes
15619 ;;
15620
15621# No shared lib support for Linux oldld, aout, or coff.
15622linux*oldld* | linux*aout* | linux*coff*)
15623 dynamic_linker=no
15624 ;;
15625
15626# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015627linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015628 version_type=linux
15629 need_lib_prefix=no
15630 need_version=no
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015636
cristy73bd4a52010-10-05 11:24:23 +000015637 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015638 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015639 $as_echo_n "(cached) " >&6
15640else
15641 lt_cv_shlibpath_overrides_runpath=no
15642 save_LDFLAGS=$LDFLAGS
15643 save_libdir=$libdir
15644 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15645 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015647/* end confdefs.h. */
15648
15649int
15650main ()
15651{
15652
15653 ;
15654 return 0;
15655}
15656_ACEOF
15657if ac_fn_c_try_link "$LINENO"; then :
15658 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015659 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015660fi
15661fi
15662rm -f core conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015664 LDFLAGS=$save_LDFLAGS
15665 libdir=$save_libdir
15666
15667fi
15668
15669 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015670
15671 # This implies no fast_install, which is unacceptable.
15672 # Some rework will be needed to allow for fast_install
15673 # before this can be enabled.
15674 hardcode_into_libs=yes
15675
15676 # Add ABI-specific directories to the system library path.
15677 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15678
15679 # Append ld.so.conf contents to the search path
15680 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015681 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 +000015682 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015683
cristy73bd4a52010-10-05 11:24:23 +000015684 fi
15685
15686 # We used to test for /lib/ld.so.1 and disable shared libraries on
15687 # powerpc, because MkLinux only supported shared libraries with the
15688 # GNU dynamic linker. Since this was broken with cross compilers,
15689 # most powerpc-linux boxes support dynamic linking these days and
15690 # people can always --disable-shared, the test was removed, and we
15691 # assume the GNU/Linux dynamic linker is in use.
15692 dynamic_linker='GNU/Linux ld.so'
15693 ;;
15694
15695netbsd*)
15696 version_type=sunos
15697 need_lib_prefix=no
15698 need_version=no
15699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15702 dynamic_linker='NetBSD (a.out) ld.so'
15703 else
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15706 dynamic_linker='NetBSD ld.elf_so'
15707 fi
15708 shlibpath_var=LD_LIBRARY_PATH
15709 shlibpath_overrides_runpath=yes
15710 hardcode_into_libs=yes
15711 ;;
15712
15713newsos6)
15714 version_type=linux
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 shlibpath_overrides_runpath=yes
15718 ;;
15719
15720*nto* | *qnx*)
15721 version_type=qnx
15722 need_lib_prefix=no
15723 need_version=no
15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15725 soname_spec='${libname}${release}${shared_ext}$major'
15726 shlibpath_var=LD_LIBRARY_PATH
15727 shlibpath_overrides_runpath=no
15728 hardcode_into_libs=yes
15729 dynamic_linker='ldqnx.so'
15730 ;;
15731
15732openbsd*)
15733 version_type=sunos
15734 sys_lib_dlsearch_path_spec="/usr/lib"
15735 need_lib_prefix=no
15736 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15737 case $host_os in
15738 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15739 *) need_version=no ;;
15740 esac
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15745 case $host_os in
15746 openbsd2.[89] | openbsd2.[89].*)
15747 shlibpath_overrides_runpath=no
15748 ;;
15749 *)
15750 shlibpath_overrides_runpath=yes
15751 ;;
15752 esac
15753 else
15754 shlibpath_overrides_runpath=yes
15755 fi
15756 ;;
15757
15758os2*)
15759 libname_spec='$name'
15760 shrext_cmds=".dll"
15761 need_lib_prefix=no
15762 library_names_spec='$libname${shared_ext} $libname.a'
15763 dynamic_linker='OS/2 ld.exe'
15764 shlibpath_var=LIBPATH
15765 ;;
15766
15767osf3* | osf4* | osf5*)
15768 version_type=osf
15769 need_lib_prefix=no
15770 need_version=no
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15775 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15776 ;;
15777
15778rdos*)
15779 dynamic_linker=no
15780 ;;
15781
15782solaris*)
15783 version_type=linux
15784 need_lib_prefix=no
15785 need_version=no
15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15787 soname_spec='${libname}${release}${shared_ext}$major'
15788 shlibpath_var=LD_LIBRARY_PATH
15789 shlibpath_overrides_runpath=yes
15790 hardcode_into_libs=yes
15791 # ldd complains unless libraries are executable
15792 postinstall_cmds='chmod +x $lib'
15793 ;;
15794
15795sunos4*)
15796 version_type=sunos
15797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15798 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15799 shlibpath_var=LD_LIBRARY_PATH
15800 shlibpath_overrides_runpath=yes
15801 if test "$with_gnu_ld" = yes; then
15802 need_lib_prefix=no
15803 fi
15804 need_version=yes
15805 ;;
15806
15807sysv4 | sysv4.3*)
15808 version_type=linux
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15810 soname_spec='${libname}${release}${shared_ext}$major'
15811 shlibpath_var=LD_LIBRARY_PATH
15812 case $host_vendor in
15813 sni)
15814 shlibpath_overrides_runpath=no
15815 need_lib_prefix=no
15816 runpath_var=LD_RUN_PATH
15817 ;;
15818 siemens)
15819 need_lib_prefix=no
15820 ;;
15821 motorola)
15822 need_lib_prefix=no
15823 need_version=no
15824 shlibpath_overrides_runpath=no
15825 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15826 ;;
15827 esac
15828 ;;
15829
15830sysv4*MP*)
15831 if test -d /usr/nec ;then
15832 version_type=linux
15833 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15834 soname_spec='$libname${shared_ext}.$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 fi
15837 ;;
15838
15839sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15840 version_type=freebsd-elf
15841 need_lib_prefix=no
15842 need_version=no
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15844 soname_spec='${libname}${release}${shared_ext}$major'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 shlibpath_overrides_runpath=yes
15847 hardcode_into_libs=yes
15848 if test "$with_gnu_ld" = yes; then
15849 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15850 else
15851 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15852 case $host_os in
15853 sco3.2v5*)
15854 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15855 ;;
15856 esac
15857 fi
15858 sys_lib_dlsearch_path_spec='/usr/lib'
15859 ;;
15860
15861tpf*)
15862 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15863 version_type=linux
15864 need_lib_prefix=no
15865 need_version=no
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15867 shlibpath_var=LD_LIBRARY_PATH
15868 shlibpath_overrides_runpath=no
15869 hardcode_into_libs=yes
15870 ;;
15871
15872uts4*)
15873 version_type=linux
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 ;;
15878
15879*)
15880 dynamic_linker=no
15881 ;;
15882esac
15883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15884$as_echo "$dynamic_linker" >&6; }
15885test "$dynamic_linker" = no && can_build_shared=no
15886
15887variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15888if test "$GCC" = yes; then
15889 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15890fi
15891
15892if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15893 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15894fi
15895if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15896 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15897fi
15898
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
cristy0c60a692010-11-04 01:09:47 +000015985
15986
15987
15988
15989
cristy73bd4a52010-10-05 11:24:23 +000015990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15991$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15992hardcode_action=
15993if test -n "$hardcode_libdir_flag_spec" ||
15994 test -n "$runpath_var" ||
15995 test "X$hardcode_automatic" = "Xyes" ; then
15996
15997 # We can hardcode non-existent directories.
15998 if test "$hardcode_direct" != no &&
15999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16000 # have to relink, otherwise we might link with an installed library
16001 # when we should be linking with a yet-to-be-installed one
16002 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16003 test "$hardcode_minus_L" != no; then
16004 # Linking always hardcodes the temporary library directory.
16005 hardcode_action=relink
16006 else
16007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16008 hardcode_action=immediate
16009 fi
16010else
16011 # We cannot hardcode anything, or else we can only hardcode existing
16012 # directories.
16013 hardcode_action=unsupported
16014fi
16015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16016$as_echo "$hardcode_action" >&6; }
16017
16018if test "$hardcode_action" = relink ||
16019 test "$inherit_rpath" = yes; then
16020 # Fast installation is not supported
16021 enable_fast_install=no
16022elif test "$shlibpath_overrides_runpath" = yes ||
16023 test "$enable_shared" = no; then
16024 # Fast installation is not necessary
16025 enable_fast_install=needless
16026fi
16027
16028
16029
16030
16031
16032
16033 if test "x$enable_dlopen" != xyes; then
16034 enable_dlopen=unknown
16035 enable_dlopen_self=unknown
16036 enable_dlopen_self_static=unknown
16037else
16038 lt_cv_dlopen=no
16039 lt_cv_dlopen_libs=
16040
16041 case $host_os in
16042 beos*)
16043 lt_cv_dlopen="load_add_on"
16044 lt_cv_dlopen_libs=
16045 lt_cv_dlopen_self=yes
16046 ;;
16047
16048 mingw* | pw32* | cegcc*)
16049 lt_cv_dlopen="LoadLibrary"
16050 lt_cv_dlopen_libs=
16051 ;;
16052
16053 cygwin*)
16054 lt_cv_dlopen="dlopen"
16055 lt_cv_dlopen_libs=
16056 ;;
16057
16058 darwin*)
16059 # if libdl is installed we need to link against it
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16061$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016062if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016063 $as_echo_n "(cached) " >&6
16064else
16065 ac_check_lib_save_LIBS=$LIBS
16066LIBS="-ldl $LIBS"
16067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068/* end confdefs.h. */
16069
16070/* Override any GCC internal prototype to avoid an error.
16071 Use char because int might match the return type of a GCC
16072 builtin and then its argument prototype would still apply. */
16073#ifdef __cplusplus
16074extern "C"
16075#endif
16076char dlopen ();
16077int
16078main ()
16079{
16080return dlopen ();
16081 ;
16082 return 0;
16083}
16084_ACEOF
16085if ac_fn_c_try_link "$LINENO"; then :
16086 ac_cv_lib_dl_dlopen=yes
16087else
16088 ac_cv_lib_dl_dlopen=no
16089fi
16090rm -f core conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
16092LIBS=$ac_check_lib_save_LIBS
16093fi
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16095$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016096if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16098else
16099
16100 lt_cv_dlopen="dyld"
16101 lt_cv_dlopen_libs=
16102 lt_cv_dlopen_self=yes
16103
16104fi
16105
16106 ;;
16107
16108 *)
16109 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016110if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016111 lt_cv_dlopen="shl_load"
16112else
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16114$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016115if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016116 $as_echo_n "(cached) " >&6
16117else
16118 ac_check_lib_save_LIBS=$LIBS
16119LIBS="-ldld $LIBS"
16120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121/* end confdefs.h. */
16122
16123/* Override any GCC internal prototype to avoid an error.
16124 Use char because int might match the return type of a GCC
16125 builtin and then its argument prototype would still apply. */
16126#ifdef __cplusplus
16127extern "C"
16128#endif
16129char shl_load ();
16130int
16131main ()
16132{
16133return shl_load ();
16134 ;
16135 return 0;
16136}
16137_ACEOF
16138if ac_fn_c_try_link "$LINENO"; then :
16139 ac_cv_lib_dld_shl_load=yes
16140else
16141 ac_cv_lib_dld_shl_load=no
16142fi
16143rm -f core conftest.err conftest.$ac_objext \
16144 conftest$ac_exeext conftest.$ac_ext
16145LIBS=$ac_check_lib_save_LIBS
16146fi
16147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16148$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016149if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016150 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16151else
16152 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016153if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016154 lt_cv_dlopen="dlopen"
16155else
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16157$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016158if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016159 $as_echo_n "(cached) " >&6
16160else
16161 ac_check_lib_save_LIBS=$LIBS
16162LIBS="-ldl $LIBS"
16163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164/* end confdefs.h. */
16165
16166/* Override any GCC internal prototype to avoid an error.
16167 Use char because int might match the return type of a GCC
16168 builtin and then its argument prototype would still apply. */
16169#ifdef __cplusplus
16170extern "C"
16171#endif
16172char dlopen ();
16173int
16174main ()
16175{
16176return dlopen ();
16177 ;
16178 return 0;
16179}
16180_ACEOF
16181if ac_fn_c_try_link "$LINENO"; then :
16182 ac_cv_lib_dl_dlopen=yes
16183else
16184 ac_cv_lib_dl_dlopen=no
16185fi
16186rm -f core conftest.err conftest.$ac_objext \
16187 conftest$ac_exeext conftest.$ac_ext
16188LIBS=$ac_check_lib_save_LIBS
16189fi
16190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16191$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016192if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16194else
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16196$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016197if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016198 $as_echo_n "(cached) " >&6
16199else
16200 ac_check_lib_save_LIBS=$LIBS
16201LIBS="-lsvld $LIBS"
16202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203/* end confdefs.h. */
16204
16205/* Override any GCC internal prototype to avoid an error.
16206 Use char because int might match the return type of a GCC
16207 builtin and then its argument prototype would still apply. */
16208#ifdef __cplusplus
16209extern "C"
16210#endif
16211char dlopen ();
16212int
16213main ()
16214{
16215return dlopen ();
16216 ;
16217 return 0;
16218}
16219_ACEOF
16220if ac_fn_c_try_link "$LINENO"; then :
16221 ac_cv_lib_svld_dlopen=yes
16222else
16223 ac_cv_lib_svld_dlopen=no
16224fi
16225rm -f core conftest.err conftest.$ac_objext \
16226 conftest$ac_exeext conftest.$ac_ext
16227LIBS=$ac_check_lib_save_LIBS
16228fi
16229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16230$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016231if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16233else
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16235$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016236if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016237 $as_echo_n "(cached) " >&6
16238else
16239 ac_check_lib_save_LIBS=$LIBS
16240LIBS="-ldld $LIBS"
16241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242/* end confdefs.h. */
16243
16244/* Override any GCC internal prototype to avoid an error.
16245 Use char because int might match the return type of a GCC
16246 builtin and then its argument prototype would still apply. */
16247#ifdef __cplusplus
16248extern "C"
16249#endif
16250char dld_link ();
16251int
16252main ()
16253{
16254return dld_link ();
16255 ;
16256 return 0;
16257}
16258_ACEOF
16259if ac_fn_c_try_link "$LINENO"; then :
16260 ac_cv_lib_dld_dld_link=yes
16261else
16262 ac_cv_lib_dld_dld_link=no
16263fi
16264rm -f core conftest.err conftest.$ac_objext \
16265 conftest$ac_exeext conftest.$ac_ext
16266LIBS=$ac_check_lib_save_LIBS
16267fi
16268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16269$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016270if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016271 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16272fi
16273
16274
16275fi
16276
16277
16278fi
16279
16280
16281fi
16282
16283
16284fi
16285
16286
16287fi
16288
16289 ;;
16290 esac
16291
16292 if test "x$lt_cv_dlopen" != xno; then
16293 enable_dlopen=yes
16294 else
16295 enable_dlopen=no
16296 fi
16297
16298 case $lt_cv_dlopen in
16299 dlopen)
16300 save_CPPFLAGS="$CPPFLAGS"
16301 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16302
16303 save_LDFLAGS="$LDFLAGS"
16304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16305
16306 save_LIBS="$LIBS"
16307 LIBS="$lt_cv_dlopen_libs $LIBS"
16308
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16310$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016311if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016312 $as_echo_n "(cached) " >&6
16313else
16314 if test "$cross_compiling" = yes; then :
16315 lt_cv_dlopen_self=cross
16316else
16317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16318 lt_status=$lt_dlunknown
16319 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016320#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016321#include "confdefs.h"
16322
16323#if HAVE_DLFCN_H
16324#include <dlfcn.h>
16325#endif
16326
16327#include <stdio.h>
16328
16329#ifdef RTLD_GLOBAL
16330# define LT_DLGLOBAL RTLD_GLOBAL
16331#else
16332# ifdef DL_GLOBAL
16333# define LT_DLGLOBAL DL_GLOBAL
16334# else
16335# define LT_DLGLOBAL 0
16336# endif
16337#endif
16338
16339/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16340 find out it does not work in some platform. */
16341#ifndef LT_DLLAZY_OR_NOW
16342# ifdef RTLD_LAZY
16343# define LT_DLLAZY_OR_NOW RTLD_LAZY
16344# else
16345# ifdef DL_LAZY
16346# define LT_DLLAZY_OR_NOW DL_LAZY
16347# else
16348# ifdef RTLD_NOW
16349# define LT_DLLAZY_OR_NOW RTLD_NOW
16350# else
16351# ifdef DL_NOW
16352# define LT_DLLAZY_OR_NOW DL_NOW
16353# else
16354# define LT_DLLAZY_OR_NOW 0
16355# endif
16356# endif
16357# endif
16358# endif
16359#endif
16360
cristy0c60a692010-11-04 01:09:47 +000016361/* When -fvisbility=hidden is used, assume the code has been annotated
16362 correspondingly for the symbols needed. */
16363#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016364int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016365#endif
16366
cristyda16f162011-02-19 23:52:17 +000016367int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016368int main ()
16369{
16370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16371 int status = $lt_dlunknown;
16372
16373 if (self)
16374 {
16375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016376 else
16377 {
16378 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16379 else puts (dlerror ());
16380 }
cristy73bd4a52010-10-05 11:24:23 +000016381 /* dlclose (self); */
16382 }
16383 else
16384 puts (dlerror ());
16385
16386 return status;
16387}
16388_LT_EOF
16389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16390 (eval $ac_link) 2>&5
16391 ac_status=$?
16392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16393 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16394 (./conftest; exit; ) >&5 2>/dev/null
16395 lt_status=$?
16396 case x$lt_status in
16397 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16398 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16399 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16400 esac
16401 else :
16402 # compilation failed
16403 lt_cv_dlopen_self=no
16404 fi
16405fi
16406rm -fr conftest*
16407
16408
16409fi
16410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16411$as_echo "$lt_cv_dlopen_self" >&6; }
16412
16413 if test "x$lt_cv_dlopen_self" = xyes; then
16414 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16416$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016417if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016418 $as_echo_n "(cached) " >&6
16419else
16420 if test "$cross_compiling" = yes; then :
16421 lt_cv_dlopen_self_static=cross
16422else
16423 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16424 lt_status=$lt_dlunknown
16425 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016426#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016427#include "confdefs.h"
16428
16429#if HAVE_DLFCN_H
16430#include <dlfcn.h>
16431#endif
16432
16433#include <stdio.h>
16434
16435#ifdef RTLD_GLOBAL
16436# define LT_DLGLOBAL RTLD_GLOBAL
16437#else
16438# ifdef DL_GLOBAL
16439# define LT_DLGLOBAL DL_GLOBAL
16440# else
16441# define LT_DLGLOBAL 0
16442# endif
16443#endif
16444
16445/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16446 find out it does not work in some platform. */
16447#ifndef LT_DLLAZY_OR_NOW
16448# ifdef RTLD_LAZY
16449# define LT_DLLAZY_OR_NOW RTLD_LAZY
16450# else
16451# ifdef DL_LAZY
16452# define LT_DLLAZY_OR_NOW DL_LAZY
16453# else
16454# ifdef RTLD_NOW
16455# define LT_DLLAZY_OR_NOW RTLD_NOW
16456# else
16457# ifdef DL_NOW
16458# define LT_DLLAZY_OR_NOW DL_NOW
16459# else
16460# define LT_DLLAZY_OR_NOW 0
16461# endif
16462# endif
16463# endif
16464# endif
16465#endif
16466
cristy0c60a692010-11-04 01:09:47 +000016467/* When -fvisbility=hidden is used, assume the code has been annotated
16468 correspondingly for the symbols needed. */
16469#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016470int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016471#endif
16472
cristyda16f162011-02-19 23:52:17 +000016473int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016474int main ()
16475{
16476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16477 int status = $lt_dlunknown;
16478
16479 if (self)
16480 {
16481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016482 else
16483 {
16484 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16485 else puts (dlerror ());
16486 }
cristy73bd4a52010-10-05 11:24:23 +000016487 /* dlclose (self); */
16488 }
16489 else
16490 puts (dlerror ());
16491
16492 return status;
16493}
16494_LT_EOF
16495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16496 (eval $ac_link) 2>&5
16497 ac_status=$?
16498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16499 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16500 (./conftest; exit; ) >&5 2>/dev/null
16501 lt_status=$?
16502 case x$lt_status in
16503 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16504 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16505 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16506 esac
16507 else :
16508 # compilation failed
16509 lt_cv_dlopen_self_static=no
16510 fi
16511fi
16512rm -fr conftest*
16513
16514
16515fi
16516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16517$as_echo "$lt_cv_dlopen_self_static" >&6; }
16518 fi
16519
16520 CPPFLAGS="$save_CPPFLAGS"
16521 LDFLAGS="$save_LDFLAGS"
16522 LIBS="$save_LIBS"
16523 ;;
16524 esac
16525
16526 case $lt_cv_dlopen_self in
16527 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16528 *) enable_dlopen_self=unknown ;;
16529 esac
16530
16531 case $lt_cv_dlopen_self_static in
16532 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16533 *) enable_dlopen_self_static=unknown ;;
16534 esac
16535fi
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553striplib=
16554old_striplib=
16555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16556$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16557if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16558 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16559 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16561$as_echo "yes" >&6; }
16562else
16563# FIXME - insert some real tests, host_os isn't really good enough
16564 case $host_os in
16565 darwin*)
16566 if test -n "$STRIP" ; then
16567 striplib="$STRIP -x"
16568 old_striplib="$STRIP -S"
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16570$as_echo "yes" >&6; }
16571 else
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573$as_echo "no" >&6; }
16574 fi
16575 ;;
16576 *)
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16578$as_echo "no" >&6; }
16579 ;;
16580 esac
16581fi
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594 # Report which library types will actually be built
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16596$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16598$as_echo "$can_build_shared" >&6; }
16599
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16601$as_echo_n "checking whether to build shared libraries... " >&6; }
16602 test "$can_build_shared" = "no" && enable_shared=no
16603
16604 # On AIX, shared libraries and static libraries use the same namespace, and
16605 # are all built from PIC.
16606 case $host_os in
16607 aix3*)
16608 test "$enable_shared" = yes && enable_static=no
16609 if test -n "$RANLIB"; then
16610 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16611 postinstall_cmds='$RANLIB $lib'
16612 fi
16613 ;;
16614
16615 aix[4-9]*)
16616 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16617 test "$enable_shared" = yes && enable_static=no
16618 fi
16619 ;;
16620 esac
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16622$as_echo "$enable_shared" >&6; }
16623
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16625$as_echo_n "checking whether to build static libraries... " >&6; }
16626 # Make sure either enable_shared or enable_static is yes.
16627 test "$enable_shared" = yes || enable_static=yes
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16629$as_echo "$enable_static" >&6; }
16630
16631
16632
16633
16634fi
16635ac_ext=c
16636ac_cpp='$CPP $CPPFLAGS'
16637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639ac_compiler_gnu=$ac_cv_c_compiler_gnu
16640
16641CC="$lt_save_CC"
16642
cristy0c60a692010-11-04 01:09:47 +000016643 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16644 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16645 (test "X$CXX" != "Xg++"))) ; then
16646 ac_ext=cpp
16647ac_cpp='$CXXCPP $CPPFLAGS'
16648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16652$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16653if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016654 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016655 $as_echo_n "(cached) " >&6
16656else
16657 # Double quotes because CXXCPP needs to be expanded
16658 for CXXCPP in "$CXX -E" "/lib/cpp"
16659 do
16660 ac_preproc_ok=false
16661for ac_cxx_preproc_warn_flag in '' yes
16662do
16663 # Use a header file that comes with gcc, so configuring glibc
16664 # with a fresh cross-compiler works.
16665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16666 # <limits.h> exists even on freestanding compilers.
16667 # On the NeXT, cc -E runs the code through the compiler's parser,
16668 # not just through cpp. "Syntax error" is here to catch this case.
16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670/* end confdefs.h. */
16671#ifdef __STDC__
16672# include <limits.h>
16673#else
16674# include <assert.h>
16675#endif
16676 Syntax error
16677_ACEOF
16678if ac_fn_cxx_try_cpp "$LINENO"; then :
16679
16680else
16681 # Broken: fails on valid input.
16682continue
16683fi
cristyda16f162011-02-19 23:52:17 +000016684rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016685
16686 # OK, works on sane cases. Now check whether nonexistent headers
16687 # can be detected and how.
16688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16689/* end confdefs.h. */
16690#include <ac_nonexistent.h>
16691_ACEOF
16692if ac_fn_cxx_try_cpp "$LINENO"; then :
16693 # Broken: success on invalid input.
16694continue
16695else
16696 # Passes both tests.
16697ac_preproc_ok=:
16698break
16699fi
cristyda16f162011-02-19 23:52:17 +000016700rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016701
16702done
16703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016704rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016705if $ac_preproc_ok; then :
16706 break
16707fi
16708
16709 done
16710 ac_cv_prog_CXXCPP=$CXXCPP
16711
16712fi
16713 CXXCPP=$ac_cv_prog_CXXCPP
16714else
16715 ac_cv_prog_CXXCPP=$CXXCPP
16716fi
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16718$as_echo "$CXXCPP" >&6; }
16719ac_preproc_ok=false
16720for ac_cxx_preproc_warn_flag in '' yes
16721do
16722 # Use a header file that comes with gcc, so configuring glibc
16723 # with a fresh cross-compiler works.
16724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16725 # <limits.h> exists even on freestanding compilers.
16726 # On the NeXT, cc -E runs the code through the compiler's parser,
16727 # not just through cpp. "Syntax error" is here to catch this case.
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729/* end confdefs.h. */
16730#ifdef __STDC__
16731# include <limits.h>
16732#else
16733# include <assert.h>
16734#endif
16735 Syntax error
16736_ACEOF
16737if ac_fn_cxx_try_cpp "$LINENO"; then :
16738
16739else
16740 # Broken: fails on valid input.
16741continue
16742fi
cristyda16f162011-02-19 23:52:17 +000016743rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016744
16745 # OK, works on sane cases. Now check whether nonexistent headers
16746 # can be detected and how.
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h. */
16749#include <ac_nonexistent.h>
16750_ACEOF
16751if ac_fn_cxx_try_cpp "$LINENO"; then :
16752 # Broken: success on invalid input.
16753continue
16754else
16755 # Passes both tests.
16756ac_preproc_ok=:
16757break
16758fi
cristyda16f162011-02-19 23:52:17 +000016759rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016760
16761done
16762# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016763rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016764if $ac_preproc_ok; then :
16765
16766else
16767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16769as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16770See \`config.log' for more details" "$LINENO" 5; }
16771fi
16772
16773ac_ext=c
16774ac_cpp='$CPP $CPPFLAGS'
16775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16777ac_compiler_gnu=$ac_cv_c_compiler_gnu
16778
16779else
16780 _lt_caught_CXX_error=yes
16781fi
cristy73bd4a52010-10-05 11:24:23 +000016782
16783ac_ext=cpp
16784ac_cpp='$CXXCPP $CPPFLAGS'
16785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16788
16789archive_cmds_need_lc_CXX=no
16790allow_undefined_flag_CXX=
16791always_export_symbols_CXX=no
16792archive_expsym_cmds_CXX=
16793compiler_needs_object_CXX=no
16794export_dynamic_flag_spec_CXX=
16795hardcode_direct_CXX=no
16796hardcode_direct_absolute_CXX=no
16797hardcode_libdir_flag_spec_CXX=
16798hardcode_libdir_flag_spec_ld_CXX=
16799hardcode_libdir_separator_CXX=
16800hardcode_minus_L_CXX=no
16801hardcode_shlibpath_var_CXX=unsupported
16802hardcode_automatic_CXX=no
16803inherit_rpath_CXX=no
16804module_cmds_CXX=
16805module_expsym_cmds_CXX=
16806link_all_deplibs_CXX=unknown
16807old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016808reload_flag_CXX=$reload_flag
16809reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016810no_undefined_flag_CXX=
16811whole_archive_flag_spec_CXX=
16812enable_shared_with_static_runtimes_CXX=no
16813
16814# Source file extension for C++ test sources.
16815ac_ext=cpp
16816
16817# Object file extension for compiled C++ test sources.
16818objext=o
16819objext_CXX=$objext
16820
16821# No sense in running all these tests if we already determined that
16822# the CXX compiler isn't working. Some variables (like enable_shared)
16823# are currently assumed to apply to all compilers on this platform,
16824# and will be corrupted by setting them based on a non-working compiler.
16825if test "$_lt_caught_CXX_error" != yes; then
16826 # Code to be used in simple compile tests
16827 lt_simple_compile_test_code="int some_variable = 0;"
16828
16829 # Code to be used in simple link tests
16830 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16831
16832 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16833
16834
16835
16836
16837
16838
16839# If no C compiler was specified, use CC.
16840LTCC=${LTCC-"$CC"}
16841
16842# If no C compiler flags were specified, use CFLAGS.
16843LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16844
16845# Allow CC to be a program name with arguments.
16846compiler=$CC
16847
16848
16849 # save warnings/boilerplate of simple test code
16850 ac_outfile=conftest.$ac_objext
16851echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16852eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16853_lt_compiler_boilerplate=`cat conftest.err`
16854$RM conftest*
16855
16856 ac_outfile=conftest.$ac_objext
16857echo "$lt_simple_link_test_code" >conftest.$ac_ext
16858eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16859_lt_linker_boilerplate=`cat conftest.err`
16860$RM -r conftest*
16861
16862
16863 # Allow CC to be a program name with arguments.
16864 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016865 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016866 lt_save_LD=$LD
16867 lt_save_GCC=$GCC
16868 GCC=$GXX
16869 lt_save_with_gnu_ld=$with_gnu_ld
16870 lt_save_path_LD=$lt_cv_path_LD
16871 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16872 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16873 else
16874 $as_unset lt_cv_prog_gnu_ld
16875 fi
16876 if test -n "${lt_cv_path_LDCXX+set}"; then
16877 lt_cv_path_LD=$lt_cv_path_LDCXX
16878 else
16879 $as_unset lt_cv_path_LD
16880 fi
16881 test -z "${LDCXX+set}" || LD=$LDCXX
16882 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016883 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016884 compiler=$CC
16885 compiler_CXX=$CC
16886 for cc_temp in $compiler""; do
16887 case $cc_temp in
16888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16890 \-*) ;;
16891 *) break;;
16892 esac
16893done
cristy0c60a692010-11-04 01:09:47 +000016894cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016895
16896
16897 if test -n "$compiler"; then
16898 # We don't want -fno-exception when compiling C++ code, so set the
16899 # no_builtin_flag separately
16900 if test "$GXX" = yes; then
16901 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16902 else
16903 lt_prog_compiler_no_builtin_flag_CXX=
16904 fi
16905
16906 if test "$GXX" = yes; then
16907 # Set up default GNU C++ configuration
16908
16909
16910
16911# Check whether --with-gnu-ld was given.
16912if test "${with_gnu_ld+set}" = set; then :
16913 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16914else
16915 with_gnu_ld=no
16916fi
16917
16918ac_prog=ld
16919if test "$GCC" = yes; then
16920 # Check if gcc -print-prog-name=ld gives a path.
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16922$as_echo_n "checking for ld used by $CC... " >&6; }
16923 case $host in
16924 *-*-mingw*)
16925 # gcc leaves a trailing carriage return which upsets mingw
16926 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16927 *)
16928 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16929 esac
16930 case $ac_prog in
16931 # Accept absolute paths.
16932 [\\/]* | ?:[\\/]*)
16933 re_direlt='/[^/][^/]*/\.\./'
16934 # Canonicalize the pathname of ld
16935 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16936 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16937 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16938 done
16939 test -z "$LD" && LD="$ac_prog"
16940 ;;
16941 "")
16942 # If it fails, then pretend we aren't using GCC.
16943 ac_prog=ld
16944 ;;
16945 *)
16946 # If it is relative, then search for the first ld in PATH.
16947 with_gnu_ld=unknown
16948 ;;
16949 esac
16950elif test "$with_gnu_ld" = yes; then
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16952$as_echo_n "checking for GNU ld... " >&6; }
16953else
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16955$as_echo_n "checking for non-GNU ld... " >&6; }
16956fi
cristyda16f162011-02-19 23:52:17 +000016957if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016958 $as_echo_n "(cached) " >&6
16959else
16960 if test -z "$LD"; then
16961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16962 for ac_dir in $PATH; do
16963 IFS="$lt_save_ifs"
16964 test -z "$ac_dir" && ac_dir=.
16965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16966 lt_cv_path_LD="$ac_dir/$ac_prog"
16967 # Check to see if the program is GNU ld. I'd rather use --version,
16968 # but apparently some variants of GNU ld only accept -v.
16969 # Break only if it was the GNU/non-GNU ld that we prefer.
16970 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16971 *GNU* | *'with BFD'*)
16972 test "$with_gnu_ld" != no && break
16973 ;;
16974 *)
16975 test "$with_gnu_ld" != yes && break
16976 ;;
16977 esac
16978 fi
16979 done
16980 IFS="$lt_save_ifs"
16981else
16982 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16983fi
16984fi
16985
16986LD="$lt_cv_path_LD"
16987if test -n "$LD"; then
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16989$as_echo "$LD" >&6; }
16990else
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992$as_echo "no" >&6; }
16993fi
cristy98dddb52010-11-04 00:30:15 +000016994test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16996$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016997if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016998 $as_echo_n "(cached) " >&6
16999else
17000 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17001case `$LD -v 2>&1 </dev/null` in
17002*GNU* | *'with BFD'*)
17003 lt_cv_prog_gnu_ld=yes
17004 ;;
17005*)
17006 lt_cv_prog_gnu_ld=no
17007 ;;
17008esac
17009fi
17010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17011$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17012with_gnu_ld=$lt_cv_prog_gnu_ld
17013
17014
17015
17016
17017
17018
17019
17020 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17021 # archiving commands below assume that GNU ld is being used.
17022 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017023 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17024 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 +000017025
17026 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17028
17029 # If archive_cmds runs LD, not CC, wlarc should be empty
17030 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17031 # investigate it a little bit more. (MM)
17032 wlarc='${wl}'
17033
17034 # ancient GNU ld didn't support --whole-archive et. al.
17035 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17036 $GREP 'no-whole-archive' > /dev/null; then
17037 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17038 else
17039 whole_archive_flag_spec_CXX=
17040 fi
17041 else
17042 with_gnu_ld=no
17043 wlarc=
17044
17045 # A generic and very simple default shared library creation
17046 # command for GNU C++ for the case where it uses the native
17047 # linker, instead of GNU ld. If possible, this setting should
17048 # overridden to take advantage of the native linker features on
17049 # the platform it is being used on.
17050 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17051 fi
17052
17053 # Commands to make compiler produce verbose output that lists
17054 # what "hidden" libraries, object files and flags are used when
17055 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017056 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017057
17058 else
17059 GXX=no
17060 with_gnu_ld=no
17061 wlarc=
17062 fi
17063
17064 # PORTME: fill in a description of your system's C++ link characteristics
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17066$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17067 ld_shlibs_CXX=yes
17068 case $host_os in
17069 aix3*)
17070 # FIXME: insert proper C++ library support
17071 ld_shlibs_CXX=no
17072 ;;
17073 aix[4-9]*)
17074 if test "$host_cpu" = ia64; then
17075 # On IA64, the linker does run time linking by default, so we don't
17076 # have to do anything special.
17077 aix_use_runtimelinking=no
17078 exp_sym_flag='-Bexport'
17079 no_entry_flag=""
17080 else
17081 aix_use_runtimelinking=no
17082
17083 # Test if we are trying to use run time linking or normal
17084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17085 # need to do runtime linking.
17086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17087 for ld_flag in $LDFLAGS; do
17088 case $ld_flag in
17089 *-brtl*)
17090 aix_use_runtimelinking=yes
17091 break
17092 ;;
17093 esac
17094 done
17095 ;;
17096 esac
17097
17098 exp_sym_flag='-bexport'
17099 no_entry_flag='-bnoentry'
17100 fi
17101
17102 # When large executables or shared objects are built, AIX ld can
17103 # have problems creating the table of contents. If linking a library
17104 # or program results in "error TOC overflow" add -mminimal-toc to
17105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17107
17108 archive_cmds_CXX=''
17109 hardcode_direct_CXX=yes
17110 hardcode_direct_absolute_CXX=yes
17111 hardcode_libdir_separator_CXX=':'
17112 link_all_deplibs_CXX=yes
17113 file_list_spec_CXX='${wl}-f,'
17114
17115 if test "$GXX" = yes; then
17116 case $host_os in aix4.[012]|aix4.[012].*)
17117 # We only want to do this on AIX 4.2 and lower, the check
17118 # below for broken collect2 doesn't work under 4.3+
17119 collect2name=`${CC} -print-prog-name=collect2`
17120 if test -f "$collect2name" &&
17121 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17122 then
17123 # We have reworked collect2
17124 :
17125 else
17126 # We have old collect2
17127 hardcode_direct_CXX=unsupported
17128 # It fails to find uninstalled libraries when the uninstalled
17129 # path is not listed in the libpath. Setting hardcode_minus_L
17130 # to unsupported forces relinking
17131 hardcode_minus_L_CXX=yes
17132 hardcode_libdir_flag_spec_CXX='-L$libdir'
17133 hardcode_libdir_separator_CXX=
17134 fi
17135 esac
17136 shared_flag='-shared'
17137 if test "$aix_use_runtimelinking" = yes; then
17138 shared_flag="$shared_flag "'${wl}-G'
17139 fi
17140 else
17141 # not using gcc
17142 if test "$host_cpu" = ia64; then
17143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17144 # chokes on -Wl,-G. The following line is correct:
17145 shared_flag='-G'
17146 else
17147 if test "$aix_use_runtimelinking" = yes; then
17148 shared_flag='${wl}-G'
17149 else
17150 shared_flag='${wl}-bM:SRE'
17151 fi
17152 fi
17153 fi
17154
17155 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17156 # It seems that -bexpall does not export symbols beginning with
17157 # underscore (_), so it is better to generate a list of symbols to
17158 # export.
17159 always_export_symbols_CXX=yes
17160 if test "$aix_use_runtimelinking" = yes; then
17161 # Warning - without using the other runtime loading flags (-brtl),
17162 # -berok will link without error, but may produce a broken library.
17163 allow_undefined_flag_CXX='-berok'
17164 # Determine the default libpath from the value encoded in an empty
17165 # executable.
cristyda16f162011-02-19 23:52:17 +000017166 if test "${lt_cv_aix_libpath+set}" = set; then
17167 aix_libpath=$lt_cv_aix_libpath
17168else
17169 if ${lt_cv_aix_libpath__CXX+:} false; then :
17170 $as_echo_n "(cached) " >&6
17171else
17172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017173/* end confdefs.h. */
17174
17175int
17176main ()
17177{
17178
17179 ;
17180 return 0;
17181}
17182_ACEOF
17183if ac_fn_cxx_try_link "$LINENO"; then :
17184
cristyda16f162011-02-19 23:52:17 +000017185 lt_aix_libpath_sed='
17186 /Import File Strings/,/^$/ {
17187 /^0/ {
17188 s/^0 *\([^ ]*\) *$/\1/
17189 p
17190 }
17191 }'
17192 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17193 # Check for a 64-bit object if we didn't find anything.
17194 if test -z "$lt_cv_aix_libpath__CXX"; then
17195 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17196 fi
cristy73bd4a52010-10-05 11:24:23 +000017197fi
17198rm -f core conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017200 if test -z "$lt_cv_aix_libpath__CXX"; then
17201 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17202 fi
17203
17204fi
17205
17206 aix_libpath=$lt_cv_aix_libpath__CXX
17207fi
cristy73bd4a52010-10-05 11:24:23 +000017208
17209 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17210
cristy0c60a692010-11-04 01:09:47 +000017211 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 +000017212 else
17213 if test "$host_cpu" = ia64; then
17214 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17215 allow_undefined_flag_CXX="-z nodefs"
17216 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"
17217 else
17218 # Determine the default libpath from the value encoded in an
17219 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017220 if test "${lt_cv_aix_libpath+set}" = set; then
17221 aix_libpath=$lt_cv_aix_libpath
17222else
17223 if ${lt_cv_aix_libpath__CXX+:} false; then :
17224 $as_echo_n "(cached) " >&6
17225else
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017227/* end confdefs.h. */
17228
17229int
17230main ()
17231{
17232
17233 ;
17234 return 0;
17235}
17236_ACEOF
17237if ac_fn_cxx_try_link "$LINENO"; then :
17238
cristyda16f162011-02-19 23:52:17 +000017239 lt_aix_libpath_sed='
17240 /Import File Strings/,/^$/ {
17241 /^0/ {
17242 s/^0 *\([^ ]*\) *$/\1/
17243 p
17244 }
17245 }'
17246 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17247 # Check for a 64-bit object if we didn't find anything.
17248 if test -z "$lt_cv_aix_libpath__CXX"; then
17249 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17250 fi
cristy73bd4a52010-10-05 11:24:23 +000017251fi
17252rm -f core conftest.err conftest.$ac_objext \
17253 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017254 if test -z "$lt_cv_aix_libpath__CXX"; then
17255 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17256 fi
17257
17258fi
17259
17260 aix_libpath=$lt_cv_aix_libpath__CXX
17261fi
cristy73bd4a52010-10-05 11:24:23 +000017262
17263 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17264 # Warning - without using the other run time loading flags,
17265 # -berok will link without error, but may produce a broken library.
17266 no_undefined_flag_CXX=' ${wl}-bernotok'
17267 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017268 if test "$with_gnu_ld" = yes; then
17269 # We only use this code for GNU lds that support --whole-archive.
17270 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17271 else
17272 # Exported symbols can be pulled into shared objects from archives
17273 whole_archive_flag_spec_CXX='$convenience'
17274 fi
cristy73bd4a52010-10-05 11:24:23 +000017275 archive_cmds_need_lc_CXX=yes
17276 # This is similar to how AIX traditionally builds its shared
17277 # libraries.
17278 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'
17279 fi
17280 fi
17281 ;;
17282
17283 beos*)
17284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17285 allow_undefined_flag_CXX=unsupported
17286 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17287 # support --undefined. This deserves some investigation. FIXME
17288 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17289 else
17290 ld_shlibs_CXX=no
17291 fi
17292 ;;
17293
17294 chorus*)
17295 case $cc_basename in
17296 *)
17297 # FIXME: insert proper C++ library support
17298 ld_shlibs_CXX=no
17299 ;;
17300 esac
17301 ;;
17302
17303 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017304 case $GXX,$cc_basename in
17305 ,cl* | no,cl*)
17306 # Native MSVC
17307 # hardcode_libdir_flag_spec is actually meaningless, as there is
17308 # no search path for DLLs.
17309 hardcode_libdir_flag_spec_CXX=' '
17310 allow_undefined_flag_CXX=unsupported
17311 always_export_symbols_CXX=yes
17312 file_list_spec_CXX='@'
17313 # Tell ltmain to make .lib files, not .a files.
17314 libext=lib
17315 # Tell ltmain to make .dll files, not .so files.
17316 shrext_cmds=".dll"
17317 # FIXME: Setting linknames here is a bad hack.
17318 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17319 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17320 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17321 else
17322 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17323 fi~
17324 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17325 linknames='
17326 # The linker will not automatically build a static lib if we build a DLL.
17327 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17328 enable_shared_with_static_runtimes_CXX=yes
17329 # Don't use ranlib
17330 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17331 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17332 lt_tool_outputfile="@TOOL_OUTPUT@"~
17333 case $lt_outputfile in
17334 *.exe|*.EXE) ;;
17335 *)
17336 lt_outputfile="$lt_outputfile.exe"
17337 lt_tool_outputfile="$lt_tool_outputfile.exe"
17338 ;;
17339 esac~
17340 func_to_tool_file "$lt_outputfile"~
17341 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17342 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17343 $RM "$lt_outputfile.manifest";
17344 fi'
17345 ;;
17346 *)
17347 # g++
17348 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17349 # as there is no search path for DLLs.
17350 hardcode_libdir_flag_spec_CXX='-L$libdir'
17351 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17352 allow_undefined_flag_CXX=unsupported
17353 always_export_symbols_CXX=no
17354 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017355
cristyda16f162011-02-19 23:52:17 +000017356 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17357 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'
17358 # If the export-symbols file already is a .def file (1st line
17359 # is EXPORTS), use it as is; otherwise, prepend...
17360 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17361 cp $export_symbols $output_objdir/$soname.def;
17362 else
17363 echo EXPORTS > $output_objdir/$soname.def;
17364 cat $export_symbols >> $output_objdir/$soname.def;
17365 fi~
17366 $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'
17367 else
17368 ld_shlibs_CXX=no
17369 fi
17370 ;;
17371 esac
17372 ;;
cristy73bd4a52010-10-05 11:24:23 +000017373 darwin* | rhapsody*)
17374
17375
17376 archive_cmds_need_lc_CXX=no
17377 hardcode_direct_CXX=no
17378 hardcode_automatic_CXX=yes
17379 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017380 if test "$lt_cv_ld_force_load" = "yes"; then
17381 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\"`'
17382 else
17383 whole_archive_flag_spec_CXX=''
17384 fi
cristy73bd4a52010-10-05 11:24:23 +000017385 link_all_deplibs_CXX=yes
17386 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17387 case $cc_basename in
17388 ifort*) _lt_dar_can_shared=yes ;;
17389 *) _lt_dar_can_shared=$GCC ;;
17390 esac
17391 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017392 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017393 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}"
17394 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17395 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}"
17396 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}"
17397 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17398 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}"
17399 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}"
17400 fi
17401
17402 else
17403 ld_shlibs_CXX=no
17404 fi
17405
17406 ;;
17407
17408 dgux*)
17409 case $cc_basename in
17410 ec++*)
17411 # FIXME: insert proper C++ library support
17412 ld_shlibs_CXX=no
17413 ;;
17414 ghcx*)
17415 # Green Hills C++ Compiler
17416 # FIXME: insert proper C++ library support
17417 ld_shlibs_CXX=no
17418 ;;
17419 *)
17420 # FIXME: insert proper C++ library support
17421 ld_shlibs_CXX=no
17422 ;;
17423 esac
17424 ;;
17425
17426 freebsd[12]*)
17427 # C++ shared libraries reported to be fairly broken before
17428 # switch to ELF
17429 ld_shlibs_CXX=no
17430 ;;
17431
17432 freebsd-elf*)
17433 archive_cmds_need_lc_CXX=no
17434 ;;
17435
17436 freebsd* | dragonfly*)
17437 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17438 # conventions
17439 ld_shlibs_CXX=yes
17440 ;;
17441
17442 gnu*)
17443 ;;
17444
cristy0c60a692010-11-04 01:09:47 +000017445 haiku*)
17446 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17447 link_all_deplibs_CXX=yes
17448 ;;
17449
cristy73bd4a52010-10-05 11:24:23 +000017450 hpux9*)
17451 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17452 hardcode_libdir_separator_CXX=:
17453 export_dynamic_flag_spec_CXX='${wl}-E'
17454 hardcode_direct_CXX=yes
17455 hardcode_minus_L_CXX=yes # Not in the search PATH,
17456 # but as the default
17457 # location of the library.
17458
17459 case $cc_basename in
17460 CC*)
17461 # FIXME: insert proper C++ library support
17462 ld_shlibs_CXX=no
17463 ;;
17464 aCC*)
17465 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'
17466 # Commands to make compiler produce verbose output that lists
17467 # what "hidden" libraries, object files and flags are used when
17468 # linking a shared library.
17469 #
17470 # There doesn't appear to be a way to prevent this compiler from
17471 # explicitly linking system object files so we need to strip them
17472 # from the output so that they don't get included in the library
17473 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017474 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 +000017475 ;;
17476 *)
17477 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017478 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 +000017479 else
17480 # FIXME: insert proper C++ library support
17481 ld_shlibs_CXX=no
17482 fi
17483 ;;
17484 esac
17485 ;;
17486
17487 hpux10*|hpux11*)
17488 if test $with_gnu_ld = no; then
17489 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17490 hardcode_libdir_separator_CXX=:
17491
17492 case $host_cpu in
17493 hppa*64*|ia64*)
17494 ;;
17495 *)
17496 export_dynamic_flag_spec_CXX='${wl}-E'
17497 ;;
17498 esac
17499 fi
17500 case $host_cpu in
17501 hppa*64*|ia64*)
17502 hardcode_direct_CXX=no
17503 hardcode_shlibpath_var_CXX=no
17504 ;;
17505 *)
17506 hardcode_direct_CXX=yes
17507 hardcode_direct_absolute_CXX=yes
17508 hardcode_minus_L_CXX=yes # Not in the search PATH,
17509 # but as the default
17510 # location of the library.
17511 ;;
17512 esac
17513
17514 case $cc_basename in
17515 CC*)
17516 # FIXME: insert proper C++ library support
17517 ld_shlibs_CXX=no
17518 ;;
17519 aCC*)
17520 case $host_cpu in
17521 hppa*64*)
17522 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17523 ;;
17524 ia64*)
17525 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17526 ;;
17527 *)
17528 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17529 ;;
17530 esac
17531 # Commands to make compiler produce verbose output that lists
17532 # what "hidden" libraries, object files and flags are used when
17533 # linking a shared library.
17534 #
17535 # There doesn't appear to be a way to prevent this compiler from
17536 # explicitly linking system object files so we need to strip them
17537 # from the output so that they don't get included in the library
17538 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017539 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 +000017540 ;;
17541 *)
17542 if test "$GXX" = yes; then
17543 if test $with_gnu_ld = no; then
17544 case $host_cpu in
17545 hppa*64*)
17546 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17547 ;;
17548 ia64*)
cristyda16f162011-02-19 23:52:17 +000017549 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 +000017550 ;;
17551 *)
cristyda16f162011-02-19 23:52:17 +000017552 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 +000017553 ;;
17554 esac
17555 fi
17556 else
17557 # FIXME: insert proper C++ library support
17558 ld_shlibs_CXX=no
17559 fi
17560 ;;
17561 esac
17562 ;;
17563
17564 interix[3-9]*)
17565 hardcode_direct_CXX=no
17566 hardcode_shlibpath_var_CXX=no
17567 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17568 export_dynamic_flag_spec_CXX='${wl}-E'
17569 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17570 # Instead, shared libraries are loaded at an image base (0x10000000 by
17571 # default) and relocated if they conflict, which is a slow very memory
17572 # consuming and fragmenting process. To avoid this, we pick a random,
17573 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17574 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17575 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'
17576 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'
17577 ;;
17578 irix5* | irix6*)
17579 case $cc_basename in
17580 CC*)
17581 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017582 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 +000017583
17584 # Archives containing C++ object files must be created using
17585 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17586 # necessary to make sure instantiated templates are included
17587 # in the archive.
17588 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17589 ;;
17590 *)
17591 if test "$GXX" = yes; then
17592 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017593 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 +000017594 else
cristyda16f162011-02-19 23:52:17 +000017595 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 +000017596 fi
17597 fi
17598 link_all_deplibs_CXX=yes
17599 ;;
17600 esac
17601 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17602 hardcode_libdir_separator_CXX=:
17603 inherit_rpath_CXX=yes
17604 ;;
17605
cristy0c60a692010-11-04 01:09:47 +000017606 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017607 case $cc_basename in
17608 KCC*)
17609 # Kuck and Associates, Inc. (KAI) C++ Compiler
17610
17611 # KCC will only create a shared library if the output file
17612 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17613 # to its proper name (with version) after linking.
17614 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'
17615 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'
17616 # Commands to make compiler produce verbose output that lists
17617 # what "hidden" libraries, object files and flags are used when
17618 # linking a shared library.
17619 #
17620 # There doesn't appear to be a way to prevent this compiler from
17621 # explicitly linking system object files so we need to strip them
17622 # from the output so that they don't get included in the library
17623 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017624 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 +000017625
17626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17627 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17628
17629 # Archives containing C++ object files must be created using
17630 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17631 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17632 ;;
17633 icpc* | ecpc* )
17634 # Intel C++
17635 with_gnu_ld=yes
17636 # version 8.0 and above of icpc choke on multiply defined symbols
17637 # if we add $predep_objects and $postdep_objects, however 7.1 and
17638 # earlier do not add the objects themselves.
17639 case `$CC -V 2>&1` in
17640 *"Version 7."*)
17641 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17642 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'
17643 ;;
17644 *) # Version 8.0 or newer
17645 tmp_idyn=
17646 case $host_cpu in
17647 ia64*) tmp_idyn=' -i_dynamic';;
17648 esac
17649 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17650 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'
17651 ;;
17652 esac
17653 archive_cmds_need_lc_CXX=no
17654 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17655 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17656 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17657 ;;
17658 pgCC* | pgcpp*)
17659 # Portland Group C++ compiler
17660 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017661 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017662 prelink_cmds_CXX='tpldir=Template.dir~
17663 rm -rf $tpldir~
17664 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017665 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017666 old_archive_cmds_CXX='tpldir=Template.dir~
17667 rm -rf $tpldir~
17668 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017669 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017670 $RANLIB $oldlib'
17671 archive_cmds_CXX='tpldir=Template.dir~
17672 rm -rf $tpldir~
17673 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017674 $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 +000017675 archive_expsym_cmds_CXX='tpldir=Template.dir~
17676 rm -rf $tpldir~
17677 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017678 $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 +000017679 ;;
cristy0c60a692010-11-04 01:09:47 +000017680 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017681 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17682 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'
17683 ;;
17684 esac
17685
17686 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17687 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017688 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 +000017689 ;;
17690 cxx*)
17691 # Compaq C++
17692 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17693 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'
17694
17695 runpath_var=LD_RUN_PATH
17696 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17697 hardcode_libdir_separator_CXX=:
17698
17699 # Commands to make compiler produce verbose output that lists
17700 # what "hidden" libraries, object files and flags are used when
17701 # linking a shared library.
17702 #
17703 # There doesn't appear to be a way to prevent this compiler from
17704 # explicitly linking system object files so we need to strip them
17705 # from the output so that they don't get included in the library
17706 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017707 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 +000017708 ;;
cristy0c60a692010-11-04 01:09:47 +000017709 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017710 # IBM XL 8.0 on PPC, with GNU ld
17711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17712 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17713 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17714 if test "x$supports_anon_versioning" = xyes; then
17715 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17717 echo "local: *; };" >> $output_objdir/$libname.ver~
17718 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17719 fi
17720 ;;
17721 *)
17722 case `$CC -V 2>&1 | sed 5q` in
17723 *Sun\ C*)
17724 # Sun C++ 5.9
17725 no_undefined_flag_CXX=' -zdefs'
17726 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17727 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'
17728 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017729 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 +000017730 compiler_needs_object_CXX=yes
17731
17732 # Not sure whether something based on
17733 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17734 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017735 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017736
17737 # Archives containing C++ object files must be created using
17738 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17739 # necessary to make sure instantiated templates are included
17740 # in the archive.
17741 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17742 ;;
17743 esac
17744 ;;
17745 esac
17746 ;;
17747
17748 lynxos*)
17749 # FIXME: insert proper C++ library support
17750 ld_shlibs_CXX=no
17751 ;;
17752
17753 m88k*)
17754 # FIXME: insert proper C++ library support
17755 ld_shlibs_CXX=no
17756 ;;
17757
17758 mvs*)
17759 case $cc_basename in
17760 cxx*)
17761 # FIXME: insert proper C++ library support
17762 ld_shlibs_CXX=no
17763 ;;
17764 *)
17765 # FIXME: insert proper C++ library support
17766 ld_shlibs_CXX=no
17767 ;;
17768 esac
17769 ;;
17770
17771 netbsd*)
17772 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17773 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17774 wlarc=
17775 hardcode_libdir_flag_spec_CXX='-R$libdir'
17776 hardcode_direct_CXX=yes
17777 hardcode_shlibpath_var_CXX=no
17778 fi
17779 # Workaround some broken pre-1.5 toolchains
17780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17781 ;;
17782
17783 *nto* | *qnx*)
17784 ld_shlibs_CXX=yes
17785 ;;
17786
17787 openbsd2*)
17788 # C++ shared libraries are fairly broken
17789 ld_shlibs_CXX=no
17790 ;;
17791
17792 openbsd*)
17793 if test -f /usr/libexec/ld.so; then
17794 hardcode_direct_CXX=yes
17795 hardcode_shlibpath_var_CXX=no
17796 hardcode_direct_absolute_CXX=yes
17797 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17800 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17801 export_dynamic_flag_spec_CXX='${wl}-E'
17802 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17803 fi
cristy0c60a692010-11-04 01:09:47 +000017804 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017805 else
17806 ld_shlibs_CXX=no
17807 fi
17808 ;;
17809
17810 osf3* | osf4* | osf5*)
17811 case $cc_basename in
17812 KCC*)
17813 # Kuck and Associates, Inc. (KAI) C++ Compiler
17814
17815 # KCC will only create a shared library if the output file
17816 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17817 # to its proper name (with version) after linking.
17818 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'
17819
17820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17821 hardcode_libdir_separator_CXX=:
17822
17823 # Archives containing C++ object files must be created using
17824 # the KAI C++ compiler.
17825 case $host in
17826 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17827 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17828 esac
17829 ;;
17830 RCC*)
17831 # Rational C++ 2.4.1
17832 # FIXME: insert proper C++ library support
17833 ld_shlibs_CXX=no
17834 ;;
17835 cxx*)
17836 case $host in
17837 osf3*)
17838 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017839 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 +000017840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17841 ;;
17842 *)
17843 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017844 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 +000017845 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17846 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017847 $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 +000017848 $RM $lib.exp'
17849 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17850 ;;
17851 esac
17852
17853 hardcode_libdir_separator_CXX=:
17854
17855 # Commands to make compiler produce verbose output that lists
17856 # what "hidden" libraries, object files and flags are used when
17857 # linking a shared library.
17858 #
17859 # There doesn't appear to be a way to prevent this compiler from
17860 # explicitly linking system object files so we need to strip them
17861 # from the output so that they don't get included in the library
17862 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017863 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 +000017864 ;;
17865 *)
17866 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17867 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17868 case $host in
17869 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017870 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 +000017871 ;;
17872 *)
cristyda16f162011-02-19 23:52:17 +000017873 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 +000017874 ;;
17875 esac
17876
17877 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17878 hardcode_libdir_separator_CXX=:
17879
17880 # Commands to make compiler produce verbose output that lists
17881 # what "hidden" libraries, object files and flags are used when
17882 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017883 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017884
17885 else
17886 # FIXME: insert proper C++ library support
17887 ld_shlibs_CXX=no
17888 fi
17889 ;;
17890 esac
17891 ;;
17892
17893 psos*)
17894 # FIXME: insert proper C++ library support
17895 ld_shlibs_CXX=no
17896 ;;
17897
17898 sunos4*)
17899 case $cc_basename in
17900 CC*)
17901 # Sun C++ 4.x
17902 # FIXME: insert proper C++ library support
17903 ld_shlibs_CXX=no
17904 ;;
17905 lcc*)
17906 # Lucid
17907 # FIXME: insert proper C++ library support
17908 ld_shlibs_CXX=no
17909 ;;
17910 *)
17911 # FIXME: insert proper C++ library support
17912 ld_shlibs_CXX=no
17913 ;;
17914 esac
17915 ;;
17916
17917 solaris*)
17918 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017919 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017920 # Sun C++ 4.2, 5.x and Centerline C++
17921 archive_cmds_need_lc_CXX=yes
17922 no_undefined_flag_CXX=' -zdefs'
17923 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17924 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17925 $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'
17926
17927 hardcode_libdir_flag_spec_CXX='-R$libdir'
17928 hardcode_shlibpath_var_CXX=no
17929 case $host_os in
17930 solaris2.[0-5] | solaris2.[0-5].*) ;;
17931 *)
17932 # The compiler driver will combine and reorder linker options,
17933 # but understands `-z linker_flag'.
17934 # Supported since Solaris 2.6 (maybe 2.5.1?)
17935 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17936 ;;
17937 esac
17938 link_all_deplibs_CXX=yes
17939
cristy0c60a692010-11-04 01:09:47 +000017940 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017941
17942 # Archives containing C++ object files must be created using
17943 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17944 # necessary to make sure instantiated templates are included
17945 # in the archive.
17946 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17947 ;;
17948 gcx*)
17949 # Green Hills C++ Compiler
17950 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17951
17952 # The C++ compiler must be used to create the archive.
17953 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17954 ;;
17955 *)
17956 # GNU C++ compiler with Solaris linker
17957 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17958 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17959 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017960 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 +000017961 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 +000017962 $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 +000017963
17964 # Commands to make compiler produce verbose output that lists
17965 # what "hidden" libraries, object files and flags are used when
17966 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017967 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017968 else
17969 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17970 # platform.
17971 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17972 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17973 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17974
17975 # Commands to make compiler produce verbose output that lists
17976 # what "hidden" libraries, object files and flags are used when
17977 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017978 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017979 fi
17980
17981 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17982 case $host_os in
17983 solaris2.[0-5] | solaris2.[0-5].*) ;;
17984 *)
17985 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17986 ;;
17987 esac
17988 fi
17989 ;;
17990 esac
17991 ;;
17992
17993 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17994 no_undefined_flag_CXX='${wl}-z,text'
17995 archive_cmds_need_lc_CXX=no
17996 hardcode_shlibpath_var_CXX=no
17997 runpath_var='LD_RUN_PATH'
17998
17999 case $cc_basename in
18000 CC*)
18001 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18002 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 ;;
18004 *)
18005 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18006 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18007 ;;
18008 esac
18009 ;;
18010
18011 sysv5* | sco3.2v5* | sco5v6*)
18012 # Note: We can NOT use -z defs as we might desire, because we do not
18013 # link with -lc, and that would cause any symbols used from libc to
18014 # always be unresolved, which means just about no library would
18015 # ever link correctly. If we're not using GNU ld we use -z text
18016 # though, which does catch some bad symbols but isn't as heavy-handed
18017 # as -z defs.
18018 no_undefined_flag_CXX='${wl}-z,text'
18019 allow_undefined_flag_CXX='${wl}-z,nodefs'
18020 archive_cmds_need_lc_CXX=no
18021 hardcode_shlibpath_var_CXX=no
18022 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18023 hardcode_libdir_separator_CXX=':'
18024 link_all_deplibs_CXX=yes
18025 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18026 runpath_var='LD_RUN_PATH'
18027
18028 case $cc_basename in
18029 CC*)
18030 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18031 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 +000018032 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18033 '"$old_archive_cmds_CXX"
18034 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18035 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018036 ;;
18037 *)
18038 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18039 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18040 ;;
18041 esac
18042 ;;
18043
18044 tandem*)
18045 case $cc_basename in
18046 NCC*)
18047 # NonStop-UX NCC 3.20
18048 # FIXME: insert proper C++ library support
18049 ld_shlibs_CXX=no
18050 ;;
18051 *)
18052 # FIXME: insert proper C++ library support
18053 ld_shlibs_CXX=no
18054 ;;
18055 esac
18056 ;;
18057
18058 vxworks*)
18059 # FIXME: insert proper C++ library support
18060 ld_shlibs_CXX=no
18061 ;;
18062
18063 *)
18064 # FIXME: insert proper C++ library support
18065 ld_shlibs_CXX=no
18066 ;;
18067 esac
18068
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18070$as_echo "$ld_shlibs_CXX" >&6; }
18071 test "$ld_shlibs_CXX" = no && can_build_shared=no
18072
18073 GCC_CXX="$GXX"
18074 LD_CXX="$LD"
18075
18076 ## CAVEAT EMPTOR:
18077 ## There is no encapsulation within the following macros, do not change
18078 ## the running order or otherwise move them around unless you know exactly
18079 ## what you are doing...
18080 # Dependencies to place before and after the object being linked:
18081predep_objects_CXX=
18082postdep_objects_CXX=
18083predeps_CXX=
18084postdeps_CXX=
18085compiler_lib_search_path_CXX=
18086
18087cat > conftest.$ac_ext <<_LT_EOF
18088class Foo
18089{
18090public:
18091 Foo (void) { a = 0; }
18092private:
18093 int a;
18094};
18095_LT_EOF
18096
cristyda16f162011-02-19 23:52:17 +000018097
18098_lt_libdeps_save_CFLAGS=$CFLAGS
18099case "$CC $CFLAGS " in #(
18100*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18101*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18102esac
18103
cristy73bd4a52010-10-05 11:24:23 +000018104if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18105 (eval $ac_compile) 2>&5
18106 ac_status=$?
18107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18108 test $ac_status = 0; }; then
18109 # Parse the compiler output and extract the necessary
18110 # objects, libraries and library flags.
18111
18112 # Sentinel used to keep track of whether or not we are before
18113 # the conftest object file.
18114 pre_test_object_deps_done=no
18115
18116 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018117 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018118
18119 -L* | -R* | -l*)
18120 # Some compilers place space between "-{L,R}" and the path.
18121 # Remove the space.
18122 if test $p = "-L" ||
18123 test $p = "-R"; then
18124 prev=$p
18125 continue
cristy73bd4a52010-10-05 11:24:23 +000018126 fi
18127
cristyda16f162011-02-19 23:52:17 +000018128 # Expand the sysroot to ease extracting the directories later.
18129 if test -z "$prev"; then
18130 case $p in
18131 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18132 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18133 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18134 esac
18135 fi
18136 case $p in
18137 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18138 esac
cristy73bd4a52010-10-05 11:24:23 +000018139 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018140 case ${prev} in
18141 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018142 # Internal compiler library paths should come after those
18143 # provided the user. The postdeps already come after the
18144 # user supplied libs so there is no need to process them.
18145 if test -z "$compiler_lib_search_path_CXX"; then
18146 compiler_lib_search_path_CXX="${prev}${p}"
18147 else
18148 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18149 fi
18150 ;;
18151 # The "-l" case would never come before the object being
18152 # linked, so don't bother handling this case.
18153 esac
18154 else
18155 if test -z "$postdeps_CXX"; then
18156 postdeps_CXX="${prev}${p}"
18157 else
18158 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18159 fi
18160 fi
cristyda16f162011-02-19 23:52:17 +000018161 prev=
cristy73bd4a52010-10-05 11:24:23 +000018162 ;;
18163
cristyda16f162011-02-19 23:52:17 +000018164 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018165 *.$objext)
18166 # This assumes that the test object file only shows up
18167 # once in the compiler output.
18168 if test "$p" = "conftest.$objext"; then
18169 pre_test_object_deps_done=yes
18170 continue
18171 fi
18172
18173 if test "$pre_test_object_deps_done" = no; then
18174 if test -z "$predep_objects_CXX"; then
18175 predep_objects_CXX="$p"
18176 else
18177 predep_objects_CXX="$predep_objects_CXX $p"
18178 fi
18179 else
18180 if test -z "$postdep_objects_CXX"; then
18181 postdep_objects_CXX="$p"
18182 else
18183 postdep_objects_CXX="$postdep_objects_CXX $p"
18184 fi
18185 fi
18186 ;;
18187
18188 *) ;; # Ignore the rest.
18189
18190 esac
18191 done
18192
18193 # Clean up.
18194 rm -f a.out a.exe
18195else
18196 echo "libtool.m4: error: problem compiling CXX test program"
18197fi
18198
18199$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018200CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018201
18202# PORTME: override above test on systems where it is broken
18203case $host_os in
18204interix[3-9]*)
18205 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18206 # hack all around it, let's just trust "g++" to DTRT.
18207 predep_objects_CXX=
18208 postdep_objects_CXX=
18209 postdeps_CXX=
18210 ;;
18211
18212linux*)
18213 case `$CC -V 2>&1 | sed 5q` in
18214 *Sun\ C*)
18215 # Sun C++ 5.9
18216
18217 # The more standards-conforming stlport4 library is
18218 # incompatible with the Cstd library. Avoid specifying
18219 # it if it's in CXXFLAGS. Ignore libCrun as
18220 # -library=stlport4 depends on it.
18221 case " $CXX $CXXFLAGS " in
18222 *" -library=stlport4 "*)
18223 solaris_use_stlport4=yes
18224 ;;
18225 esac
18226
18227 if test "$solaris_use_stlport4" != yes; then
18228 postdeps_CXX='-library=Cstd -library=Crun'
18229 fi
18230 ;;
18231 esac
18232 ;;
18233
18234solaris*)
18235 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018236 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018237 # The more standards-conforming stlport4 library is
18238 # incompatible with the Cstd library. Avoid specifying
18239 # it if it's in CXXFLAGS. Ignore libCrun as
18240 # -library=stlport4 depends on it.
18241 case " $CXX $CXXFLAGS " in
18242 *" -library=stlport4 "*)
18243 solaris_use_stlport4=yes
18244 ;;
18245 esac
18246
18247 # Adding this requires a known-good setup of shared libraries for
18248 # Sun compiler versions before 5.6, else PIC objects from an old
18249 # archive will be linked into the output, leading to subtle bugs.
18250 if test "$solaris_use_stlport4" != yes; then
18251 postdeps_CXX='-library=Cstd -library=Crun'
18252 fi
18253 ;;
18254 esac
18255 ;;
18256esac
18257
18258
18259case " $postdeps_CXX " in
18260*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18261esac
18262 compiler_lib_search_dirs_CXX=
18263if test -n "${compiler_lib_search_path_CXX}"; then
18264 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18265fi
18266
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 lt_prog_compiler_wl_CXX=
18298lt_prog_compiler_pic_CXX=
18299lt_prog_compiler_static_CXX=
18300
cristy73bd4a52010-10-05 11:24:23 +000018301
18302 # C++ specific cases for pic, static, wl, etc.
18303 if test "$GXX" = yes; then
18304 lt_prog_compiler_wl_CXX='-Wl,'
18305 lt_prog_compiler_static_CXX='-static'
18306
18307 case $host_os in
18308 aix*)
18309 # All AIX code is PIC.
18310 if test "$host_cpu" = ia64; then
18311 # AIX 5 now supports IA64 processor
18312 lt_prog_compiler_static_CXX='-Bstatic'
18313 fi
18314 ;;
18315
18316 amigaos*)
18317 case $host_cpu in
18318 powerpc)
18319 # see comment about AmigaOS4 .so support
18320 lt_prog_compiler_pic_CXX='-fPIC'
18321 ;;
18322 m68k)
18323 # FIXME: we need at least 68020 code to build shared libraries, but
18324 # adding the `-m68020' flag to GCC prevents building anything better,
18325 # like `-m68040'.
18326 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18327 ;;
18328 esac
18329 ;;
18330
18331 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18332 # PIC is the default for these OSes.
18333 ;;
18334 mingw* | cygwin* | os2* | pw32* | cegcc*)
18335 # This hack is so that the source file can tell whether it is being
18336 # built for inclusion in a dll (and should export symbols for example).
18337 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18338 # (--disable-auto-import) libraries
18339 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18340 ;;
18341 darwin* | rhapsody*)
18342 # PIC is the default on this platform
18343 # Common symbols not allowed in MH_DYLIB files
18344 lt_prog_compiler_pic_CXX='-fno-common'
18345 ;;
18346 *djgpp*)
18347 # DJGPP does not support shared libraries at all
18348 lt_prog_compiler_pic_CXX=
18349 ;;
cristy0c60a692010-11-04 01:09:47 +000018350 haiku*)
18351 # PIC is the default for Haiku.
18352 # The "-static" flag exists, but is broken.
18353 lt_prog_compiler_static_CXX=
18354 ;;
cristy73bd4a52010-10-05 11:24:23 +000018355 interix[3-9]*)
18356 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18357 # Instead, we relocate shared libraries at runtime.
18358 ;;
18359 sysv4*MP*)
18360 if test -d /usr/nec; then
18361 lt_prog_compiler_pic_CXX=-Kconform_pic
18362 fi
18363 ;;
18364 hpux*)
18365 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18366 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18367 # sets the default TLS model and affects inlining.
18368 case $host_cpu in
18369 hppa*64*)
18370 ;;
18371 *)
18372 lt_prog_compiler_pic_CXX='-fPIC'
18373 ;;
18374 esac
18375 ;;
18376 *qnx* | *nto*)
18377 # QNX uses GNU C++, but need to define -shared option too, otherwise
18378 # it will coredump.
18379 lt_prog_compiler_pic_CXX='-fPIC -shared'
18380 ;;
18381 *)
18382 lt_prog_compiler_pic_CXX='-fPIC'
18383 ;;
18384 esac
18385 else
18386 case $host_os in
18387 aix[4-9]*)
18388 # All AIX code is PIC.
18389 if test "$host_cpu" = ia64; then
18390 # AIX 5 now supports IA64 processor
18391 lt_prog_compiler_static_CXX='-Bstatic'
18392 else
18393 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18394 fi
18395 ;;
18396 chorus*)
18397 case $cc_basename in
18398 cxch68*)
18399 # Green Hills C++ Compiler
18400 # _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"
18401 ;;
18402 esac
18403 ;;
cristyda16f162011-02-19 23:52:17 +000018404 mingw* | cygwin* | os2* | pw32* | cegcc*)
18405 # This hack is so that the source file can tell whether it is being
18406 # built for inclusion in a dll (and should export symbols for example).
18407 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18408 ;;
cristy73bd4a52010-10-05 11:24:23 +000018409 dgux*)
18410 case $cc_basename in
18411 ec++*)
18412 lt_prog_compiler_pic_CXX='-KPIC'
18413 ;;
18414 ghcx*)
18415 # Green Hills C++ Compiler
18416 lt_prog_compiler_pic_CXX='-pic'
18417 ;;
18418 *)
18419 ;;
18420 esac
18421 ;;
18422 freebsd* | dragonfly*)
18423 # FreeBSD uses GNU C++
18424 ;;
18425 hpux9* | hpux10* | hpux11*)
18426 case $cc_basename in
18427 CC*)
18428 lt_prog_compiler_wl_CXX='-Wl,'
18429 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18430 if test "$host_cpu" != ia64; then
18431 lt_prog_compiler_pic_CXX='+Z'
18432 fi
18433 ;;
18434 aCC*)
18435 lt_prog_compiler_wl_CXX='-Wl,'
18436 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18437 case $host_cpu in
18438 hppa*64*|ia64*)
18439 # +Z the default
18440 ;;
18441 *)
18442 lt_prog_compiler_pic_CXX='+Z'
18443 ;;
18444 esac
18445 ;;
18446 *)
18447 ;;
18448 esac
18449 ;;
18450 interix*)
18451 # This is c89, which is MS Visual C++ (no shared libs)
18452 # Anyone wants to do a port?
18453 ;;
18454 irix5* | irix6* | nonstopux*)
18455 case $cc_basename in
18456 CC*)
18457 lt_prog_compiler_wl_CXX='-Wl,'
18458 lt_prog_compiler_static_CXX='-non_shared'
18459 # CC pic flag -KPIC is the default.
18460 ;;
18461 *)
18462 ;;
18463 esac
18464 ;;
cristy0c60a692010-11-04 01:09:47 +000018465 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018466 case $cc_basename in
18467 KCC*)
18468 # KAI C++ Compiler
18469 lt_prog_compiler_wl_CXX='--backend -Wl,'
18470 lt_prog_compiler_pic_CXX='-fPIC'
18471 ;;
18472 ecpc* )
18473 # old Intel C++ for x86_64 which still supported -KPIC.
18474 lt_prog_compiler_wl_CXX='-Wl,'
18475 lt_prog_compiler_pic_CXX='-KPIC'
18476 lt_prog_compiler_static_CXX='-static'
18477 ;;
18478 icpc* )
18479 # Intel C++, used to be incompatible with GCC.
18480 # ICC 10 doesn't accept -KPIC any more.
18481 lt_prog_compiler_wl_CXX='-Wl,'
18482 lt_prog_compiler_pic_CXX='-fPIC'
18483 lt_prog_compiler_static_CXX='-static'
18484 ;;
18485 pgCC* | pgcpp*)
18486 # Portland Group C++ compiler
18487 lt_prog_compiler_wl_CXX='-Wl,'
18488 lt_prog_compiler_pic_CXX='-fpic'
18489 lt_prog_compiler_static_CXX='-Bstatic'
18490 ;;
18491 cxx*)
18492 # Compaq C++
18493 # Make sure the PIC flag is empty. It appears that all Alpha
18494 # Linux and Compaq Tru64 Unix objects are PIC.
18495 lt_prog_compiler_pic_CXX=
18496 lt_prog_compiler_static_CXX='-non_shared'
18497 ;;
cristy0c60a692010-11-04 01:09:47 +000018498 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18499 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018500 lt_prog_compiler_wl_CXX='-Wl,'
18501 lt_prog_compiler_pic_CXX='-qpic'
18502 lt_prog_compiler_static_CXX='-qstaticlink'
18503 ;;
18504 *)
18505 case `$CC -V 2>&1 | sed 5q` in
18506 *Sun\ C*)
18507 # Sun C++ 5.9
18508 lt_prog_compiler_pic_CXX='-KPIC'
18509 lt_prog_compiler_static_CXX='-Bstatic'
18510 lt_prog_compiler_wl_CXX='-Qoption ld '
18511 ;;
18512 esac
18513 ;;
18514 esac
18515 ;;
18516 lynxos*)
18517 ;;
18518 m88k*)
18519 ;;
18520 mvs*)
18521 case $cc_basename in
18522 cxx*)
18523 lt_prog_compiler_pic_CXX='-W c,exportall'
18524 ;;
18525 *)
18526 ;;
18527 esac
18528 ;;
18529 netbsd*)
18530 ;;
18531 *qnx* | *nto*)
18532 # QNX uses GNU C++, but need to define -shared option too, otherwise
18533 # it will coredump.
18534 lt_prog_compiler_pic_CXX='-fPIC -shared'
18535 ;;
18536 osf3* | osf4* | osf5*)
18537 case $cc_basename in
18538 KCC*)
18539 lt_prog_compiler_wl_CXX='--backend -Wl,'
18540 ;;
18541 RCC*)
18542 # Rational C++ 2.4.1
18543 lt_prog_compiler_pic_CXX='-pic'
18544 ;;
18545 cxx*)
18546 # Digital/Compaq C++
18547 lt_prog_compiler_wl_CXX='-Wl,'
18548 # Make sure the PIC flag is empty. It appears that all Alpha
18549 # Linux and Compaq Tru64 Unix objects are PIC.
18550 lt_prog_compiler_pic_CXX=
18551 lt_prog_compiler_static_CXX='-non_shared'
18552 ;;
18553 *)
18554 ;;
18555 esac
18556 ;;
18557 psos*)
18558 ;;
18559 solaris*)
18560 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018561 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018562 # Sun C++ 4.2, 5.x and Centerline C++
18563 lt_prog_compiler_pic_CXX='-KPIC'
18564 lt_prog_compiler_static_CXX='-Bstatic'
18565 lt_prog_compiler_wl_CXX='-Qoption ld '
18566 ;;
18567 gcx*)
18568 # Green Hills C++ Compiler
18569 lt_prog_compiler_pic_CXX='-PIC'
18570 ;;
18571 *)
18572 ;;
18573 esac
18574 ;;
18575 sunos4*)
18576 case $cc_basename in
18577 CC*)
18578 # Sun C++ 4.x
18579 lt_prog_compiler_pic_CXX='-pic'
18580 lt_prog_compiler_static_CXX='-Bstatic'
18581 ;;
18582 lcc*)
18583 # Lucid
18584 lt_prog_compiler_pic_CXX='-pic'
18585 ;;
18586 *)
18587 ;;
18588 esac
18589 ;;
18590 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18591 case $cc_basename in
18592 CC*)
18593 lt_prog_compiler_wl_CXX='-Wl,'
18594 lt_prog_compiler_pic_CXX='-KPIC'
18595 lt_prog_compiler_static_CXX='-Bstatic'
18596 ;;
18597 esac
18598 ;;
18599 tandem*)
18600 case $cc_basename in
18601 NCC*)
18602 # NonStop-UX NCC 3.20
18603 lt_prog_compiler_pic_CXX='-KPIC'
18604 ;;
18605 *)
18606 ;;
18607 esac
18608 ;;
18609 vxworks*)
18610 ;;
18611 *)
18612 lt_prog_compiler_can_build_shared_CXX=no
18613 ;;
18614 esac
18615 fi
18616
18617case $host_os in
18618 # For platforms which do not support PIC, -DPIC is meaningless:
18619 *djgpp*)
18620 lt_prog_compiler_pic_CXX=
18621 ;;
18622 *)
18623 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18624 ;;
18625esac
cristy73bd4a52010-10-05 11:24:23 +000018626
cristyda16f162011-02-19 23:52:17 +000018627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18628$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18629if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18630 $as_echo_n "(cached) " >&6
18631else
18632 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18633fi
18634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18635$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18636lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018637
18638#
18639# Check to make sure the PIC flag actually works.
18640#
18641if test -n "$lt_prog_compiler_pic_CXX"; then
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18643$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018644if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018645 $as_echo_n "(cached) " >&6
18646else
18647 lt_cv_prog_compiler_pic_works_CXX=no
18648 ac_outfile=conftest.$ac_objext
18649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18650 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18651 # Insert the option either (1) after the last *FLAGS variable, or
18652 # (2) before a word containing "conftest.", or (3) at the end.
18653 # Note that $ac_compile itself does not contain backslashes and begins
18654 # with a dollar sign (not a hyphen), so the echo should work correctly.
18655 # The option is referenced via a variable to avoid confusing sed.
18656 lt_compile=`echo "$ac_compile" | $SED \
18657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18659 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018661 (eval "$lt_compile" 2>conftest.err)
18662 ac_status=$?
18663 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018665 if (exit $ac_status) && test -s "$ac_outfile"; then
18666 # The compiler can only warn and ignore the option if not recognized
18667 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18671 lt_cv_prog_compiler_pic_works_CXX=yes
18672 fi
18673 fi
18674 $RM conftest*
18675
18676fi
18677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18678$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18679
18680if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18681 case $lt_prog_compiler_pic_CXX in
18682 "" | " "*) ;;
18683 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18684 esac
18685else
18686 lt_prog_compiler_pic_CXX=
18687 lt_prog_compiler_can_build_shared_CXX=no
18688fi
18689
18690fi
18691
18692
18693
cristyda16f162011-02-19 23:52:17 +000018694
18695
cristy73bd4a52010-10-05 11:24:23 +000018696#
18697# Check to make sure the static flag actually works.
18698#
18699wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18701$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018702if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018703 $as_echo_n "(cached) " >&6
18704else
18705 lt_cv_prog_compiler_static_works_CXX=no
18706 save_LDFLAGS="$LDFLAGS"
18707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18710 # The linker can only warn and ignore the option if not recognized
18711 # So say no if there are warnings
18712 if test -s conftest.err; then
18713 # Append any errors to the config.log.
18714 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018715 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18717 if diff conftest.exp conftest.er2 >/dev/null; then
18718 lt_cv_prog_compiler_static_works_CXX=yes
18719 fi
18720 else
18721 lt_cv_prog_compiler_static_works_CXX=yes
18722 fi
18723 fi
18724 $RM -r conftest*
18725 LDFLAGS="$save_LDFLAGS"
18726
18727fi
18728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18729$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18730
18731if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18732 :
18733else
18734 lt_prog_compiler_static_CXX=
18735fi
18736
18737
18738
18739
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18741$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018742if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018743 $as_echo_n "(cached) " >&6
18744else
18745 lt_cv_prog_compiler_c_o_CXX=no
18746 $RM -r conftest 2>/dev/null
18747 mkdir conftest
18748 cd conftest
18749 mkdir out
18750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18751
18752 lt_compiler_flag="-o out/conftest2.$ac_objext"
18753 # Insert the option either (1) after the last *FLAGS variable, or
18754 # (2) before a word containing "conftest.", or (3) at the end.
18755 # Note that $ac_compile itself does not contain backslashes and begins
18756 # with a dollar sign (not a hyphen), so the echo should work correctly.
18757 lt_compile=`echo "$ac_compile" | $SED \
18758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18760 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018762 (eval "$lt_compile" 2>out/conftest.err)
18763 ac_status=$?
18764 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18767 then
18768 # The compiler can only warn and ignore the option if not recognized
18769 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18773 lt_cv_prog_compiler_c_o_CXX=yes
18774 fi
18775 fi
18776 chmod u+w . 2>&5
18777 $RM conftest*
18778 # SGI C++ compiler will create directory out/ii_files/ for
18779 # template instantiation
18780 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18781 $RM out/* && rmdir out
18782 cd ..
18783 $RM -r conftest
18784 $RM conftest*
18785
18786fi
18787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18788$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18789
18790
18791
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18793$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018794if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018795 $as_echo_n "(cached) " >&6
18796else
18797 lt_cv_prog_compiler_c_o_CXX=no
18798 $RM -r conftest 2>/dev/null
18799 mkdir conftest
18800 cd conftest
18801 mkdir out
18802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18803
18804 lt_compiler_flag="-o out/conftest2.$ac_objext"
18805 # Insert the option either (1) after the last *FLAGS variable, or
18806 # (2) before a word containing "conftest.", or (3) at the end.
18807 # Note that $ac_compile itself does not contain backslashes and begins
18808 # with a dollar sign (not a hyphen), so the echo should work correctly.
18809 lt_compile=`echo "$ac_compile" | $SED \
18810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18812 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018814 (eval "$lt_compile" 2>out/conftest.err)
18815 ac_status=$?
18816 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18819 then
18820 # The compiler can only warn and ignore the option if not recognized
18821 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18825 lt_cv_prog_compiler_c_o_CXX=yes
18826 fi
18827 fi
18828 chmod u+w . 2>&5
18829 $RM conftest*
18830 # SGI C++ compiler will create directory out/ii_files/ for
18831 # template instantiation
18832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18833 $RM out/* && rmdir out
18834 cd ..
18835 $RM -r conftest
18836 $RM conftest*
18837
18838fi
18839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18840$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18841
18842
18843
18844
18845hard_links="nottested"
18846if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18847 # do not overwrite the value of need_locks provided by the user
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18849$as_echo_n "checking if we can lock with hard links... " >&6; }
18850 hard_links=yes
18851 $RM conftest*
18852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18853 touch conftest.a
18854 ln conftest.a conftest.b 2>&5 || hard_links=no
18855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18857$as_echo "$hard_links" >&6; }
18858 if test "$hard_links" = no; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18860$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18861 need_locks=warn
18862 fi
18863else
18864 need_locks=no
18865fi
18866
18867
18868
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18870$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18871
18872 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018873 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018874 case $host_os in
18875 aix[4-9]*)
18876 # If we're using GNU nm, then we don't want the "-C" option.
18877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018878 # Also, AIX nm treats weak defined symbols like other global defined
18879 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018880 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018881 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 +000018882 else
18883 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'
18884 fi
18885 ;;
18886 pw32*)
18887 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018888 ;;
cristy73bd4a52010-10-05 11:24:23 +000018889 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018890 case $cc_basename in
18891 cl*) ;;
18892 *)
18893 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'
18894 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18895 ;;
18896 esac
18897 ;;
cristy73bd4a52010-10-05 11:24:23 +000018898 *)
18899 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018900 ;;
cristy73bd4a52010-10-05 11:24:23 +000018901 esac
cristy73bd4a52010-10-05 11:24:23 +000018902
18903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18904$as_echo "$ld_shlibs_CXX" >&6; }
18905test "$ld_shlibs_CXX" = no && can_build_shared=no
18906
18907with_gnu_ld_CXX=$with_gnu_ld
18908
18909
18910
18911
18912
18913
18914#
18915# Do we need to explicitly link libc?
18916#
18917case "x$archive_cmds_need_lc_CXX" in
18918x|xyes)
18919 # Assume -lc should be added
18920 archive_cmds_need_lc_CXX=yes
18921
18922 if test "$enable_shared" = yes && test "$GCC" = yes; then
18923 case $archive_cmds_CXX in
18924 *'~'*)
18925 # FIXME: we may have to deal with multi-command sequences.
18926 ;;
18927 '$CC '*)
18928 # Test whether the compiler implicitly links with -lc since on some
18929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18930 # to ld, don't add -lc before -lgcc.
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18932$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018933if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018934 $as_echo_n "(cached) " >&6
18935else
18936 $RM conftest*
18937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018938
cristy0c60a692010-11-04 01:09:47 +000018939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018940 (eval $ac_compile) 2>&5
18941 ac_status=$?
18942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18943 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018944 soname=conftest
18945 lib=conftest
18946 libobjs=conftest.$ac_objext
18947 deplibs=
18948 wl=$lt_prog_compiler_wl_CXX
18949 pic_flag=$lt_prog_compiler_pic_CXX
18950 compiler_flags=-v
18951 linker_flags=-v
18952 verstring=
18953 output_objdir=.
18954 libname=conftest
18955 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18956 allow_undefined_flag_CXX=
18957 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 +000018958 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18959 ac_status=$?
18960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18961 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018962 then
18963 lt_cv_archive_cmds_need_lc_CXX=no
18964 else
18965 lt_cv_archive_cmds_need_lc_CXX=yes
18966 fi
18967 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18968 else
18969 cat conftest.err 1>&5
18970 fi
18971 $RM conftest*
18972
18973fi
18974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18975$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18976 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018977 ;;
18978 esac
18979 fi
18980 ;;
18981esac
18982
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19047$as_echo_n "checking dynamic linker characteristics... " >&6; }
19048
19049library_names_spec=
19050libname_spec='lib$name'
19051soname_spec=
19052shrext_cmds=".so"
19053postinstall_cmds=
19054postuninstall_cmds=
19055finish_cmds=
19056finish_eval=
19057shlibpath_var=
19058shlibpath_overrides_runpath=unknown
19059version_type=none
19060dynamic_linker="$host_os ld.so"
19061sys_lib_dlsearch_path_spec="/lib /usr/lib"
19062need_lib_prefix=unknown
19063hardcode_into_libs=no
19064
19065# when you set need_version to no, make sure it does not cause -set_version
19066# flags to be left without arguments
19067need_version=unknown
19068
19069case $host_os in
19070aix3*)
19071 version_type=linux
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19073 shlibpath_var=LIBPATH
19074
19075 # AIX 3 has no versioning support, so we append a major version to the name.
19076 soname_spec='${libname}${release}${shared_ext}$major'
19077 ;;
19078
19079aix[4-9]*)
19080 version_type=linux
19081 need_lib_prefix=no
19082 need_version=no
19083 hardcode_into_libs=yes
19084 if test "$host_cpu" = ia64; then
19085 # AIX 5 supports IA64
19086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19087 shlibpath_var=LD_LIBRARY_PATH
19088 else
19089 # With GCC up to 2.95.x, collect2 would create an import file
19090 # for dependence libraries. The import file would start with
19091 # the line `#! .'. This would cause the generated library to
19092 # depend on `.', always an invalid library. This was fixed in
19093 # development snapshots of GCC prior to 3.0.
19094 case $host_os in
19095 aix4 | aix4.[01] | aix4.[01].*)
19096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19097 echo ' yes '
19098 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19099 :
19100 else
19101 can_build_shared=no
19102 fi
19103 ;;
19104 esac
19105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19106 # soname into executable. Probably we can add versioning support to
19107 # collect2, so additional links can be useful in future.
19108 if test "$aix_use_runtimelinking" = yes; then
19109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19110 # instead of lib<name>.a to let people know that these are not
19111 # typical AIX shared libraries.
19112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19113 else
19114 # We preserve .a as extension for shared libraries through AIX4.2
19115 # and later when we are not doing run time linking.
19116 library_names_spec='${libname}${release}.a $libname.a'
19117 soname_spec='${libname}${release}${shared_ext}$major'
19118 fi
19119 shlibpath_var=LIBPATH
19120 fi
19121 ;;
19122
19123amigaos*)
19124 case $host_cpu in
19125 powerpc)
19126 # Since July 2007 AmigaOS4 officially supports .so libraries.
19127 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19129 ;;
19130 m68k)
19131 library_names_spec='$libname.ixlibrary $libname.a'
19132 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019133 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 +000019134 ;;
19135 esac
19136 ;;
19137
19138beos*)
19139 library_names_spec='${libname}${shared_ext}'
19140 dynamic_linker="$host_os ld.so"
19141 shlibpath_var=LIBRARY_PATH
19142 ;;
19143
19144bsdi[45]*)
19145 version_type=linux
19146 need_version=no
19147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19148 soname_spec='${libname}${release}${shared_ext}$major'
19149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19150 shlibpath_var=LD_LIBRARY_PATH
19151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19153 # the default ld.so.conf also contains /usr/contrib/lib and
19154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19155 # libtool to hard-code these into programs
19156 ;;
19157
19158cygwin* | mingw* | pw32* | cegcc*)
19159 version_type=windows
19160 shrext_cmds=".dll"
19161 need_version=no
19162 need_lib_prefix=no
19163
cristyda16f162011-02-19 23:52:17 +000019164 case $GCC,$cc_basename in
19165 yes,*)
19166 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019167 library_names_spec='$libname.dll.a'
19168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19169 postinstall_cmds='base_file=`basename \${file}`~
19170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19171 dldir=$destdir/`dirname \$dlpath`~
19172 test -d \$dldir || mkdir -p \$dldir~
19173 $install_prog $dir/$dlname \$dldir/$dlname~
19174 chmod a+x \$dldir/$dlname~
19175 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19176 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19177 fi'
19178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19179 dlpath=$dir/\$dldll~
19180 $RM \$dlpath'
19181 shlibpath_overrides_runpath=yes
19182
19183 case $host_os in
19184 cygwin*)
19185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019187
cristy73bd4a52010-10-05 11:24:23 +000019188 ;;
19189 mingw* | cegcc*)
19190 # MinGW DLLs use traditional 'lib' prefix
19191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019192 ;;
19193 pw32*)
19194 # pw32 DLLs use 'pw' prefix rather than 'lib'
19195 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19196 ;;
19197 esac
cristyda16f162011-02-19 23:52:17 +000019198 dynamic_linker='Win32 ld.exe'
19199 ;;
19200
19201 *,cl*)
19202 # Native MSVC
19203 libname_spec='$name'
19204 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19205 library_names_spec='${libname}.dll.lib'
19206
19207 case $build_os in
19208 mingw*)
19209 sys_lib_search_path_spec=
19210 lt_save_ifs=$IFS
19211 IFS=';'
19212 for lt_path in $LIB
19213 do
19214 IFS=$lt_save_ifs
19215 # Let DOS variable expansion print the short 8.3 style file name.
19216 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19217 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19218 done
19219 IFS=$lt_save_ifs
19220 # Convert to MSYS style.
19221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19222 ;;
19223 cygwin*)
19224 # Convert to unix form, then to dos form, then back to unix form
19225 # but this time dos style (no spaces!) so that the unix form looks
19226 # like /cygdrive/c/PROGRA~1:/cygdr...
19227 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19228 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19229 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19230 ;;
19231 *)
19232 sys_lib_search_path_spec="$LIB"
19233 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19234 # It is most probably a Windows format PATH.
19235 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19236 else
19237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19238 fi
19239 # FIXME: find the short name or the path components, as spaces are
19240 # common. (e.g. "Program Files" -> "PROGRA~1")
19241 ;;
19242 esac
19243
19244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19245 postinstall_cmds='base_file=`basename \${file}`~
19246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19247 dldir=$destdir/`dirname \$dlpath`~
19248 test -d \$dldir || mkdir -p \$dldir~
19249 $install_prog $dir/$dlname \$dldir/$dlname'
19250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19251 dlpath=$dir/\$dldll~
19252 $RM \$dlpath'
19253 shlibpath_overrides_runpath=yes
19254 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019255 ;;
19256
19257 *)
cristyda16f162011-02-19 23:52:17 +000019258 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019260 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019261 ;;
19262 esac
cristy73bd4a52010-10-05 11:24:23 +000019263 # FIXME: first we should search . and the directory the executable is in
19264 shlibpath_var=PATH
19265 ;;
19266
19267darwin* | rhapsody*)
19268 dynamic_linker="$host_os dyld"
19269 version_type=darwin
19270 need_lib_prefix=no
19271 need_version=no
19272 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19273 soname_spec='${libname}${release}${major}$shared_ext'
19274 shlibpath_overrides_runpath=yes
19275 shlibpath_var=DYLD_LIBRARY_PATH
19276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19277
19278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19279 ;;
19280
19281dgux*)
19282 version_type=linux
19283 need_lib_prefix=no
19284 need_version=no
19285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19286 soname_spec='${libname}${release}${shared_ext}$major'
19287 shlibpath_var=LD_LIBRARY_PATH
19288 ;;
19289
19290freebsd1*)
19291 dynamic_linker=no
19292 ;;
19293
19294freebsd* | dragonfly*)
19295 # DragonFly does not have aout. When/if they implement a new
19296 # versioning mechanism, adjust this.
19297 if test -x /usr/bin/objformat; then
19298 objformat=`/usr/bin/objformat`
19299 else
19300 case $host_os in
19301 freebsd[123]*) objformat=aout ;;
19302 *) objformat=elf ;;
19303 esac
19304 fi
19305 version_type=freebsd-$objformat
19306 case $version_type in
19307 freebsd-elf*)
19308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19309 need_version=no
19310 need_lib_prefix=no
19311 ;;
19312 freebsd-*)
19313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19314 need_version=yes
19315 ;;
19316 esac
19317 shlibpath_var=LD_LIBRARY_PATH
19318 case $host_os in
19319 freebsd2*)
19320 shlibpath_overrides_runpath=yes
19321 ;;
19322 freebsd3.[01]* | freebsdelf3.[01]*)
19323 shlibpath_overrides_runpath=yes
19324 hardcode_into_libs=yes
19325 ;;
19326 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19327 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19328 shlibpath_overrides_runpath=no
19329 hardcode_into_libs=yes
19330 ;;
19331 *) # from 4.6 on, and DragonFly
19332 shlibpath_overrides_runpath=yes
19333 hardcode_into_libs=yes
19334 ;;
19335 esac
19336 ;;
19337
19338gnu*)
19339 version_type=linux
19340 need_lib_prefix=no
19341 need_version=no
19342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19343 soname_spec='${libname}${release}${shared_ext}$major'
19344 shlibpath_var=LD_LIBRARY_PATH
19345 hardcode_into_libs=yes
19346 ;;
19347
cristy0c60a692010-11-04 01:09:47 +000019348haiku*)
19349 version_type=linux
19350 need_lib_prefix=no
19351 need_version=no
19352 dynamic_linker="$host_os runtime_loader"
19353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19354 soname_spec='${libname}${release}${shared_ext}$major'
19355 shlibpath_var=LIBRARY_PATH
19356 shlibpath_overrides_runpath=yes
19357 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19358 hardcode_into_libs=yes
19359 ;;
19360
cristy73bd4a52010-10-05 11:24:23 +000019361hpux9* | hpux10* | hpux11*)
19362 # Give a soname corresponding to the major version so that dld.sl refuses to
19363 # link against other versions.
19364 version_type=sunos
19365 need_lib_prefix=no
19366 need_version=no
19367 case $host_cpu in
19368 ia64*)
19369 shrext_cmds='.so'
19370 hardcode_into_libs=yes
19371 dynamic_linker="$host_os dld.so"
19372 shlibpath_var=LD_LIBRARY_PATH
19373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19375 soname_spec='${libname}${release}${shared_ext}$major'
19376 if test "X$HPUX_IA64_MODE" = X32; then
19377 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19378 else
19379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19380 fi
19381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19382 ;;
19383 hppa*64*)
19384 shrext_cmds='.sl'
19385 hardcode_into_libs=yes
19386 dynamic_linker="$host_os dld.sl"
19387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19390 soname_spec='${libname}${release}${shared_ext}$major'
19391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19393 ;;
19394 *)
19395 shrext_cmds='.sl'
19396 dynamic_linker="$host_os dld.sl"
19397 shlibpath_var=SHLIB_PATH
19398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19400 soname_spec='${libname}${release}${shared_ext}$major'
19401 ;;
19402 esac
cristy0c60a692010-11-04 01:09:47 +000019403 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019404 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019405 # or fails outright, so override atomically:
19406 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019407 ;;
19408
19409interix[3-9]*)
19410 version_type=linux
19411 need_lib_prefix=no
19412 need_version=no
19413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19414 soname_spec='${libname}${release}${shared_ext}$major'
19415 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19416 shlibpath_var=LD_LIBRARY_PATH
19417 shlibpath_overrides_runpath=no
19418 hardcode_into_libs=yes
19419 ;;
19420
19421irix5* | irix6* | nonstopux*)
19422 case $host_os in
19423 nonstopux*) version_type=nonstopux ;;
19424 *)
19425 if test "$lt_cv_prog_gnu_ld" = yes; then
19426 version_type=linux
19427 else
19428 version_type=irix
19429 fi ;;
19430 esac
19431 need_lib_prefix=no
19432 need_version=no
19433 soname_spec='${libname}${release}${shared_ext}$major'
19434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19435 case $host_os in
19436 irix5* | nonstopux*)
19437 libsuff= shlibsuff=
19438 ;;
19439 *)
19440 case $LD in # libtool.m4 will add one of these switches to LD
19441 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19442 libsuff= shlibsuff= libmagic=32-bit;;
19443 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19444 libsuff=32 shlibsuff=N32 libmagic=N32;;
19445 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19446 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19447 *) libsuff= shlibsuff= libmagic=never-match;;
19448 esac
19449 ;;
19450 esac
19451 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19452 shlibpath_overrides_runpath=no
19453 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19454 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19455 hardcode_into_libs=yes
19456 ;;
19457
19458# No shared lib support for Linux oldld, aout, or coff.
19459linux*oldld* | linux*aout* | linux*coff*)
19460 dynamic_linker=no
19461 ;;
19462
19463# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019464linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019465 version_type=linux
19466 need_lib_prefix=no
19467 need_version=no
19468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19469 soname_spec='${libname}${release}${shared_ext}$major'
19470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19471 shlibpath_var=LD_LIBRARY_PATH
19472 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019473
cristy73bd4a52010-10-05 11:24:23 +000019474 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019475 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019476 $as_echo_n "(cached) " >&6
19477else
19478 lt_cv_shlibpath_overrides_runpath=no
19479 save_LDFLAGS=$LDFLAGS
19480 save_libdir=$libdir
19481 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19482 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019484/* end confdefs.h. */
19485
19486int
19487main ()
19488{
19489
19490 ;
19491 return 0;
19492}
19493_ACEOF
19494if ac_fn_cxx_try_link "$LINENO"; then :
19495 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019496 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019497fi
19498fi
19499rm -f core conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019501 LDFLAGS=$save_LDFLAGS
19502 libdir=$save_libdir
19503
19504fi
19505
19506 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019507
19508 # This implies no fast_install, which is unacceptable.
19509 # Some rework will be needed to allow for fast_install
19510 # before this can be enabled.
19511 hardcode_into_libs=yes
19512
19513 # Add ABI-specific directories to the system library path.
19514 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19515
19516 # Append ld.so.conf contents to the search path
19517 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019518 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 +000019519 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019520
cristy73bd4a52010-10-05 11:24:23 +000019521 fi
19522
19523 # We used to test for /lib/ld.so.1 and disable shared libraries on
19524 # powerpc, because MkLinux only supported shared libraries with the
19525 # GNU dynamic linker. Since this was broken with cross compilers,
19526 # most powerpc-linux boxes support dynamic linking these days and
19527 # people can always --disable-shared, the test was removed, and we
19528 # assume the GNU/Linux dynamic linker is in use.
19529 dynamic_linker='GNU/Linux ld.so'
19530 ;;
19531
19532netbsd*)
19533 version_type=sunos
19534 need_lib_prefix=no
19535 need_version=no
19536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19539 dynamic_linker='NetBSD (a.out) ld.so'
19540 else
19541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19542 soname_spec='${libname}${release}${shared_ext}$major'
19543 dynamic_linker='NetBSD ld.elf_so'
19544 fi
19545 shlibpath_var=LD_LIBRARY_PATH
19546 shlibpath_overrides_runpath=yes
19547 hardcode_into_libs=yes
19548 ;;
19549
19550newsos6)
19551 version_type=linux
19552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19553 shlibpath_var=LD_LIBRARY_PATH
19554 shlibpath_overrides_runpath=yes
19555 ;;
19556
19557*nto* | *qnx*)
19558 version_type=qnx
19559 need_lib_prefix=no
19560 need_version=no
19561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19562 soname_spec='${libname}${release}${shared_ext}$major'
19563 shlibpath_var=LD_LIBRARY_PATH
19564 shlibpath_overrides_runpath=no
19565 hardcode_into_libs=yes
19566 dynamic_linker='ldqnx.so'
19567 ;;
19568
19569openbsd*)
19570 version_type=sunos
19571 sys_lib_dlsearch_path_spec="/usr/lib"
19572 need_lib_prefix=no
19573 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19574 case $host_os in
19575 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19576 *) need_version=no ;;
19577 esac
19578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19580 shlibpath_var=LD_LIBRARY_PATH
19581 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19582 case $host_os in
19583 openbsd2.[89] | openbsd2.[89].*)
19584 shlibpath_overrides_runpath=no
19585 ;;
19586 *)
19587 shlibpath_overrides_runpath=yes
19588 ;;
19589 esac
19590 else
19591 shlibpath_overrides_runpath=yes
19592 fi
19593 ;;
19594
19595os2*)
19596 libname_spec='$name'
19597 shrext_cmds=".dll"
19598 need_lib_prefix=no
19599 library_names_spec='$libname${shared_ext} $libname.a'
19600 dynamic_linker='OS/2 ld.exe'
19601 shlibpath_var=LIBPATH
19602 ;;
19603
19604osf3* | osf4* | osf5*)
19605 version_type=osf
19606 need_lib_prefix=no
19607 need_version=no
19608 soname_spec='${libname}${release}${shared_ext}$major'
19609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19610 shlibpath_var=LD_LIBRARY_PATH
19611 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19612 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19613 ;;
19614
19615rdos*)
19616 dynamic_linker=no
19617 ;;
19618
19619solaris*)
19620 version_type=linux
19621 need_lib_prefix=no
19622 need_version=no
19623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19624 soname_spec='${libname}${release}${shared_ext}$major'
19625 shlibpath_var=LD_LIBRARY_PATH
19626 shlibpath_overrides_runpath=yes
19627 hardcode_into_libs=yes
19628 # ldd complains unless libraries are executable
19629 postinstall_cmds='chmod +x $lib'
19630 ;;
19631
19632sunos4*)
19633 version_type=sunos
19634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19636 shlibpath_var=LD_LIBRARY_PATH
19637 shlibpath_overrides_runpath=yes
19638 if test "$with_gnu_ld" = yes; then
19639 need_lib_prefix=no
19640 fi
19641 need_version=yes
19642 ;;
19643
19644sysv4 | sysv4.3*)
19645 version_type=linux
19646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19647 soname_spec='${libname}${release}${shared_ext}$major'
19648 shlibpath_var=LD_LIBRARY_PATH
19649 case $host_vendor in
19650 sni)
19651 shlibpath_overrides_runpath=no
19652 need_lib_prefix=no
19653 runpath_var=LD_RUN_PATH
19654 ;;
19655 siemens)
19656 need_lib_prefix=no
19657 ;;
19658 motorola)
19659 need_lib_prefix=no
19660 need_version=no
19661 shlibpath_overrides_runpath=no
19662 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19663 ;;
19664 esac
19665 ;;
19666
19667sysv4*MP*)
19668 if test -d /usr/nec ;then
19669 version_type=linux
19670 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19671 soname_spec='$libname${shared_ext}.$major'
19672 shlibpath_var=LD_LIBRARY_PATH
19673 fi
19674 ;;
19675
19676sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19677 version_type=freebsd-elf
19678 need_lib_prefix=no
19679 need_version=no
19680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19681 soname_spec='${libname}${release}${shared_ext}$major'
19682 shlibpath_var=LD_LIBRARY_PATH
19683 shlibpath_overrides_runpath=yes
19684 hardcode_into_libs=yes
19685 if test "$with_gnu_ld" = yes; then
19686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19687 else
19688 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19689 case $host_os in
19690 sco3.2v5*)
19691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19692 ;;
19693 esac
19694 fi
19695 sys_lib_dlsearch_path_spec='/usr/lib'
19696 ;;
19697
19698tpf*)
19699 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19700 version_type=linux
19701 need_lib_prefix=no
19702 need_version=no
19703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19704 shlibpath_var=LD_LIBRARY_PATH
19705 shlibpath_overrides_runpath=no
19706 hardcode_into_libs=yes
19707 ;;
19708
19709uts4*)
19710 version_type=linux
19711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19712 soname_spec='${libname}${release}${shared_ext}$major'
19713 shlibpath_var=LD_LIBRARY_PATH
19714 ;;
19715
19716*)
19717 dynamic_linker=no
19718 ;;
19719esac
19720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19721$as_echo "$dynamic_linker" >&6; }
19722test "$dynamic_linker" = no && can_build_shared=no
19723
19724variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19725if test "$GCC" = yes; then
19726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19727fi
19728
19729if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19730 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19731fi
19732if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19733 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19734fi
19735
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
cristy0c60a692010-11-04 01:09:47 +000019771
19772
cristy73bd4a52010-10-05 11:24:23 +000019773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19774$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19775hardcode_action_CXX=
19776if test -n "$hardcode_libdir_flag_spec_CXX" ||
19777 test -n "$runpath_var_CXX" ||
19778 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19779
19780 # We can hardcode non-existent directories.
19781 if test "$hardcode_direct_CXX" != no &&
19782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19783 # have to relink, otherwise we might link with an installed library
19784 # when we should be linking with a yet-to-be-installed one
19785 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19786 test "$hardcode_minus_L_CXX" != no; then
19787 # Linking always hardcodes the temporary library directory.
19788 hardcode_action_CXX=relink
19789 else
19790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19791 hardcode_action_CXX=immediate
19792 fi
19793else
19794 # We cannot hardcode anything, or else we can only hardcode existing
19795 # directories.
19796 hardcode_action_CXX=unsupported
19797fi
19798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19799$as_echo "$hardcode_action_CXX" >&6; }
19800
19801if test "$hardcode_action_CXX" = relink ||
19802 test "$inherit_rpath_CXX" = yes; then
19803 # Fast installation is not supported
19804 enable_fast_install=no
19805elif test "$shlibpath_overrides_runpath" = yes ||
19806 test "$enable_shared" = no; then
19807 # Fast installation is not necessary
19808 enable_fast_install=needless
19809fi
19810
19811
19812
19813
19814
19815
19816
19817 fi # test -n "$compiler"
19818
19819 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019820 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019821 LDCXX=$LD
19822 LD=$lt_save_LD
19823 GCC=$lt_save_GCC
19824 with_gnu_ld=$lt_save_with_gnu_ld
19825 lt_cv_path_LDCXX=$lt_cv_path_LD
19826 lt_cv_path_LD=$lt_save_path_LD
19827 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19828 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19829fi # test "$_lt_caught_CXX_error" != yes
19830
19831ac_ext=c
19832ac_cpp='$CPP $CPPFLAGS'
19833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19835ac_compiler_gnu=$ac_cv_c_compiler_gnu
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849 ac_config_commands="$ac_config_commands libtool"
19850
19851
19852
19853
19854# Only expand once:
19855
19856
19857
cristy3ed852e2009-09-05 21:47:34 +000019858
19859
19860# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019861
19862
19863
19864
19865
19866
19867
cristy73bd4a52010-10-05 11:24:23 +000019868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19869$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019870if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019871 $as_echo_n "(cached) " >&6
19872else
19873
19874module=yes
19875eval libltdl_cv_shlibext=$shrext_cmds
19876
19877fi
19878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19879$as_echo "$libltdl_cv_shlibext" >&6; }
19880if test -n "$libltdl_cv_shlibext"; then
19881
19882cat >>confdefs.h <<_ACEOF
19883#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19884_ACEOF
19885
19886fi
19887
19888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19889$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019890if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019891 $as_echo_n "(cached) " >&6
19892else
19893 lt_cv_module_path_var="$shlibpath_var"
19894fi
19895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19896$as_echo "$lt_cv_module_path_var" >&6; }
19897if test -n "$lt_cv_module_path_var"; then
19898
19899cat >>confdefs.h <<_ACEOF
19900#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19901_ACEOF
19902
19903fi
19904
19905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19906$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019907if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019908 $as_echo_n "(cached) " >&6
19909else
19910 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19911fi
19912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19913$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19914if test -n "$lt_cv_sys_dlsearch_path"; then
19915 sys_dlsearch_path=
19916 for dir in $lt_cv_sys_dlsearch_path; do
19917 if test -z "$sys_dlsearch_path"; then
19918 sys_dlsearch_path="$dir"
19919 else
19920 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19921 fi
19922 done
19923
19924cat >>confdefs.h <<_ACEOF
19925#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19926_ACEOF
19927
19928fi
19929
19930
19931LT_DLLOADERS=
19932
19933
19934ac_ext=c
19935ac_cpp='$CPP $CPPFLAGS'
19936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19938ac_compiler_gnu=$ac_cv_c_compiler_gnu
19939
19940
19941LIBADD_DLOPEN=
19942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19943$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019944if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019945 $as_echo_n "(cached) " >&6
19946else
19947 ac_func_search_save_LIBS=$LIBS
19948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949/* end confdefs.h. */
19950
19951/* Override any GCC internal prototype to avoid an error.
19952 Use char because int might match the return type of a GCC
19953 builtin and then its argument prototype would still apply. */
19954#ifdef __cplusplus
19955extern "C"
19956#endif
19957char dlopen ();
19958int
19959main ()
19960{
19961return dlopen ();
19962 ;
19963 return 0;
19964}
19965_ACEOF
19966for ac_lib in '' dl; do
19967 if test -z "$ac_lib"; then
19968 ac_res="none required"
19969 else
19970 ac_res=-l$ac_lib
19971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19972 fi
19973 if ac_fn_c_try_link "$LINENO"; then :
19974 ac_cv_search_dlopen=$ac_res
19975fi
19976rm -f core conftest.err conftest.$ac_objext \
19977 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019978 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019979 break
19980fi
19981done
cristyda16f162011-02-19 23:52:17 +000019982if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019983
19984else
19985 ac_cv_search_dlopen=no
19986fi
19987rm conftest.$ac_ext
19988LIBS=$ac_func_search_save_LIBS
19989fi
19990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19991$as_echo "$ac_cv_search_dlopen" >&6; }
19992ac_res=$ac_cv_search_dlopen
19993if test "$ac_res" != no; then :
19994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19995
19996$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19997
19998 if test "$ac_cv_search_dlopen" != "none required" ; then
19999 LIBADD_DLOPEN="-ldl"
20000 fi
20001 libltdl_cv_lib_dl_dlopen="yes"
20002 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20003else
20004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005/* end confdefs.h. */
20006#if HAVE_DLFCN_H
20007# include <dlfcn.h>
20008#endif
20009
20010int
20011main ()
20012{
20013dlopen(0, 0);
20014 ;
20015 return 0;
20016}
20017_ACEOF
20018if ac_fn_c_try_link "$LINENO"; then :
20019
20020$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20021
20022 libltdl_cv_func_dlopen="yes"
20023 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20024else
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20026$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020027if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020028 $as_echo_n "(cached) " >&6
20029else
20030 ac_check_lib_save_LIBS=$LIBS
20031LIBS="-lsvld $LIBS"
20032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20033/* end confdefs.h. */
20034
20035/* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
20038#ifdef __cplusplus
20039extern "C"
20040#endif
20041char dlopen ();
20042int
20043main ()
20044{
20045return dlopen ();
20046 ;
20047 return 0;
20048}
20049_ACEOF
20050if ac_fn_c_try_link "$LINENO"; then :
20051 ac_cv_lib_svld_dlopen=yes
20052else
20053 ac_cv_lib_svld_dlopen=no
20054fi
20055rm -f core conftest.err conftest.$ac_objext \
20056 conftest$ac_exeext conftest.$ac_ext
20057LIBS=$ac_check_lib_save_LIBS
20058fi
20059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20060$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020061if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020062
20063$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20064
20065 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20066 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20067fi
20068
20069fi
20070rm -f core conftest.err conftest.$ac_objext \
20071 conftest$ac_exeext conftest.$ac_ext
20072fi
20073
20074if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20075then
20076 lt_save_LIBS="$LIBS"
20077 LIBS="$LIBS $LIBADD_DLOPEN"
20078 for ac_func in dlerror
20079do :
20080 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020081if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020082 cat >>confdefs.h <<_ACEOF
20083#define HAVE_DLERROR 1
20084_ACEOF
20085
20086fi
20087done
20088
20089 LIBS="$lt_save_LIBS"
20090fi
20091
20092
20093LIBADD_SHL_LOAD=
20094ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020095if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020096
20097$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20098
20099 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20100else
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20102$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020103if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020104 $as_echo_n "(cached) " >&6
20105else
20106 ac_check_lib_save_LIBS=$LIBS
20107LIBS="-ldld $LIBS"
20108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109/* end confdefs.h. */
20110
20111/* Override any GCC internal prototype to avoid an error.
20112 Use char because int might match the return type of a GCC
20113 builtin and then its argument prototype would still apply. */
20114#ifdef __cplusplus
20115extern "C"
20116#endif
20117char shl_load ();
20118int
20119main ()
20120{
20121return shl_load ();
20122 ;
20123 return 0;
20124}
20125_ACEOF
20126if ac_fn_c_try_link "$LINENO"; then :
20127 ac_cv_lib_dld_shl_load=yes
20128else
20129 ac_cv_lib_dld_shl_load=no
20130fi
20131rm -f core conftest.err conftest.$ac_objext \
20132 conftest$ac_exeext conftest.$ac_ext
20133LIBS=$ac_check_lib_save_LIBS
20134fi
20135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20136$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020137if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020138
20139$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20140
20141 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20142 LIBADD_SHL_LOAD="-ldld"
20143fi
20144
20145fi
20146
20147
20148
20149case $host_os in
20150darwin[1567].*)
20151# We only want this for pre-Mac OS X 10.4.
20152 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020153if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020154
20155$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20156
20157 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20158fi
20159
20160 ;;
20161beos*)
20162 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20163 ;;
20164cygwin* | mingw* | os2* | pw32*)
20165 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20166"
cristyda16f162011-02-19 23:52:17 +000020167if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020168 ac_have_decl=1
20169else
20170 ac_have_decl=0
20171fi
20172
20173cat >>confdefs.h <<_ACEOF
20174#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20175_ACEOF
20176
20177 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20178 ;;
20179esac
20180
20181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20182$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020183if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020184 $as_echo_n "(cached) " >&6
20185else
20186 ac_check_lib_save_LIBS=$LIBS
20187LIBS="-ldld $LIBS"
20188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20189/* end confdefs.h. */
20190
20191/* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20194#ifdef __cplusplus
20195extern "C"
20196#endif
20197char dld_link ();
20198int
20199main ()
20200{
20201return dld_link ();
20202 ;
20203 return 0;
20204}
20205_ACEOF
20206if ac_fn_c_try_link "$LINENO"; then :
20207 ac_cv_lib_dld_dld_link=yes
20208else
20209 ac_cv_lib_dld_dld_link=no
20210fi
20211rm -f core conftest.err conftest.$ac_objext \
20212 conftest$ac_exeext conftest.$ac_ext
20213LIBS=$ac_check_lib_save_LIBS
20214fi
20215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20216$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020217if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020218
20219$as_echo "#define HAVE_DLD 1" >>confdefs.h
20220
20221 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20222fi
20223
20224
20225
20226
20227LT_DLPREOPEN=
20228if test -n "$LT_DLLOADERS"
20229then
20230 for lt_loader in $LT_DLLOADERS; do
20231 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20232 done
20233
20234$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20235
20236fi
20237
20238
20239LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20240
20241
20242ac_ext=c
20243ac_cpp='$CPP $CPPFLAGS'
20244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20246ac_compiler_gnu=$ac_cv_c_compiler_gnu
20247
20248
20249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20250$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020251if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020252 $as_echo_n "(cached) " >&6
20253else
20254 lt_cv_sys_symbol_underscore=no
20255 cat > conftest.$ac_ext <<_LT_EOF
20256void nm_test_func(){}
20257int main(){nm_test_func;return 0;}
20258_LT_EOF
20259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20260 (eval $ac_compile) 2>&5
20261 ac_status=$?
20262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20263 test $ac_status = 0; }; then
20264 # Now try to grab the symbols.
20265 ac_nlist=conftest.nm
20266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20267 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20268 ac_status=$?
20269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20270 test $ac_status = 0; } && test -s "$ac_nlist"; then
20271 # See whether the symbols have a leading underscore.
20272 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20273 lt_cv_sys_symbol_underscore=yes
20274 else
20275 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20276 :
20277 else
20278 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20279 fi
20280 fi
20281 else
20282 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20283 fi
20284 else
20285 echo "configure: failed program was:" >&5
20286 cat conftest.c >&5
20287 fi
20288 rm -rf conftest*
20289
20290fi
20291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20292$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20293 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20294
20295
20296if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20297 if test x"$libltdl_cv_func_dlopen" = xyes ||
20298 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20300$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020301if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020302 $as_echo_n "(cached) " >&6
20303else
20304 libltdl_cv_need_uscore=unknown
20305 save_LIBS="$LIBS"
20306 LIBS="$LIBS $LIBADD_DLOPEN"
20307 if test "$cross_compiling" = yes; then :
20308 libltdl_cv_need_uscore=cross
20309else
20310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20311 lt_status=$lt_dlunknown
20312 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020313#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020314#include "confdefs.h"
20315
20316#if HAVE_DLFCN_H
20317#include <dlfcn.h>
20318#endif
20319
20320#include <stdio.h>
20321
20322#ifdef RTLD_GLOBAL
20323# define LT_DLGLOBAL RTLD_GLOBAL
20324#else
20325# ifdef DL_GLOBAL
20326# define LT_DLGLOBAL DL_GLOBAL
20327# else
20328# define LT_DLGLOBAL 0
20329# endif
20330#endif
20331
20332/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20333 find out it does not work in some platform. */
20334#ifndef LT_DLLAZY_OR_NOW
20335# ifdef RTLD_LAZY
20336# define LT_DLLAZY_OR_NOW RTLD_LAZY
20337# else
20338# ifdef DL_LAZY
20339# define LT_DLLAZY_OR_NOW DL_LAZY
20340# else
20341# ifdef RTLD_NOW
20342# define LT_DLLAZY_OR_NOW RTLD_NOW
20343# else
20344# ifdef DL_NOW
20345# define LT_DLLAZY_OR_NOW DL_NOW
20346# else
20347# define LT_DLLAZY_OR_NOW 0
20348# endif
20349# endif
20350# endif
20351# endif
20352#endif
20353
cristy0c60a692010-11-04 01:09:47 +000020354/* When -fvisbility=hidden is used, assume the code has been annotated
20355 correspondingly for the symbols needed. */
20356#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020357int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020358#endif
20359
cristyda16f162011-02-19 23:52:17 +000020360int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020361int main ()
20362{
20363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20364 int status = $lt_dlunknown;
20365
20366 if (self)
20367 {
20368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020369 else
20370 {
20371 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20372 else puts (dlerror ());
20373 }
cristy73bd4a52010-10-05 11:24:23 +000020374 /* dlclose (self); */
20375 }
20376 else
20377 puts (dlerror ());
20378
20379 return status;
20380}
20381_LT_EOF
20382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20383 (eval $ac_link) 2>&5
20384 ac_status=$?
20385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20386 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20387 (./conftest; exit; ) >&5 2>/dev/null
20388 lt_status=$?
20389 case x$lt_status in
20390 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20391 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20392 x$lt_dlunknown|x*) ;;
20393 esac
20394 else :
20395 # compilation failed
20396
20397 fi
20398fi
20399rm -fr conftest*
20400
20401 LIBS="$save_LIBS"
20402
20403fi
20404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20405$as_echo "$libltdl_cv_need_uscore" >&6; }
20406 fi
20407fi
20408
20409if test x"$libltdl_cv_need_uscore" = xyes; then
20410
20411$as_echo "#define NEED_USCORE 1" >>confdefs.h
20412
20413fi
20414
20415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20416$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020417if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020418 $as_echo_n "(cached) " >&6
20419else
20420 # PORTME does your system automatically load deplibs for dlopen?
20421 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20422 # For now, we just catch OSes we know something about -- in the
20423 # future, we'll try test this programmatically.
20424 lt_cv_sys_dlopen_deplibs=unknown
20425 case $host_os in
20426 aix3*|aix4.1.*|aix4.2.*)
20427 # Unknown whether this is true for these versions of AIX, but
20428 # we want this `case' here to explicitly catch those versions.
20429 lt_cv_sys_dlopen_deplibs=unknown
20430 ;;
20431 aix[4-9]*)
20432 lt_cv_sys_dlopen_deplibs=yes
20433 ;;
20434 amigaos*)
20435 case $host_cpu in
20436 powerpc)
20437 lt_cv_sys_dlopen_deplibs=no
20438 ;;
20439 esac
20440 ;;
20441 darwin*)
20442 # Assuming the user has installed a libdl from somewhere, this is true
20443 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20444 lt_cv_sys_dlopen_deplibs=yes
20445 ;;
20446 freebsd* | dragonfly*)
20447 lt_cv_sys_dlopen_deplibs=yes
20448 ;;
cristy0c60a692010-11-04 01:09:47 +000020449 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020450 # GNU and its variants, using gnu ld.so (Glibc)
20451 lt_cv_sys_dlopen_deplibs=yes
20452 ;;
20453 hpux10*|hpux11*)
20454 lt_cv_sys_dlopen_deplibs=yes
20455 ;;
20456 interix*)
20457 lt_cv_sys_dlopen_deplibs=yes
20458 ;;
20459 irix[12345]*|irix6.[01]*)
20460 # Catch all versions of IRIX before 6.2, and indicate that we don't
20461 # know how it worked for any of those versions.
20462 lt_cv_sys_dlopen_deplibs=unknown
20463 ;;
20464 irix*)
20465 # The case above catches anything before 6.2, and it's known that
20466 # at 6.2 and later dlopen does load deplibs.
20467 lt_cv_sys_dlopen_deplibs=yes
20468 ;;
20469 netbsd*)
20470 lt_cv_sys_dlopen_deplibs=yes
20471 ;;
20472 openbsd*)
20473 lt_cv_sys_dlopen_deplibs=yes
20474 ;;
20475 osf[1234]*)
20476 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20477 # it did *not* use an RPATH in a shared library to find objects the
20478 # library depends on, so we explicitly say `no'.
20479 lt_cv_sys_dlopen_deplibs=no
20480 ;;
20481 osf5.0|osf5.0a|osf5.1)
20482 # dlopen *does* load deplibs and with the right loader patch applied
20483 # it even uses RPATH in a shared library to search for shared objects
20484 # that the library depends on, but there's no easy way to know if that
20485 # patch is installed. Since this is the case, all we can really
20486 # say is unknown -- it depends on the patch being installed. If
20487 # it is, this changes to `yes'. Without it, it would be `no'.
20488 lt_cv_sys_dlopen_deplibs=unknown
20489 ;;
20490 osf*)
20491 # the two cases above should catch all versions of osf <= 5.1. Read
20492 # the comments above for what we know about them.
20493 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20494 # is used to find them so we can finally say `yes'.
20495 lt_cv_sys_dlopen_deplibs=yes
20496 ;;
20497 qnx*)
20498 lt_cv_sys_dlopen_deplibs=yes
20499 ;;
20500 solaris*)
20501 lt_cv_sys_dlopen_deplibs=yes
20502 ;;
20503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20504 libltdl_cv_sys_dlopen_deplibs=yes
20505 ;;
20506 esac
20507
20508fi
20509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20510$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20511if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20512
20513$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20514
20515fi
20516
20517:
20518
20519for ac_header in argz.h
20520do :
20521 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20522"
cristyda16f162011-02-19 23:52:17 +000020523if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020524 cat >>confdefs.h <<_ACEOF
20525#define HAVE_ARGZ_H 1
20526_ACEOF
20527
20528fi
20529
20530done
20531
20532
20533ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20534# include <argz.h>
20535#endif
20536"
cristyda16f162011-02-19 23:52:17 +000020537if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020538
20539cat >>confdefs.h <<_ACEOF
20540#define HAVE_ERROR_T 1
20541_ACEOF
20542
20543
20544else
20545
20546$as_echo "#define error_t int" >>confdefs.h
20547
20548
20549$as_echo "#define __error_t_defined 1" >>confdefs.h
20550
20551fi
20552
20553
20554ARGZ_H=
20555for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20556 argz_next argz_stringify
20557do :
20558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020560if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020561 cat >>confdefs.h <<_ACEOF
20562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20563_ACEOF
20564
20565else
20566 ARGZ_H=argz.h;
20567
20568 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20569
20570fi
20571done
20572
20573
20574if test -z "$ARGZ_H"; then :
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20576$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020577if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020578 $as_echo_n "(cached) " >&6
20579else
20580 case $host_os in #(
20581 *cygwin*)
20582 lt_cv_sys_argz_works=no
20583 if test "$cross_compiling" != no; then
20584 lt_cv_sys_argz_works="guessing no"
20585 else
20586 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20587 save_IFS=$IFS
20588 IFS=-.
20589 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20590 IFS=$save_IFS
20591 lt_os_major=${2-0}
20592 lt_os_minor=${3-0}
20593 lt_os_micro=${4-0}
20594 if test "$lt_os_major" -gt 1 \
20595 || { test "$lt_os_major" -eq 1 \
20596 && { test "$lt_os_minor" -gt 5 \
20597 || { test "$lt_os_minor" -eq 5 \
20598 && test "$lt_os_micro" -gt 24; }; }; }; then
20599 lt_cv_sys_argz_works=yes
20600 fi
20601 fi
20602 ;; #(
20603 *) lt_cv_sys_argz_works=yes ;;
20604 esac
20605fi
20606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20607$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020608 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020609
20610$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20611
20612else
20613 ARGZ_H=argz.h
20614
20615
20616 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20617
20618fi
20619fi
20620
20621
20622
20623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20624$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020625if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020626 $as_echo_n "(cached) " >&6
20627else
20628 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20629 libltdl_cv_preloaded_symbols=yes
20630 else
20631 libltdl_cv_preloaded_symbols=no
20632 fi
20633
20634fi
20635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20636$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20637if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20638
20639$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20640
20641fi
20642
20643# Set options
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655# Check whether --with-included_ltdl was given.
20656if test "${with_included_ltdl+set}" = set; then :
20657 withval=$with_included_ltdl;
20658fi
20659
20660
20661if test "x$with_included_ltdl" != xyes; then
20662 # We are not being forced to use the included libltdl sources, so
20663 # decide whether there is a useful installed version we can use.
20664 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20665
20666"
cristyda16f162011-02-19 23:52:17 +000020667if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020668 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20669 #include <ltdl.h>
20670"
cristyda16f162011-02-19 23:52:17 +000020671if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20673$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020674if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020675 $as_echo_n "(cached) " >&6
20676else
20677 ac_check_lib_save_LIBS=$LIBS
20678LIBS="-lltdl $LIBS"
20679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20680/* end confdefs.h. */
20681
20682/* Override any GCC internal prototype to avoid an error.
20683 Use char because int might match the return type of a GCC
20684 builtin and then its argument prototype would still apply. */
20685#ifdef __cplusplus
20686extern "C"
20687#endif
20688char lt_dladvise_preload ();
20689int
20690main ()
20691{
20692return lt_dladvise_preload ();
20693 ;
20694 return 0;
20695}
20696_ACEOF
20697if ac_fn_c_try_link "$LINENO"; then :
20698 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20699else
20700 ac_cv_lib_ltdl_lt_dladvise_preload=no
20701fi
20702rm -f core conftest.err conftest.$ac_objext \
20703 conftest$ac_exeext conftest.$ac_ext
20704LIBS=$ac_check_lib_save_LIBS
20705fi
20706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20707$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020708if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020709 with_included_ltdl=no
20710else
20711 with_included_ltdl=yes
20712fi
20713
20714else
20715 with_included_ltdl=yes
20716fi
20717
20718else
20719 with_included_ltdl=yes
20720fi
20721
20722
20723fi
20724
20725
20726
20727
20728# Check whether --with-ltdl_include was given.
20729if test "${with_ltdl_include+set}" = set; then :
20730 withval=$with_ltdl_include;
20731fi
20732
20733
20734if test -n "$with_ltdl_include"; then
20735 if test -f "$with_ltdl_include/ltdl.h"; then :
20736 else
cristy98dddb52010-11-04 00:30:15 +000020737 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020738 fi
20739else
20740 with_ltdl_include=no
20741fi
20742
20743
20744# Check whether --with-ltdl_lib was given.
20745if test "${with_ltdl_lib+set}" = set; then :
20746 withval=$with_ltdl_lib;
20747fi
20748
20749
20750if test -n "$with_ltdl_lib"; then
20751 if test -f "$with_ltdl_lib/libltdl.la"; then :
20752 else
cristy98dddb52010-11-04 00:30:15 +000020753 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020754 fi
20755else
20756 with_ltdl_lib=no
20757fi
20758
20759case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20760 ,yes,no,no,)
20761 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020762 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020763 "") enable_ltdl_convenience=yes
20764 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20765esac
20766LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20767LTDLDEPS=$LIBLTDL
20768LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20769
20770
20771
20772
20773
20774# For backwards non-gettext consistent compatibility...
20775INCLTDL="$LTDLINCL"
20776
20777
20778 ;;
20779 ,no,no,no,)
20780 # If the included ltdl is not to be used, then use the
20781 # preinstalled libltdl we found.
20782
20783$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20784
20785 LIBLTDL=-lltdl
20786 LTDLDEPS=
20787 LTDLINCL=
20788 ;;
20789 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020790 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020791 ;;
20792 *) with_included_ltdl=no
20793 LIBLTDL="-L$with_ltdl_lib -lltdl"
20794 LTDLDEPS=
20795 LTDLINCL="-I$with_ltdl_include"
20796 ;;
20797esac
20798INCLTDL="$LTDLINCL"
20799
20800# Report our decision...
20801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20802$as_echo_n "checking where to find libltdl headers... " >&6; }
20803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20804$as_echo "$LTDLINCL" >&6; }
20805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20806$as_echo_n "checking where to find libltdl library... " >&6; }
20807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20808$as_echo "$LIBLTDL" >&6; }
20809
20810
20811
20812# Check whether --enable-ltdl-install was given.
20813if test "${enable_ltdl_install+set}" = set; then :
20814 enableval=$enable_ltdl_install;
20815fi
20816
20817
20818case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20819 *yes*) ;;
20820 *) enable_ltdl_convenience=yes ;;
20821esac
20822
20823 if test x"${enable_ltdl_install-no}" != xno; then
20824 INSTALL_LTDL_TRUE=
20825 INSTALL_LTDL_FALSE='#'
20826else
20827 INSTALL_LTDL_TRUE='#'
20828 INSTALL_LTDL_FALSE=
20829fi
20830
20831 if test x"${enable_ltdl_convenience-no}" != xno; then
20832 CONVENIENCE_LTDL_TRUE=
20833 CONVENIENCE_LTDL_FALSE='#'
20834else
20835 CONVENIENCE_LTDL_TRUE='#'
20836 CONVENIENCE_LTDL_FALSE=
20837fi
20838
20839
20840
20841
20842
20843
cristy73bd4a52010-10-05 11:24:23 +000020844# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20845# the user used. This is so that ltdl.h can pick up the parent projects
20846# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20847# definitions required by ltdl.c.
20848# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20849
20850
20851
20852for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20853do :
20854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20855ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20856"
cristy98dddb52010-11-04 00:30:15 +000020857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020858 cat >>confdefs.h <<_ACEOF
20859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20860_ACEOF
20861
20862fi
20863
20864done
20865
20866
20867for ac_func in closedir opendir readdir
20868do :
20869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20870ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020871if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020872 cat >>confdefs.h <<_ACEOF
20873#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20874_ACEOF
20875
20876else
20877
20878
20879 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20880
20881fi
20882done
20883
20884for ac_func in strlcat strlcpy
20885do :
20886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20887ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020888if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020889 cat >>confdefs.h <<_ACEOF
20890#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20891_ACEOF
20892
20893else
20894
20895
20896 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20897
20898fi
20899done
20900
20901
20902
20903cat >>confdefs.h <<_ACEOF
20904#define LT_LIBEXT "$libext"
20905_ACEOF
20906
20907
cristyda16f162011-02-19 23:52:17 +000020908name=
20909eval "lt_libprefix=\"$libname_spec\""
20910
20911cat >>confdefs.h <<_ACEOF
20912#define LT_LIBPREFIX "$lt_libprefix"
20913_ACEOF
20914
20915
cristy73bd4a52010-10-05 11:24:23 +000020916name=ltdl
cristyda16f162011-02-19 23:52:17 +000020917eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020918
20919
20920
20921
20922
20923
20924
20925
20926# Only expand once:
20927
20928
cristy3ed852e2009-09-05 21:47:34 +000020929
20930# Check to see if building shared libraries
20931libtool_build_shared_libs='no'
20932if test "$enable_shared" = 'yes'; then
20933 libtool_build_shared_libs='yes'
20934fi
20935
20936# Check to see if building static libraries
20937libtool_build_static_libs='no'
20938if test "$enable_static" = 'yes'; then
20939 libtool_build_static_libs='yes'
20940fi
20941
cristy73bd4a52010-10-05 11:24:23 +000020942 if test "${libtool_build_shared_libs}" = 'yes'; then
20943 WITH_SHARED_LIBS_TRUE=
20944 WITH_SHARED_LIBS_FALSE='#'
20945else
20946 WITH_SHARED_LIBS_TRUE='#'
20947 WITH_SHARED_LIBS_FALSE=
20948fi
20949
cristy3ed852e2009-09-05 21:47:34 +000020950#
20951# Enable support for building loadable modules
20952#
20953
20954# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020955if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020956 withval=$with_modules; with_modules=$withval
20957else
cristy5a1cefd2010-01-06 20:42:35 +000020958 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020959fi
20960
20961
20962# Only allow building loadable modules if we are building shared libraries
20963if test "$with_modules" != 'no' ; then
20964 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020965 { $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 +000020966$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20967 with_modules='no'
20968 fi
20969fi
20970if test "$with_modules" != 'no'; then
20971
cristy8b350f62009-11-15 23:12:43 +000020972$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020973
20974fi
cristy73bd4a52010-10-05 11:24:23 +000020975 if test "$with_modules" != 'no'; then
20976 WITH_MODULES_TRUE=
20977 WITH_MODULES_FALSE='#'
20978else
20979 WITH_MODULES_TRUE='#'
20980 WITH_MODULES_FALSE=
20981fi
20982
cristy3ed852e2009-09-05 21:47:34 +000020983
20984# Enable building/use of libltdl if we are building shared libraries regardless
20985# of whether modules are built or not.
20986with_ltdl='no'
20987if test "$libtool_build_shared_libs" != 'no'; then
20988 with_ltdl='yes'
20989fi
20990
cristy73bd4a52010-10-05 11:24:23 +000020991 if test "$with_ltdl" != 'no'; then
20992 WITH_LTDL_TRUE=
20993 WITH_LTDL_FALSE='#'
20994else
20995 WITH_LTDL_TRUE='#'
20996 WITH_LTDL_FALSE=
20997fi
20998
cristy3ed852e2009-09-05 21:47:34 +000020999if test "$with_ltdl" != 'no'; then
21000
cristy8b350f62009-11-15 23:12:43 +000021001$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021002
21003
21004 # Set DLLDFLAGS
21005 if test X"$enable_shared" = Xyes; then
21006 DLLDFLAGS=-export-dynamic
21007
21008 fi
21009fi
21010
21011# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021012# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021013# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021014if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021015 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21016else
21017 enable_delegate_build='no'
21018fi
21019
21020
21021# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021022if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021023 enableval=$enable_deprecated; enable_deprecated=$enableval
21024else
21025 enable_deprecated='no'
21026fi
21027
21028
21029if test "$enable_deprecated" = 'yes'; then
21030
cristy8b350f62009-11-15 23:12:43 +000021031$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021032
21033else
21034 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21035fi
21036
21037# Build a version of ImageMagick which operates uninstalled.
21038# Used to build distributions located via MAGICK_HOME / executable path
21039# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021040if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021041 enableval=$enable_installed; enable_installed=$enableval
21042else
21043 enable_installed='yes'
21044fi
21045
21046
21047if test "$enable_installed" = 'yes'; then
21048
cristy8b350f62009-11-15 23:12:43 +000021049$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021050
21051else
21052 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21053fi
21054
21055# Permit enciphering and deciphering image pixels.
21056# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021057if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021058 enableval=$enable_cipher; enable_cipher=$enableval
21059else
21060 enable_cipher='yes'
21061fi
21062
21063
21064if test "$enable_cipher" = 'yes'; then
21065
cristy8b350f62009-11-15 23:12:43 +000021066$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021067
21068fi
21069
cristy6e3607c2011-09-13 13:59:17 +000021070# Build a zero-configuration version of ImageMagick.
21071# Check whether --enable-zero-configuration was given.
21072if test "${enable_zero_configuration+set}" = set; then :
21073 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021074else
cristy6e3607c2011-09-13 13:59:17 +000021075 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021076fi
21077
21078
cristy6e3607c2011-09-13 13:59:17 +000021079if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021080
cristy6e3607c2011-09-13 13:59:17 +000021081$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021082
cristy81af5702011-09-13 14:20:58 +000021083 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021084fi
21085
21086# Build a high dynamic range version of ImageMagick.
21087# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021088if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021089 enableval=$enable_hdri; enable_hdri=$enableval
21090else
21091 enable_hdri='no'
21092fi
21093
21094
21095MAGICK_HDRI=""
21096if test "$enable_hdri" = 'yes'; then
21097 MAGICK_HDRI="HDRI"
21098
cristy8b350f62009-11-15 23:12:43 +000021099$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021100
cristyfd9dcd42010-08-08 18:07:02 +000021101 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021102fi
21103
cristy3ed852e2009-09-05 21:47:34 +000021104# Build a version of ImageMagick with assert statements.
21105# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021106if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021107 enableval=$enable_assert; enable_assert=$enableval
21108else
21109 enable_assert='yes'
21110fi
21111
21112
21113if test "$enable_assert" = 'no'; then
21114
cristy8b350f62009-11-15 23:12:43 +000021115$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021116
21117fi
21118
cristya448bd22011-10-14 12:38:13 +000021119# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021120
21121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21122$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21123 # Check whether --enable-maintainer-mode was given.
21124if test "${enable_maintainer_mode+set}" = set; then :
21125 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21126else
21127 USE_MAINTAINER_MODE=no
21128fi
21129
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21131$as_echo "$USE_MAINTAINER_MODE" >&6; }
21132 if test $USE_MAINTAINER_MODE = yes; then
21133 MAINTAINER_MODE_TRUE=
21134 MAINTAINER_MODE_FALSE='#'
21135else
21136 MAINTAINER_MODE_TRUE='#'
21137 MAINTAINER_MODE_FALSE=
21138fi
21139
21140 MAINT=$MAINTAINER_MODE_TRUE
21141
21142
cristy3ed852e2009-09-05 21:47:34 +000021143
cristy3ed852e2009-09-05 21:47:34 +000021144# Enable ccmalloc memory debugging support
21145# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021146if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021147 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21148else
21149 enable_ccmalloc='no'
21150fi
21151
21152
21153# Enable Electric Fence memory debugging support
21154# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021155if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021156 enableval=$enable_efence; enable_efence=$enableval
21157else
21158 enable_efence='no'
21159fi
21160
21161
21162# Enable prof-based profiling support
21163# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021164if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021165 enableval=$enable_prof; enable_prof=$enableval
21166else
21167 enable_prof='no'
21168fi
21169
21170
21171# Enable gprof-based profiling support
21172# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021173if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021174 enableval=$enable_gprof; enable_gprof=$enableval
21175else
21176 enable_gprof='no'
21177fi
21178
21179
21180# Enable gcov-based profiling support
21181# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021182if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021183 enableval=$enable_gcov; enable_gcov=$enableval
21184else
21185 enable_gcov='no'
21186fi
21187
21188
21189enable_profiling='no'
21190if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21191 enable_profiling='yes'
21192 if test "$libtool_build_shared_libs" = 'yes'; then
21193 echo "Warning: Can not profile code using shared libraries"
21194 fi
21195fi
21196
21197# Magick API method prefix
21198
21199# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021200if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021201 withval=$with_method_prefix; with_method_prefix=$enableval
21202else
21203 with_method_prefix=''
21204fi
21205
21206
21207if test "$with_method_prefix" != ''; then
21208
21209cat >>confdefs.h <<_ACEOF
21210#define NAMESPACE_PREFIX $with_method_prefix
21211_ACEOF
21212
21213fi
21214
21215# Number of bits in a Quantum
21216
21217# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021218if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021219 withval=$with_quantum_depth; with_quantum_depth=$withval
21220else
21221 with_quantum_depth=16
21222fi
21223
21224
21225if test "$with_quantum_depth" != '8'; then
21226 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21227fi
21228
21229case "${with_quantum_depth}" in
21230 8 ) ;;
21231 16 ) ;;
21232 32 ) ;;
21233 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021234 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021235esac
21236QUANTUM_DEPTH="$with_quantum_depth"
21237
21238cat >>confdefs.h <<_ACEOF
21239#define QUANTUM_DEPTH $QUANTUM_DEPTH
21240_ACEOF
21241
21242
21243# Set pixel cache threshold
21244
21245# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021246if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021247 withval=$with_cache; with_cache=$withval
21248else
21249 with_cache=''
21250fi
21251
21252
21253if test "$with_cache" != ''; then
21254
21255cat >>confdefs.h <<_ACEOF
21256#define PixelCacheThreshold $with_cache
21257_ACEOF
21258
21259 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21260fi
21261
21262# Disable/Enable support for full delegate paths
21263
21264# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021265if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021266 withval=$with_frozenpaths; with_frozenpaths=$withval
21267else
21268 with_frozenpaths='no'
21269fi
21270
21271
21272# Enable build/install of Magick++
21273
21274# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021275if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021276 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21277else
21278 with_magick_plus_plus='yes'
21279fi
21280
21281
21282# Disable build/install of PerlMagick.
21283
21284# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021285if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021286 withval=$with_perl; with_perl=$withval
21287else
cristyb5f4e2f2010-04-25 00:49:11 +000021288 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021289fi
21290
21291
21292# Options to pass when configuring PerlMagick
21293
21294# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021295if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021296 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021297fi
21298
21299
cristy3ed852e2009-09-05 21:47:34 +000021300
21301# Enable umem, object-caching memory allocation library.
21302
21303# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021304if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021305 withval=$with_umem; with_umem=$withval
21306else
21307 with_umem='no'
21308fi
21309
21310if test "$with_umem" != 'yes' ; then
21311 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21312fi
21313
21314#
21315# Specify path to shared libstdc++ if not in normal location
21316#
21317
21318# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021319if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021320 withval=$with_libstdc; with_libstdc=$withval
21321else
21322 with_libstdc=''
21323fi
21324
21325
21326if test "$with_libstdc" != ''; then
21327 if test -d "$with_libstdc"; then
21328 LIBSTDCLDFLAGS="-L$with_libstdc"
21329 fi
21330fi
21331
21332
21333# Does gcc required -traditional?
21334if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021336$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021337if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021338 $as_echo_n "(cached) " >&6
21339else
21340 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021342/* end confdefs.h. */
21343#include <sgtty.h>
21344Autoconf TIOCGETP
21345_ACEOF
21346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021347 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021348 ac_cv_prog_gcc_traditional=yes
21349else
21350 ac_cv_prog_gcc_traditional=no
21351fi
21352rm -f conftest*
21353
21354
21355 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021357/* end confdefs.h. */
21358#include <termio.h>
21359Autoconf TCGETA
21360_ACEOF
21361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021362 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021363 ac_cv_prog_gcc_traditional=yes
21364fi
21365rm -f conftest*
21366
21367 fi
21368fi
cristy8b350f62009-11-15 23:12:43 +000021369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021370$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21371 if test $ac_cv_prog_gcc_traditional = yes; then
21372 CC="$CC -traditional"
21373 fi
21374fi
21375
21376
21377########
21378#
21379# Set defines required to build DLLs and modules using MinGW
21380#
21381########
21382# These options are set for multi-thread DLL module build
21383# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21384# module: _DLL
21385# executable/Magick++: _DLL _MAGICKMOD_
21386MODULE_EXTRA_CPPFLAGS=''
21387LIBRARY_EXTRA_CPPFLAGS=''
21388if test "${native_win32_build}" = 'yes'; then
21389 if test "${libtool_build_shared_libs}" = 'yes'; then
21390 CPPFLAGS="$CPPFLAGS -D_DLL"
21391 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21392 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21393 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21394 if test "$with_modules" = 'yes'; then
21395 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21396 else
21397 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21398 fi
21399 else
21400 CPPFLAGS="$CPPFLAGS -D_LIB"
21401 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21402 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21403 fi
21404 if test "$with_threads" = 'yes'; then
21405 CPPFLAGS="$CPPFLAGS -D_MT"
21406 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21407 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21408 fi
21409fi
21410
21411
21412
21413# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021415$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021416if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021417 $as_echo_n "(cached) " >&6
21418else
cristy8b350f62009-11-15 23:12:43 +000021419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021420/* end confdefs.h. */
21421#include <stdlib.h>
21422#include <stdarg.h>
21423#include <string.h>
21424#include <float.h>
21425
21426int
21427main ()
21428{
21429
21430 ;
21431 return 0;
21432}
21433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021434if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021435 ac_cv_header_stdc=yes
21436else
cristy8b350f62009-11-15 23:12:43 +000021437 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021438fi
cristy3ed852e2009-09-05 21:47:34 +000021439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440
21441if test $ac_cv_header_stdc = yes; then
21442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021444/* end confdefs.h. */
21445#include <string.h>
21446
21447_ACEOF
21448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021449 $EGREP "memchr" >/dev/null 2>&1; then :
21450
cristy3ed852e2009-09-05 21:47:34 +000021451else
21452 ac_cv_header_stdc=no
21453fi
21454rm -f conftest*
21455
21456fi
21457
21458if test $ac_cv_header_stdc = yes; then
21459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021461/* end confdefs.h. */
21462#include <stdlib.h>
21463
21464_ACEOF
21465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021466 $EGREP "free" >/dev/null 2>&1; then :
21467
cristy3ed852e2009-09-05 21:47:34 +000021468else
21469 ac_cv_header_stdc=no
21470fi
21471rm -f conftest*
21472
21473fi
21474
21475if test $ac_cv_header_stdc = yes; then
21476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021477 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021478 :
21479else
cristy8b350f62009-11-15 23:12:43 +000021480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021481/* end confdefs.h. */
21482#include <ctype.h>
21483#include <stdlib.h>
21484#if ((' ' & 0x0FF) == 0x020)
21485# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21486# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21487#else
21488# define ISLOWER(c) \
21489 (('a' <= (c) && (c) <= 'i') \
21490 || ('j' <= (c) && (c) <= 'r') \
21491 || ('s' <= (c) && (c) <= 'z'))
21492# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21493#endif
21494
21495#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21496int
21497main ()
21498{
21499 int i;
21500 for (i = 0; i < 256; i++)
21501 if (XOR (islower (i), ISLOWER (i))
21502 || toupper (i) != TOUPPER (i))
21503 return 2;
21504 return 0;
21505}
21506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021507if ac_fn_c_try_run "$LINENO"; then :
21508
cristy3ed852e2009-09-05 21:47:34 +000021509else
cristy8b350f62009-11-15 23:12:43 +000021510 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021511fi
cristy8b350f62009-11-15 23:12:43 +000021512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21513 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021514fi
21515
cristy3ed852e2009-09-05 21:47:34 +000021516fi
21517fi
cristy8b350f62009-11-15 23:12:43 +000021518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021519$as_echo "$ac_cv_header_stdc" >&6; }
21520if test $ac_cv_header_stdc = yes; then
21521
cristy8b350f62009-11-15 23:12:43 +000021522$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021523
21524fi
21525
21526if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021527 { $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 +000021528 header files. Compilation cannot proceed. Please install the ANSI C
21529 headers and rerun this script." >&5
21530$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21531 header files. Compilation cannot proceed. Please install the ANSI C
21532 headers and rerun this script." >&2;};
21533fi
cristya0b81c32010-01-22 02:54:33 +000021534
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21536$as_echo_n "checking whether to enable assertions... " >&6; }
21537 # Check whether --enable-assert was given.
21538if test "${enable_assert+set}" = set; then :
21539 enableval=$enable_assert; ac_enable_assert=$enableval
21540 if test "x$enableval" = xno; then :
21541
21542$as_echo "#define NDEBUG 1" >>confdefs.h
21543
21544elif test "x$enableval" != xyes; then :
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21546$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21547 ac_enable_assert=yes
21548fi
21549else
21550 ac_enable_assert=yes
21551fi
21552
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21554$as_echo "$ac_enable_assert" >&6; }
21555
cristy3ed852e2009-09-05 21:47:34 +000021556ac_header_dirent=no
21557for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21558 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021560$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021561if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021562 $as_echo_n "(cached) " >&6
21563else
cristy8b350f62009-11-15 23:12:43 +000021564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021565/* end confdefs.h. */
21566#include <sys/types.h>
21567#include <$ac_hdr>
21568
21569int
21570main ()
21571{
21572if ((DIR *) 0)
21573return 0;
21574 ;
21575 return 0;
21576}
21577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021578if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021579 eval "$as_ac_Header=yes"
21580else
cristy8b350f62009-11-15 23:12:43 +000021581 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021582fi
cristy3ed852e2009-09-05 21:47:34 +000021583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21584fi
cristy8b350f62009-11-15 23:12:43 +000021585eval ac_res=\$$as_ac_Header
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021587$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021588if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021589 cat >>confdefs.h <<_ACEOF
21590#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21591_ACEOF
21592
21593ac_header_dirent=$ac_hdr; break
21594fi
21595
21596done
21597# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21598if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021600$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021601if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021602 $as_echo_n "(cached) " >&6
21603else
21604 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021606/* end confdefs.h. */
21607
21608/* Override any GCC internal prototype to avoid an error.
21609 Use char because int might match the return type of a GCC
21610 builtin and then its argument prototype would still apply. */
21611#ifdef __cplusplus
21612extern "C"
21613#endif
21614char opendir ();
21615int
21616main ()
21617{
21618return opendir ();
21619 ;
21620 return 0;
21621}
21622_ACEOF
21623for ac_lib in '' dir; do
21624 if test -z "$ac_lib"; then
21625 ac_res="none required"
21626 else
21627 ac_res=-l$ac_lib
21628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21629 fi
cristy8b350f62009-11-15 23:12:43 +000021630 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021631 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021632fi
cristy8b350f62009-11-15 23:12:43 +000021633rm -f core conftest.err conftest.$ac_objext \
21634 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021635 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021636 break
21637fi
21638done
cristyda16f162011-02-19 23:52:17 +000021639if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021640
cristy3ed852e2009-09-05 21:47:34 +000021641else
21642 ac_cv_search_opendir=no
21643fi
21644rm conftest.$ac_ext
21645LIBS=$ac_func_search_save_LIBS
21646fi
cristy8b350f62009-11-15 23:12:43 +000021647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021648$as_echo "$ac_cv_search_opendir" >&6; }
21649ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021650if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21652
21653fi
21654
21655else
cristy8b350f62009-11-15 23:12:43 +000021656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021657$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021658if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021659 $as_echo_n "(cached) " >&6
21660else
21661 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021663/* end confdefs.h. */
21664
21665/* Override any GCC internal prototype to avoid an error.
21666 Use char because int might match the return type of a GCC
21667 builtin and then its argument prototype would still apply. */
21668#ifdef __cplusplus
21669extern "C"
21670#endif
21671char opendir ();
21672int
21673main ()
21674{
21675return opendir ();
21676 ;
21677 return 0;
21678}
21679_ACEOF
21680for ac_lib in '' x; do
21681 if test -z "$ac_lib"; then
21682 ac_res="none required"
21683 else
21684 ac_res=-l$ac_lib
21685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21686 fi
cristy8b350f62009-11-15 23:12:43 +000021687 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021688 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021689fi
cristy8b350f62009-11-15 23:12:43 +000021690rm -f core conftest.err conftest.$ac_objext \
21691 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021692 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021693 break
21694fi
21695done
cristyda16f162011-02-19 23:52:17 +000021696if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021697
cristy3ed852e2009-09-05 21:47:34 +000021698else
21699 ac_cv_search_opendir=no
21700fi
21701rm conftest.$ac_ext
21702LIBS=$ac_func_search_save_LIBS
21703fi
cristy8b350f62009-11-15 23:12:43 +000021704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021705$as_echo "$ac_cv_search_opendir" >&6; }
21706ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021707if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21709
21710fi
21711
21712fi
21713
21714
21715# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021716for 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 +000021717do :
21718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21719ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021720if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 cat >>confdefs.h <<_ACEOF
21722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21723_ACEOF
21724
21725fi
21726
21727done
21728
21729
21730########
21731#
21732# Checks for typedefs, structures, and compiler characteristics.
21733#
21734########
21735
cristy8b350f62009-11-15 23:12:43 +000021736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021737$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021738if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021739 $as_echo_n "(cached) " >&6
21740else
cristy8b350f62009-11-15 23:12:43 +000021741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021742/* end confdefs.h. */
21743
21744#include <stdbool.h>
21745#ifndef bool
21746 "error: bool is not defined"
21747#endif
21748#ifndef false
21749 "error: false is not defined"
21750#endif
21751#if false
21752 "error: false is not 0"
21753#endif
21754#ifndef true
21755 "error: true is not defined"
21756#endif
21757#if true != 1
21758 "error: true is not 1"
21759#endif
21760#ifndef __bool_true_false_are_defined
21761 "error: __bool_true_false_are_defined is not defined"
21762#endif
21763
21764 struct s { _Bool s: 1; _Bool t; } s;
21765
21766 char a[true == 1 ? 1 : -1];
21767 char b[false == 0 ? 1 : -1];
21768 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21769 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021770 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021771 char f[(_Bool) 0.0 == false ? 1 : -1];
21772 char g[true];
21773 char h[sizeof (_Bool)];
21774 char i[sizeof s.t];
21775 enum { j = false, k = true, l = false * true, m = true * 256 };
21776 /* The following fails for
21777 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21778 _Bool n[m];
21779 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21780 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021781 /* Catch a bug in an HP-UX C compiler. See
21782 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21783 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21784 */
21785 _Bool q = true;
21786 _Bool *pq = &q;
21787
21788int
21789main ()
21790{
21791
cristyda16f162011-02-19 23:52:17 +000021792 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021793 *pq |= q;
21794 *pq |= ! q;
21795 /* Refer to every declared value, to avoid compiler optimizations. */
21796 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21797 + !m + !n + !o + !p + !q + !pq);
21798
21799 ;
21800 return 0;
21801}
21802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021803if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021804 ac_cv_header_stdbool_h=yes
21805else
cristy8b350f62009-11-15 23:12:43 +000021806 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021807fi
cristy3ed852e2009-09-05 21:47:34 +000021808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21809fi
cristy8b350f62009-11-15 23:12:43 +000021810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021811$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021812ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021813if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021814
21815cat >>confdefs.h <<_ACEOF
21816#define HAVE__BOOL 1
21817_ACEOF
21818
21819
21820fi
21821
21822if test $ac_cv_header_stdbool_h = yes; then
21823
cristy8b350f62009-11-15 23:12:43 +000021824$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021825
21826fi
21827
cristy8b350f62009-11-15 23:12:43 +000021828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021829$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021830if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021831 $as_echo_n "(cached) " >&6
21832else
cristy8b350f62009-11-15 23:12:43 +000021833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021834/* end confdefs.h. */
21835
21836int
21837main ()
21838{
21839
21840volatile int x;
21841int * volatile y = (int *) 0;
21842return !x && !y;
21843 ;
21844 return 0;
21845}
21846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021847if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021848 ac_cv_c_volatile=yes
21849else
cristy8b350f62009-11-15 23:12:43 +000021850 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021851fi
cristy3ed852e2009-09-05 21:47:34 +000021852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853fi
cristy8b350f62009-11-15 23:12:43 +000021854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021855$as_echo "$ac_cv_c_volatile" >&6; }
21856if test $ac_cv_c_volatile = no; then
21857
cristy8b350f62009-11-15 23:12:43 +000021858$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021859
21860fi
21861
cristy8b350f62009-11-15 23:12:43 +000021862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021863$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021864if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021865 $as_echo_n "(cached) " >&6
21866else
cristy8b350f62009-11-15 23:12:43 +000021867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021868/* end confdefs.h. */
21869#define x(y) #y
21870
21871char *s = x(teststring);
21872_ACEOF
21873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021874 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021875 ac_cv_c_stringize=no
21876else
21877 ac_cv_c_stringize=yes
21878fi
21879rm -f conftest*
21880
21881fi
cristy8b350f62009-11-15 23:12:43 +000021882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021883$as_echo "$ac_cv_c_stringize" >&6; }
21884if test $ac_cv_c_stringize = yes; then
21885
cristy8b350f62009-11-15 23:12:43 +000021886$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021887
21888fi
21889
cristy8b350f62009-11-15 23:12:43 +000021890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021891$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021892if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021893 $as_echo_n "(cached) " >&6
21894else
cristy8b350f62009-11-15 23:12:43 +000021895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021896/* end confdefs.h. */
21897#include <sys/types.h>
21898#include <sys/stat.h>
21899
21900#if defined S_ISBLK && defined S_IFDIR
21901extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21902#endif
21903
21904#if defined S_ISBLK && defined S_IFCHR
21905extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21906#endif
21907
21908#if defined S_ISLNK && defined S_IFREG
21909extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21910#endif
21911
21912#if defined S_ISSOCK && defined S_IFREG
21913extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21914#endif
21915
21916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021917if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021918 ac_cv_header_stat_broken=no
21919else
cristy8b350f62009-11-15 23:12:43 +000021920 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021921fi
cristy3ed852e2009-09-05 21:47:34 +000021922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923fi
cristy8b350f62009-11-15 23:12:43 +000021924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021925$as_echo "$ac_cv_header_stat_broken" >&6; }
21926if test $ac_cv_header_stat_broken = yes; then
21927
cristy8b350f62009-11-15 23:12:43 +000021928$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021929
21930fi
21931
cristy8b350f62009-11-15 23:12:43 +000021932{ $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 +000021933$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021934if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021935 $as_echo_n "(cached) " >&6
21936else
cristy8b350f62009-11-15 23:12:43 +000021937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021938/* end confdefs.h. */
21939#include <sys/types.h>
21940#include <sys/time.h>
21941#include <time.h>
21942
21943int
21944main ()
21945{
21946if ((struct tm *) 0)
21947return 0;
21948 ;
21949 return 0;
21950}
21951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021952if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021953 ac_cv_header_time=yes
21954else
cristy8b350f62009-11-15 23:12:43 +000021955 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021956fi
cristy3ed852e2009-09-05 21:47:34 +000021957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21958fi
cristy8b350f62009-11-15 23:12:43 +000021959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021960$as_echo "$ac_cv_header_time" >&6; }
21961if test $ac_cv_header_time = yes; then
21962
cristy8b350f62009-11-15 23:12:43 +000021963$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021964
21965fi
21966
cristy8b350f62009-11-15 23:12:43 +000021967{ $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 +000021968$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021969if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021970 $as_echo_n "(cached) " >&6
21971else
cristy8b350f62009-11-15 23:12:43 +000021972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021973/* end confdefs.h. */
21974#include <sys/types.h>
21975#include <time.h>
21976
21977int
21978main ()
21979{
21980struct tm tm;
21981 int *p = &tm.tm_sec;
21982 return !p;
21983 ;
21984 return 0;
21985}
21986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021987if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021988 ac_cv_struct_tm=time.h
21989else
cristy8b350f62009-11-15 23:12:43 +000021990 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021991fi
cristy3ed852e2009-09-05 21:47:34 +000021992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21993fi
cristy8b350f62009-11-15 23:12:43 +000021994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021995$as_echo "$ac_cv_struct_tm" >&6; }
21996if test $ac_cv_struct_tm = sys/time.h; then
21997
cristy8b350f62009-11-15 23:12:43 +000021998$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021999
22000fi
22001
cristy92703d82010-04-26 00:18:18 +000022002ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22003#include <$ac_cv_struct_tm>
22004
22005"
cristyda16f162011-02-19 23:52:17 +000022006if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022007
22008cat >>confdefs.h <<_ACEOF
22009#define HAVE_STRUCT_TM_TM_ZONE 1
22010_ACEOF
22011
22012
22013fi
22014
22015if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22016
22017$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22018
22019else
22020 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22021"
cristyda16f162011-02-19 23:52:17 +000022022if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022023 ac_have_decl=1
22024else
22025 ac_have_decl=0
22026fi
22027
22028cat >>confdefs.h <<_ACEOF
22029#define HAVE_DECL_TZNAME $ac_have_decl
22030_ACEOF
22031
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22033$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022034if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022035 $as_echo_n "(cached) " >&6
22036else
22037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22038/* end confdefs.h. */
22039#include <time.h>
22040#if !HAVE_DECL_TZNAME
22041extern char *tzname[];
22042#endif
22043
22044int
22045main ()
22046{
22047return tzname[0][0];
22048 ;
22049 return 0;
22050}
22051_ACEOF
22052if ac_fn_c_try_link "$LINENO"; then :
22053 ac_cv_var_tzname=yes
22054else
22055 ac_cv_var_tzname=no
22056fi
22057rm -f core conftest.err conftest.$ac_objext \
22058 conftest$ac_exeext conftest.$ac_ext
22059fi
22060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22061$as_echo "$ac_cv_var_tzname" >&6; }
22062 if test $ac_cv_var_tzname = yes; then
22063
22064$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22065
22066 fi
22067fi
22068
cristy8b350f62009-11-15 23:12:43 +000022069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022070$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022071if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022072 $as_echo_n "(cached) " >&6
22073else
22074 echo '#! /bin/cat
22075exit 69
22076' >conftest
22077chmod u+x conftest
22078(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22079if test $? -ne 69; then
22080 ac_cv_sys_interpreter=yes
22081else
22082 ac_cv_sys_interpreter=no
22083fi
22084rm -f conftest
22085fi
cristy8b350f62009-11-15 23:12:43 +000022086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022087$as_echo "$ac_cv_sys_interpreter" >&6; }
22088interpval=$ac_cv_sys_interpreter
22089
22090
cristy3ed852e2009-09-05 21:47:34 +000022091# If the C compiler supports the keyword inline, do nothing. Otherwise
22092# define inline to __inline__ or __inline if it accepts one of those,
22093# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022095$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022096if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022097 $as_echo_n "(cached) " >&6
22098else
22099 ac_cv_c_inline=no
22100for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022102/* end confdefs.h. */
22103#ifndef __cplusplus
22104typedef int foo_t;
22105static $ac_kw foo_t static_foo () {return 0; }
22106$ac_kw foo_t foo () {return 0; }
22107#endif
22108
22109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022110if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022111 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022112fi
cristy3ed852e2009-09-05 21:47:34 +000022113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22114 test "$ac_cv_c_inline" != no && break
22115done
22116
22117fi
cristy8b350f62009-11-15 23:12:43 +000022118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022119$as_echo "$ac_cv_c_inline" >&6; }
22120
cristy3ed852e2009-09-05 21:47:34 +000022121case $ac_cv_c_inline in
22122 inline | yes) ;;
22123 *)
22124 case $ac_cv_c_inline in
22125 no) ac_val=;;
22126 *) ac_val=$ac_cv_c_inline;;
22127 esac
22128 cat >>confdefs.h <<_ACEOF
22129#ifndef __cplusplus
22130#define inline $ac_val
22131#endif
22132_ACEOF
22133 ;;
22134esac
22135
22136
22137# If the C compiler supports the keyword restrict, do nothing. Otherwise
22138# define restrict to __restrict__ or __restrict if it accepts one of those,
22139# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022141$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022142if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022143 $as_echo_n "(cached) " >&6
22144else
22145 ac_cv_c_restrict=no
22146 # The order here caters to the fact that C++ does not require restrict.
22147 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022149/* end confdefs.h. */
22150typedef int * int_ptr;
22151 int foo (int_ptr $ac_kw ip) {
22152 return ip[0];
22153 }
22154int
22155main ()
22156{
22157int s[1];
22158 int * $ac_kw t = s;
22159 t[0] = 0;
22160 return foo(t)
22161 ;
22162 return 0;
22163}
22164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022165if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022166 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022167fi
cristy3ed852e2009-09-05 21:47:34 +000022168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 test "$ac_cv_c_restrict" != no && break
22170 done
22171
22172fi
cristy8b350f62009-11-15 23:12:43 +000022173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022174$as_echo "$ac_cv_c_restrict" >&6; }
22175
cristy3ed852e2009-09-05 21:47:34 +000022176 case $ac_cv_c_restrict in
22177 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022178 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022179 ;;
22180 *) cat >>confdefs.h <<_ACEOF
22181#define restrict $ac_cv_c_restrict
22182_ACEOF
22183 ;;
22184 esac
22185
22186
22187# If words are stored with the most significant byte first (like
22188# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022190$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022191if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022192 $as_echo_n "(cached) " >&6
22193else
22194 ac_cv_c_bigendian=unknown
22195 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022197/* end confdefs.h. */
22198#ifndef __APPLE_CC__
22199 not a universal capable compiler
22200 #endif
22201 typedef int dummy;
22202
22203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022204if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022205
22206 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022207 # there are at least two -arch flags with different values.
22208 ac_arch=
22209 ac_prev=
22210 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22211 if test -n "$ac_prev"; then
22212 case $ac_word in
22213 i?86 | x86_64 | ppc | ppc64)
22214 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22215 ac_arch=$ac_word
22216 else
22217 ac_cv_c_bigendian=universal
22218 break
22219 fi
22220 ;;
22221 esac
22222 ac_prev=
22223 elif test "x$ac_word" = "x-arch"; then
22224 ac_prev=arch
22225 fi
22226 done
cristy3ed852e2009-09-05 21:47:34 +000022227fi
cristy3ed852e2009-09-05 21:47:34 +000022228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22229 if test $ac_cv_c_bigendian = unknown; then
22230 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022232/* end confdefs.h. */
22233#include <sys/types.h>
22234 #include <sys/param.h>
22235
22236int
22237main ()
22238{
22239#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22240 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22241 && LITTLE_ENDIAN)
22242 bogus endian macros
22243 #endif
22244
22245 ;
22246 return 0;
22247}
22248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022249if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022250 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022252/* end confdefs.h. */
22253#include <sys/types.h>
22254 #include <sys/param.h>
22255
22256int
22257main ()
22258{
22259#if BYTE_ORDER != BIG_ENDIAN
22260 not big endian
22261 #endif
22262
22263 ;
22264 return 0;
22265}
22266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022267if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022268 ac_cv_c_bigendian=yes
22269else
cristy8b350f62009-11-15 23:12:43 +000022270 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022271fi
cristy3ed852e2009-09-05 21:47:34 +000022272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022273fi
cristy3ed852e2009-09-05 21:47:34 +000022274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22275 fi
22276 if test $ac_cv_c_bigendian = unknown; then
22277 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022279/* end confdefs.h. */
22280#include <limits.h>
22281
22282int
22283main ()
22284{
22285#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22286 bogus endian macros
22287 #endif
22288
22289 ;
22290 return 0;
22291}
22292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022293if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022294 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022296/* end confdefs.h. */
22297#include <limits.h>
22298
22299int
22300main ()
22301{
22302#ifndef _BIG_ENDIAN
22303 not big endian
22304 #endif
22305
22306 ;
22307 return 0;
22308}
22309_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022310if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022311 ac_cv_c_bigendian=yes
22312else
cristy8b350f62009-11-15 23:12:43 +000022313 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022314fi
cristy3ed852e2009-09-05 21:47:34 +000022315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022316fi
cristy3ed852e2009-09-05 21:47:34 +000022317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22318 fi
22319 if test $ac_cv_c_bigendian = unknown; then
22320 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022321 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022322 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022324/* end confdefs.h. */
22325short int ascii_mm[] =
22326 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22327 short int ascii_ii[] =
22328 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22329 int use_ascii (int i) {
22330 return ascii_mm[i] + ascii_ii[i];
22331 }
22332 short int ebcdic_ii[] =
22333 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22334 short int ebcdic_mm[] =
22335 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22336 int use_ebcdic (int i) {
22337 return ebcdic_mm[i] + ebcdic_ii[i];
22338 }
22339 extern int foo;
22340
22341int
22342main ()
22343{
22344return use_ascii (foo) == use_ebcdic (foo);
22345 ;
22346 return 0;
22347}
22348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022349if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022350 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22351 ac_cv_c_bigendian=yes
22352 fi
22353 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22354 if test "$ac_cv_c_bigendian" = unknown; then
22355 ac_cv_c_bigendian=no
22356 else
22357 # finding both strings is unlikely to happen, but who knows?
22358 ac_cv_c_bigendian=unknown
22359 fi
22360 fi
cristy3ed852e2009-09-05 21:47:34 +000022361fi
cristy3ed852e2009-09-05 21:47:34 +000022362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363else
cristy8b350f62009-11-15 23:12:43 +000022364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022365/* end confdefs.h. */
22366$ac_includes_default
22367int
22368main ()
22369{
22370
22371 /* Are we little or big endian? From Harbison&Steele. */
22372 union
22373 {
22374 long int l;
22375 char c[sizeof (long int)];
22376 } u;
22377 u.l = 1;
22378 return u.c[sizeof (long int) - 1] == 1;
22379
22380 ;
22381 return 0;
22382}
22383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022384if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022385 ac_cv_c_bigendian=no
22386else
cristy8b350f62009-11-15 23:12:43 +000022387 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022388fi
cristy8b350f62009-11-15 23:12:43 +000022389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22390 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022391fi
22392
cristy3ed852e2009-09-05 21:47:34 +000022393 fi
22394fi
cristy8b350f62009-11-15 23:12:43 +000022395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022396$as_echo "$ac_cv_c_bigendian" >&6; }
22397 case $ac_cv_c_bigendian in #(
22398 yes)
cristy8b350f62009-11-15 23:12:43 +000022399 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022400;; #(
22401 no)
22402 ;; #(
22403 universal)
22404
cristy8b350f62009-11-15 23:12:43 +000022405$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022406
22407 ;; #(
22408 *)
cristy98dddb52010-11-04 00:30:15 +000022409 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022410 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022411 esac
22412
22413
cristy501c8042011-05-26 17:46:28 +000022414# Define to a suitable type, if standard headers do not define it.
22415ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22416case $ac_cv_c_int8_t in #(
22417 no|yes) ;; #(
22418 *)
cristy3ed852e2009-09-05 21:47:34 +000022419
22420cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022421#define int8_t $ac_cv_c_int8_t
22422_ACEOF
22423;;
22424esac
22425
22426ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22427case $ac_cv_c_int16_t in #(
22428 no|yes) ;; #(
22429 *)
22430
22431cat >>confdefs.h <<_ACEOF
22432#define int16_t $ac_cv_c_int16_t
22433_ACEOF
22434;;
22435esac
22436
22437ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22438case $ac_cv_c_int32_t in #(
22439 no|yes) ;; #(
22440 *)
22441
22442cat >>confdefs.h <<_ACEOF
22443#define int32_t $ac_cv_c_int32_t
22444_ACEOF
22445;;
22446esac
22447
22448ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22449case $ac_cv_c_int64_t in #(
22450 no|yes) ;; #(
22451 *)
22452
22453cat >>confdefs.h <<_ACEOF
22454#define int64_t $ac_cv_c_int64_t
22455_ACEOF
22456;;
22457esac
22458
22459
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22461$as_echo_n "checking for long long int... " >&6; }
22462if ${ac_cv_type_long_long_int+:} false; then :
22463 $as_echo_n "(cached) " >&6
22464else
22465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22466/* end confdefs.h. */
22467
22468 /* For now, do not test the preprocessor; as of 2007 there are too many
22469 implementations with broken preprocessors. Perhaps this can
22470 be revisited in 2012. In the meantime, code should not expect
22471 #if to work with literals wider than 32 bits. */
22472 /* Test literals. */
22473 long long int ll = 9223372036854775807ll;
22474 long long int nll = -9223372036854775807LL;
22475 unsigned long long int ull = 18446744073709551615ULL;
22476 /* Test constant expressions. */
22477 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22478 ? 1 : -1)];
22479 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22480 ? 1 : -1)];
22481 int i = 63;
22482int
22483main ()
22484{
22485/* Test availability of runtime routines for shift and division. */
22486 long long int llmax = 9223372036854775807ll;
22487 unsigned long long int ullmax = 18446744073709551615ull;
22488 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22489 | (llmax / ll) | (llmax % ll)
22490 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22491 | (ullmax / ull) | (ullmax % ull));
22492 ;
22493 return 0;
22494}
22495
22496_ACEOF
22497if ac_fn_c_try_link "$LINENO"; then :
22498 if test "$cross_compiling" = yes; then :
22499 ac_cv_type_long_long_int=yes
22500else
22501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22502/* end confdefs.h. */
22503#include <limits.h>
22504 #ifndef LLONG_MAX
22505 # define HALF \
22506 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22507 # define LLONG_MAX (HALF - 1 + HALF)
22508 #endif
22509int
22510main ()
22511{
22512long long int n = 1;
22513 int i;
22514 for (i = 0; ; i++)
22515 {
22516 long long int m = n << i;
22517 if (m >> i != n)
22518 return 1;
22519 if (LLONG_MAX / 2 < m)
22520 break;
22521 }
22522 return 0;
22523 ;
22524 return 0;
22525}
22526_ACEOF
22527if ac_fn_c_try_run "$LINENO"; then :
22528 ac_cv_type_long_long_int=yes
22529else
22530 ac_cv_type_long_long_int=no
22531fi
22532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22533 conftest.$ac_objext conftest.beam conftest.$ac_ext
22534fi
22535
22536else
22537 ac_cv_type_long_long_int=no
22538fi
22539rm -f core conftest.err conftest.$ac_objext \
22540 conftest$ac_exeext conftest.$ac_ext
22541fi
22542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22543$as_echo "$ac_cv_type_long_long_int" >&6; }
22544 if test $ac_cv_type_long_long_int = yes; then
22545
22546$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22547
22548 fi
22549
22550
22551
22552 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22553if test "x$ac_cv_type_intmax_t" = xyes; then :
22554
22555$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22556
22557else
22558 test $ac_cv_type_long_long_int = yes \
22559 && ac_type='long long int' \
22560 || ac_type='long int'
22561
22562cat >>confdefs.h <<_ACEOF
22563#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022564_ACEOF
22565
22566fi
22567
22568
cristy501c8042011-05-26 17:46:28 +000022569
22570 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22571if test "x$ac_cv_type_intptr_t" = xyes; then :
22572
22573$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022574
cristy3ed852e2009-09-05 21:47:34 +000022575else
cristy501c8042011-05-26 17:46:28 +000022576 for ac_type in 'int' 'long int' 'long long int'; do
22577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22578/* end confdefs.h. */
22579$ac_includes_default
22580int
22581main ()
22582{
22583static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22584test_array [0] = 0
22585
22586 ;
22587 return 0;
22588}
22589_ACEOF
22590if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022591
22592cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022593#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022594_ACEOF
22595
cristy501c8042011-05-26 17:46:28 +000022596 ac_type=
22597fi
22598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 test -z "$ac_type" && break
22600 done
cristy3ed852e2009-09-05 21:47:34 +000022601fi
22602
22603
cristy3ed852e2009-09-05 21:47:34 +000022604
cristy501c8042011-05-26 17:46:28 +000022605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22606$as_echo_n "checking for long double... " >&6; }
22607if ${ac_cv_type_long_double+:} false; then :
22608 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022609else
cristy501c8042011-05-26 17:46:28 +000022610 if test "$GCC" = yes; then
22611 ac_cv_type_long_double=yes
22612 else
22613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22614/* end confdefs.h. */
22615/* The Stardent Vistra knows sizeof (long double), but does
22616 not support it. */
22617 long double foo = 0.0L;
22618int
22619main ()
22620{
22621static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22622 sizeof (double) <= sizeof (long double))];
22623test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022624
cristy501c8042011-05-26 17:46:28 +000022625 ;
22626 return 0;
22627}
cristy3ed852e2009-09-05 21:47:34 +000022628_ACEOF
cristy501c8042011-05-26 17:46:28 +000022629if ac_fn_c_try_compile "$LINENO"; then :
22630 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022631else
cristy501c8042011-05-26 17:46:28 +000022632 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022633fi
cristy501c8042011-05-26 17:46:28 +000022634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22635 fi
cristy3ed852e2009-09-05 21:47:34 +000022636fi
cristy501c8042011-05-26 17:46:28 +000022637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22638$as_echo "$ac_cv_type_long_double" >&6; }
22639 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022640
cristy501c8042011-05-26 17:46:28 +000022641$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022642
cristy501c8042011-05-26 17:46:28 +000022643 fi
22644
cristy3ed852e2009-09-05 21:47:34 +000022645
cristy8b350f62009-11-15 23:12:43 +000022646 { $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 +000022647$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022648if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022649 $as_echo_n "(cached) " >&6
22650else
cristy8b350f62009-11-15 23:12:43 +000022651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022652/* end confdefs.h. */
22653#include <float.h>
22654 long double const a[] =
22655 {
22656 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22657 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22658 };
22659 long double
22660 f (long double x)
22661 {
22662 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22663 + (x ? f (x) : 'c'));
22664 }
22665
22666int
22667main ()
22668{
22669static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22670 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22671 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22672 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22673 && (int) LDBL_EPSILON == 0
22674 )];
22675test_array [0] = 0
22676
22677 ;
22678 return 0;
22679}
22680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022681if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022682 ac_cv_type_long_double_wider=yes
22683else
cristy8b350f62009-11-15 23:12:43 +000022684 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022685fi
cristy3ed852e2009-09-05 21:47:34 +000022686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687fi
cristy8b350f62009-11-15 23:12:43 +000022688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022689$as_echo "$ac_cv_type_long_double_wider" >&6; }
22690 if test $ac_cv_type_long_double_wider = yes; then
22691
cristy8b350f62009-11-15 23:12:43 +000022692$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022693
22694 fi
22695
22696
cristy501c8042011-05-26 17:46:28 +000022697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22698$as_echo_n "checking for long long int... " >&6; }
22699if ${ac_cv_type_long_long_int+:} false; then :
22700 $as_echo_n "(cached) " >&6
22701else
22702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703/* end confdefs.h. */
22704
22705 /* For now, do not test the preprocessor; as of 2007 there are too many
22706 implementations with broken preprocessors. Perhaps this can
22707 be revisited in 2012. In the meantime, code should not expect
22708 #if to work with literals wider than 32 bits. */
22709 /* Test literals. */
22710 long long int ll = 9223372036854775807ll;
22711 long long int nll = -9223372036854775807LL;
22712 unsigned long long int ull = 18446744073709551615ULL;
22713 /* Test constant expressions. */
22714 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22715 ? 1 : -1)];
22716 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22717 ? 1 : -1)];
22718 int i = 63;
22719int
22720main ()
22721{
22722/* Test availability of runtime routines for shift and division. */
22723 long long int llmax = 9223372036854775807ll;
22724 unsigned long long int ullmax = 18446744073709551615ull;
22725 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22726 | (llmax / ll) | (llmax % ll)
22727 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22728 | (ullmax / ull) | (ullmax % ull));
22729 ;
22730 return 0;
22731}
22732
22733_ACEOF
22734if ac_fn_c_try_link "$LINENO"; then :
22735 if test "$cross_compiling" = yes; then :
22736 ac_cv_type_long_long_int=yes
22737else
22738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22739/* end confdefs.h. */
22740#include <limits.h>
22741 #ifndef LLONG_MAX
22742 # define HALF \
22743 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22744 # define LLONG_MAX (HALF - 1 + HALF)
22745 #endif
22746int
22747main ()
22748{
22749long long int n = 1;
22750 int i;
22751 for (i = 0; ; i++)
22752 {
22753 long long int m = n << i;
22754 if (m >> i != n)
22755 return 1;
22756 if (LLONG_MAX / 2 < m)
22757 break;
22758 }
22759 return 0;
22760 ;
22761 return 0;
22762}
22763_ACEOF
22764if ac_fn_c_try_run "$LINENO"; then :
22765 ac_cv_type_long_long_int=yes
22766else
22767 ac_cv_type_long_long_int=no
22768fi
22769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22770 conftest.$ac_objext conftest.beam conftest.$ac_ext
22771fi
22772
22773else
22774 ac_cv_type_long_long_int=no
22775fi
22776rm -f core conftest.err conftest.$ac_objext \
22777 conftest$ac_exeext conftest.$ac_ext
22778fi
22779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22780$as_echo "$ac_cv_type_long_long_int" >&6; }
22781 if test $ac_cv_type_long_long_int = yes; then
22782
22783$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22784
22785 fi
22786
22787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22788$as_echo_n "checking for mbstate_t... " >&6; }
22789if ${ac_cv_type_mbstate_t+:} false; then :
22790 $as_echo_n "(cached) " >&6
22791else
22792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22793/* end confdefs.h. */
22794$ac_includes_default
22795# include <wchar.h>
22796int
22797main ()
22798{
22799mbstate_t x; return sizeof x;
22800 ;
22801 return 0;
22802}
22803_ACEOF
22804if ac_fn_c_try_compile "$LINENO"; then :
22805 ac_cv_type_mbstate_t=yes
22806else
22807 ac_cv_type_mbstate_t=no
22808fi
22809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810fi
22811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22812$as_echo "$ac_cv_type_mbstate_t" >&6; }
22813 if test $ac_cv_type_mbstate_t = yes; then
22814
22815$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22816
22817 else
22818
22819$as_echo "#define mbstate_t int" >>confdefs.h
22820
22821 fi
22822ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22823if test "x$ac_cv_type_mode_t" = xyes; then :
22824
22825else
22826
22827cat >>confdefs.h <<_ACEOF
22828#define mode_t int
22829_ACEOF
22830
22831fi
22832
22833ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22834if test "x$ac_cv_type_off_t" = xyes; then :
22835
22836else
22837
22838cat >>confdefs.h <<_ACEOF
22839#define off_t long int
22840_ACEOF
22841
22842fi
22843
22844ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22845if test "x$ac_cv_type_pid_t" = xyes; then :
22846
22847else
22848
22849cat >>confdefs.h <<_ACEOF
22850#define pid_t int
22851_ACEOF
22852
22853fi
22854
22855ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22856if test "x$ac_cv_type_size_t" = xyes; then :
22857
22858else
22859
22860cat >>confdefs.h <<_ACEOF
22861#define size_t unsigned int
22862_ACEOF
22863
22864fi
22865
22866ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22867if test "x$ac_cv_type_ssize_t" = xyes; then :
22868
22869else
22870
22871cat >>confdefs.h <<_ACEOF
22872#define ssize_t int
22873_ACEOF
22874
22875fi
22876
22877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22878$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22879if ${ac_cv_type_uid_t+:} false; then :
22880 $as_echo_n "(cached) " >&6
22881else
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883/* end confdefs.h. */
22884#include <sys/types.h>
22885
22886_ACEOF
22887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22888 $EGREP "uid_t" >/dev/null 2>&1; then :
22889 ac_cv_type_uid_t=yes
22890else
22891 ac_cv_type_uid_t=no
22892fi
22893rm -f conftest*
22894
22895fi
22896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22897$as_echo "$ac_cv_type_uid_t" >&6; }
22898if test $ac_cv_type_uid_t = no; then
22899
22900$as_echo "#define uid_t int" >>confdefs.h
22901
22902
22903$as_echo "#define gid_t int" >>confdefs.h
22904
22905fi
22906
22907ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22908case $ac_cv_c_uint8_t in #(
22909 no|yes) ;; #(
22910 *)
22911
22912$as_echo "#define _UINT8_T 1" >>confdefs.h
22913
22914
22915cat >>confdefs.h <<_ACEOF
22916#define uint8_t $ac_cv_c_uint8_t
22917_ACEOF
22918;;
22919 esac
22920
22921ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22922case $ac_cv_c_uint16_t in #(
22923 no|yes) ;; #(
22924 *)
22925
22926
22927cat >>confdefs.h <<_ACEOF
22928#define uint16_t $ac_cv_c_uint16_t
22929_ACEOF
22930;;
22931 esac
22932
22933ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22934case $ac_cv_c_uint32_t in #(
22935 no|yes) ;; #(
22936 *)
22937
22938$as_echo "#define _UINT32_T 1" >>confdefs.h
22939
22940
22941cat >>confdefs.h <<_ACEOF
22942#define uint32_t $ac_cv_c_uint32_t
22943_ACEOF
22944;;
22945 esac
22946
22947ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22948case $ac_cv_c_uint64_t in #(
22949 no|yes) ;; #(
22950 *)
22951
22952$as_echo "#define _UINT64_T 1" >>confdefs.h
22953
22954
22955cat >>confdefs.h <<_ACEOF
22956#define uint64_t $ac_cv_c_uint64_t
22957_ACEOF
22958;;
22959 esac
22960
22961
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22963$as_echo_n "checking for unsigned long long int... " >&6; }
22964if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22965 $as_echo_n "(cached) " >&6
22966else
22967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22968/* end confdefs.h. */
22969
22970 /* For now, do not test the preprocessor; as of 2007 there are too many
22971 implementations with broken preprocessors. Perhaps this can
22972 be revisited in 2012. In the meantime, code should not expect
22973 #if to work with literals wider than 32 bits. */
22974 /* Test literals. */
22975 long long int ll = 9223372036854775807ll;
22976 long long int nll = -9223372036854775807LL;
22977 unsigned long long int ull = 18446744073709551615ULL;
22978 /* Test constant expressions. */
22979 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22980 ? 1 : -1)];
22981 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22982 ? 1 : -1)];
22983 int i = 63;
22984int
22985main ()
22986{
22987/* Test availability of runtime routines for shift and division. */
22988 long long int llmax = 9223372036854775807ll;
22989 unsigned long long int ullmax = 18446744073709551615ull;
22990 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22991 | (llmax / ll) | (llmax % ll)
22992 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22993 | (ullmax / ull) | (ullmax % ull));
22994 ;
22995 return 0;
22996}
22997
22998_ACEOF
22999if ac_fn_c_try_link "$LINENO"; then :
23000 ac_cv_type_unsigned_long_long_int=yes
23001else
23002 ac_cv_type_unsigned_long_long_int=no
23003fi
23004rm -f core conftest.err conftest.$ac_objext \
23005 conftest$ac_exeext conftest.$ac_ext
23006fi
23007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23008$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23009 if test $ac_cv_type_unsigned_long_long_int = yes; then
23010
23011$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23012
23013 fi
23014
23015
23016
23017 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23018if test "x$ac_cv_type_uintmax_t" = xyes; then :
23019
23020$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23021
23022else
23023 test $ac_cv_type_unsigned_long_long_int = yes \
23024 && ac_type='unsigned long long int' \
23025 || ac_type='unsigned long int'
23026
23027cat >>confdefs.h <<_ACEOF
23028#define uintmax_t $ac_type
23029_ACEOF
23030
23031fi
23032
23033
23034
23035 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23036if test "x$ac_cv_type_uintptr_t" = xyes; then :
23037
23038$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23039
23040else
23041 for ac_type in 'unsigned int' 'unsigned long int' \
23042 'unsigned long long int'; do
23043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23044/* end confdefs.h. */
23045$ac_includes_default
23046int
23047main ()
23048{
23049static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23050test_array [0] = 0
23051
23052 ;
23053 return 0;
23054}
23055_ACEOF
23056if ac_fn_c_try_compile "$LINENO"; then :
23057
23058cat >>confdefs.h <<_ACEOF
23059#define uintptr_t $ac_type
23060_ACEOF
23061
23062 ac_type=
23063fi
23064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23065 test -z "$ac_type" && break
23066 done
23067fi
23068
23069
23070
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23072$as_echo_n "checking for unsigned long long int... " >&6; }
23073if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23074 $as_echo_n "(cached) " >&6
23075else
23076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23077/* end confdefs.h. */
23078
23079 /* For now, do not test the preprocessor; as of 2007 there are too many
23080 implementations with broken preprocessors. Perhaps this can
23081 be revisited in 2012. In the meantime, code should not expect
23082 #if to work with literals wider than 32 bits. */
23083 /* Test literals. */
23084 long long int ll = 9223372036854775807ll;
23085 long long int nll = -9223372036854775807LL;
23086 unsigned long long int ull = 18446744073709551615ULL;
23087 /* Test constant expressions. */
23088 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23089 ? 1 : -1)];
23090 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23091 ? 1 : -1)];
23092 int i = 63;
23093int
23094main ()
23095{
23096/* Test availability of runtime routines for shift and division. */
23097 long long int llmax = 9223372036854775807ll;
23098 unsigned long long int ullmax = 18446744073709551615ull;
23099 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23100 | (llmax / ll) | (llmax % ll)
23101 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23102 | (ullmax / ull) | (ullmax % ull));
23103 ;
23104 return 0;
23105}
23106
23107_ACEOF
23108if ac_fn_c_try_link "$LINENO"; then :
23109 ac_cv_type_unsigned_long_long_int=yes
23110else
23111 ac_cv_type_unsigned_long_long_int=no
23112fi
23113rm -f core conftest.err conftest.$ac_objext \
23114 conftest$ac_exeext conftest.$ac_ext
23115fi
23116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23117$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23118 if test $ac_cv_type_unsigned_long_long_int = yes; then
23119
23120$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23121
23122 fi
23123
23124
cristy3ed852e2009-09-05 21:47:34 +000023125# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23126# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023128$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023129if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023130 $as_echo_n "(cached) " >&6
23131else
cristy8b350f62009-11-15 23:12:43 +000023132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023133/* end confdefs.h. */
23134$ac_includes_default
23135int
23136main ()
23137{
23138static int test_array [1 - 2 * !(((char) -1) < 0)];
23139test_array [0] = 0
23140
23141 ;
23142 return 0;
23143}
23144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023145if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023146 ac_cv_c_char_unsigned=no
23147else
cristy8b350f62009-11-15 23:12:43 +000023148 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023149fi
cristy3ed852e2009-09-05 21:47:34 +000023150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23151fi
cristy8b350f62009-11-15 23:12:43 +000023152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023153$as_echo "$ac_cv_c_char_unsigned" >&6; }
23154if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023155 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023156
23157fi
23158
23159
23160# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23161# The cast to long int works around a bug in the HP C Compiler
23162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23164# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023166$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023167if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023168 $as_echo_n "(cached) " >&6
23169else
cristy8b350f62009-11-15 23:12:43 +000023170 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 +000023171
cristy3ed852e2009-09-05 21:47:34 +000023172else
cristy8b350f62009-11-15 23:12:43 +000023173 if test "$ac_cv_type_signed_short" = yes; then
23174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023176as_fn_error 77 "cannot compute sizeof (signed short)
23177See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023178 else
23179 ac_cv_sizeof_signed_short=0
23180 fi
23181fi
cristy8b350f62009-11-15 23:12:43 +000023182
cristy3ed852e2009-09-05 21:47:34 +000023183fi
cristy8b350f62009-11-15 23:12:43 +000023184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023185$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23186
23187
23188
23189cat >>confdefs.h <<_ACEOF
23190#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23191_ACEOF
23192
23193
23194
23195# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23196# The cast to long int works around a bug in the HP C Compiler
23197# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23198# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23199# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023201$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023202if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023203 $as_echo_n "(cached) " >&6
23204else
cristy8b350f62009-11-15 23:12:43 +000023205 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 +000023206
cristy3ed852e2009-09-05 21:47:34 +000023207else
cristy8b350f62009-11-15 23:12:43 +000023208 if test "$ac_cv_type_unsigned_short" = yes; then
23209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023211as_fn_error 77 "cannot compute sizeof (unsigned short)
23212See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023213 else
23214 ac_cv_sizeof_unsigned_short=0
23215 fi
23216fi
cristy8b350f62009-11-15 23:12:43 +000023217
cristy3ed852e2009-09-05 21:47:34 +000023218fi
cristy8b350f62009-11-15 23:12:43 +000023219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023220$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23221
23222
23223
23224cat >>confdefs.h <<_ACEOF
23225#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23226_ACEOF
23227
23228
23229
23230# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23231# The cast to long int works around a bug in the HP C Compiler
23232# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23233# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23234# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023236$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023237if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023238 $as_echo_n "(cached) " >&6
23239else
cristy8b350f62009-11-15 23:12:43 +000023240 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 +000023241
cristy3ed852e2009-09-05 21:47:34 +000023242else
cristy8b350f62009-11-15 23:12:43 +000023243 if test "$ac_cv_type_signed_int" = yes; then
23244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023246as_fn_error 77 "cannot compute sizeof (signed int)
23247See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023248 else
23249 ac_cv_sizeof_signed_int=0
23250 fi
23251fi
cristy8b350f62009-11-15 23:12:43 +000023252
cristy3ed852e2009-09-05 21:47:34 +000023253fi
cristy8b350f62009-11-15 23:12:43 +000023254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023255$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23256
23257
23258
23259cat >>confdefs.h <<_ACEOF
23260#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23261_ACEOF
23262
23263
23264
23265# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23266# The cast to long int works around a bug in the HP C Compiler
23267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23269# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023271$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023272if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023273 $as_echo_n "(cached) " >&6
23274else
cristy8b350f62009-11-15 23:12:43 +000023275 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 +000023276
cristy3ed852e2009-09-05 21:47:34 +000023277else
cristy8b350f62009-11-15 23:12:43 +000023278 if test "$ac_cv_type_unsigned_int" = yes; then
23279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023281as_fn_error 77 "cannot compute sizeof (unsigned int)
23282See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023283 else
23284 ac_cv_sizeof_unsigned_int=0
23285 fi
23286fi
cristy8b350f62009-11-15 23:12:43 +000023287
cristy3ed852e2009-09-05 21:47:34 +000023288fi
cristy8b350f62009-11-15 23:12:43 +000023289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023290$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23291
23292
23293
23294cat >>confdefs.h <<_ACEOF
23295#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23296_ACEOF
23297
23298
23299
23300# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23301# The cast to long int works around a bug in the HP C Compiler
23302# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23303# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23304# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023306$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023307if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023308 $as_echo_n "(cached) " >&6
23309else
cristy8b350f62009-11-15 23:12:43 +000023310 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 +000023311
cristy3ed852e2009-09-05 21:47:34 +000023312else
cristy8b350f62009-11-15 23:12:43 +000023313 if test "$ac_cv_type_signed_long" = yes; then
23314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023316as_fn_error 77 "cannot compute sizeof (signed long)
23317See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023318 else
23319 ac_cv_sizeof_signed_long=0
23320 fi
23321fi
cristy8b350f62009-11-15 23:12:43 +000023322
cristy3ed852e2009-09-05 21:47:34 +000023323fi
cristy8b350f62009-11-15 23:12:43 +000023324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023325$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23326
23327
23328
23329cat >>confdefs.h <<_ACEOF
23330#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23331_ACEOF
23332
23333
23334
23335# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23336# The cast to long int works around a bug in the HP C Compiler
23337# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23338# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23339# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023341$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023342if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023343 $as_echo_n "(cached) " >&6
23344else
cristy8b350f62009-11-15 23:12:43 +000023345 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 +000023346
cristy3ed852e2009-09-05 21:47:34 +000023347else
cristy8b350f62009-11-15 23:12:43 +000023348 if test "$ac_cv_type_unsigned_long" = yes; then
23349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023351as_fn_error 77 "cannot compute sizeof (unsigned long)
23352See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023353 else
23354 ac_cv_sizeof_unsigned_long=0
23355 fi
23356fi
cristy8b350f62009-11-15 23:12:43 +000023357
cristy3ed852e2009-09-05 21:47:34 +000023358fi
cristy8b350f62009-11-15 23:12:43 +000023359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023360$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23361
23362
23363
23364cat >>confdefs.h <<_ACEOF
23365#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23366_ACEOF
23367
23368
23369
23370# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23371# 'signed long long' is not supported then the value defined is zero.
23372# The cast to long int works around a bug in the HP C Compiler
23373# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23374# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23375# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023377$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023378if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023379 $as_echo_n "(cached) " >&6
23380else
cristy8b350f62009-11-15 23:12:43 +000023381 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 +000023382
cristy3ed852e2009-09-05 21:47:34 +000023383else
cristy8b350f62009-11-15 23:12:43 +000023384 if test "$ac_cv_type_signed_long_long" = yes; then
23385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023387as_fn_error 77 "cannot compute sizeof (signed long long)
23388See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023389 else
23390 ac_cv_sizeof_signed_long_long=0
23391 fi
23392fi
cristy8b350f62009-11-15 23:12:43 +000023393
cristy3ed852e2009-09-05 21:47:34 +000023394fi
cristy8b350f62009-11-15 23:12:43 +000023395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023396$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23397
23398
23399
23400cat >>confdefs.h <<_ACEOF
23401#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23402_ACEOF
23403
23404
23405
23406# Obtain size of a 'unsigned long long' and define as
23407# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23408# supported then the value defined is zero.
23409# The cast to long int works around a bug in the HP C Compiler
23410# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23411# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23412# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023414$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023415if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023416 $as_echo_n "(cached) " >&6
23417else
cristy8b350f62009-11-15 23:12:43 +000023418 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 +000023419
cristy3ed852e2009-09-05 21:47:34 +000023420else
cristy8b350f62009-11-15 23:12:43 +000023421 if test "$ac_cv_type_unsigned_long_long" = yes; then
23422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023424as_fn_error 77 "cannot compute sizeof (unsigned long long)
23425See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023426 else
23427 ac_cv_sizeof_unsigned_long_long=0
23428 fi
23429fi
cristy8b350f62009-11-15 23:12:43 +000023430
cristy3ed852e2009-09-05 21:47:34 +000023431fi
cristy8b350f62009-11-15 23:12:43 +000023432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23434
23435
23436
23437cat >>confdefs.h <<_ACEOF
23438#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23439_ACEOF
23440
23441
23442
23443# Obtain size of off_t and define as SIZEOF_OFF_T
23444# The cast to long int works around a bug in the HP C Compiler
23445# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23446# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23447# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023449$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023450if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023451 $as_echo_n "(cached) " >&6
23452else
cristy8b350f62009-11-15 23:12:43 +000023453 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 +000023454
cristy3ed852e2009-09-05 21:47:34 +000023455else
cristy8b350f62009-11-15 23:12:43 +000023456 if test "$ac_cv_type_off_t" = yes; then
23457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023459as_fn_error 77 "cannot compute sizeof (off_t)
23460See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023461 else
23462 ac_cv_sizeof_off_t=0
23463 fi
23464fi
cristy8b350f62009-11-15 23:12:43 +000023465
cristy3ed852e2009-09-05 21:47:34 +000023466fi
cristy8b350f62009-11-15 23:12:43 +000023467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo "$ac_cv_sizeof_off_t" >&6; }
23469
23470
23471
23472cat >>confdefs.h <<_ACEOF
23473#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23474_ACEOF
23475
23476
23477
23478# Obtain size of size_t and define as SIZEOF_SIZE_T
23479# The cast to long int works around a bug in the HP C Compiler
23480# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23481# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23482# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023484$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023485if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023486 $as_echo_n "(cached) " >&6
23487else
cristy8b350f62009-11-15 23:12:43 +000023488 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 +000023489
cristy3ed852e2009-09-05 21:47:34 +000023490else
cristy8b350f62009-11-15 23:12:43 +000023491 if test "$ac_cv_type_size_t" = yes; then
23492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023494as_fn_error 77 "cannot compute sizeof (size_t)
23495See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023496 else
23497 ac_cv_sizeof_size_t=0
23498 fi
23499fi
cristy8b350f62009-11-15 23:12:43 +000023500
cristy3ed852e2009-09-05 21:47:34 +000023501fi
cristy8b350f62009-11-15 23:12:43 +000023502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023503$as_echo "$ac_cv_sizeof_size_t" >&6; }
23504
23505
23506
23507cat >>confdefs.h <<_ACEOF
23508#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23509_ACEOF
23510
23511
23512
cristy330e9352010-06-01 18:42:49 +000023513# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23514# The cast to long int works around a bug in the HP C Compiler
23515# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23516# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23517# This bug is HP SR number 8606223364.
23518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23519$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023520if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023521 $as_echo_n "(cached) " >&6
23522else
23523 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23524
23525else
23526 if test "$ac_cv_type_ssize_t" = yes; then
23527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023529as_fn_error 77 "cannot compute sizeof (ssize_t)
23530See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023531 else
23532 ac_cv_sizeof_ssize_t=0
23533 fi
23534fi
23535
23536fi
23537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23538$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23539
23540
23541
23542cat >>confdefs.h <<_ACEOF
23543#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23544_ACEOF
23545
23546
23547
cristy3ed852e2009-09-05 21:47:34 +000023548# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23549# The cast to long int works around a bug in the HP C Compiler
23550# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23551# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23552# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023554$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023555if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023556 $as_echo_n "(cached) " >&6
23557else
cristy8b350f62009-11-15 23:12:43 +000023558 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 +000023559
cristy3ed852e2009-09-05 21:47:34 +000023560else
cristy8b350f62009-11-15 23:12:43 +000023561 if test "$ac_cv_type_unsigned_intp" = yes; then
23562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023564as_fn_error 77 "cannot compute sizeof (unsigned int*)
23565See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023566 else
23567 ac_cv_sizeof_unsigned_intp=0
23568 fi
23569fi
cristy8b350f62009-11-15 23:12:43 +000023570
cristy3ed852e2009-09-05 21:47:34 +000023571fi
cristy8b350f62009-11-15 23:12:43 +000023572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023573$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23574
23575
23576
23577cat >>confdefs.h <<_ACEOF
23578#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23579_ACEOF
23580
23581
23582
23583#
23584# Compute sized types for current CPU and compiler options.
23585#
23586
cristy8b350f62009-11-15 23:12:43 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023588$as_echo_n "checking for signed 8-bit type... " >&6; }
23589INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023590{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23591$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023592
23593
cristy8b350f62009-11-15 23:12:43 +000023594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023595$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23596UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023597{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23598$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023599
23600
cristy8b350f62009-11-15 23:12:43 +000023601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023602$as_echo_n "checking for signed 16-bit type... " >&6; }
23603INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023604{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23605$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023606
23607
cristy8b350f62009-11-15 23:12:43 +000023608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023609$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23610UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023611{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23612$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023613
23614
cristy8b350f62009-11-15 23:12:43 +000023615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023616$as_echo_n "checking for signed 32-bit type... " >&6; }
23617INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023618INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023619if test $ac_cv_sizeof_signed_int -eq 4; then
23620 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023621 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023622elif test $ac_cv_sizeof_signed_long -eq 4; then
23623 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023624 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023625fi
cristy09b53e12011-10-14 12:47:22 +000023626{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23627$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023628
23629
cristy6d5e20f2011-04-25 13:48:54 +000023630
cristy8b350f62009-11-15 23:12:43 +000023631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023632$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23633UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023634UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023635if test $ac_cv_sizeof_unsigned_int -eq 4; then
23636 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023637 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023638elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23639 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023640 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023641fi
cristy09b53e12011-10-14 12:47:22 +000023642{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23643$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023644
23645
cristy6d5e20f2011-04-25 13:48:54 +000023646
cristy8b350f62009-11-15 23:12:43 +000023647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023648$as_echo_n "checking for signed 64-bit type... " >&6; }
23649INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023650INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023651if test $ac_cv_sizeof_signed_long -eq 8; then
23652 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023653 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023654elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23655 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023656 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023657fi
cristy6d5e20f2011-04-25 13:48:54 +000023658case "${build_os}" in
23659 mingw* )
23660 INT64_F='"I64"'
23661 ;;
23662esac
cristy09b53e12011-10-14 12:47:22 +000023663{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23664$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023665
23666
cristy6d5e20f2011-04-25 13:48:54 +000023667
cristy8b350f62009-11-15 23:12:43 +000023668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023669$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23670UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023671UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023672if test $ac_cv_sizeof_unsigned_long -eq 8; then
23673 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023674 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023675elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23676 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023677 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023678fi
cristy6d5e20f2011-04-25 13:48:54 +000023679case "${build_os}" in
23680 mingw* )
23681 UINT64_F='"I64"'
23682 ;;
23683esac
cristy09b53e12011-10-14 12:47:22 +000023684{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23685$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023686
23687
cristy6d5e20f2011-04-25 13:48:54 +000023688
cristy8b350f62009-11-15 23:12:43 +000023689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023690$as_echo_n "checking for unsigned maximum type... " >&6; }
23691UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023692UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023693if test "$UINT64_T" != 'none'; then
23694 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023695 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023696elif test "$UINT32_T" != 'none'; then
23697 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023698 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023699fi
cristy09b53e12011-10-14 12:47:22 +000023700{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23701$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023702
23703
cristy6d5e20f2011-04-25 13:48:54 +000023704
cristy8b350f62009-11-15 23:12:43 +000023705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023706$as_echo_n "checking for pointer difference type... " >&6; }
23707UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023708UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023709if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23710 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023711 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023712elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23713 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023714 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023715fi
cristy09b53e12011-10-14 12:47:22 +000023716{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23717$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023718
23719
cristy6d5e20f2011-04-25 13:48:54 +000023720
cristy8b350f62009-11-15 23:12:43 +000023721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023722$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023724/* end confdefs.h. */
23725
23726int
23727main ()
23728{
23729{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23730 ;
23731 return 0;
23732}
23733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023734if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023735 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23736$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023737else
cristy09b53e12011-10-14 12:47:22 +000023738 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23739$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023741$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023743/* end confdefs.h. */
23744
23745int
23746main ()
23747{
23748{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23749 ;
23750 return 0;
23751}
23752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023753if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023754 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23755$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023756
cristy8b350f62009-11-15 23:12:43 +000023757$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023758
23759else
cristy09b53e12011-10-14 12:47:22 +000023760 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23761$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023762
cristy8b350f62009-11-15 23:12:43 +000023763$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023764
23765fi
cristy3ed852e2009-09-05 21:47:34 +000023766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767fi
cristy3ed852e2009-09-05 21:47:34 +000023768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23769
23770########
23771#
23772# Check for functions
23773#
23774########
cristy73bd4a52010-10-05 11:24:23 +000023775for ac_header in stdlib.h unistd.h
23776do :
23777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23778ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023779if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023780 cat >>confdefs.h <<_ACEOF
23781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23782_ACEOF
23783
23784fi
23785
23786done
23787
23788for ac_func in getpagesize
23789do :
23790 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023791if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023792 cat >>confdefs.h <<_ACEOF
23793#define HAVE_GETPAGESIZE 1
23794_ACEOF
23795
23796fi
23797done
23798
23799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23800$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023801if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023802 $as_echo_n "(cached) " >&6
23803else
23804 if test "$cross_compiling" = yes; then :
23805 magick_cv_func_mmap_fileio=no
23806else
23807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23808/* end confdefs.h. */
23809$ac_includes_default
23810/* malloc might have been renamed as rpl_malloc. */
23811#undef malloc
23812
23813/*
23814 This test is derived from GNU Autoconf's similar macro.
23815 The purpose of this test is to verify that files may be memory
23816 mapped, and that memory mapping and file I/O are coherent.
23817
23818 The test creates a test file, memory maps the file, updates
23819 the file using the memory map, and then reads the file using
23820 file I/O to verify that the file contains the updates.
23821*/
23822
23823#include <fcntl.h>
23824#include <sys/mman.h>
23825
23826#if !STDC_HEADERS && !HAVE_STDLIB_H
23827char *malloc ();
23828#endif
23829
23830/* This mess was copied from the GNU getpagesize.h. */
23831#if !HAVE_GETPAGESIZE
23832/* Assume that all systems that can run configure have sys/param.h. */
23833# if !HAVE_SYS_PARAM_H
23834# define HAVE_SYS_PARAM_H 1
23835# endif
23836
23837# ifdef _SC_PAGESIZE
23838# define getpagesize() sysconf(_SC_PAGESIZE)
23839# else /* no _SC_PAGESIZE */
23840# if HAVE_SYS_PARAM_H
23841# include <sys/param.h>
23842# ifdef EXEC_PAGESIZE
23843# define getpagesize() EXEC_PAGESIZE
23844# else /* no EXEC_PAGESIZE */
23845# ifdef NBPG
23846# define getpagesize() NBPG * CLSIZE
23847# ifndef CLSIZE
23848# define CLSIZE 1
23849# endif /* no CLSIZE */
23850# else /* no NBPG */
23851# ifdef NBPC
23852# define getpagesize() NBPC
23853# else /* no NBPC */
23854# ifdef PAGESIZE
23855# define getpagesize() PAGESIZE
23856# endif /* PAGESIZE */
23857# endif /* no NBPC */
23858# endif /* no NBPG */
23859# endif /* no EXEC_PAGESIZE */
23860# else /* no HAVE_SYS_PARAM_H */
23861# define getpagesize() 8192 /* punt totally */
23862# endif /* no HAVE_SYS_PARAM_H */
23863# endif /* no _SC_PAGESIZE */
23864
23865#endif /* no HAVE_GETPAGESIZE */
23866
23867int
23868main ()
23869{
23870 char *data, *data2, *data3;
23871 int i, pagesize;
23872 int fd;
23873
23874 pagesize = getpagesize ();
23875
23876 /* First, make a file with some known garbage in it. */
23877 data = (char *) malloc (pagesize);
23878 if (!data)
23879 exit (1);
23880 for (i = 0; i < pagesize; ++i)
23881 *(data + i) = rand ();
23882 umask (0);
23883 fd = creat ("conftest.mmap", 0600);
23884 if (fd < 0)
23885 exit (1);
23886 if (write (fd, data, pagesize) != pagesize)
23887 exit (1);
23888 close (fd);
23889
23890 /* Mmap the file as read/write/shared and verify that we see the
23891 same garbage. */
23892 fd = open ("conftest.mmap", O_RDWR);
23893 if (fd < 0)
23894 exit (1);
23895 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23896 if (data2 == 0)
23897 exit (1);
23898 for (i = 0; i < pagesize; ++i)
23899 if (*(data + i) != *(data2 + i))
23900 exit (1);
23901
23902 /* Finally, make sure that changes to the mapped area
23903 percolate back to the file as seen by read(). */
23904 for (i = 0; i < pagesize; ++i)
23905 *(data2 + i) = *(data2 + i) + 1;
23906 data3 = (char *) malloc (pagesize);
23907 if (!data3)
23908 exit (1);
23909 if (read (fd, data3, pagesize) != pagesize)
23910 exit (1);
23911 for (i = 0; i < pagesize; ++i)
23912 if (*(data2 + i) != *(data3 + i))
23913 exit (1);
23914 close (fd);
23915 exit (0);
23916}
23917_ACEOF
23918if ac_fn_c_try_run "$LINENO"; then :
23919 magick_cv_func_mmap_fileio=yes
23920else
23921 magick_cv_func_mmap_fileio=no
23922fi
23923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23924 conftest.$ac_objext conftest.beam conftest.$ac_ext
23925fi
23926
23927fi
23928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23929$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23930if test $magick_cv_func_mmap_fileio = yes; then
23931
23932$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23933
23934fi
23935rm -f conftest.mmap
23936
cristy8b350f62009-11-15 23:12:43 +000023937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023938$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023939if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023940 $as_echo_n "(cached) " >&6
23941else
cristy8b350f62009-11-15 23:12:43 +000023942 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023943 ac_cv_func_closedir_void=yes
23944else
cristy8b350f62009-11-15 23:12:43 +000023945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023946/* end confdefs.h. */
23947$ac_includes_default
23948#include <$ac_header_dirent>
23949#ifndef __cplusplus
23950int closedir ();
23951#endif
23952
23953int
23954main ()
23955{
23956return closedir (opendir (".")) != 0;
23957 ;
23958 return 0;
23959}
23960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023961if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023962 ac_cv_func_closedir_void=no
23963else
cristy8b350f62009-11-15 23:12:43 +000023964 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023965fi
cristy8b350f62009-11-15 23:12:43 +000023966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23967 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023968fi
23969
cristy3ed852e2009-09-05 21:47:34 +000023970fi
cristy8b350f62009-11-15 23:12:43 +000023971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023972$as_echo "$ac_cv_func_closedir_void" >&6; }
23973if test $ac_cv_func_closedir_void = yes; then
23974
cristy8b350f62009-11-15 23:12:43 +000023975$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023976
23977fi
23978
cristycd4c5312009-11-22 01:19:08 +000023979
23980
23981
23982 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023983do :
23984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023985ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23986"
cristy98dddb52010-11-04 00:30:15 +000023987if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023988 cat >>confdefs.h <<_ACEOF
23989#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23990_ACEOF
23991
23992fi
23993
23994done
23995
cristycd4c5312009-11-22 01:19:08 +000023996
23997
23998
23999
24000
24001
24002
cristy3ed852e2009-09-05 21:47:34 +000024003for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024004do :
24005 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024006if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024007 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024008#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024009_ACEOF
24010
24011fi
24012done
24013
cristy8b350f62009-11-15 23:12:43 +000024014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024015$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024016if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024017 $as_echo_n "(cached) " >&6
24018else
cristy8b350f62009-11-15 23:12:43 +000024019 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024020 ac_cv_func_mmap_fixed_mapped=no
24021else
cristy8b350f62009-11-15 23:12:43 +000024022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024023/* end confdefs.h. */
24024$ac_includes_default
24025/* malloc might have been renamed as rpl_malloc. */
24026#undef malloc
24027
24028/* Thanks to Mike Haertel and Jim Avera for this test.
24029 Here is a matrix of mmap possibilities:
24030 mmap private not fixed
24031 mmap private fixed at somewhere currently unmapped
24032 mmap private fixed at somewhere already mapped
24033 mmap shared not fixed
24034 mmap shared fixed at somewhere currently unmapped
24035 mmap shared fixed at somewhere already mapped
24036 For private mappings, we should verify that changes cannot be read()
24037 back from the file, nor mmap's back from the file at a different
24038 address. (There have been systems where private was not correctly
24039 implemented like the infamous i386 svr4.0, and systems where the
24040 VM page cache was not coherent with the file system buffer cache
24041 like early versions of FreeBSD and possibly contemporary NetBSD.)
24042 For shared mappings, we should conversely verify that changes get
24043 propagated back to all the places they're supposed to be.
24044
24045 Grep wants private fixed already mapped.
24046 The main things grep needs to know about mmap are:
24047 * does it exist and is it safe to write into the mmap'd area
24048 * how to use it (BSD variants) */
24049
24050#include <fcntl.h>
24051#include <sys/mman.h>
24052
24053#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24054char *malloc ();
24055#endif
24056
24057/* This mess was copied from the GNU getpagesize.h. */
24058#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024059# ifdef _SC_PAGESIZE
24060# define getpagesize() sysconf(_SC_PAGESIZE)
24061# else /* no _SC_PAGESIZE */
24062# ifdef HAVE_SYS_PARAM_H
24063# include <sys/param.h>
24064# ifdef EXEC_PAGESIZE
24065# define getpagesize() EXEC_PAGESIZE
24066# else /* no EXEC_PAGESIZE */
24067# ifdef NBPG
24068# define getpagesize() NBPG * CLSIZE
24069# ifndef CLSIZE
24070# define CLSIZE 1
24071# endif /* no CLSIZE */
24072# else /* no NBPG */
24073# ifdef NBPC
24074# define getpagesize() NBPC
24075# else /* no NBPC */
24076# ifdef PAGESIZE
24077# define getpagesize() PAGESIZE
24078# endif /* PAGESIZE */
24079# endif /* no NBPC */
24080# endif /* no NBPG */
24081# endif /* no EXEC_PAGESIZE */
24082# else /* no HAVE_SYS_PARAM_H */
24083# define getpagesize() 8192 /* punt totally */
24084# endif /* no HAVE_SYS_PARAM_H */
24085# endif /* no _SC_PAGESIZE */
24086
24087#endif /* no HAVE_GETPAGESIZE */
24088
24089int
24090main ()
24091{
24092 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024093 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024094 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024095 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024096
24097 pagesize = getpagesize ();
24098
24099 /* First, make a file with some known garbage in it. */
24100 data = (char *) malloc (pagesize);
24101 if (!data)
24102 return 1;
24103 for (i = 0; i < pagesize; ++i)
24104 *(data + i) = rand ();
24105 umask (0);
24106 fd = creat ("conftest.mmap", 0600);
24107 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024108 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024109 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024110 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024111 close (fd);
24112
cristycd4c5312009-11-22 01:19:08 +000024113 /* Next, check that the tail of a page is zero-filled. File must have
24114 non-zero length, otherwise we risk SIGBUS for entire page. */
24115 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24116 if (fd2 < 0)
24117 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024118 cdata2 = "";
24119 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024120 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024121 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024122 if (data2 == MAP_FAILED)
24123 return 6;
24124 for (i = 0; i < pagesize; ++i)
24125 if (*(data2 + i))
24126 return 7;
24127 close (fd2);
24128 if (munmap (data2, pagesize))
24129 return 8;
24130
cristy3ed852e2009-09-05 21:47:34 +000024131 /* Next, try to mmap the file at a fixed address which already has
24132 something else allocated at it. If we can, also make sure that
24133 we see the same garbage. */
24134 fd = open ("conftest.mmap", O_RDWR);
24135 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024136 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024137 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24138 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024139 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024140 for (i = 0; i < pagesize; ++i)
24141 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024142 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024143
24144 /* Finally, make sure that changes to the mapped area do not
24145 percolate back to the file as seen by read(). (This is a bug on
24146 some variants of i386 svr4.0.) */
24147 for (i = 0; i < pagesize; ++i)
24148 *(data2 + i) = *(data2 + i) + 1;
24149 data3 = (char *) malloc (pagesize);
24150 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024151 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024152 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024153 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024154 for (i = 0; i < pagesize; ++i)
24155 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024156 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024157 close (fd);
24158 return 0;
24159}
24160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024161if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024162 ac_cv_func_mmap_fixed_mapped=yes
24163else
cristy8b350f62009-11-15 23:12:43 +000024164 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024165fi
cristy8b350f62009-11-15 23:12:43 +000024166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24167 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024168fi
24169
cristy3ed852e2009-09-05 21:47:34 +000024170fi
cristy8b350f62009-11-15 23:12:43 +000024171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024172$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24173if test $ac_cv_func_mmap_fixed_mapped = yes; then
24174
cristy8b350f62009-11-15 23:12:43 +000024175$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024176
24177fi
cristycd4c5312009-11-22 01:19:08 +000024178rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024179
cristy3ed852e2009-09-05 21:47:34 +000024180for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024181do :
24182 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024183if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024184 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024185#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024186_ACEOF
24187
24188fi
24189
24190done
24191
cristy3ed852e2009-09-05 21:47:34 +000024192for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024193do :
24194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24195ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024196if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024197 cat >>confdefs.h <<_ACEOF
24198#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24199_ACEOF
24200
24201fi
24202done
24203
24204if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024206$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024207if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024208 $as_echo_n "(cached) " >&6
24209else
cristy8b350f62009-11-15 23:12:43 +000024210 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024211 ac_cv_func_fork_works=cross
24212else
cristy8b350f62009-11-15 23:12:43 +000024213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024214/* end confdefs.h. */
24215$ac_includes_default
24216int
24217main ()
24218{
24219
24220 /* By Ruediger Kuhlmann. */
24221 return fork () < 0;
24222
24223 ;
24224 return 0;
24225}
24226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024227if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024228 ac_cv_func_fork_works=yes
24229else
cristy8b350f62009-11-15 23:12:43 +000024230 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024231fi
cristy8b350f62009-11-15 23:12:43 +000024232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24233 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024234fi
24235
cristy3ed852e2009-09-05 21:47:34 +000024236fi
cristy8b350f62009-11-15 23:12:43 +000024237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024238$as_echo "$ac_cv_func_fork_works" >&6; }
24239
24240else
24241 ac_cv_func_fork_works=$ac_cv_func_fork
24242fi
24243if test "x$ac_cv_func_fork_works" = xcross; then
24244 case $host in
24245 *-*-amigaos* | *-*-msdosdjgpp*)
24246 # Override, as these systems have only a dummy fork() stub
24247 ac_cv_func_fork_works=no
24248 ;;
24249 *)
24250 ac_cv_func_fork_works=yes
24251 ;;
24252 esac
cristy8b350f62009-11-15 23:12:43 +000024253 { $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 +000024254$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24255fi
24256ac_cv_func_vfork_works=$ac_cv_func_vfork
24257if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024259$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024260if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024261 $as_echo_n "(cached) " >&6
24262else
cristy8b350f62009-11-15 23:12:43 +000024263 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024264 ac_cv_func_vfork_works=cross
24265else
cristy8b350f62009-11-15 23:12:43 +000024266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024267/* end confdefs.h. */
24268/* Thanks to Paul Eggert for this test. */
24269$ac_includes_default
24270#include <sys/wait.h>
24271#ifdef HAVE_VFORK_H
24272# include <vfork.h>
24273#endif
24274/* On some sparc systems, changes by the child to local and incoming
24275 argument registers are propagated back to the parent. The compiler
24276 is told about this with #include <vfork.h>, but some compilers
24277 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24278 static variable whose address is put into a register that is
24279 clobbered by the vfork. */
24280static void
24281#ifdef __cplusplus
24282sparc_address_test (int arg)
24283# else
24284sparc_address_test (arg) int arg;
24285#endif
24286{
24287 static pid_t child;
24288 if (!child) {
24289 child = vfork ();
24290 if (child < 0) {
24291 perror ("vfork");
24292 _exit(2);
24293 }
24294 if (!child) {
24295 arg = getpid();
24296 write(-1, "", 0);
24297 _exit (arg);
24298 }
24299 }
24300}
24301
24302int
24303main ()
24304{
24305 pid_t parent = getpid ();
24306 pid_t child;
24307
24308 sparc_address_test (0);
24309
24310 child = vfork ();
24311
24312 if (child == 0) {
24313 /* Here is another test for sparc vfork register problems. This
24314 test uses lots of local variables, at least as many local
24315 variables as main has allocated so far including compiler
24316 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24317 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24318 reuse the register of parent for one of the local variables,
24319 since it will think that parent can't possibly be used any more
24320 in this routine. Assigning to the local variable will thus
24321 munge parent in the parent process. */
24322 pid_t
24323 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24324 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24325 /* Convince the compiler that p..p7 are live; otherwise, it might
24326 use the same hardware register for all 8 local variables. */
24327 if (p != p1 || p != p2 || p != p3 || p != p4
24328 || p != p5 || p != p6 || p != p7)
24329 _exit(1);
24330
24331 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24332 from child file descriptors. If the child closes a descriptor
24333 before it execs or exits, this munges the parent's descriptor
24334 as well. Test for this by closing stdout in the child. */
24335 _exit(close(fileno(stdout)) != 0);
24336 } else {
24337 int status;
24338 struct stat st;
24339
24340 while (wait(&status) != child)
24341 ;
24342 return (
24343 /* Was there some problem with vforking? */
24344 child < 0
24345
24346 /* Did the child fail? (This shouldn't happen.) */
24347 || status
24348
24349 /* Did the vfork/compiler bug occur? */
24350 || parent != getpid()
24351
24352 /* Did the file descriptor bug occur? */
24353 || fstat(fileno(stdout), &st) != 0
24354 );
24355 }
24356}
24357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024358if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024359 ac_cv_func_vfork_works=yes
24360else
cristy8b350f62009-11-15 23:12:43 +000024361 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024362fi
cristy8b350f62009-11-15 23:12:43 +000024363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24364 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024365fi
24366
cristy3ed852e2009-09-05 21:47:34 +000024367fi
cristy8b350f62009-11-15 23:12:43 +000024368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024369$as_echo "$ac_cv_func_vfork_works" >&6; }
24370
24371fi;
24372if test "x$ac_cv_func_fork_works" = xcross; then
24373 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024374 { $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 +000024375$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24376fi
24377
24378if test "x$ac_cv_func_vfork_works" = xyes; then
24379
cristy8b350f62009-11-15 23:12:43 +000024380$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024381
24382else
24383
cristy8b350f62009-11-15 23:12:43 +000024384$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024385
24386fi
24387if test "x$ac_cv_func_fork_works" = xyes; then
24388
cristy8b350f62009-11-15 23:12:43 +000024389$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024390
24391fi
24392
cristy8b350f62009-11-15 23:12:43 +000024393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024394$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024395if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024396 $as_echo_n "(cached) " >&6
24397else
cristy8b350f62009-11-15 23:12:43 +000024398 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024399 ac_cv_func_memcmp_working=no
24400else
cristy8b350f62009-11-15 23:12:43 +000024401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024402/* end confdefs.h. */
24403$ac_includes_default
24404int
24405main ()
24406{
24407
24408 /* Some versions of memcmp are not 8-bit clean. */
24409 char c0 = '\100', c1 = '\200', c2 = '\201';
24410 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24411 return 1;
24412
24413 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24414 or more and with at least one buffer not starting on a 4-byte boundary.
24415 William Lewis provided this test program. */
24416 {
24417 char foo[21];
24418 char bar[21];
24419 int i;
24420 for (i = 0; i < 4; i++)
24421 {
24422 char *a = foo + i;
24423 char *b = bar + i;
24424 strcpy (a, "--------01111111");
24425 strcpy (b, "--------10000000");
24426 if (memcmp (a, b, 16) >= 0)
24427 return 1;
24428 }
24429 return 0;
24430 }
24431
24432 ;
24433 return 0;
24434}
24435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024436if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024437 ac_cv_func_memcmp_working=yes
24438else
cristy8b350f62009-11-15 23:12:43 +000024439 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024440fi
cristy8b350f62009-11-15 23:12:43 +000024441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24442 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024443fi
24444
cristy3ed852e2009-09-05 21:47:34 +000024445fi
cristy8b350f62009-11-15 23:12:43 +000024446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024447$as_echo "$ac_cv_func_memcmp_working" >&6; }
24448test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24449 *" memcmp.$ac_objext "* ) ;;
24450 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24451 ;;
24452esac
24453
24454
cristy3ed852e2009-09-05 21:47:34 +000024455for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024456do :
24457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24458ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024459if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024460 cat >>confdefs.h <<_ACEOF
24461#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24462_ACEOF
24463
24464fi
24465
24466done
24467
cristy8b350f62009-11-15 23:12:43 +000024468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024469$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024470if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024471 $as_echo_n "(cached) " >&6
24472else
24473 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24474 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24475 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024477/* end confdefs.h. */
24478$ac_includes_default
24479#ifdef HAVE_SYS_SELECT_H
24480# include <sys/select.h>
24481#endif
24482#ifdef HAVE_SYS_SOCKET_H
24483# include <sys/socket.h>
24484#endif
24485
24486int
24487main ()
24488{
24489extern int select ($ac_arg1,
24490 $ac_arg234, $ac_arg234, $ac_arg234,
24491 $ac_arg5);
24492 ;
24493 return 0;
24494}
24495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024496if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024497 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024498fi
cristy3ed852e2009-09-05 21:47:34 +000024499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24500 done
24501 done
24502done
24503# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024504: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024505
24506fi
cristy8b350f62009-11-15 23:12:43 +000024507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024508$as_echo "$ac_cv_func_select_args" >&6; }
24509ac_save_IFS=$IFS; IFS=','
24510set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24511IFS=$ac_save_IFS
24512shift
24513
24514cat >>confdefs.h <<_ACEOF
24515#define SELECT_TYPE_ARG1 $1
24516_ACEOF
24517
24518
24519cat >>confdefs.h <<_ACEOF
24520#define SELECT_TYPE_ARG234 ($2)
24521_ACEOF
24522
24523
24524cat >>confdefs.h <<_ACEOF
24525#define SELECT_TYPE_ARG5 ($3)
24526_ACEOF
24527
24528rm -f conftest*
24529
cristyda16f162011-02-19 23:52:17 +000024530if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024531 $as_echo_n "(cached) " >&6
24532else
24533 ac_cv_func_setvbuf_reversed=no
24534fi
24535
24536
cristy8b350f62009-11-15 23:12:43 +000024537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024538$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024539if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024540 $as_echo_n "(cached) " >&6
24541else
cristy8b350f62009-11-15 23:12:43 +000024542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024543/* end confdefs.h. */
24544#include <sys/types.h>
24545#include <signal.h>
24546
24547int
24548main ()
24549{
24550return *(signal (0, 0)) (0) == 1;
24551 ;
24552 return 0;
24553}
24554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024555if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024556 ac_cv_type_signal=int
24557else
cristy8b350f62009-11-15 23:12:43 +000024558 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024559fi
cristy3ed852e2009-09-05 21:47:34 +000024560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24561fi
cristy8b350f62009-11-15 23:12:43 +000024562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024563$as_echo "$ac_cv_type_signal" >&6; }
24564
24565cat >>confdefs.h <<_ACEOF
24566#define RETSIGTYPE $ac_cv_type_signal
24567_ACEOF
24568
24569
cristy8b350f62009-11-15 23:12:43 +000024570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024571$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024572if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024573 $as_echo_n "(cached) " >&6
24574else
cristy8b350f62009-11-15 23:12:43 +000024575 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024576 ac_cv_func_strtod=no
24577else
cristy8b350f62009-11-15 23:12:43 +000024578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024579/* end confdefs.h. */
24580
24581$ac_includes_default
24582#ifndef strtod
24583double strtod ();
24584#endif
24585int
24586main()
24587{
24588 {
24589 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24590 char *string = " +69";
24591 char *term;
24592 double value;
24593 value = strtod (string, &term);
24594 if (value != 69 || term != (string + 4))
24595 return 1;
24596 }
24597
24598 {
24599 /* Under Solaris 2.4, strtod returns the wrong value for the
24600 terminating character under some conditions. */
24601 char *string = "NaN";
24602 char *term;
24603 strtod (string, &term);
24604 if (term != string && *(term - 1) == 0)
24605 return 1;
24606 }
24607 return 0;
24608}
24609
24610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024611if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024612 ac_cv_func_strtod=yes
24613else
cristy8b350f62009-11-15 23:12:43 +000024614 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024615fi
cristy8b350f62009-11-15 23:12:43 +000024616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24617 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024618fi
24619
cristy3ed852e2009-09-05 21:47:34 +000024620fi
cristy8b350f62009-11-15 23:12:43 +000024621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024622$as_echo "$ac_cv_func_strtod" >&6; }
24623if test $ac_cv_func_strtod = no; then
24624 case " $LIBOBJS " in
24625 *" strtod.$ac_objext "* ) ;;
24626 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24627 ;;
24628esac
24629
cristy8b350f62009-11-15 23:12:43 +000024630ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024631if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024632
cristy3ed852e2009-09-05 21:47:34 +000024633fi
24634
cristy3ed852e2009-09-05 21:47:34 +000024635if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024637$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024638if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024639 $as_echo_n "(cached) " >&6
24640else
24641 ac_check_lib_save_LIBS=$LIBS
24642LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024644/* end confdefs.h. */
24645
24646/* Override any GCC internal prototype to avoid an error.
24647 Use char because int might match the return type of a GCC
24648 builtin and then its argument prototype would still apply. */
24649#ifdef __cplusplus
24650extern "C"
24651#endif
24652char pow ();
24653int
24654main ()
24655{
24656return pow ();
24657 ;
24658 return 0;
24659}
24660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024662 ac_cv_lib_m_pow=yes
24663else
cristy8b350f62009-11-15 23:12:43 +000024664 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024665fi
cristy8b350f62009-11-15 23:12:43 +000024666rm -f core conftest.err conftest.$ac_objext \
24667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024668LIBS=$ac_check_lib_save_LIBS
24669fi
cristy8b350f62009-11-15 23:12:43 +000024670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024671$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024672if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024673 POW_LIB=-lm
24674else
cristy8b350f62009-11-15 23:12:43 +000024675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024676$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24677fi
24678
24679fi
24680
24681fi
24682
cristy7d4a1d62011-10-13 15:54:12 +000024683ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24684if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24685 ac_have_decl=1
24686else
24687 ac_have_decl=0
24688fi
24689
24690cat >>confdefs.h <<_ACEOF
24691#define HAVE_DECL_STRERROR_R $ac_have_decl
24692_ACEOF
24693
24694for ac_func in strerror_r
24695do :
24696 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24697if test "x$ac_cv_func_strerror_r" = xyes; then :
24698 cat >>confdefs.h <<_ACEOF
24699#define HAVE_STRERROR_R 1
24700_ACEOF
24701
24702fi
24703done
24704
24705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24706$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24707if ${ac_cv_func_strerror_r_char_p+:} false; then :
24708 $as_echo_n "(cached) " >&6
24709else
24710
24711 ac_cv_func_strerror_r_char_p=no
24712 if test $ac_cv_have_decl_strerror_r = yes; then
24713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24714/* end confdefs.h. */
24715$ac_includes_default
24716int
24717main ()
24718{
24719
24720 char buf[100];
24721 char x = *strerror_r (0, buf, sizeof buf);
24722 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024723 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024724
24725 ;
24726 return 0;
24727}
24728_ACEOF
24729if ac_fn_c_try_compile "$LINENO"; then :
24730 ac_cv_func_strerror_r_char_p=yes
24731fi
24732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24733 else
24734 # strerror_r is not declared. Choose between
24735 # systems that have relatively inaccessible declarations for the
24736 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24737 # former has a strerror_r that returns char*, while the latter
24738 # has a strerror_r that returns `int'.
24739 # This test should segfault on the DEC system.
24740 if test "$cross_compiling" = yes; then :
24741 :
24742else
24743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24744/* end confdefs.h. */
24745$ac_includes_default
24746 extern char *strerror_r ();
24747int
24748main ()
24749{
24750char buf[100];
24751 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024752 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024753 ;
24754 return 0;
24755}
24756_ACEOF
24757if ac_fn_c_try_run "$LINENO"; then :
24758 ac_cv_func_strerror_r_char_p=yes
24759fi
24760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24761 conftest.$ac_objext conftest.beam conftest.$ac_ext
24762fi
24763
24764 fi
24765
24766fi
24767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24768$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24769if test $ac_cv_func_strerror_r_char_p = yes; then
24770
24771$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24772
24773fi
24774
cristy3ed852e2009-09-05 21:47:34 +000024775for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024776do :
24777 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024778if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024779 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024780#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024781_ACEOF
24782
cristy8b350f62009-11-15 23:12:43 +000024783ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024784if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024785
cristy8b350f62009-11-15 23:12:43 +000024786$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024787
24788fi
24789
24790fi
24791done
24792
24793
24794
cristy161b9262010-03-20 19:34:32 +000024795#
24796# Find math library
24797#
24798MATH_LIBS=''
24799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24800$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024801if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024802 $as_echo_n "(cached) " >&6
24803else
24804 ac_check_lib_save_LIBS=$LIBS
24805LIBS="-lm $LIBS"
24806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24807/* end confdefs.h. */
24808
24809/* Override any GCC internal prototype to avoid an error.
24810 Use char because int might match the return type of a GCC
24811 builtin and then its argument prototype would still apply. */
24812#ifdef __cplusplus
24813extern "C"
24814#endif
24815char sqrt ();
24816int
24817main ()
24818{
24819return sqrt ();
24820 ;
24821 return 0;
24822}
24823_ACEOF
24824if ac_fn_c_try_link "$LINENO"; then :
24825 ac_cv_lib_m_sqrt=yes
24826else
24827 ac_cv_lib_m_sqrt=no
24828fi
24829rm -f core conftest.err conftest.$ac_objext \
24830 conftest$ac_exeext conftest.$ac_ext
24831LIBS=$ac_check_lib_save_LIBS
24832fi
24833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24834$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024835if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024836 MATH_LIBS="-lm"
24837fi
24838
24839LIBS="$MATH_LIBS $LIBS"
24840
24841
cristy7d4a1d62011-10-13 15:54:12 +000024842for 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 +000024843do :
24844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24845ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024846if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024847 cat >>confdefs.h <<_ACEOF
24848#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24849_ACEOF
24850
24851fi
24852done
24853
24854
cristye43a45e2009-09-28 14:49:00 +000024855#
24856# Check for clock_gettime().
24857#
cristy8b350f62009-11-15 23:12:43 +000024858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024859$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024860if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024861 $as_echo_n "(cached) " >&6
24862else
24863 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024865/* end confdefs.h. */
24866
24867/* Override any GCC internal prototype to avoid an error.
24868 Use char because int might match the return type of a GCC
24869 builtin and then its argument prototype would still apply. */
24870#ifdef __cplusplus
24871extern "C"
24872#endif
24873char clock_gettime ();
24874int
24875main ()
24876{
24877return clock_gettime ();
24878 ;
24879 return 0;
24880}
24881_ACEOF
24882for ac_lib in '' rt; do
24883 if test -z "$ac_lib"; then
24884 ac_res="none required"
24885 else
24886 ac_res=-l$ac_lib
24887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24888 fi
cristy8b350f62009-11-15 23:12:43 +000024889 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024890 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024891fi
cristy8b350f62009-11-15 23:12:43 +000024892rm -f core conftest.err conftest.$ac_objext \
24893 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024894 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024895 break
24896fi
24897done
cristyda16f162011-02-19 23:52:17 +000024898if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024899
cristye43a45e2009-09-28 14:49:00 +000024900else
24901 ac_cv_search_clock_gettime=no
24902fi
24903rm conftest.$ac_ext
24904LIBS=$ac_func_search_save_LIBS
24905fi
cristy8b350f62009-11-15 23:12:43 +000024906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024907$as_echo "$ac_cv_search_clock_gettime" >&6; }
24908ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024909if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24911
24912
cristy8b350f62009-11-15 23:12:43 +000024913$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024914
cristy8b350f62009-11-15 23:12:43 +000024915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024916$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024918/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024919
24920 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024921int
24922main ()
24923{
24924clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024925 ;
24926 return 0;
24927}
24928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024929if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024930
cristy09b53e12011-10-14 12:47:22 +000024931 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24932$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024933
cristy8b350f62009-11-15 23:12:43 +000024934$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024935
24936
24937else
cristy09b53e12011-10-14 12:47:22 +000024938 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24939$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024940
24941fi
cristye43a45e2009-09-28 14:49:00 +000024942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24943
24944else
24945
cristy8b350f62009-11-15 23:12:43 +000024946 for ac_func in gettimeofday ftime
24947do :
24948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24949ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024950if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024951 cat >>confdefs.h <<_ACEOF
24952#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24953_ACEOF
24954 break
24955fi
24956done
24957
24958
24959
24960fi
24961
24962
cristy3ed852e2009-09-05 21:47:34 +000024963########
24964#
24965# Check for function prototypes
24966#
24967########
24968
cristy8b350f62009-11-15 23:12:43 +000024969ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024970#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024971"
cristyda16f162011-02-19 23:52:17 +000024972if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024973 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024974else
cristy8b350f62009-11-15 23:12:43 +000024975 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024976fi
24977
cristy3ed852e2009-09-05 21:47:34 +000024978cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024979#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024981ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024982#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024983"
cristyda16f162011-02-19 23:52:17 +000024984if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024985 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024986else
cristy8b350f62009-11-15 23:12:43 +000024987 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024988fi
24989
cristy3ed852e2009-09-05 21:47:34 +000024990cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024991#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024992_ACEOF
24993
24994
cristy8b350f62009-11-15 23:12:43 +000024995ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024996#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024997"
cristyda16f162011-02-19 23:52:17 +000024998if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024999 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025000else
cristy8b350f62009-11-15 23:12:43 +000025001 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025002fi
25003
cristy3ed852e2009-09-05 21:47:34 +000025004cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025005#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025006_ACEOF
25007
25008
cristy8b350f62009-11-15 23:12:43 +000025009ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025010#include <stdio.h>
25011#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025012"
cristyda16f162011-02-19 23:52:17 +000025013if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025014 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025015else
cristy8b350f62009-11-15 23:12:43 +000025016 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025017fi
25018
cristy3ed852e2009-09-05 21:47:34 +000025019cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025020#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025021_ACEOF
25022
25023
cristy3ed852e2009-09-05 21:47:34 +000025024########
25025#
25026# C++ Support Tests (For Magick++)
25027#
25028########
25029have_magick_plus_plus='no'
25030if test "$with_magick_plus_plus" = 'yes'; then
25031 OLIBS="$LIBS"
25032 LIBS=''
25033 ac_ext=cpp
25034ac_cpp='$CXXCPP $CPPFLAGS'
25035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25038
25039
25040 # Full set of headers used...
25041 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25042 # functional iomanip iosfwd iostream iterator list string strstream utility
25043 ac_ext=cpp
25044ac_cpp='$CXXCPP $CPPFLAGS'
25045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25048
25049 ac_ext=cpp
25050ac_cpp='$CXXCPP $CPPFLAGS'
25051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25054if test -z "$CXX"; then
25055 if test -n "$CCC"; then
25056 CXX=$CCC
25057 else
25058 if test -n "$ac_tool_prefix"; then
25059 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25060 do
25061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025064$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025065if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025066 $as_echo_n "(cached) " >&6
25067else
25068 if test -n "$CXX"; then
25069 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25070else
25071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25072for as_dir in $PATH
25073do
25074 IFS=$as_save_IFS
25075 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025076 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25078 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025080 break 2
25081 fi
25082done
cristy8b350f62009-11-15 23:12:43 +000025083 done
cristy3ed852e2009-09-05 21:47:34 +000025084IFS=$as_save_IFS
25085
25086fi
25087fi
25088CXX=$ac_cv_prog_CXX
25089if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025091$as_echo "$CXX" >&6; }
25092else
cristy8b350f62009-11-15 23:12:43 +000025093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025094$as_echo "no" >&6; }
25095fi
25096
25097
25098 test -n "$CXX" && break
25099 done
25100fi
25101if test -z "$CXX"; then
25102 ac_ct_CXX=$CXX
25103 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25104do
25105 # Extract the first word of "$ac_prog", so it can be a program name with args.
25106set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025108$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025109if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025110 $as_echo_n "(cached) " >&6
25111else
25112 if test -n "$ac_ct_CXX"; then
25113 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25114else
25115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25116for as_dir in $PATH
25117do
25118 IFS=$as_save_IFS
25119 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025120 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25122 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025124 break 2
25125 fi
25126done
cristy8b350f62009-11-15 23:12:43 +000025127 done
cristy3ed852e2009-09-05 21:47:34 +000025128IFS=$as_save_IFS
25129
25130fi
25131fi
25132ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25133if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025135$as_echo "$ac_ct_CXX" >&6; }
25136else
cristy8b350f62009-11-15 23:12:43 +000025137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025138$as_echo "no" >&6; }
25139fi
25140
25141
25142 test -n "$ac_ct_CXX" && break
25143done
25144
25145 if test "x$ac_ct_CXX" = x; then
25146 CXX="g++"
25147 else
25148 case $cross_compiling:$ac_tool_warned in
25149yes:)
cristy8b350f62009-11-15 23:12:43 +000025150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25152ac_tool_warned=yes ;;
25153esac
25154 CXX=$ac_ct_CXX
25155 fi
25156fi
25157
25158 fi
25159fi
25160# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025161$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025162set X $ac_compile
25163ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025164for ac_option in --version -v -V -qversion; do
25165 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025166case "(($ac_try" in
25167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168 *) ac_try_echo=$ac_try;;
25169esac
cristy8b350f62009-11-15 23:12:43 +000025170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25171$as_echo "$ac_try_echo"; } >&5
25172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025173 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025174 if test -s conftest.err; then
25175 sed '10a\
25176... rest of stderr output deleted ...
25177 10q' conftest.err >conftest.er1
25178 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025179 fi
cristycd4c5312009-11-22 01:19:08 +000025180 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }
25183done
cristy3ed852e2009-09-05 21:47:34 +000025184
cristy8b350f62009-11-15 23:12:43 +000025185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025186$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025187if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025188 $as_echo_n "(cached) " >&6
25189else
cristy8b350f62009-11-15 23:12:43 +000025190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025191/* end confdefs.h. */
25192
25193int
25194main ()
25195{
25196#ifndef __GNUC__
25197 choke me
25198#endif
25199
25200 ;
25201 return 0;
25202}
25203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025204if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025205 ac_compiler_gnu=yes
25206else
cristy8b350f62009-11-15 23:12:43 +000025207 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025208fi
cristy3ed852e2009-09-05 21:47:34 +000025209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25210ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25211
25212fi
cristy8b350f62009-11-15 23:12:43 +000025213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025214$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25215if test $ac_compiler_gnu = yes; then
25216 GXX=yes
25217else
25218 GXX=
25219fi
25220ac_test_CXXFLAGS=${CXXFLAGS+set}
25221ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025223$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025224if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025225 $as_echo_n "(cached) " >&6
25226else
25227 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25228 ac_cxx_werror_flag=yes
25229 ac_cv_prog_cxx_g=no
25230 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025232/* end confdefs.h. */
25233
25234int
25235main ()
25236{
25237
25238 ;
25239 return 0;
25240}
25241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025242if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025243 ac_cv_prog_cxx_g=yes
25244else
cristy8b350f62009-11-15 23:12:43 +000025245 CXXFLAGS=""
25246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025247/* end confdefs.h. */
25248
25249int
25250main ()
25251{
25252
25253 ;
25254 return 0;
25255}
25256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025257if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025258
cristy8b350f62009-11-15 23:12:43 +000025259else
25260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025261 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025263/* end confdefs.h. */
25264
25265int
25266main ()
25267{
25268
25269 ;
25270 return 0;
25271}
25272_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025273if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025274 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025275fi
cristy3ed852e2009-09-05 21:47:34 +000025276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25277fi
cristy3ed852e2009-09-05 21:47:34 +000025278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25279fi
cristy3ed852e2009-09-05 21:47:34 +000025280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25281 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25282fi
cristy8b350f62009-11-15 23:12:43 +000025283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025284$as_echo "$ac_cv_prog_cxx_g" >&6; }
25285if test "$ac_test_CXXFLAGS" = set; then
25286 CXXFLAGS=$ac_save_CXXFLAGS
25287elif test $ac_cv_prog_cxx_g = yes; then
25288 if test "$GXX" = yes; then
25289 CXXFLAGS="-g -O2"
25290 else
25291 CXXFLAGS="-g"
25292 fi
25293else
25294 if test "$GXX" = yes; then
25295 CXXFLAGS="-O2"
25296 else
25297 CXXFLAGS=
25298 fi
25299fi
25300ac_ext=cpp
25301ac_cpp='$CXXCPP $CPPFLAGS'
25302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25305
cristy73bd4a52010-10-05 11:24:23 +000025306depcc="$CXX" am_compiler_list=
25307
25308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25309$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025310if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025311 $as_echo_n "(cached) " >&6
25312else
25313 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25314 # We make a subdir and do the tests there. Otherwise we can end up
25315 # making bogus files that we don't know about and never remove. For
25316 # instance it was reported that on HP-UX the gcc test will end up
25317 # making a dummy file named `D' -- because `-MD' means `put the output
25318 # in D'.
25319 mkdir conftest.dir
25320 # Copy depcomp to subdir because otherwise we won't find it if we're
25321 # using a relative directory.
25322 cp "$am_depcomp" conftest.dir
25323 cd conftest.dir
25324 # We will build objects and dependencies in a subdirectory because
25325 # it helps to detect inapplicable dependency modes. For instance
25326 # both Tru64's cc and ICC support -MD to output dependencies as a
25327 # side effect of compilation, but ICC will put the dependencies in
25328 # the current directory while Tru64 will put them in the object
25329 # directory.
25330 mkdir sub
25331
25332 am_cv_CXX_dependencies_compiler_type=none
25333 if test "$am_compiler_list" = ""; then
25334 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25335 fi
25336 am__universal=false
25337 case " $depcc " in #(
25338 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25339 esac
25340
25341 for depmode in $am_compiler_list; do
25342 # Setup a source with many dependencies, because some compilers
25343 # like to wrap large dependency lists on column 80 (with \), and
25344 # we should not choose a depcomp mode which is confused by this.
25345 #
25346 # We need to recreate these files for each test, as the compiler may
25347 # overwrite some of them when testing with obscure command lines.
25348 # This happens at least with the AIX C compiler.
25349 : > sub/conftest.c
25350 for i in 1 2 3 4 5 6; do
25351 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25352 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25353 # Solaris 8's {/usr,}/bin/sh.
25354 touch sub/conftst$i.h
25355 done
25356 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25357
25358 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25359 # mode. It turns out that the SunPro C++ compiler does not properly
25360 # handle `-M -o', and we need to detect this. Also, some Intel
25361 # versions had trouble with output in subdirs
25362 am__obj=sub/conftest.${OBJEXT-o}
25363 am__minus_obj="-o $am__obj"
25364 case $depmode in
25365 gcc)
25366 # This depmode causes a compiler race in universal mode.
25367 test "$am__universal" = false || continue
25368 ;;
25369 nosideeffect)
25370 # after this tag, mechanisms are not by side-effect, so they'll
25371 # only be used when explicitly requested
25372 if test "x$enable_dependency_tracking" = xyes; then
25373 continue
25374 else
25375 break
25376 fi
25377 ;;
25378 msvisualcpp | msvcmsys)
25379 # This compiler won't grok `-c -o', but also, the minuso test has
25380 # not run yet. These depmodes are late enough in the game, and
25381 # so weak that their functioning should not be impacted.
25382 am__obj=conftest.${OBJEXT-o}
25383 am__minus_obj=
25384 ;;
25385 none) break ;;
25386 esac
25387 if depmode=$depmode \
25388 source=sub/conftest.c object=$am__obj \
25389 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25390 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25391 >/dev/null 2>conftest.err &&
25392 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25393 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25394 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25395 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25396 # icc doesn't choke on unknown options, it will just issue warnings
25397 # or remarks (even with -Werror). So we grep stderr for any message
25398 # that says an option was ignored or not supported.
25399 # When given -MP, icc 7.0 and 7.1 complain thusly:
25400 # icc: Command line warning: ignoring option '-M'; no argument required
25401 # The diagnosis changed in icc 8.0:
25402 # icc: Command line remark: option '-MP' not supported
25403 if (grep 'ignoring option' conftest.err ||
25404 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25405 am_cv_CXX_dependencies_compiler_type=$depmode
25406 break
25407 fi
25408 fi
25409 done
25410
25411 cd ..
25412 rm -rf conftest.dir
25413else
25414 am_cv_CXX_dependencies_compiler_type=none
25415fi
25416
25417fi
25418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25419$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25420CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25421
25422 if
25423 test "x$enable_dependency_tracking" != xno \
25424 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25425 am__fastdepCXX_TRUE=
25426 am__fastdepCXX_FALSE='#'
25427else
25428 am__fastdepCXX_TRUE='#'
25429 am__fastdepCXX_FALSE=
25430fi
25431
25432
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25434$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025435if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025436 $as_echo_n "(cached) " >&6
25437else
25438
25439 ac_ext=cpp
25440ac_cpp='$CXXCPP $CPPFLAGS'
25441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25444
25445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25446/* end confdefs.h. */
25447
25448int f(int x){return 1;}
25449int f(char x){return 1;}
25450int f(bool x){return 1;}
25451
25452int
25453main ()
25454{
25455bool b = true; return f(b);
25456 ;
25457 return 0;
25458}
25459_ACEOF
25460if ac_fn_cxx_try_compile "$LINENO"; then :
25461 ax_cv_cxx_bool=yes
25462else
25463 ax_cv_cxx_bool=no
25464fi
25465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25466 ac_ext=cpp
25467ac_cpp='$CXXCPP $CPPFLAGS'
25468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25471
25472
25473fi
25474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25475$as_echo "$ax_cv_cxx_bool" >&6; }
25476if test "$ax_cv_cxx_bool" = yes; then
25477
25478$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25479
25480fi
25481
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25483$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025484if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025485 $as_echo_n "(cached) " >&6
25486else
25487
25488 ac_ext=cpp
25489ac_cpp='$CXXCPP $CPPFLAGS'
25490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25493
25494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25495/* end confdefs.h. */
25496namespace Outer { namespace Inner { int i = 0; }}
25497int
25498main ()
25499{
25500using namespace Outer::Inner; return i;
25501 ;
25502 return 0;
25503}
25504_ACEOF
25505if ac_fn_cxx_try_compile "$LINENO"; then :
25506 ax_cv_cxx_namespaces=yes
25507else
25508 ax_cv_cxx_namespaces=no
25509fi
25510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25511 ac_ext=cpp
25512ac_cpp='$CXXCPP $CPPFLAGS'
25513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25516
25517
25518fi
25519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25520$as_echo "$ax_cv_cxx_namespaces" >&6; }
25521if test "$ax_cv_cxx_namespaces" = yes; then
25522
25523$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25524
25525fi
25526
25527
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25529$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025530if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025531 $as_echo_n "(cached) " >&6
25532else
25533
25534 ac_ext=cpp
25535ac_cpp='$CXXCPP $CPPFLAGS'
25536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25539
25540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541/* end confdefs.h. */
25542#include <iostream>
25543 std::istream& is = std::cin;
25544int
25545main ()
25546{
25547
25548 ;
25549 return 0;
25550}
25551_ACEOF
25552if ac_fn_cxx_try_compile "$LINENO"; then :
25553 ax_cv_cxx_have_std_namespace=yes
25554else
25555 ax_cv_cxx_have_std_namespace=no
25556fi
25557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25558 ac_ext=cpp
25559ac_cpp='$CXXCPP $CPPFLAGS'
25560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25563
25564
25565fi
25566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25567$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25568 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25569
25570$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25571
25572 fi
25573
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25575$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025576if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025577 $as_echo_n "(cached) " >&6
25578else
25579
25580
25581 ac_ext=cpp
25582ac_cpp='$CXXCPP $CPPFLAGS'
25583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25586
25587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25588/* end confdefs.h. */
25589#include <iostream>
25590#include <map>
25591#include <iomanip>
25592#include <cmath>
25593#ifdef HAVE_NAMESPACES
25594using namespace std;
25595#endif
25596int
25597main ()
25598{
25599return 0;
25600 ;
25601 return 0;
25602}
25603_ACEOF
25604if ac_fn_cxx_try_compile "$LINENO"; then :
25605 ac_cv_cxx_have_std_libs=yes
25606else
25607 ac_cv_cxx_have_std_libs=no
25608fi
25609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25610 ac_ext=cpp
25611ac_cpp='$CXXCPP $CPPFLAGS'
25612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25615
25616
25617fi
25618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25619$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25620if test "$ac_cv_cxx_have_std_libs" = yes; then
25621
25622$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25623
25624fi
25625
cristy3ed852e2009-09-05 21:47:34 +000025626
25627 OPENMP_CXXFLAGS=
25628 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025629if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025630 enableval=$enable_openmp;
25631fi
25632
25633 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25635$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025636if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025637 $as_echo_n "(cached) " >&6
25638else
cristy8b350f62009-11-15 23:12:43 +000025639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25640/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025641
25642#ifndef _OPENMP
25643 choke me
25644#endif
25645#include <omp.h>
25646int main () { return omp_get_num_threads (); }
25647
25648_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025649if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025650 ac_cv_prog_cxx_openmp='none needed'
25651else
cristy8b350f62009-11-15 23:12:43 +000025652 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025653 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25654 ac_save_CXXFLAGS=$CXXFLAGS
25655 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25657/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025658
25659#ifndef _OPENMP
25660 choke me
25661#endif
25662#include <omp.h>
25663int main () { return omp_get_num_threads (); }
25664
25665_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025666if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025667 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025668fi
cristy8b350f62009-11-15 23:12:43 +000025669rm -f core conftest.err conftest.$ac_objext \
25670 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025671 CXXFLAGS=$ac_save_CXXFLAGS
25672 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25673 break
25674 fi
25675 done
25676fi
cristy8b350f62009-11-15 23:12:43 +000025677rm -f core conftest.err conftest.$ac_objext \
25678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025679fi
cristy8b350f62009-11-15 23:12:43 +000025680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025681$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25682 case $ac_cv_prog_cxx_openmp in #(
25683 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025684 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025685 *)
cristy8b350f62009-11-15 23:12:43 +000025686 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025687 esac
25688 fi
25689
25690
25691 ac_ext=c
25692ac_cpp='$CPP $CPPFLAGS'
25693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25695ac_compiler_gnu=$ac_cv_c_compiler_gnu
25696
25697
cristy8b350f62009-11-15 23:12:43 +000025698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025699$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25700 if \
cristy964cb7f2010-04-25 23:18:00 +000025701 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025702 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025703 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025704 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025705 have_magick_plus_plus='yes'
25706 else
25707 have_magick_plus_plus='no (failed tests)'
25708 fi
cristy09b53e12011-10-14 12:47:22 +000025709 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25710$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025711 LIBS="$OLIBS"
25712fi
cristy73bd4a52010-10-05 11:24:23 +000025713 if test "$have_magick_plus_plus" = 'yes'; then
25714 WITH_MAGICK_PLUS_PLUS_TRUE=
25715 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25716else
25717 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25718 WITH_MAGICK_PLUS_PLUS_FALSE=
25719fi
25720
cristy3ed852e2009-09-05 21:47:34 +000025721
25722# Only check for delegate libraries in subdirectories if requested.
25723if test "$enable_delegate_build" != 'no'; then
25724 # Check for delegate sub-directories and add -I & -L options as required.
25725 # This presumes that delegates are installed as detailed in the ImageMagick
25726 # README. If delegates are installed in a standard location where the
25727 # compiler will automatically find them then these options should not be
25728 # required.
25729
25730 #
25731 # Most delegates have includes in the same directory as the library, but not all...
25732 #
25733 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025734 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 +000025735 if test -d "$builddir/$dir"; then
25736 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25737 else
25738 if test -d "$srcdirfull/$dir"; then
25739 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25740 fi
25741 fi
25742 done
25743
25744 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025745 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 +000025746 if test -d "$builddir/$dir/.libs"; then
25747 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25748 else
25749 if test -d "$srcdirfull/$dir/.libs"; then
25750 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25751 fi
25752 fi
25753 if test -d "$builddir/$dir"; then
25754 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25755 else
25756 if test -d "$srcdirfull/$dir"; then
25757 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25758 fi
25759 fi
25760 done
25761fi
25762
25763# Assume that delegate headers reside under same directory as ImageMagick
25764# installation prefix.
25765MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25766
25767#
25768# Find the X11 RGB database
25769#
cristy8b350f62009-11-15 23:12:43 +000025770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025771$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025772if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025773 $as_echo_n "(cached) " >&6
25774else
25775 # Look for the header file in a standard set of common directories.
25776# Check X11 before X11Rn because it is often a symlink to the current release.
25777 for ac_dir in \
25778 /lib/usr/lib/X11 \
25779 /usr/X11/lib \
25780 /usr/X11R4/lib \
25781 /usr/X11R5/lib \
25782 /usr/X11R6/lib \
25783 /usr/X11R7/lib \
25784 /usr/X386/lib \
25785 /usr/XFree86/lib/X11 \
25786 /usr/athena/lib \
25787 /usr/lib \
25788 /usr/lib/X11 \
25789 /usr/lib/X11R4 \
25790 /usr/lib/X11R5 \
25791 /usr/lib/X11R6 \
25792 /usr/lib/X11R7 \
25793 /usr/local/X11/lib \
25794 /usr/local/X11R4/lib \
25795 /usr/local/X11R5/lib \
25796 /usr/local/X11R6/lib \
25797 /usr/local/lib \
25798 /usr/local/lib/X11 \
25799 /usr/local/lib/X11R4 \
25800 /usr/local/lib/X11R5 \
25801 /usr/local/lib/X11R6 \
25802 /usr/local/lib/X11R7 \
25803 /usr/local/x11r5/lib \
25804 /usr/lpp/Xamples/lib \
25805 /usr/openwin/lib \
25806 /usr/openwin/share/lib \
25807 /usr/unsupported/lib \
25808 /usr/x386/lib \
25809 ; do
25810 if test -f "$ac_dir/X11/rgb.txt"; then
25811 im_cv_x_configure="$ac_dir/X11/"
25812 break
25813 elif test -f "$ac_dir/rgb.txt"; then
25814 im_cv_x_configure="$ac_dir/"
25815 break
25816 fi
25817
25818 done
25819fi
cristy8b350f62009-11-15 23:12:43 +000025820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025821$as_echo "$im_cv_x_configure" >&6; }
25822X11_CONFIGURE_PATH="$im_cv_x_configure"
25823case "${build_os}" in
25824 mingw* )
25825 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25826 ;;
25827esac
25828
25829cat >>confdefs.h <<_ACEOF
25830#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25831_ACEOF
25832
25833
25834#
25835# Find OpenMP library
25836#
25837GOMP_LIBS=''
25838if test "$enable_openmp" != 'no'; then
25839 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025841$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025842if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025843 $as_echo_n "(cached) " >&6
25844else
25845 ac_check_lib_save_LIBS=$LIBS
25846LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025848/* end confdefs.h. */
25849
25850/* Override any GCC internal prototype to avoid an error.
25851 Use char because int might match the return type of a GCC
25852 builtin and then its argument prototype would still apply. */
25853#ifdef __cplusplus
25854extern "C"
25855#endif
25856char GOMP_parallel_start ();
25857int
25858main ()
25859{
25860return GOMP_parallel_start ();
25861 ;
25862 return 0;
25863}
25864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025866 ac_cv_lib_gomp_GOMP_parallel_start=yes
25867else
cristy8b350f62009-11-15 23:12:43 +000025868 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025869fi
cristy8b350f62009-11-15 23:12:43 +000025870rm -f core conftest.err conftest.$ac_objext \
25871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025872LIBS=$ac_check_lib_save_LIBS
25873fi
cristy8b350f62009-11-15 23:12:43 +000025874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025875$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025876if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025877 GOMP_LIBS="-lgomp"
25878fi
25879 # gcc
25880 else
cristy8b350f62009-11-15 23:12:43 +000025881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025883if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025884 $as_echo_n "(cached) " >&6
25885else
25886 ac_check_lib_save_LIBS=$LIBS
25887LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025889/* end confdefs.h. */
25890
25891/* Override any GCC internal prototype to avoid an error.
25892 Use char because int might match the return type of a GCC
25893 builtin and then its argument prototype would still apply. */
25894#ifdef __cplusplus
25895extern "C"
25896#endif
25897char sunw_mp_register_warn ();
25898int
25899main ()
25900{
25901return sunw_mp_register_warn ();
25902 ;
25903 return 0;
25904}
25905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025907 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25908else
cristy8b350f62009-11-15 23:12:43 +000025909 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025910fi
cristy8b350f62009-11-15 23:12:43 +000025911rm -f core conftest.err conftest.$ac_objext \
25912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025913LIBS=$ac_check_lib_save_LIBS
25914fi
cristy8b350f62009-11-15 23:12:43 +000025915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025916$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025917if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025918 GOMP_LIBS="-lmtsk"
25919fi
25920 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025922$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025923if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025924 $as_echo_n "(cached) " >&6
25925else
25926 ac_check_lib_save_LIBS=$LIBS
25927LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025929/* end confdefs.h. */
25930
25931/* Override any GCC internal prototype to avoid an error.
25932 Use char because int might match the return type of a GCC
25933 builtin and then its argument prototype would still apply. */
25934#ifdef __cplusplus
25935extern "C"
25936#endif
25937char _xlsmpFlush ();
25938int
25939main ()
25940{
25941return _xlsmpFlush ();
25942 ;
25943 return 0;
25944}
25945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025946if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025947 ac_cv_lib_xlsmp__xlsmpFlush=yes
25948else
cristy8b350f62009-11-15 23:12:43 +000025949 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025950fi
cristy8b350f62009-11-15 23:12:43 +000025951rm -f core conftest.err conftest.$ac_objext \
25952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025953LIBS=$ac_check_lib_save_LIBS
25954fi
cristy8b350f62009-11-15 23:12:43 +000025955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025956$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025957if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025958 GOMP_LIBS="-lxlsmp"
25959fi
25960 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025962$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025963if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025964 $as_echo_n "(cached) " >&6
25965else
25966 ac_check_lib_save_LIBS=$LIBS
25967LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025969/* end confdefs.h. */
25970
25971/* Override any GCC internal prototype to avoid an error.
25972 Use char because int might match the return type of a GCC
25973 builtin and then its argument prototype would still apply. */
25974#ifdef __cplusplus
25975extern "C"
25976#endif
25977char mp_destroy ();
25978int
25979main ()
25980{
25981return mp_destroy ();
25982 ;
25983 return 0;
25984}
25985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025986if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 ac_cv_lib_mp_mp_destroy=yes
25988else
cristy8b350f62009-11-15 23:12:43 +000025989 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025990fi
cristy8b350f62009-11-15 23:12:43 +000025991rm -f core conftest.err conftest.$ac_objext \
25992 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025993LIBS=$ac_check_lib_save_LIBS
25994fi
cristy8b350f62009-11-15 23:12:43 +000025995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025996$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025997if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025998 GOMP_LIBS="-lmp"
25999fi
26000 # SGI IRIX 6.5 MIPSpro C/C++
26001 fi
26002 LIBS="$GOMP_LIBS $LIBS"
26003fi
26004
26005
26006#
26007# Find Posix threads library
26008#
26009THREAD_LIBS=''
26010if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26011
26012 if test "x$PTHREAD_LIBS" = "x"; then
26013 case "${host_cpu}-${host_os}" in
26014 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026015
26016
26017
26018ac_ext=c
26019ac_cpp='$CPP $CPPFLAGS'
26020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26022ac_compiler_gnu=$ac_cv_c_compiler_gnu
26023
26024magick_pthread_lib_ok=no
26025
26026LIB=-lc_r
26027save_LIBS="$LIBS"
26028LIBS="$LIBS $LIB"
26029
26030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26031$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26033/* end confdefs.h. */
26034#include <pthread.h>
26035int
26036main ()
26037{
26038 pthread_t th;
26039 pthread_join(th, 0);
26040 pthread_attr_init(0);
26041 pthread_cleanup_push(0, 0);
26042 pthread_create(0,0,0,0);
26043 pthread_cleanup_pop(0);
26044 ;
26045 return 0;
26046}
26047_ACEOF
26048if ac_fn_c_try_link "$LINENO"; then :
26049 magick_pthread_lib_ok=yes
26050fi
26051rm -f core conftest.err conftest.$ac_objext \
26052 conftest$ac_exeext conftest.$ac_ext
26053
26054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26055$as_echo "${magick_pthread_lib_ok}" >&6; }
26056if test "$magick_pthread_lib_ok" = yes
26057then
26058 PTHREAD_LIBS=-lc_r
26059 :
26060else
26061
26062 :
26063fi
26064
26065LIBS="$save_LIBS"
26066
26067ac_ext=c
26068ac_cpp='$CPP $CPPFLAGS'
26069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26071ac_compiler_gnu=$ac_cv_c_compiler_gnu
26072
26073 ;;
cristy3ed852e2009-09-05 21:47:34 +000026074 esac
26075 fi
26076
26077 for lib in pthread pthreads; do
26078 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026079
26080
26081
26082ac_ext=c
26083ac_cpp='$CPP $CPPFLAGS'
26084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26086ac_compiler_gnu=$ac_cv_c_compiler_gnu
26087
26088magick_pthread_lib_ok=no
26089
26090LIB=-l$lib
26091save_LIBS="$LIBS"
26092LIBS="$LIBS $LIB"
26093
26094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26095$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26097/* end confdefs.h. */
26098#include <pthread.h>
26099int
26100main ()
26101{
26102 pthread_t th;
26103 pthread_join(th, 0);
26104 pthread_attr_init(0);
26105 pthread_cleanup_push(0, 0);
26106 pthread_create(0,0,0,0);
26107 pthread_cleanup_pop(0);
26108 ;
26109 return 0;
26110}
26111_ACEOF
26112if ac_fn_c_try_link "$LINENO"; then :
26113 magick_pthread_lib_ok=yes
26114fi
26115rm -f core conftest.err conftest.$ac_objext \
26116 conftest$ac_exeext conftest.$ac_ext
26117
26118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26119$as_echo "${magick_pthread_lib_ok}" >&6; }
26120if test "$magick_pthread_lib_ok" = yes
26121then
26122 PTHREAD_LIBS=-l$lib
26123 :
26124else
26125
26126 :
26127fi
26128
26129LIBS="$save_LIBS"
26130
26131ac_ext=c
26132ac_cpp='$CPP $CPPFLAGS'
26133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26135ac_compiler_gnu=$ac_cv_c_compiler_gnu
26136
26137
cristy3ed852e2009-09-05 21:47:34 +000026138 fi
26139 done
26140
26141 THREAD_LIBS="$PTHREAD_LIBS"
26142 LIBS="$LIBS $THREAD_LIBS"
26143fi
26144
26145
26146#
26147# Check for umem.
26148#
26149have_umem='no'
26150UMEM_LIBS=''
26151if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026153$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026154 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26155$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026156 failed=0
26157 passed=0
cristy8b350f62009-11-15 23:12:43 +000026158 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026159if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026160 passed=`expr $passed + 1`
26161else
26162 failed=`expr $failed + 1`
26163fi
26164
26165
cristy8b350f62009-11-15 23:12:43 +000026166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026167$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026168if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026169 $as_echo_n "(cached) " >&6
26170else
26171 ac_check_lib_save_LIBS=$LIBS
26172LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026174/* end confdefs.h. */
26175
26176/* Override any GCC internal prototype to avoid an error.
26177 Use char because int might match the return type of a GCC
26178 builtin and then its argument prototype would still apply. */
26179#ifdef __cplusplus
26180extern "C"
26181#endif
26182char umem_alloc ();
26183int
26184main ()
26185{
26186return umem_alloc ();
26187 ;
26188 return 0;
26189}
26190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026192 ac_cv_lib_umem_umem_alloc=yes
26193else
cristy8b350f62009-11-15 23:12:43 +000026194 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026195fi
cristy8b350f62009-11-15 23:12:43 +000026196rm -f core conftest.err conftest.$ac_objext \
26197 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026198LIBS=$ac_check_lib_save_LIBS
26199fi
cristy8b350f62009-11-15 23:12:43 +000026200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026201$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026202if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026203 passed=`expr $passed + 1`
26204else
26205 failed=`expr $failed + 1`
26206fi
26207
cristy8b350f62009-11-15 23:12:43 +000026208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026209$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026210if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026211 $as_echo_n "(cached) " >&6
26212else
26213 ac_check_lib_save_LIBS=$LIBS
26214LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026216/* end confdefs.h. */
26217
26218/* Override any GCC internal prototype to avoid an error.
26219 Use char because int might match the return type of a GCC
26220 builtin and then its argument prototype would still apply. */
26221#ifdef __cplusplus
26222extern "C"
26223#endif
26224char umem_free ();
26225int
26226main ()
26227{
26228return umem_free ();
26229 ;
26230 return 0;
26231}
26232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026234 ac_cv_lib_umem_umem_free=yes
26235else
cristy8b350f62009-11-15 23:12:43 +000026236 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026237fi
cristy8b350f62009-11-15 23:12:43 +000026238rm -f core conftest.err conftest.$ac_objext \
26239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026240LIBS=$ac_check_lib_save_LIBS
26241fi
cristy8b350f62009-11-15 23:12:43 +000026242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026243$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026244if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026245 passed=`expr $passed + 1`
26246else
26247 failed=`expr $failed + 1`
26248fi
26249
cristy8b350f62009-11-15 23:12:43 +000026250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026251$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26252 if test $passed -gt 0; then
26253 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026254 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26255$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026256 have_umem='no (failed tests)'
26257 else
26258 UMEM_LIBS='-lumem'
26259 LIBS="$UMEM_LIBS $LIBS"
26260
cristy8b350f62009-11-15 23:12:43 +000026261$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026262
cristy09b53e12011-10-14 12:47:22 +000026263 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26264$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026265 have_umem='yes'
26266 fi
26267 else
cristy09b53e12011-10-14 12:47:22 +000026268 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26269$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026270 fi
26271fi
cristy73bd4a52010-10-05 11:24:23 +000026272 if test "$have_umem" = 'yes'; then
26273 HasUMEM_TRUE=
26274 HasUMEM_FALSE='#'
26275else
26276 HasUMEM_TRUE='#'
26277 HasUMEM_FALSE=
26278fi
26279
cristy3ed852e2009-09-05 21:47:34 +000026280
26281
26282#
26283# Add support for ccmalloc memory debugging library if requested
26284#
26285have_ccmalloc='no'
26286CCMALLOC_LIBS=''
26287if test "$enable_ccmalloc" = 'yes'; then
26288 # Extract the first word of "ccmalloc", so it can be a program name with args.
26289set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026291$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026292if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026293 $as_echo_n "(cached) " >&6
26294else
26295 case $CCMALLOCDelegate in
26296 [\\/]* | ?:[\\/]*)
26297 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26298 ;;
26299 *)
26300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26301for as_dir in $PATH
26302do
26303 IFS=$as_save_IFS
26304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26307 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026309 break 2
26310 fi
26311done
cristy8b350f62009-11-15 23:12:43 +000026312 done
cristy3ed852e2009-09-05 21:47:34 +000026313IFS=$as_save_IFS
26314
26315 ;;
26316esac
26317fi
26318CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26319if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026321$as_echo "$CCMALLOCDelegate" >&6; }
26322else
cristy8b350f62009-11-15 23:12:43 +000026323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026324$as_echo "no" >&6; }
26325fi
26326
26327
26328 if test -n "$CCMALLOCDelegate"; then
26329 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26330 OLIBS="$LIBS"
26331 # Assume that gcc is used with ccmalloc.
26332 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026334$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026335if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026336 $as_echo_n "(cached) " >&6
26337else
26338 ac_check_lib_save_LIBS=$LIBS
26339LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026341/* end confdefs.h. */
26342
26343/* Override any GCC internal prototype to avoid an error.
26344 Use char because int might match the return type of a GCC
26345 builtin and then its argument prototype would still apply. */
26346#ifdef __cplusplus
26347extern "C"
26348#endif
26349char ccmalloc_malloc ();
26350int
26351main ()
26352{
26353return ccmalloc_malloc ();
26354 ;
26355 return 0;
26356}
26357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026358if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026359 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26360else
cristy8b350f62009-11-15 23:12:43 +000026361 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026362fi
cristy8b350f62009-11-15 23:12:43 +000026363rm -f core conftest.err conftest.$ac_objext \
26364 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026365LIBS=$ac_check_lib_save_LIBS
26366fi
cristy8b350f62009-11-15 23:12:43 +000026367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026368$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026369if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026370 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26371fi
26372
26373 if test -n "$CCMALLOC_LIBS"; then
26374 LIBS="$OLIBS"
26375 LIBS="$LIBS $CCMALLOC_LIBS"
26376 have_ccmalloc='yes'
26377 else
26378 LIBS="$OLIBS"
26379 fi
26380 fi
26381fi
26382
26383#
26384# Add support for efence memory debugging library if requested
26385#
26386if test "$enable_efence" = 'yes'; then
26387 EFENCE_LIBS='-lefence'
26388 LIBS="$EFENCE_LIBS $LIBS"
26389fi
26390
cristy3ed852e2009-09-05 21:47:34 +000026391
26392#
26393# Check for BZLIB
26394#
26395
26396
26397# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026398if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026399 withval=$with_bzlib; with_bzlib=$withval
26400else
26401 with_bzlib='yes'
26402fi
26403
26404
26405if test "$with_bzlib" != 'yes'; then
26406 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26407fi
26408
26409have_bzlib='no'
26410if test "$with_bzlib" != 'no'; then
26411 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026412 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26413$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026415$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026416 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26417$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026418 failed=0
26419 passed=0
26420 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026421 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026422if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026423 passed=`expr $passed + 1`
26424else
26425 failed=`expr $failed + 1`
26426fi
26427
26428
cristy8b350f62009-11-15 23:12:43 +000026429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026430$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026431if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026432 $as_echo_n "(cached) " >&6
26433else
26434 ac_check_lib_save_LIBS=$LIBS
26435LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026437/* end confdefs.h. */
26438
26439/* Override any GCC internal prototype to avoid an error.
26440 Use char because int might match the return type of a GCC
26441 builtin and then its argument prototype would still apply. */
26442#ifdef __cplusplus
26443extern "C"
26444#endif
26445char BZ2_bzDecompress ();
26446int
26447main ()
26448{
26449return BZ2_bzDecompress ();
26450 ;
26451 return 0;
26452}
26453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026454if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026455 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26456else
cristy8b350f62009-11-15 23:12:43 +000026457 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026458fi
cristy8b350f62009-11-15 23:12:43 +000026459rm -f core conftest.err conftest.$ac_objext \
26460 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026461LIBS=$ac_check_lib_save_LIBS
26462fi
cristy8b350f62009-11-15 23:12:43 +000026463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026464$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026465if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026466 found_libbz=`expr $found_libbz + 1`
26467fi
26468
26469 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026471$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026472if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026473 $as_echo_n "(cached) " >&6
26474else
26475 ac_check_lib_save_LIBS=$LIBS
26476LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026478/* end confdefs.h. */
26479
26480/* Override any GCC internal prototype to avoid an error.
26481 Use char because int might match the return type of a GCC
26482 builtin and then its argument prototype would still apply. */
26483#ifdef __cplusplus
26484extern "C"
26485#endif
26486char _imp__BZ2_decompress ();
26487int
26488main ()
26489{
26490return _imp__BZ2_decompress ();
26491 ;
26492 return 0;
26493}
26494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026496 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26497else
cristy8b350f62009-11-15 23:12:43 +000026498 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026499fi
cristy8b350f62009-11-15 23:12:43 +000026500rm -f core conftest.err conftest.$ac_objext \
26501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026502LIBS=$ac_check_lib_save_LIBS
26503fi
cristy8b350f62009-11-15 23:12:43 +000026504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026505$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026506if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026507 found_libbz=`expr $found_libbz + 1`
26508fi
26509
26510 fi
26511 if test $found_libbz -gt 0; then
26512 passed=`expr $passed + 1`
26513 else
26514 failed=`expr $failed + 1`
26515 fi
cristy8b350f62009-11-15 23:12:43 +000026516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026517$as_echo_n "checking if BZLIB package is complete... " >&6; }
26518 if test $passed -gt 0; then
26519 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026520 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26521$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026522 have_bzlib='no (failed tests)'
26523 else
26524 BZLIB_LIBS='-lbz2'
26525 LIBS="$BZLIB_LIBS $LIBS"
26526
cristy8b350f62009-11-15 23:12:43 +000026527$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026528
cristy09b53e12011-10-14 12:47:22 +000026529 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26530$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026531 have_bzlib='yes'
26532 fi
26533 else
cristy09b53e12011-10-14 12:47:22 +000026534 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26535$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026536 fi
26537fi
cristy73bd4a52010-10-05 11:24:23 +000026538 if test "$have_bzlib" = 'yes'; then
26539 BZLIB_DELEGATE_TRUE=
26540 BZLIB_DELEGATE_FALSE='#'
26541else
26542 BZLIB_DELEGATE_TRUE='#'
26543 BZLIB_DELEGATE_FALSE=
26544fi
26545
cristy3ed852e2009-09-05 21:47:34 +000026546
26547
26548#
26549# Find the X11 include and library directories.
26550#
26551IPC_LIBS=''
26552X11_LIBS=''
26553XEXT_LIBS=''
26554XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026556$as_echo_n "checking for X... " >&6; }
26557
26558
26559# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026560if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026561 withval=$with_x;
26562fi
26563
26564# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26565if test "x$with_x" = xno; then
26566 # The user explicitly disabled X.
26567 have_x=disabled
26568else
26569 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026570 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026571 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026572 $as_echo_n "(cached) " >&6
26573else
26574 # One or both of the vars are not set, and there is no cached value.
26575ac_x_includes=no ac_x_libraries=no
26576rm -f -r conftest.dir
26577if mkdir conftest.dir; then
26578 cd conftest.dir
26579 cat >Imakefile <<'_ACEOF'
26580incroot:
26581 @echo incroot='${INCROOT}'
26582usrlibdir:
26583 @echo usrlibdir='${USRLIBDIR}'
26584libdir:
26585 @echo libdir='${LIBDIR}'
26586_ACEOF
26587 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026588 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026589 for ac_var in incroot usrlibdir libdir; do
26590 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26591 done
26592 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26593 for ac_extension in a so sl dylib la dll; do
26594 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26595 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26596 ac_im_usrlibdir=$ac_im_libdir; break
26597 fi
26598 done
26599 # Screen out bogus values from the imake configuration. They are
26600 # bogus both because they are the default anyway, and because
26601 # using them would break gcc on systems where it needs fixed includes.
26602 case $ac_im_incroot in
26603 /usr/include) ac_x_includes= ;;
26604 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26605 esac
26606 case $ac_im_usrlibdir in
26607 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26608 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26609 esac
26610 fi
26611 cd ..
26612 rm -f -r conftest.dir
26613fi
26614
26615# Standard set of common directories for X headers.
26616# Check X11 before X11Rn because it is often a symlink to the current release.
26617ac_x_header_dirs='
26618/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026619/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026620/usr/X11R6/include
26621/usr/X11R5/include
26622/usr/X11R4/include
26623
26624/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026625/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026626/usr/include/X11R6
26627/usr/include/X11R5
26628/usr/include/X11R4
26629
26630/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026631/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026632/usr/local/X11R6/include
26633/usr/local/X11R5/include
26634/usr/local/X11R4/include
26635
26636/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026637/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026638/usr/local/include/X11R6
26639/usr/local/include/X11R5
26640/usr/local/include/X11R4
26641
26642/usr/X386/include
26643/usr/x386/include
26644/usr/XFree86/include/X11
26645
26646/usr/include
26647/usr/local/include
26648/usr/unsupported/include
26649/usr/athena/include
26650/usr/local/x11r5/include
26651/usr/lpp/Xamples/include
26652
26653/usr/openwin/include
26654/usr/openwin/share/include'
26655
26656if test "$ac_x_includes" = no; then
26657 # Guess where to find include files, by looking for Xlib.h.
26658 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026660/* end confdefs.h. */
26661#include <X11/Xlib.h>
26662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026663if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026664 # We can compile using X headers with no special include directory.
26665ac_x_includes=
26666else
cristyc7083c12009-10-14 03:16:55 +000026667 for ac_dir in $ac_x_header_dirs; do
26668 if test -r "$ac_dir/X11/Xlib.h"; then
26669 ac_x_includes=$ac_dir
26670 break
26671 fi
26672done
26673fi
cristyda16f162011-02-19 23:52:17 +000026674rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026675fi # $ac_x_includes = no
26676
26677if test "$ac_x_libraries" = no; then
26678 # Check for the libraries.
26679 # See if we find them without any special options.
26680 # Don't add to $LIBS permanently.
26681 ac_save_LIBS=$LIBS
26682 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026684/* end confdefs.h. */
26685#include <X11/Xlib.h>
26686int
26687main ()
26688{
26689XrmInitialize ()
26690 ;
26691 return 0;
26692}
26693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026694if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026695 LIBS=$ac_save_LIBS
26696# We can link X programs with no special library path.
26697ac_x_libraries=
26698else
cristy8b350f62009-11-15 23:12:43 +000026699 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026700for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26701do
26702 # Don't even attempt the hair of trying to link an X program!
26703 for ac_extension in a so sl dylib la dll; do
26704 if test -r "$ac_dir/libX11.$ac_extension"; then
26705 ac_x_libraries=$ac_dir
26706 break 2
26707 fi
26708 done
26709done
26710fi
cristy8b350f62009-11-15 23:12:43 +000026711rm -f core conftest.err conftest.$ac_objext \
26712 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026713fi # $ac_x_libraries = no
26714
26715case $ac_x_includes,$ac_x_libraries in #(
26716 no,* | *,no | *\'*)
26717 # Didn't find X, or a directory has "'" in its name.
26718 ac_cv_have_x="have_x=no";; #(
26719 *)
26720 # Record where we found X for the cache.
26721 ac_cv_have_x="have_x=yes\
26722 ac_x_includes='$ac_x_includes'\
26723 ac_x_libraries='$ac_x_libraries'"
26724esac
26725fi
26726;; #(
26727 *) have_x=yes;;
26728 esac
26729 eval "$ac_cv_have_x"
26730fi # $with_x != no
26731
26732if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026734$as_echo "$have_x" >&6; }
26735 no_x=yes
26736else
26737 # If each of the values was on the command line, it overrides each guess.
26738 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26739 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26740 # Update the cache value to reflect the command line values.
26741 ac_cv_have_x="have_x=yes\
26742 ac_x_includes='$x_includes'\
26743 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026745$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26746fi
26747
cristy3ed852e2009-09-05 21:47:34 +000026748if test "$no_x" = yes; then
26749 # Not all programs may use this symbol, but it does not hurt to define it.
26750
cristy8b350f62009-11-15 23:12:43 +000026751$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026752
26753 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26754else
26755 if test -n "$x_includes"; then
26756 X_CFLAGS="$X_CFLAGS -I$x_includes"
26757 fi
26758
26759 # It would also be nice to do this for all -L options, not just this one.
26760 if test -n "$x_libraries"; then
26761 X_LIBS="$X_LIBS -L$x_libraries"
26762 # For Solaris; some versions of Sun CC require a space after -R and
26763 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026765$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26766 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26767 ac_xsave_c_werror_flag=$ac_c_werror_flag
26768 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026770/* end confdefs.h. */
26771
26772int
26773main ()
26774{
26775
26776 ;
26777 return 0;
26778}
26779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026780if ac_fn_c_try_link "$LINENO"; then :
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026782$as_echo "no" >&6; }
26783 X_LIBS="$X_LIBS -R$x_libraries"
26784else
cristy8b350f62009-11-15 23:12:43 +000026785 LIBS="$ac_xsave_LIBS -R $x_libraries"
26786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026787/* end confdefs.h. */
26788
26789int
26790main ()
26791{
26792
26793 ;
26794 return 0;
26795}
26796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026797if ac_fn_c_try_link "$LINENO"; then :
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026799$as_echo "yes" >&6; }
26800 X_LIBS="$X_LIBS -R $x_libraries"
26801else
cristy8b350f62009-11-15 23:12:43 +000026802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026803$as_echo "neither works" >&6; }
26804fi
cristy8b350f62009-11-15 23:12:43 +000026805rm -f core conftest.err conftest.$ac_objext \
26806 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026807fi
cristy8b350f62009-11-15 23:12:43 +000026808rm -f core conftest.err conftest.$ac_objext \
26809 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026810 ac_c_werror_flag=$ac_xsave_c_werror_flag
26811 LIBS=$ac_xsave_LIBS
26812 fi
26813
26814 # Check for system-dependent libraries X programs must link with.
26815 # Do this before checking for the system-independent R6 libraries
26816 # (-lICE), since we may need -lsocket or whatever for X linking.
26817
26818 if test "$ISC" = yes; then
26819 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26820 else
26821 # Martyn Johnson says this is needed for Ultrix, if the X
26822 # libraries were built with DECnet support. And Karl Berry says
26823 # the Alpha needs dnet_stub (dnet does not exist).
26824 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026826/* end confdefs.h. */
26827
26828/* Override any GCC internal prototype to avoid an error.
26829 Use char because int might match the return type of a GCC
26830 builtin and then its argument prototype would still apply. */
26831#ifdef __cplusplus
26832extern "C"
26833#endif
26834char XOpenDisplay ();
26835int
26836main ()
26837{
26838return XOpenDisplay ();
26839 ;
26840 return 0;
26841}
26842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026844
cristy8b350f62009-11-15 23:12:43 +000026845else
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026847$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026848if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026849 $as_echo_n "(cached) " >&6
26850else
26851 ac_check_lib_save_LIBS=$LIBS
26852LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026854/* end confdefs.h. */
26855
26856/* Override any GCC internal prototype to avoid an error.
26857 Use char because int might match the return type of a GCC
26858 builtin and then its argument prototype would still apply. */
26859#ifdef __cplusplus
26860extern "C"
26861#endif
26862char dnet_ntoa ();
26863int
26864main ()
26865{
26866return dnet_ntoa ();
26867 ;
26868 return 0;
26869}
26870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026872 ac_cv_lib_dnet_dnet_ntoa=yes
26873else
cristy8b350f62009-11-15 23:12:43 +000026874 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026875fi
cristy8b350f62009-11-15 23:12:43 +000026876rm -f core conftest.err conftest.$ac_objext \
26877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026878LIBS=$ac_check_lib_save_LIBS
26879fi
cristy8b350f62009-11-15 23:12:43 +000026880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026881$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026882if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026883 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26884fi
26885
26886 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026888$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026889if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026890 $as_echo_n "(cached) " >&6
26891else
26892 ac_check_lib_save_LIBS=$LIBS
26893LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026895/* end confdefs.h. */
26896
26897/* Override any GCC internal prototype to avoid an error.
26898 Use char because int might match the return type of a GCC
26899 builtin and then its argument prototype would still apply. */
26900#ifdef __cplusplus
26901extern "C"
26902#endif
26903char dnet_ntoa ();
26904int
26905main ()
26906{
26907return dnet_ntoa ();
26908 ;
26909 return 0;
26910}
26911_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026912if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026913 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26914else
cristy8b350f62009-11-15 23:12:43 +000026915 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026916fi
cristy8b350f62009-11-15 23:12:43 +000026917rm -f core conftest.err conftest.$ac_objext \
26918 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026919LIBS=$ac_check_lib_save_LIBS
26920fi
cristy8b350f62009-11-15 23:12:43 +000026921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026922$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026923if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026924 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26925fi
26926
26927 fi
26928fi
cristy8b350f62009-11-15 23:12:43 +000026929rm -f core conftest.err conftest.$ac_objext \
26930 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026931 LIBS="$ac_xsave_LIBS"
26932
26933 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26934 # to get the SysV transport functions.
26935 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26936 # needs -lnsl.
26937 # The nsl library prevents programs from opening the X display
26938 # on Irix 5.2, according to T.E. Dickey.
26939 # The functions gethostbyname, getservbyname, and inet_addr are
26940 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026941 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026942if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026943
cristy3ed852e2009-09-05 21:47:34 +000026944fi
26945
cristy3ed852e2009-09-05 21:47:34 +000026946 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026948$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026949if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026950 $as_echo_n "(cached) " >&6
26951else
26952 ac_check_lib_save_LIBS=$LIBS
26953LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026955/* end confdefs.h. */
26956
26957/* Override any GCC internal prototype to avoid an error.
26958 Use char because int might match the return type of a GCC
26959 builtin and then its argument prototype would still apply. */
26960#ifdef __cplusplus
26961extern "C"
26962#endif
26963char gethostbyname ();
26964int
26965main ()
26966{
26967return gethostbyname ();
26968 ;
26969 return 0;
26970}
26971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026972if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026973 ac_cv_lib_nsl_gethostbyname=yes
26974else
cristy8b350f62009-11-15 23:12:43 +000026975 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026976fi
cristy8b350f62009-11-15 23:12:43 +000026977rm -f core conftest.err conftest.$ac_objext \
26978 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026979LIBS=$ac_check_lib_save_LIBS
26980fi
cristy8b350f62009-11-15 23:12:43 +000026981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026982$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026983if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26985fi
26986
26987 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026989$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026990if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026991 $as_echo_n "(cached) " >&6
26992else
26993 ac_check_lib_save_LIBS=$LIBS
26994LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026996/* end confdefs.h. */
26997
26998/* Override any GCC internal prototype to avoid an error.
26999 Use char because int might match the return type of a GCC
27000 builtin and then its argument prototype would still apply. */
27001#ifdef __cplusplus
27002extern "C"
27003#endif
27004char gethostbyname ();
27005int
27006main ()
27007{
27008return gethostbyname ();
27009 ;
27010 return 0;
27011}
27012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027013if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027014 ac_cv_lib_bsd_gethostbyname=yes
27015else
cristy8b350f62009-11-15 23:12:43 +000027016 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027017fi
cristy8b350f62009-11-15 23:12:43 +000027018rm -f core conftest.err conftest.$ac_objext \
27019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027020LIBS=$ac_check_lib_save_LIBS
27021fi
cristy8b350f62009-11-15 23:12:43 +000027022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027023$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027024if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027025 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27026fi
27027
27028 fi
27029 fi
27030
27031 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27032 # socket/setsockopt and other routines are undefined under SCO ODT
27033 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27034 # on later versions), says Simon Leinen: it contains gethostby*
27035 # variants that don't use the name server (or something). -lsocket
27036 # must be given before -lnsl if both are needed. We assume that
27037 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027038 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027039if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027040
cristy3ed852e2009-09-05 21:47:34 +000027041fi
27042
cristy3ed852e2009-09-05 21:47:34 +000027043 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027045$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027046if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027047 $as_echo_n "(cached) " >&6
27048else
27049 ac_check_lib_save_LIBS=$LIBS
27050LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027052/* end confdefs.h. */
27053
27054/* Override any GCC internal prototype to avoid an error.
27055 Use char because int might match the return type of a GCC
27056 builtin and then its argument prototype would still apply. */
27057#ifdef __cplusplus
27058extern "C"
27059#endif
27060char connect ();
27061int
27062main ()
27063{
27064return connect ();
27065 ;
27066 return 0;
27067}
27068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027069if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027070 ac_cv_lib_socket_connect=yes
27071else
cristy8b350f62009-11-15 23:12:43 +000027072 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027073fi
cristy8b350f62009-11-15 23:12:43 +000027074rm -f core conftest.err conftest.$ac_objext \
27075 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027076LIBS=$ac_check_lib_save_LIBS
27077fi
cristy8b350f62009-11-15 23:12:43 +000027078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027079$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027080if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027081 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27082fi
27083
27084 fi
27085
27086 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027087 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027088if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027089
cristy3ed852e2009-09-05 21:47:34 +000027090fi
27091
cristy3ed852e2009-09-05 21:47:34 +000027092 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027094$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027095if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027096 $as_echo_n "(cached) " >&6
27097else
27098 ac_check_lib_save_LIBS=$LIBS
27099LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027101/* end confdefs.h. */
27102
27103/* Override any GCC internal prototype to avoid an error.
27104 Use char because int might match the return type of a GCC
27105 builtin and then its argument prototype would still apply. */
27106#ifdef __cplusplus
27107extern "C"
27108#endif
27109char remove ();
27110int
27111main ()
27112{
27113return remove ();
27114 ;
27115 return 0;
27116}
27117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027118if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027119 ac_cv_lib_posix_remove=yes
27120else
cristy8b350f62009-11-15 23:12:43 +000027121 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027122fi
cristy8b350f62009-11-15 23:12:43 +000027123rm -f core conftest.err conftest.$ac_objext \
27124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027125LIBS=$ac_check_lib_save_LIBS
27126fi
cristy8b350f62009-11-15 23:12:43 +000027127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027128$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027129if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027130 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27131fi
27132
27133 fi
27134
27135 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027136 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027137if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027138
cristy3ed852e2009-09-05 21:47:34 +000027139fi
27140
cristy3ed852e2009-09-05 21:47:34 +000027141 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027143$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027144if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027145 $as_echo_n "(cached) " >&6
27146else
27147 ac_check_lib_save_LIBS=$LIBS
27148LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027150/* end confdefs.h. */
27151
27152/* Override any GCC internal prototype to avoid an error.
27153 Use char because int might match the return type of a GCC
27154 builtin and then its argument prototype would still apply. */
27155#ifdef __cplusplus
27156extern "C"
27157#endif
27158char shmat ();
27159int
27160main ()
27161{
27162return shmat ();
27163 ;
27164 return 0;
27165}
27166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027167if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027168 ac_cv_lib_ipc_shmat=yes
27169else
cristy8b350f62009-11-15 23:12:43 +000027170 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027171fi
cristy8b350f62009-11-15 23:12:43 +000027172rm -f core conftest.err conftest.$ac_objext \
27173 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027174LIBS=$ac_check_lib_save_LIBS
27175fi
cristy8b350f62009-11-15 23:12:43 +000027176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027177$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027178if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027179 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27180fi
27181
27182 fi
27183 fi
27184
27185 # Check for libraries that X11R6 Xt/Xaw programs need.
27186 ac_save_LDFLAGS=$LDFLAGS
27187 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27188 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27189 # check for ICE first), but we must link in the order -lSM -lICE or
27190 # we get undefined symbols. So assume we have SM if we have ICE.
27191 # These have to be linked with before -lX11, unlike the other
27192 # libraries we check for below, so use a different variable.
27193 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027195$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027196if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027197 $as_echo_n "(cached) " >&6
27198else
27199 ac_check_lib_save_LIBS=$LIBS
27200LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027202/* end confdefs.h. */
27203
27204/* Override any GCC internal prototype to avoid an error.
27205 Use char because int might match the return type of a GCC
27206 builtin and then its argument prototype would still apply. */
27207#ifdef __cplusplus
27208extern "C"
27209#endif
27210char IceConnectionNumber ();
27211int
27212main ()
27213{
27214return IceConnectionNumber ();
27215 ;
27216 return 0;
27217}
27218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027220 ac_cv_lib_ICE_IceConnectionNumber=yes
27221else
cristy8b350f62009-11-15 23:12:43 +000027222 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027223fi
cristy8b350f62009-11-15 23:12:43 +000027224rm -f core conftest.err conftest.$ac_objext \
27225 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027226LIBS=$ac_check_lib_save_LIBS
27227fi
cristy8b350f62009-11-15 23:12:43 +000027228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027229$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027230if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027231 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27232fi
27233
27234 LDFLAGS=$ac_save_LDFLAGS
27235
27236fi
27237
27238if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027239 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27240$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027242$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027243 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27244$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027245 LDFLAGS="$LDFLAGS $X_LIBS"
27246 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27247 LIBS="$X11_LIBS $LIBS"
27248 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27249
27250
cristy8b350f62009-11-15 23:12:43 +000027251$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027252
27253 #
27254 # Check for X11 shared memory extension
27255 #
27256 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027257 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027258if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027259 have_shmctl='yes'
27260fi
27261
27262 if test "$have_shmctl" != 'yes'; then
27263 PERSIST_LIBS=$LIBS
27264 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027266/* end confdefs.h. */
27267
27268/* Override any GCC internal prototype to avoid an error.
27269 Use char because int might match the return type of a GCC
27270 builtin and then its argument prototype would still apply. */
27271#ifdef __cplusplus
27272extern "C"
27273#endif
27274char shmctl ();
27275int
27276main ()
27277{
27278return shmctl ();
27279 ;
27280 return 0;
27281}
27282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027284 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027285fi
cristy8b350f62009-11-15 23:12:43 +000027286rm -f core conftest.err conftest.$ac_objext \
27287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027288 LIBS=$PERSIST_LIBS
27289 fi
27290
27291 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027294if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 $as_echo_n "(cached) " >&6
27296else
27297 ac_check_lib_save_LIBS=$LIBS
27298LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027300/* end confdefs.h. */
27301
27302/* Override any GCC internal prototype to avoid an error.
27303 Use char because int might match the return type of a GCC
27304 builtin and then its argument prototype would still apply. */
27305#ifdef __cplusplus
27306extern "C"
27307#endif
27308char XShmAttach ();
27309int
27310main ()
27311{
27312return XShmAttach ();
27313 ;
27314 return 0;
27315}
27316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027317if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027318 ac_cv_lib_Xext_XShmAttach=yes
27319else
cristy8b350f62009-11-15 23:12:43 +000027320 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027321fi
cristy8b350f62009-11-15 23:12:43 +000027322rm -f core conftest.err conftest.$ac_objext \
27323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027324LIBS=$ac_check_lib_save_LIBS
27325fi
cristy8b350f62009-11-15 23:12:43 +000027326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027327$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027328if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027329 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027330$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027331
27332fi
27333
27334 fi
27335
27336 #
27337 # Check for X11 shape extension
27338 #
cristy8b350f62009-11-15 23:12:43 +000027339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027340$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027341if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027342 $as_echo_n "(cached) " >&6
27343else
27344 ac_check_lib_save_LIBS=$LIBS
27345LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027347/* end confdefs.h. */
27348
27349/* Override any GCC internal prototype to avoid an error.
27350 Use char because int might match the return type of a GCC
27351 builtin and then its argument prototype would still apply. */
27352#ifdef __cplusplus
27353extern "C"
27354#endif
27355char XShapeCombineMask ();
27356int
27357main ()
27358{
27359return XShapeCombineMask ();
27360 ;
27361 return 0;
27362}
27363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027364if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027365 ac_cv_lib_Xext_XShapeCombineMask=yes
27366else
cristy8b350f62009-11-15 23:12:43 +000027367 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027368fi
cristy8b350f62009-11-15 23:12:43 +000027369rm -f core conftest.err conftest.$ac_objext \
27370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027371LIBS=$ac_check_lib_save_LIBS
27372fi
cristy8b350f62009-11-15 23:12:43 +000027373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027374$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027375if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027376 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027377$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027378
27379fi
27380
cristy8b350f62009-11-15 23:12:43 +000027381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027382$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027383if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027384 $as_echo_n "(cached) " >&6
27385else
27386 ac_check_lib_save_LIBS=$LIBS
27387LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027389/* end confdefs.h. */
27390
27391/* Override any GCC internal prototype to avoid an error.
27392 Use char because int might match the return type of a GCC
27393 builtin and then its argument prototype would still apply. */
27394#ifdef __cplusplus
27395extern "C"
27396#endif
27397char XtSetEventDispatcher ();
27398int
27399main ()
27400{
27401return XtSetEventDispatcher ();
27402 ;
27403 return 0;
27404}
27405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027406if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027407 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27408else
cristy8b350f62009-11-15 23:12:43 +000027409 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027410fi
cristy8b350f62009-11-15 23:12:43 +000027411rm -f core conftest.err conftest.$ac_objext \
27412 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027413LIBS=$ac_check_lib_save_LIBS
27414fi
cristy8b350f62009-11-15 23:12:43 +000027415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027416$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027417if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027418 XT_LIBS='-lXt'
27419fi
27420
27421 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27422fi
27423if test "$no_x" != 'yes'; then
27424 have_x='yes'
27425else
27426 have_x='no'
27427fi
cristy73bd4a52010-10-05 11:24:23 +000027428 if test "$have_x" = 'yes'; then
27429 X11_DELEGATE_TRUE=
27430 X11_DELEGATE_FALSE='#'
27431else
27432 X11_DELEGATE_TRUE='#'
27433 X11_DELEGATE_FALSE=
27434fi
27435
cristy3ed852e2009-09-05 21:47:34 +000027436
27437
27438
27439
27440#
27441# Check for ZLIB
27442#
27443
27444# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027445if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027446 withval=$with_zlib; with_zlib=$withval
27447else
27448 with_zlib='yes'
27449fi
27450
27451
27452if test "$with_zlib" != 'yes'; then
27453 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27454fi
27455
27456have_zlib='no'
27457ZLIB_LIBS=''
27458if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027459 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27460$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027462$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027463 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27464$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027465 ZLIB_LIBS=''
27466 failed=0
27467 passed=0
cristy8b350f62009-11-15 23:12:43 +000027468 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027469if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027470 passed=`expr $passed + 1`
27471else
27472 failed=`expr $failed + 1`
27473fi
27474
27475
cristy8b350f62009-11-15 23:12:43 +000027476 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027477if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027478 passed=`expr $passed + 1`
27479else
27480 failed=`expr $failed + 1`
27481fi
27482
27483
cristy8b350f62009-11-15 23:12:43 +000027484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027485$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027486if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027487 $as_echo_n "(cached) " >&6
27488else
27489 ac_check_lib_save_LIBS=$LIBS
27490LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027492/* end confdefs.h. */
27493
27494/* Override any GCC internal prototype to avoid an error.
27495 Use char because int might match the return type of a GCC
27496 builtin and then its argument prototype would still apply. */
27497#ifdef __cplusplus
27498extern "C"
27499#endif
27500char compress ();
27501int
27502main ()
27503{
27504return compress ();
27505 ;
27506 return 0;
27507}
27508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027510 ac_cv_lib_z_compress=yes
27511else
cristy8b350f62009-11-15 23:12:43 +000027512 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027513fi
cristy8b350f62009-11-15 23:12:43 +000027514rm -f core conftest.err conftest.$ac_objext \
27515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027516LIBS=$ac_check_lib_save_LIBS
27517fi
cristy8b350f62009-11-15 23:12:43 +000027518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027519$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027520if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027521 passed=`expr $passed + 1`
27522else
27523 failed=`expr $failed + 1`
27524fi
27525
cristy8b350f62009-11-15 23:12:43 +000027526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027527$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027528if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027529 $as_echo_n "(cached) " >&6
27530else
27531 ac_check_lib_save_LIBS=$LIBS
27532LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027534/* end confdefs.h. */
27535
27536/* Override any GCC internal prototype to avoid an error.
27537 Use char because int might match the return type of a GCC
27538 builtin and then its argument prototype would still apply. */
27539#ifdef __cplusplus
27540extern "C"
27541#endif
27542char uncompress ();
27543int
27544main ()
27545{
27546return uncompress ();
27547 ;
27548 return 0;
27549}
27550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027551if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027552 ac_cv_lib_z_uncompress=yes
27553else
cristy8b350f62009-11-15 23:12:43 +000027554 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027555fi
cristy8b350f62009-11-15 23:12:43 +000027556rm -f core conftest.err conftest.$ac_objext \
27557 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027558LIBS=$ac_check_lib_save_LIBS
27559fi
cristy8b350f62009-11-15 23:12:43 +000027560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027561$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027562if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027563 passed=`expr $passed + 1`
27564else
27565 failed=`expr $failed + 1`
27566fi
27567
cristy8b350f62009-11-15 23:12:43 +000027568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027569$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027570if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027571 $as_echo_n "(cached) " >&6
27572else
27573 ac_check_lib_save_LIBS=$LIBS
27574LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027576/* end confdefs.h. */
27577
27578/* Override any GCC internal prototype to avoid an error.
27579 Use char because int might match the return type of a GCC
27580 builtin and then its argument prototype would still apply. */
27581#ifdef __cplusplus
27582extern "C"
27583#endif
27584char deflate ();
27585int
27586main ()
27587{
27588return deflate ();
27589 ;
27590 return 0;
27591}
27592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027593if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027594 ac_cv_lib_z_deflate=yes
27595else
cristy8b350f62009-11-15 23:12:43 +000027596 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027597fi
cristy8b350f62009-11-15 23:12:43 +000027598rm -f core conftest.err conftest.$ac_objext \
27599 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027600LIBS=$ac_check_lib_save_LIBS
27601fi
cristy8b350f62009-11-15 23:12:43 +000027602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027603$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027604if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 passed=`expr $passed + 1`
27606else
27607 failed=`expr $failed + 1`
27608fi
27609
cristy8b350f62009-11-15 23:12:43 +000027610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027611$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027612if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027613 $as_echo_n "(cached) " >&6
27614else
27615 ac_check_lib_save_LIBS=$LIBS
27616LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027618/* end confdefs.h. */
27619
27620/* Override any GCC internal prototype to avoid an error.
27621 Use char because int might match the return type of a GCC
27622 builtin and then its argument prototype would still apply. */
27623#ifdef __cplusplus
27624extern "C"
27625#endif
27626char inflate ();
27627int
27628main ()
27629{
27630return inflate ();
27631 ;
27632 return 0;
27633}
27634_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027635if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027636 ac_cv_lib_z_inflate=yes
27637else
cristy8b350f62009-11-15 23:12:43 +000027638 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027639fi
cristy8b350f62009-11-15 23:12:43 +000027640rm -f core conftest.err conftest.$ac_objext \
27641 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027642LIBS=$ac_check_lib_save_LIBS
27643fi
cristy8b350f62009-11-15 23:12:43 +000027644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027645$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027646if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027647 passed=`expr $passed + 1`
27648else
27649 failed=`expr $failed + 1`
27650fi
27651
cristy8b350f62009-11-15 23:12:43 +000027652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027653$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027654if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027655 $as_echo_n "(cached) " >&6
27656else
27657 ac_check_lib_save_LIBS=$LIBS
27658LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027660/* end confdefs.h. */
27661
27662/* Override any GCC internal prototype to avoid an error.
27663 Use char because int might match the return type of a GCC
27664 builtin and then its argument prototype would still apply. */
27665#ifdef __cplusplus
27666extern "C"
27667#endif
27668char gzseek ();
27669int
27670main ()
27671{
27672return gzseek ();
27673 ;
27674 return 0;
27675}
27676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027677if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027678 ac_cv_lib_z_gzseek=yes
27679else
cristy8b350f62009-11-15 23:12:43 +000027680 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027681fi
cristy8b350f62009-11-15 23:12:43 +000027682rm -f core conftest.err conftest.$ac_objext \
27683 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027684LIBS=$ac_check_lib_save_LIBS
27685fi
cristy8b350f62009-11-15 23:12:43 +000027686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027687$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027688if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027689 passed=`expr $passed + 1`
27690else
27691 failed=`expr $failed + 1`
27692fi
27693
cristy8b350f62009-11-15 23:12:43 +000027694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027695$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027696if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027697 $as_echo_n "(cached) " >&6
27698else
27699 ac_check_lib_save_LIBS=$LIBS
27700LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027702/* end confdefs.h. */
27703
27704/* Override any GCC internal prototype to avoid an error.
27705 Use char because int might match the return type of a GCC
27706 builtin and then its argument prototype would still apply. */
27707#ifdef __cplusplus
27708extern "C"
27709#endif
27710char gztell ();
27711int
27712main ()
27713{
27714return gztell ();
27715 ;
27716 return 0;
27717}
27718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027719if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027720 ac_cv_lib_z_gztell=yes
27721else
cristy8b350f62009-11-15 23:12:43 +000027722 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027723fi
cristy8b350f62009-11-15 23:12:43 +000027724rm -f core conftest.err conftest.$ac_objext \
27725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027726LIBS=$ac_check_lib_save_LIBS
27727fi
cristy8b350f62009-11-15 23:12:43 +000027728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027729$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027730if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027731 passed=`expr $passed + 1`
27732else
27733 failed=`expr $failed + 1`
27734fi
27735
cristy8b350f62009-11-15 23:12:43 +000027736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027737$as_echo_n "checking if ZLIB package is complete... " >&6; }
27738 if test $passed -gt 0; then
27739 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027740 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27741$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027742 have_zlib='no (failed tests)'
27743 else
27744 ZLIB_LIBS='-lz'
27745 LIBS="$ZLIB_LIBS $LIBS"
27746
cristy8b350f62009-11-15 23:12:43 +000027747$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027748
cristy09b53e12011-10-14 12:47:22 +000027749 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27750$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027751 have_zlib='yes'
27752 fi
27753 else
cristy09b53e12011-10-14 12:47:22 +000027754 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27755$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027756 fi
27757fi
cristy73bd4a52010-10-05 11:24:23 +000027758 if test "$have_zlib" = 'yes'; then
27759 ZLIB_DELEGATE_TRUE=
27760 ZLIB_DELEGATE_FALSE='#'
27761else
27762 ZLIB_DELEGATE_TRUE='#'
27763 ZLIB_DELEGATE_FALSE=
27764fi
27765
cristy3ed852e2009-09-05 21:47:34 +000027766
27767
27768#
27769# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27770#
27771LIB_DL=''
27772if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027775if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 $as_echo_n "(cached) " >&6
27777else
27778 ac_check_lib_save_LIBS=$LIBS
27779LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027781/* end confdefs.h. */
27782
27783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27786#ifdef __cplusplus
27787extern "C"
27788#endif
27789char dlopen ();
27790int
27791main ()
27792{
27793return dlopen ();
27794 ;
27795 return 0;
27796}
27797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 ac_cv_lib_dl_dlopen=yes
27800else
cristy8b350f62009-11-15 23:12:43 +000027801 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027802fi
cristy8b350f62009-11-15 23:12:43 +000027803rm -f core conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027805LIBS=$ac_check_lib_save_LIBS
27806fi
cristy8b350f62009-11-15 23:12:43 +000027807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027808$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027809if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027810 LIB_DL='-ldl'
27811fi
27812
27813 LIBS="$LIB_DL $LIBS"
27814fi
27815
27816
27817
27818#
27819# Check for Autotrace delegate library.
27820#
27821
27822# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027823if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027824 withval=$with_autotrace; with_autotrace=$withval
27825else
27826 with_autotrace='no'
27827fi
27828
27829
27830if test "$with_autotrace" != 'yes'; then
27831 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27832fi
27833
27834have_autotrace='no'
27835AUTOTRACE_CFLAGS=""
27836AUTOTRACE_LIBS=""
27837AUTOTRACE_PKG=""
27838if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027839 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27840$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027841
27842pkg_failed=no
27843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27844$as_echo_n "checking for AUTOTRACE... " >&6; }
27845
27846if test -n "$AUTOTRACE_CFLAGS"; then
27847 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27848 elif test -n "$PKG_CONFIG"; then
27849 if test -n "$PKG_CONFIG" && \
27850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27851 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27852 ac_status=$?
27853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27854 test $ac_status = 0; }; then
27855 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27856else
27857 pkg_failed=yes
27858fi
27859 else
27860 pkg_failed=untried
27861fi
27862if test -n "$AUTOTRACE_LIBS"; then
27863 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27864 elif test -n "$PKG_CONFIG"; then
27865 if test -n "$PKG_CONFIG" && \
27866 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27867 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27868 ac_status=$?
27869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27870 test $ac_status = 0; }; then
27871 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27872else
27873 pkg_failed=yes
27874fi
27875 else
27876 pkg_failed=untried
27877fi
27878
27879
27880
27881if test $pkg_failed = yes; then
27882
27883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27884 _pkg_short_errors_supported=yes
27885else
27886 _pkg_short_errors_supported=no
27887fi
27888 if test $_pkg_short_errors_supported = yes; then
27889 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27890 else
27891 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27892 fi
27893 # Put the nasty error message in config.log where it belongs
27894 echo "$AUTOTRACE_PKG_ERRORS" >&5
27895
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27897$as_echo "no" >&6; }
27898 have_autotrace=no
27899elif test $pkg_failed = untried; then
27900 have_autotrace=no
27901else
27902 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27903 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27905$as_echo "yes" >&6; }
27906 have_autotrace=yes
27907fi
cristy09b53e12011-10-14 12:47:22 +000027908 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27909$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027910fi
27911
27912if test "$have_autotrace" = 'yes'; then
27913 failed=0
27914
cristy8b350f62009-11-15 23:12:43 +000027915$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027916
27917 if test "$with_modules" = 'no'; then
27918 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27919 fi
27920fi
27921
cristy73bd4a52010-10-05 11:24:23 +000027922 if test "$have_autotrace" = 'yes'; then
27923 AUTOTRACE_DELEGATE_TRUE=
27924 AUTOTRACE_DELEGATE_FALSE='#'
27925else
27926 AUTOTRACE_DELEGATE_TRUE='#'
27927 AUTOTRACE_DELEGATE_FALSE=
27928fi
27929
cristy3ed852e2009-09-05 21:47:34 +000027930
27931
27932
27933
27934#
27935# Check for Display Postscript delegate library.
27936#
27937
27938# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027939if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 withval=$with_dps; with_dps=$withval
27941else
27942 with_dps='yes'
27943fi
27944
27945
27946if test "$with_dps" != 'yes'; then
27947 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27948fi
27949
27950have_dps='no'
27951DPS_LIBS=''
27952if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027953 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27954$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027956$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027957 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27958$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027959 failed=0
27960 passed=0
27961 PERSIST_CPPFLAGS="$CPPFLAGS"
27962 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027963 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 +000027964if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027965 passed=`expr $passed + 1`
27966else
27967 failed=`expr $failed + 1`
27968fi
27969
27970
27971 # DPS issues:
27972 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27973 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27974 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27975 # ImageMagick itself doesn't use -lXt.
27976 have_libdps='no'
27977 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027979$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027980if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027981 $as_echo_n "(cached) " >&6
27982else
27983 ac_check_lib_save_LIBS=$LIBS
27984LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027986/* end confdefs.h. */
27987
27988/* Override any GCC internal prototype to avoid an error.
27989 Use char because int might match the return type of a GCC
27990 builtin and then its argument prototype would still apply. */
27991#ifdef __cplusplus
27992extern "C"
27993#endif
27994char DPSInitialize ();
27995int
27996main ()
27997{
27998return DPSInitialize ();
27999 ;
28000 return 0;
28001}
28002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028003if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028004 ac_cv_lib_dps_DPSInitialize=yes
28005else
cristy8b350f62009-11-15 23:12:43 +000028006 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028007fi
cristy8b350f62009-11-15 23:12:43 +000028008rm -f core conftest.err conftest.$ac_objext \
28009 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028010LIBS=$ac_check_lib_save_LIBS
28011fi
cristy8b350f62009-11-15 23:12:43 +000028012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028013$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028014if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028015 have_libdps='yes'
28016else
28017 have_libdps='no'
28018fi
28019
28020 if test "$have_libdps" != 'yes'; then
28021 # Unset cache variable so we can try again.
28022 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028024$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028025if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028026 $as_echo_n "(cached) " >&6
28027else
28028 ac_check_lib_save_LIBS=$LIBS
28029LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028031/* end confdefs.h. */
28032
28033/* Override any GCC internal prototype to avoid an error.
28034 Use char because int might match the return type of a GCC
28035 builtin and then its argument prototype would still apply. */
28036#ifdef __cplusplus
28037extern "C"
28038#endif
28039char DPSInitialize ();
28040int
28041main ()
28042{
28043return DPSInitialize ();
28044 ;
28045 return 0;
28046}
28047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028049 ac_cv_lib_dps_DPSInitialize=yes
28050else
cristy8b350f62009-11-15 23:12:43 +000028051 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028052fi
cristy8b350f62009-11-15 23:12:43 +000028053rm -f core conftest.err conftest.$ac_objext \
28054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028055LIBS=$ac_check_lib_save_LIBS
28056fi
cristy8b350f62009-11-15 23:12:43 +000028057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028058$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028059if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028060 have_libdps='yes'
28061else
28062 have_libdps='no'
28063fi
28064
28065 if test "$have_libdps" = 'yes'; then
28066 LIBDPS_XT='-lXt'
28067 fi
28068 fi
28069 if test "$have_libdps" = 'yes'; then
28070 passed=`expr $passed + 1`
28071 else
28072 failed=`expr $failed + 1`
28073 fi
cristy8b350f62009-11-15 23:12:43 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028076if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028077 $as_echo_n "(cached) " >&6
28078else
28079 ac_check_lib_save_LIBS=$LIBS
28080LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028082/* end confdefs.h. */
28083
28084/* Override any GCC internal prototype to avoid an error.
28085 Use char because int might match the return type of a GCC
28086 builtin and then its argument prototype would still apply. */
28087#ifdef __cplusplus
28088extern "C"
28089#endif
28090char XDPSPixelsPerPoint ();
28091int
28092main ()
28093{
28094return XDPSPixelsPerPoint ();
28095 ;
28096 return 0;
28097}
28098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028099if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28101else
cristy8b350f62009-11-15 23:12:43 +000028102 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028103fi
cristy8b350f62009-11-15 23:12:43 +000028104rm -f core conftest.err conftest.$ac_objext \
28105 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028106LIBS=$ac_check_lib_save_LIBS
28107fi
cristy8b350f62009-11-15 23:12:43 +000028108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028109$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028110if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028111 passed=`expr $passed + 1`
28112else
28113 failed=`expr $failed + 1`
28114fi
28115
cristy8b350f62009-11-15 23:12:43 +000028116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028117$as_echo_n "checking if DPS package is complete... " >&6; }
28118 if test $passed -gt 0; then
28119 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028120 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28121$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028122 have_dps='no (failed tests)'
28123 CPPFLAGS="$PERSIST_CPPFLAGS"
28124 else
28125 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28126 LIBS="$DPS_LIBS $LIBS"
28127
cristy8b350f62009-11-15 23:12:43 +000028128$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028129
cristy09b53e12011-10-14 12:47:22 +000028130 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28131$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028132 have_dps='yes'
28133 fi
28134 else
cristy09b53e12011-10-14 12:47:22 +000028135 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28136$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028137 CPPFLAGS=$PERSIST_CPPFLAGS
28138 fi
28139fi
cristy73bd4a52010-10-05 11:24:23 +000028140 if test "$have_dps" = 'yes'; then
28141 DPS_DELEGATE_TRUE=
28142 DPS_DELEGATE_FALSE='#'
28143else
28144 DPS_DELEGATE_TRUE='#'
28145 DPS_DELEGATE_FALSE=
28146fi
28147
cristy3ed852e2009-09-05 21:47:34 +000028148
28149
28150
28151#
28152# Check for DJVU delegate library.
28153#
28154
28155# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028156if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028157 withval=$with_djvu; with_djvu=$withval
28158else
28159 with_djvu='yes'
28160fi
28161
28162
28163if test "$with_djvu" != 'yes'; then
28164 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28165fi
28166
28167have_djvu='no'
28168DJVU_LIBS=''
28169if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028170 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28171$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028173$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028174 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28175$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028176 failed=0
28177 passed=0
cristy8b350f62009-11-15 23:12:43 +000028178 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 +000028179if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028180 passed=`expr $passed + 1`
28181else
28182 failed=`expr $failed + 1`
28183fi
28184
28185
cristy8b350f62009-11-15 23:12:43 +000028186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028187$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028188if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028189 $as_echo_n "(cached) " >&6
28190else
28191 ac_check_lib_save_LIBS=$LIBS
28192LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028194/* end confdefs.h. */
28195
28196/* Override any GCC internal prototype to avoid an error.
28197 Use char because int might match the return type of a GCC
28198 builtin and then its argument prototype would still apply. */
28199#ifdef __cplusplus
28200extern "C"
28201#endif
28202char ddjvu_context_create ();
28203int
28204main ()
28205{
28206return ddjvu_context_create ();
28207 ;
28208 return 0;
28209}
28210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028211if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028212 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28213else
cristy8b350f62009-11-15 23:12:43 +000028214 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028215fi
cristy8b350f62009-11-15 23:12:43 +000028216rm -f core conftest.err conftest.$ac_objext \
28217 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028218LIBS=$ac_check_lib_save_LIBS
28219fi
cristy8b350f62009-11-15 23:12:43 +000028220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028221$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028222if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028223 passed=`expr $passed + 1`
28224else
28225 failed=`expr $failed + 1`
28226fi
28227
cristy8b350f62009-11-15 23:12:43 +000028228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028229$as_echo_n "checking if DJVU package is complete... " >&6; }
28230 if test $passed -gt 0; then
28231 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028232 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28233$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028234 have_djvu='no (failed tests)'
28235 else
28236 DJVU_LIBS='-ldjvulibre'
28237 LIBS="$DJVU_LIBS $LIBS"
28238
cristy8b350f62009-11-15 23:12:43 +000028239$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028240
cristy09b53e12011-10-14 12:47:22 +000028241 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28242$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028243 have_djvu='yes'
28244 fi
28245 else
cristy09b53e12011-10-14 12:47:22 +000028246 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28247$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028248 fi
28249fi
cristy73bd4a52010-10-05 11:24:23 +000028250 if test "$have_djvu" = 'yes'; then
28251 DJVU_DELEGATE_TRUE=
28252 DJVU_DELEGATE_FALSE='#'
28253else
28254 DJVU_DELEGATE_TRUE='#'
28255 DJVU_DELEGATE_FALSE=
28256fi
28257
cristy3ed852e2009-09-05 21:47:34 +000028258
28259
28260
28261#
cristy430a7312010-01-21 20:44:04 +000028262# Set DejaVu font directory.
28263#
28264
28265# Check whether --with-dejavu-font-dir was given.
28266if test "${with_dejavu_font_dir+set}" = set; then :
28267 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28268else
28269 with_dejavu_font_dir='default'
28270fi
28271
28272
28273if test "$with_dejavu_font_dir" != 'default'; then
28274 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28275fi
28276
28277
28278#
cristy3ed852e2009-09-05 21:47:34 +000028279# Check for FFTW delegate library.
28280#
28281
28282# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028283if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028284 withval=$with_fftw; with_fftw=$withval
28285else
28286 with_fftw='yes'
28287fi
28288
28289
28290if test "$with_fftw" != 'yes'; then
28291 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28292fi
28293
cristy81beccd2011-10-03 18:17:24 +000028294have_fftw='no'
28295FFTW_LIBS=''
28296if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028297 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28298$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28300$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028301 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28302$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028303 failed=0
28304 passed=0
28305 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28306if test "x$ac_cv_header_fftw3_h" = xyes; then :
28307 passed=`expr $passed + 1`
28308else
28309 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028310fi
28311
cristy81beccd2011-10-03 18:17:24 +000028312
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28314$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28315if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28316 $as_echo_n "(cached) " >&6
28317else
28318 ac_check_lib_save_LIBS=$LIBS
28319LIBS="-lfftw3 $LIBS"
28320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28321/* end confdefs.h. */
28322
28323/* Override any GCC internal prototype to avoid an error.
28324 Use char because int might match the return type of a GCC
28325 builtin and then its argument prototype would still apply. */
28326#ifdef __cplusplus
28327extern "C"
28328#endif
28329char fftw_execute ();
28330int
28331main ()
28332{
28333return fftw_execute ();
28334 ;
28335 return 0;
28336}
28337_ACEOF
28338if ac_fn_c_try_link "$LINENO"; then :
28339 ac_cv_lib_fftw3_fftw_execute=yes
28340else
28341 ac_cv_lib_fftw3_fftw_execute=no
28342fi
28343rm -f core conftest.err conftest.$ac_objext \
28344 conftest$ac_exeext conftest.$ac_ext
28345LIBS=$ac_check_lib_save_LIBS
28346fi
28347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28348$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28349if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28350 passed=`expr $passed + 1`
28351else
28352 failed=`expr $failed + 1`
28353fi
28354
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28356$as_echo_n "checking if FFTW package is complete... " >&6; }
28357 if test $passed -gt 0; then
28358 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028359 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28360$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028361 have_fftw='no (failed tests)'
28362 else
28363 FFTW_LIBS='-lfftw3'
28364 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028365
cristy8b350f62009-11-15 23:12:43 +000028366$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028367
cristy09b53e12011-10-14 12:47:22 +000028368 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28369$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028370 have_fftw='yes'
28371 fi
28372 else
cristy09b53e12011-10-14 12:47:22 +000028373 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28374$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028375 fi
28376fi
cristy73bd4a52010-10-05 11:24:23 +000028377 if test "$have_fftw" = 'yes'; then
28378 FFTW_DELEGATE_TRUE=
28379 FFTW_DELEGATE_FALSE='#'
28380else
28381 FFTW_DELEGATE_TRUE='#'
28382 FFTW_DELEGATE_FALSE=
28383fi
28384
cristy3ed852e2009-09-05 21:47:34 +000028385
28386
28387
28388#
28389# Check for FlashPIX delegate library.
28390#
28391
28392# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028393if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028394 withval=$with_fpx; with_fpx=$withval
28395else
28396 with_fpx='yes'
28397fi
28398
28399
28400if test "$with_fpx" != 'yes'; then
28401 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28402fi
28403
28404have_fpx='no'
28405FPX_LIBS=''
28406if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028407 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28408$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028410$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028411 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28412$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028413 failed=0
28414 passed=0
28415 ac_ext=cpp
28416ac_cpp='$CXXCPP $CPPFLAGS'
28417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28420
28421
cristy8b350f62009-11-15 23:12:43 +000028422ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028423if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028424 passed=`expr $passed + 1`
28425else
28426 failed=`expr $failed + 1`
28427fi
28428
28429
cristy8b350f62009-11-15 23:12:43 +000028430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028431$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028432if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028433 $as_echo_n "(cached) " >&6
28434else
28435 ac_check_lib_save_LIBS=$LIBS
28436LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028438/* end confdefs.h. */
28439
28440/* Override any GCC internal prototype to avoid an error.
28441 Use char because int might match the return type of a GCC
28442 builtin and then its argument prototype would still apply. */
28443#ifdef __cplusplus
28444extern "C"
28445#endif
28446char FPX_OpenImageByFilename ();
28447int
28448main ()
28449{
28450return FPX_OpenImageByFilename ();
28451 ;
28452 return 0;
28453}
28454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028455if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028456 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28457else
cristy8b350f62009-11-15 23:12:43 +000028458 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028459fi
cristy8b350f62009-11-15 23:12:43 +000028460rm -f core conftest.err conftest.$ac_objext \
28461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028462LIBS=$ac_check_lib_save_LIBS
28463fi
cristy8b350f62009-11-15 23:12:43 +000028464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028465$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028466if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028467 passed=`expr $passed + 1`
28468else
28469 failed=`expr $failed + 1`
28470fi
28471
28472 ac_ext=c
28473ac_cpp='$CPP $CPPFLAGS'
28474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28476ac_compiler_gnu=$ac_cv_c_compiler_gnu
28477
cristy8b350f62009-11-15 23:12:43 +000028478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028479$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28480 if test $passed -gt 0; then
28481 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028482 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28483$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028484 have_fpx='no (failed tests)'
28485 else
28486 FPX_LIBS='-lfpx'
28487
cristy8b350f62009-11-15 23:12:43 +000028488$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028489
cristy09b53e12011-10-14 12:47:22 +000028490 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28491$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028492 have_fpx='yes'
28493 PERLMAINCC="$CXX"
28494 fi
28495 else
cristy09b53e12011-10-14 12:47:22 +000028496 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28497$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028498 fi
28499fi
cristy73bd4a52010-10-05 11:24:23 +000028500 if test "$have_fpx" = 'yes'; then
28501 FPX_DELEGATE_TRUE=
28502 FPX_DELEGATE_FALSE='#'
28503else
28504 FPX_DELEGATE_TRUE='#'
28505 FPX_DELEGATE_FALSE=
28506fi
28507
cristy3ed852e2009-09-05 21:47:34 +000028508
28509
28510
28511#
28512# Check for fontconfig delegate library.
28513#
28514
28515# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028516if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028517 withval=$with_fontconfig; with_fontconfig=$withval
28518else
28519 with_fontconfig=$have_x
28520fi
28521
28522
28523if test "$with_fontconfig" != 'yes'; then
28524 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28525fi
28526
28527have_fontconfig='no'
28528FONTCONFIG_CFLAGS=""
28529FONTCONFIG_LIBS=""
28530FONTCONFIG_PKG=""
28531if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028532 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28533$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028534
28535pkg_failed=no
28536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28537$as_echo_n "checking for FONTCONFIG... " >&6; }
28538
28539if test -n "$FONTCONFIG_CFLAGS"; then
28540 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28541 elif test -n "$PKG_CONFIG"; then
28542 if test -n "$PKG_CONFIG" && \
28543 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28544 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28545 ac_status=$?
28546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28547 test $ac_status = 0; }; then
28548 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28549else
28550 pkg_failed=yes
28551fi
28552 else
28553 pkg_failed=untried
28554fi
28555if test -n "$FONTCONFIG_LIBS"; then
28556 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28557 elif test -n "$PKG_CONFIG"; then
28558 if test -n "$PKG_CONFIG" && \
28559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28560 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28561 ac_status=$?
28562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28563 test $ac_status = 0; }; then
28564 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28565else
28566 pkg_failed=yes
28567fi
28568 else
28569 pkg_failed=untried
28570fi
28571
28572
28573
28574if test $pkg_failed = yes; then
28575
28576if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28577 _pkg_short_errors_supported=yes
28578else
28579 _pkg_short_errors_supported=no
28580fi
28581 if test $_pkg_short_errors_supported = yes; then
28582 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28583 else
28584 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28585 fi
28586 # Put the nasty error message in config.log where it belongs
28587 echo "$FONTCONFIG_PKG_ERRORS" >&5
28588
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28590$as_echo "no" >&6; }
28591 have_fontconfig=no
28592elif test $pkg_failed = untried; then
28593 have_fontconfig=no
28594else
28595 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28596 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28598$as_echo "yes" >&6; }
28599 have_fontconfig=yes
28600fi
cristy09b53e12011-10-14 12:47:22 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28602$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028603fi
28604
28605if test "$have_fontconfig" = 'yes'; then
28606
cristy8b350f62009-11-15 23:12:43 +000028607$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028608
cristyd09bcf92010-03-25 03:04:45 +000028609 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028610 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028611 fi
cristy3ed852e2009-09-05 21:47:34 +000028612fi
28613
cristy73bd4a52010-10-05 11:24:23 +000028614 if test "$have_fontconfig" = 'yes'; then
28615 FONTCONFIG_DELEGATE_TRUE=
28616 FONTCONFIG_DELEGATE_FALSE='#'
28617else
28618 FONTCONFIG_DELEGATE_TRUE='#'
28619 FONTCONFIG_DELEGATE_FALSE=
28620fi
28621
cristy3ed852e2009-09-05 21:47:34 +000028622
28623
28624
28625
28626#
cristy81beccd2011-10-03 18:17:24 +000028627# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028628#
28629
28630# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028631if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028632 withval=$with_freetype; with_freetype=$withval
28633else
28634 with_freetype='yes'
28635fi
28636
28637
cristy81beccd2011-10-03 18:17:24 +000028638
cristy3ed852e2009-09-05 21:47:34 +000028639if test "$with_freetype" != 'yes'; then
28640 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28641fi
28642
cristy81beccd2011-10-03 18:17:24 +000028643have_freetype='no'
28644FREETYPE_LIBS=''
28645if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028646 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28647$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28649$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028650 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28651$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028652 failed=0
28653 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028654 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028655 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028656 freetype_config=''
28657 # Allow the user to specify the location of freetype.
28658 if test "$with_freetype" != 'yes'; then
28659 if test -x "${with_freetype}/bin/freetype-config"; then
28660 freetype_config="${with_freetype}/bin/freetype-config"
28661 elif test -x "${with_freetype}"; then
28662 freetype_config=${with_freetype}
28663 fi
28664 fi
28665 if test -z "$freetype_config"; then
28666 # Extract the first word of "freetype-config", so it can be a program name with args.
28667set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28669$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028670if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028671 $as_echo_n "(cached) " >&6
28672else
cristy98ca0f52011-10-08 23:19:10 +000028673 case $freetype_config in
28674 [\\/]* | ?:[\\/]*)
28675 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28676 ;;
28677 *)
28678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028679for as_dir in $PATH
28680do
28681 IFS=$as_save_IFS
28682 test -z "$as_dir" && as_dir=.
28683 for ac_exec_ext in '' $ac_executable_extensions; do
28684 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 +000028685 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28687 break 2
28688 fi
28689done
28690 done
28691IFS=$as_save_IFS
28692
cristy98ca0f52011-10-08 23:19:10 +000028693 ;;
28694esac
cristy81beccd2011-10-03 18:17:24 +000028695fi
cristy98ca0f52011-10-08 23:19:10 +000028696freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028697if test -n "$freetype_config"; then
28698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28699$as_echo "$freetype_config" >&6; }
28700else
28701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28702$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028703fi
28704
cristy98ca0f52011-10-08 23:19:10 +000028705 fi
28706 if test -n "$freetype_config"; then
28707 freetype_prefix=`${freetype_config} --prefix`
28708 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28709 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28710 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028711 fi
28712
28713 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028715$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28716if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28717 $as_echo_n "(cached) " >&6
28718else
28719 ac_check_lib_save_LIBS=$LIBS
28720LIBS="-lfreetype $LIBS"
28721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28722/* end confdefs.h. */
28723
28724/* Override any GCC internal prototype to avoid an error.
28725 Use char because int might match the return type of a GCC
28726 builtin and then its argument prototype would still apply. */
28727#ifdef __cplusplus
28728extern "C"
28729#endif
28730char FT_Init_FreeType ();
28731int
28732main ()
28733{
28734return FT_Init_FreeType ();
28735 ;
28736 return 0;
28737}
28738_ACEOF
28739if ac_fn_c_try_link "$LINENO"; then :
28740 ac_cv_lib_freetype_FT_Init_FreeType=yes
28741else
28742 ac_cv_lib_freetype_FT_Init_FreeType=no
28743fi
28744rm -f core conftest.err conftest.$ac_objext \
28745 conftest$ac_exeext conftest.$ac_ext
28746LIBS=$ac_check_lib_save_LIBS
28747fi
28748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28749$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28750if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28751 FREETYPE_LIBS='-lfreetype'
28752fi
28753
cristy98ca0f52011-10-08 23:19:10 +000028754 if test "$FREETYPE_LIBS" != ''; then
28755 passed=`expr $passed + 1`
28756 else
28757 failed=`expr $failed + 1`
28758 LDFLAGS="$PERSIST_LDFLAGS"
28759 fi
cristy81beccd2011-10-03 18:17:24 +000028760 fi
28761
28762 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28763if test "x$ac_cv_header_ft2build_h" = xyes; then :
28764 FT2BUILD_H='#include <ft2build.h>'
28765else
28766 ft2build=''
28767fi
28768
28769
28770 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28771"
28772if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28773 have_freetype_h='yes'
28774else
28775 have_freetype_h='no'
28776fi
28777
28778
cristy98ca0f52011-10-08 23:19:10 +000028779 if test "$have_freetype_h" = 'yes'; then
28780 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028781 else
cristy98ca0f52011-10-08 23:19:10 +000028782 failed=`expr $failed + 1`
28783 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028784 fi
28785
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28787$as_echo_n "checking if FreeType package is complete... " >&6; }
28788 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028789 if test $failed -gt 0; then
28790 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028791 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28792$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028793 have_freetype='no (failed tests)'
28794 else
28795 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028796
cristy8b350f62009-11-15 23:12:43 +000028797$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028798
cristy98ca0f52011-10-08 23:19:10 +000028799 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028800
28801$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28802
cristy81beccd2011-10-03 18:17:24 +000028803 fi
cristy09b53e12011-10-14 12:47:22 +000028804 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28805$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028806 have_freetype='yes'
28807 fi
cristy81beccd2011-10-03 18:17:24 +000028808 else
cristy09b53e12011-10-14 12:47:22 +000028809 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28810$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028811 fi
28812fi
cristy73bd4a52010-10-05 11:24:23 +000028813 if test "$have_freetype" = 'yes'; then
28814 FREETYPE_DELEGATE_TRUE=
28815 FREETYPE_DELEGATE_FALSE='#'
28816else
28817 FREETYPE_DELEGATE_TRUE='#'
28818 FREETYPE_DELEGATE_FALSE=
28819fi
28820
cristy3ed852e2009-09-05 21:47:34 +000028821
28822
28823
cristy3ed852e2009-09-05 21:47:34 +000028824#
28825# Check for Ghostscript library or framework.
28826#
28827# Test for iapi.h & test for gsapi_new_instance in -lgs
28828# or -framework Ghostscript
28829
28830
28831# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028832if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028833 withval=$with_gslib; with_gslib=$withval
28834else
28835 with_gslib='no'
28836fi
28837
28838
cristyb7931f12009-09-25 10:22:21 +000028839gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028840if test "$with_gslib" != 'yes'; then
28841 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28842fi
28843
28844have_gslib='no'
28845GS_LIBS=''
28846if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028847 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28848$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028850$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028851 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28852$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028853 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028854 failed=0
28855 passed=0
cristy8b350f62009-11-15 23:12:43 +000028856 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 +000028857if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028858 passed=`expr $passed + 1`
28859else
28860 failed=`expr $failed + 1`
28861fi
28862
28863
cristy8b350f62009-11-15 23:12:43 +000028864 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 +000028865if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028866 passed=`expr $passed + 1`
28867else
28868 failed=`expr $failed + 1`
28869fi
28870
28871
cristy73bd4a52010-10-05 11:24:23 +000028872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28873$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028874if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028875 $as_echo_n "(cached) " >&6
28876else
28877 ac_check_framework_save_LIBS=$LIBS
28878LIBS="-framework Ghostscript $LIBS"
28879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28880/* end confdefs.h. */
28881
28882/* Override any GCC internal prototype to avoid an error.
28883 Use char because int might match the return type of a GCC
28884 builtin and then its argument prototype would still apply. */
28885#ifdef __cplusplus
28886extern "C"
28887#endif
28888char gsapi_new_instance ();
28889int
28890main ()
28891{
28892return gsapi_new_instance ();
28893 ;
28894 return 0;
28895}
28896_ACEOF
28897if ac_fn_c_try_link "$LINENO"; then :
28898 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28899else
28900 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28901fi
28902rm -f core conftest.err conftest.$ac_objext \
28903 conftest$ac_exeext conftest.$ac_ext
28904LIBS=$ac_check_framework_save_LIBS
28905fi
28906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28907$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28908if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28909 framework=`expr $framework + 1`
28910else
28911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028912$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028913if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028914 $as_echo_n "(cached) " >&6
28915else
28916 ac_check_lib_save_LIBS=$LIBS
28917LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028919/* end confdefs.h. */
28920
28921/* Override any GCC internal prototype to avoid an error.
28922 Use char because int might match the return type of a GCC
28923 builtin and then its argument prototype would still apply. */
28924#ifdef __cplusplus
28925extern "C"
28926#endif
28927char gsapi_new_instance ();
28928int
28929main ()
28930{
28931return gsapi_new_instance ();
28932 ;
28933 return 0;
28934}
28935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028936if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028937 ac_cv_lib_gs_gsapi_new_instance=yes
28938else
cristy8b350f62009-11-15 23:12:43 +000028939 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028940fi
cristy8b350f62009-11-15 23:12:43 +000028941rm -f core conftest.err conftest.$ac_objext \
28942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028943LIBS=$ac_check_lib_save_LIBS
28944fi
cristy8b350f62009-11-15 23:12:43 +000028945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028946$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028947if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028948 passed=`expr $passed + 1`
28949else
28950 failed=`expr $failed + 1`
28951fi
cristy73bd4a52010-10-05 11:24:23 +000028952
28953fi
cristy8b350f62009-11-15 23:12:43 +000028954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028955$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28956 if test $passed -gt 0; then
28957 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028958 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28959$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028960 have_gslib='no (failed tests)'
28961 else
28962 if test $framework -gt 0; then
28963 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028964 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000028965 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
28966$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028967 else
cristy09b53e12011-10-14 12:47:22 +000028968 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
28969$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028970 GS_LIBS='-lgs'
28971 fi
28972 LIBS="$GS_LIBS $LIBS"
28973
cristy8b350f62009-11-15 23:12:43 +000028974$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028975
28976 have_gslib='yes'
28977 fi
28978 else
cristy09b53e12011-10-14 12:47:22 +000028979 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28980$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028981 fi
28982fi
cristy73bd4a52010-10-05 11:24:23 +000028983 if test "$have_gslib" = 'yes'; then
28984 GS_DELEGATE_TRUE=
28985 GS_DELEGATE_FALSE='#'
28986else
28987 GS_DELEGATE_TRUE='#'
28988 GS_DELEGATE_FALSE=
28989fi
28990
cristy3ed852e2009-09-05 21:47:34 +000028991
28992
28993# Set default font search path
28994
28995# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028996if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028997 withval=$with_fontpath; with_fontpath=$withval
28998else
28999 with_fontpath=''
29000fi
29001
29002
29003if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29004 with_fontpath=''
29005else
29006
29007cat >>confdefs.h <<_ACEOF
29008#define MAGICK_FONT_PATH "$with_fontpath"
29009_ACEOF
29010
29011fi
29012if test "$with_fontpath=" != ''; then
29013 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29014fi
29015
29016# Set Ghostscript font directory
29017
29018# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029019if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029020 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29021else
29022 with_gs_font_dir='default'
29023fi
29024
29025
29026if test "$with_gs_font_dir" != 'default'; then
29027 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29028fi
29029
29030
29031#
29032# Check for GVC delegate library.
29033#
29034
29035# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029036if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029037 withval=$with_gvc; with_gvc=$withval
29038else
29039 with_gvc='yes'
29040fi
29041
29042
29043if test "$with_gvc" != 'yes'; then
29044 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29045fi
29046
29047GVC_PKG=""
29048if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29050$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029051
29052pkg_failed=no
29053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29054$as_echo_n "checking for GVC... " >&6; }
29055
29056if test -n "$GVC_CFLAGS"; then
29057 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29058 elif test -n "$PKG_CONFIG"; then
29059 if test -n "$PKG_CONFIG" && \
29060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29061 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29062 ac_status=$?
29063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29064 test $ac_status = 0; }; then
29065 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29066else
29067 pkg_failed=yes
29068fi
29069 else
29070 pkg_failed=untried
29071fi
29072if test -n "$GVC_LIBS"; then
29073 pkg_cv_GVC_LIBS="$GVC_LIBS"
29074 elif test -n "$PKG_CONFIG"; then
29075 if test -n "$PKG_CONFIG" && \
29076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29077 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29078 ac_status=$?
29079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29080 test $ac_status = 0; }; then
29081 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29082else
29083 pkg_failed=yes
29084fi
29085 else
29086 pkg_failed=untried
29087fi
29088
29089
29090
29091if test $pkg_failed = yes; then
29092
29093if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29094 _pkg_short_errors_supported=yes
29095else
29096 _pkg_short_errors_supported=no
29097fi
29098 if test $_pkg_short_errors_supported = yes; then
29099 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29100 else
29101 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29102 fi
29103 # Put the nasty error message in config.log where it belongs
29104 echo "$GVC_PKG_ERRORS" >&5
29105
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29107$as_echo "no" >&6; }
29108 have_gvc=no
29109elif test $pkg_failed = untried; then
29110 have_gvc=no
29111else
29112 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29113 GVC_LIBS=$pkg_cv_GVC_LIBS
29114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29115$as_echo "yes" >&6; }
29116 have_gvc=yes
29117fi
cristy09b53e12011-10-14 12:47:22 +000029118 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29119$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029120fi
29121
29122if test "$have_gvc" = 'yes'; then
29123
cristy8b350f62009-11-15 23:12:43 +000029124$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029125
29126 if test "$with_modules" = 'no'; then
29127 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29128 fi
29129fi
29130
cristy73bd4a52010-10-05 11:24:23 +000029131 if test "$have_gvc" = 'yes'; then
29132 GVC_DELEGATE_TRUE=
29133 GVC_DELEGATE_FALSE='#'
29134else
29135 GVC_DELEGATE_TRUE='#'
29136 GVC_DELEGATE_FALSE=
29137fi
29138
cristy3ed852e2009-09-05 21:47:34 +000029139
29140
29141
29142
29143#
29144# Check for JBIG delegate library.
29145#
29146
29147
29148# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029149if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029150 withval=$with_jbig; with_jbig=$withval
29151else
29152 with_jbig='yes'
29153fi
29154
29155
29156have_jbig='no'
29157JBIG_LIBS=''
29158if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029159 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29160$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029162$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029163 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29164$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029165 failed=0
29166 passed=0
cristy8b350f62009-11-15 23:12:43 +000029167 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029168if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029169 passed=`expr $passed + 1`
29170else
29171 failed=`expr $failed + 1`
29172fi
29173
29174
cristy8b350f62009-11-15 23:12:43 +000029175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029176$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029177if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029178 $as_echo_n "(cached) " >&6
29179else
29180 ac_check_lib_save_LIBS=$LIBS
29181LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029183/* end confdefs.h. */
29184
29185/* Override any GCC internal prototype to avoid an error.
29186 Use char because int might match the return type of a GCC
29187 builtin and then its argument prototype would still apply. */
29188#ifdef __cplusplus
29189extern "C"
29190#endif
29191char jbg_dec_init ();
29192int
29193main ()
29194{
29195return jbg_dec_init ();
29196 ;
29197 return 0;
29198}
29199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029200if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029201 ac_cv_lib_jbig_jbg_dec_init=yes
29202else
cristy8b350f62009-11-15 23:12:43 +000029203 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029204fi
cristy8b350f62009-11-15 23:12:43 +000029205rm -f core conftest.err conftest.$ac_objext \
29206 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029207LIBS=$ac_check_lib_save_LIBS
29208fi
cristy8b350f62009-11-15 23:12:43 +000029209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029210$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029211if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029212 passed=`expr $passed + 1`
29213else
29214 failed=`expr $failed + 1`
29215fi
29216
cristy8b350f62009-11-15 23:12:43 +000029217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029218$as_echo_n "checking if JBIG package is complete... " >&6; }
29219 if test $passed -gt 0; then
29220 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029221 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29222$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029223 have_jbig='no (failed tests)'
29224 else
29225 JBIG_LIBS='-ljbig'
29226 LIBS="$JBIG_LIBS $LIBS"
29227
cristy8b350f62009-11-15 23:12:43 +000029228$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029229
cristy09b53e12011-10-14 12:47:22 +000029230 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29231$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029232 have_jbig='yes'
29233 fi
29234 else
cristy09b53e12011-10-14 12:47:22 +000029235 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29236$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029237 fi
29238fi
cristy73bd4a52010-10-05 11:24:23 +000029239 if test "$have_jbig" = 'yes'; then
29240 JBIG_DELEGATE_TRUE=
29241 JBIG_DELEGATE_FALSE='#'
29242else
29243 JBIG_DELEGATE_TRUE='#'
29244 JBIG_DELEGATE_FALSE=
29245fi
29246
cristy3ed852e2009-09-05 21:47:34 +000029247
29248
29249
29250#
29251# Check for JPEG delegate library.
29252#
29253
29254# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029255if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029256 withval=$with_jpeg; with_jpeg=$withval
29257else
29258 with_jpeg='yes'
29259fi
29260
29261
29262if test "$with_jpeg" != 'yes'; then
29263 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29264fi
29265
29266have_jpeg='no'
29267JPEG_LIBS=''
29268if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029269 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29270$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029272$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029273 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29274$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029275 failed=0
29276 passed=0
cristy8b350f62009-11-15 23:12:43 +000029277 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029278if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029279 passed=`expr $passed + 1`
29280else
29281 failed=`expr $failed + 1`
29282fi
29283
29284
cristy8b350f62009-11-15 23:12:43 +000029285 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029286if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029287 passed=`expr $passed + 1`
29288else
29289 failed=`expr $failed + 1`
29290fi
29291
29292
cristy8b350f62009-11-15 23:12:43 +000029293 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029294if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029295 passed=`expr $passed + 1`
29296else
29297 failed=`expr $failed + 1`
29298fi
29299
29300
cristy8b350f62009-11-15 23:12:43 +000029301 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029302if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029303 passed=`expr $passed + 1`
29304else
29305 failed=`expr $failed + 1`
29306fi
29307
29308
cristy8b350f62009-11-15 23:12:43 +000029309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029310$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029311if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029312 $as_echo_n "(cached) " >&6
29313else
29314 ac_check_lib_save_LIBS=$LIBS
29315LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029317/* end confdefs.h. */
29318
29319/* Override any GCC internal prototype to avoid an error.
29320 Use char because int might match the return type of a GCC
29321 builtin and then its argument prototype would still apply. */
29322#ifdef __cplusplus
29323extern "C"
29324#endif
29325char jpeg_read_header ();
29326int
29327main ()
29328{
29329return jpeg_read_header ();
29330 ;
29331 return 0;
29332}
29333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029334if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029335 ac_cv_lib_jpeg_jpeg_read_header=yes
29336else
cristy8b350f62009-11-15 23:12:43 +000029337 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029338fi
cristy8b350f62009-11-15 23:12:43 +000029339rm -f core conftest.err conftest.$ac_objext \
29340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029341LIBS=$ac_check_lib_save_LIBS
29342fi
cristy8b350f62009-11-15 23:12:43 +000029343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029344$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029345if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029346 passed=`expr $passed + 1`
29347else
29348 failed=`expr $failed + 1`
29349fi
29350
29351
29352# Test for compatible JPEG library
29353if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029355$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029356if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029357 $as_echo_n "(cached) " >&6
29358else
cristy8b350f62009-11-15 23:12:43 +000029359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029360/* end confdefs.h. */
29361#include <stdio.h>
29362#include <stdlib.h>
29363#include <jpeglib.h>
29364
29365int
29366main ()
29367{
29368
29369#if JPEG_LIB_VERSION < 62
29370#error IJG JPEG library must be version 6b or newer!
29371#endif
29372return 0;
29373
29374 ;
29375 return 0;
29376}
29377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029378if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029379 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29380else
cristy8b350f62009-11-15 23:12:43 +000029381 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029382fi
cristy3ed852e2009-09-05 21:47:34 +000029383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29384fi
cristy8b350f62009-11-15 23:12:43 +000029385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029386$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29387fi
cristy8b350f62009-11-15 23:12:43 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029389$as_echo_n "checking if JPEG package is complete... " >&6; }
29390 if test $passed -gt 0; then
29391 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29393$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029394 have_jpeg='no (failed tests)'
29395 else
29396 JPEG_LIBS='-ljpeg'
29397 LIBS="$JPEG_LIBS $LIBS"
29398
cristy8b350f62009-11-15 23:12:43 +000029399$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029400
cristy09b53e12011-10-14 12:47:22 +000029401 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29402$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029403 have_jpeg='yes'
29404 fi
29405 else
cristy09b53e12011-10-14 12:47:22 +000029406 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29407$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029408 fi
29409fi
cristy73bd4a52010-10-05 11:24:23 +000029410 if test "$have_jpeg" = 'yes'; then
29411 JPEG_DELEGATE_TRUE=
29412 JPEG_DELEGATE_FALSE='#'
29413else
29414 JPEG_DELEGATE_TRUE='#'
29415 JPEG_DELEGATE_FALSE=
29416fi
29417
cristy3ed852e2009-09-05 21:47:34 +000029418
29419
29420
29421#
29422# Check for JPEG Version 2 delegate library.
29423#
29424
29425# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029426if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029427 withval=$with_jp2; with_jp2=$withval
29428else
29429 with_jp2='yes'
29430fi
29431
29432
29433if test "$with_jp2" != 'yes'; then
29434 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29435fi
29436
29437have_jp2='no'
29438JP2_LIBS=''
29439if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029440 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29441$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029443$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029444 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29445$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029446 failed=0
29447 passed=0
cristy8b350f62009-11-15 23:12:43 +000029448 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 +000029449if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029450 passed=`expr $passed + 1`
29451else
29452 failed=`expr $failed + 1`
29453fi
29454
29455
cristy8b350f62009-11-15 23:12:43 +000029456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029457$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029458if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029459 $as_echo_n "(cached) " >&6
29460else
29461 ac_check_lib_save_LIBS=$LIBS
29462LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029464/* end confdefs.h. */
29465
29466/* Override any GCC internal prototype to avoid an error.
29467 Use char because int might match the return type of a GCC
29468 builtin and then its argument prototype would still apply. */
29469#ifdef __cplusplus
29470extern "C"
29471#endif
29472char jas_stream_fopen ();
29473int
29474main ()
29475{
29476return jas_stream_fopen ();
29477 ;
29478 return 0;
29479}
29480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029481if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029482 ac_cv_lib_jasper_jas_stream_fopen=yes
29483else
cristy8b350f62009-11-15 23:12:43 +000029484 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029485fi
cristy8b350f62009-11-15 23:12:43 +000029486rm -f core conftest.err conftest.$ac_objext \
29487 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029488LIBS=$ac_check_lib_save_LIBS
29489fi
cristy8b350f62009-11-15 23:12:43 +000029490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029491$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029492if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029493 passed=`expr $passed + 1`
29494else
29495 failed=`expr $failed + 1`
29496fi
29497
cristy8b350f62009-11-15 23:12:43 +000029498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029499$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29500 if test $passed -gt 0; then
29501 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029502 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29503$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029504 have_jp2='no (failed tests)'
29505 else
29506 JP2_LIBS='-ljasper'
29507 LIBS="$JP2_LIBS $LIBS"
29508
cristy8b350f62009-11-15 23:12:43 +000029509$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029510
cristy09b53e12011-10-14 12:47:22 +000029511 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29512$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029513 have_jp2='yes'
29514 fi
29515 else
cristy09b53e12011-10-14 12:47:22 +000029516 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29517$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029518 fi
29519fi
cristy73bd4a52010-10-05 11:24:23 +000029520 if test "$have_jp2" = 'yes'; then
29521 JP2_DELEGATE_TRUE=
29522 JP2_DELEGATE_FALSE='#'
29523else
29524 JP2_DELEGATE_TRUE='#'
29525 JP2_DELEGATE_FALSE=
29526fi
29527
cristy3ed852e2009-09-05 21:47:34 +000029528
29529
29530
29531#
29532# Check for LCMS delegate library.
29533#
cristy71203402010-06-18 13:12:03 +000029534# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029535
29536# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029537if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029538 withval=$with_lcms; with_lcms=$withval
29539else
29540 with_lcms='yes'
29541fi
29542
cristy71203402010-06-18 13:12:03 +000029543if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029544 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29545fi
29546
cristy71203402010-06-18 13:12:03 +000029547# Disable LCMS2.
29548
29549# Check whether --with-lcms2 was given.
29550if test "${with_lcms2+set}" = set; then :
29551 withval=$with_lcms2; with_lcms2=$withval
29552else
29553 with_lcms2='yes'
29554fi
29555
29556if test "$with_lcms2" != 'yes' ; then
29557 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29558fi
29559
29560have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029561LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029562if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29564$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29566$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029567 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29568$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029569 failed=0
29570 passed=0
29571 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029572
29573 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029574 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029575if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029576 have_lcms_header='yes'
29577fi
29578
29579
29580 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029581
29582$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29583
cristy71203402010-06-18 13:12:03 +000029584 passed=`expr $passed + 1`
29585 fi
29586
29587 # Check for <lcms2/lcms2.h)
29588 if test "$have_lcms_header" != 'yes'; then
29589 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 +000029590if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029591 have_lcms_header='yes'
29592fi
29593
29594
cristy71203402010-06-18 13:12:03 +000029595 if test "$have_lcms_header" = 'yes'; then
29596 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029597
cristy71203402010-06-18 13:12:03 +000029598$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029599
cristy71203402010-06-18 13:12:03 +000029600 fi
cristyd09bcf92010-03-25 03:04:45 +000029601 fi
cristy71203402010-06-18 13:12:03 +000029602
29603 # Failed to find lcms header?
29604 if test "$have_lcms_header" != 'yes'; then
29605 failed=`expr $failed + 1`
29606 fi
29607
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29609$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029610if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029611 $as_echo_n "(cached) " >&6
29612else
29613 ac_check_lib_save_LIBS=$LIBS
29614LIBS="-llcms2 $LIBS"
29615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29616/* end confdefs.h. */
29617
29618/* Override any GCC internal prototype to avoid an error.
29619 Use char because int might match the return type of a GCC
29620 builtin and then its argument prototype would still apply. */
29621#ifdef __cplusplus
29622extern "C"
29623#endif
cristy71203402010-06-18 13:12:03 +000029624char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029625int
29626main ()
29627{
cristy71203402010-06-18 13:12:03 +000029628return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029629 ;
29630 return 0;
29631}
29632_ACEOF
29633if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029634 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029635else
cristy71203402010-06-18 13:12:03 +000029636 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029637fi
29638rm -f core conftest.err conftest.$ac_objext \
29639 conftest$ac_exeext conftest.$ac_ext
29640LIBS=$ac_check_lib_save_LIBS
29641fi
cristy71203402010-06-18 13:12:03 +000029642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29643$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029644if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029645 passed=`expr $passed + 1`
29646else
29647 failed=`expr $failed + 1`
29648fi
29649
cristy71203402010-06-18 13:12:03 +000029650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29651$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029652 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029653 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029654 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29655$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029656 have_lcms2='no (failed tests)'
29657 else
29658 LCMS_LIBS='-llcms2'
29659 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029660 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29661$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029662 have_lcms2='yes'
29663 fi
cristyd09bcf92010-03-25 03:04:45 +000029664 else
cristy09b53e12011-10-14 12:47:22 +000029665 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29666$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029667 fi
29668fi
29669
cristy71203402010-06-18 13:12:03 +000029670#
29671# Check for LCMS v1 (1.11 or later)
29672#
29673if test $have_lcms2 = 'yes'; then
29674 with_lcms='no'
29675fi
29676
29677have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029678if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029679 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29680$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29682$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029683 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29684$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029685 failed=0
29686 passed=0
29687 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029688
29689 # Check for <lcms.h>
29690 if test "$have_lcms_header" != 'yes'; then
29691 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029692if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029693 have_lcms_header='yes'
29694fi
29695
29696
cristy71203402010-06-18 13:12:03 +000029697 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029698 passed=`expr $passed + 1`
29699
cristy8b350f62009-11-15 23:12:43 +000029700$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029701
cristy71203402010-06-18 13:12:03 +000029702 fi
29703 fi
29704
29705 # Check for <lcms/lcms.h>
29706 if test "$have_lcms_header" != 'yes'; then
29707 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 +000029708if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029709 have_lcms_header='yes'
29710fi
29711
29712
cristy71203402010-06-18 13:12:03 +000029713 if test "$have_lcms_header" = 'yes'; then
29714 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029715
cristy8b350f62009-11-15 23:12:43 +000029716$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029717
cristy71203402010-06-18 13:12:03 +000029718 fi
cristy3ed852e2009-09-05 21:47:34 +000029719 fi
cristy71203402010-06-18 13:12:03 +000029720
29721 # Failed to find lcms header?
29722 if test "$have_lcms_header" != 'yes'; then
29723 failed=`expr $failed + 1`
29724 fi
29725
29726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29727$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029728if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029729 $as_echo_n "(cached) " >&6
29730else
29731 ac_check_lib_save_LIBS=$LIBS
29732LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029734/* end confdefs.h. */
29735
29736/* Override any GCC internal prototype to avoid an error.
29737 Use char because int might match the return type of a GCC
29738 builtin and then its argument prototype would still apply. */
29739#ifdef __cplusplus
29740extern "C"
29741#endif
cristy71203402010-06-18 13:12:03 +000029742char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029743int
29744main ()
29745{
cristy71203402010-06-18 13:12:03 +000029746return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029747 ;
29748 return 0;
29749}
29750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029751if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029752 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029753else
cristy71203402010-06-18 13:12:03 +000029754 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029755fi
cristy8b350f62009-11-15 23:12:43 +000029756rm -f core conftest.err conftest.$ac_objext \
29757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029758LIBS=$ac_check_lib_save_LIBS
29759fi
cristy71203402010-06-18 13:12:03 +000029760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29761$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029762if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029763 passed=`expr $passed + 1`
29764else
29765 failed=`expr $failed + 1`
29766fi
29767
cristy8b350f62009-11-15 23:12:43 +000029768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029769$as_echo_n "checking if LCMS package is complete... " >&6; }
29770 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029771 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029772 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29773$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029774 have_lcms='no (failed tests)'
29775 else
29776 LCMS_LIBS='-llcms'
29777 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029778 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29779$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029780 have_lcms='yes'
29781 fi
cristy3ed852e2009-09-05 21:47:34 +000029782 else
cristy09b53e12011-10-14 12:47:22 +000029783 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29784$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029785 fi
29786fi
cristy71203402010-06-18 13:12:03 +000029787
cristy73bd4a52010-10-05 11:24:23 +000029788 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29789 LCMS_DELEGATE_TRUE=
29790 LCMS_DELEGATE_FALSE='#'
29791else
29792 LCMS_DELEGATE_TRUE='#'
29793 LCMS_DELEGATE_FALSE=
29794fi
29795
cristy71203402010-06-18 13:12:03 +000029796if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29797
29798$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29799
29800fi
29801
cristy3ed852e2009-09-05 21:47:34 +000029802
29803
29804
29805#
29806# Check for the LQR (Liquid Rescale) delegate library.
29807#
29808
29809# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029810if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029811 withval=$with_lqr; with_lqr=$withval
29812else
29813 with_lqr='yes'
29814fi
29815
29816
29817if test "$with_lqr" != 'yes'; then
29818 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29819fi
29820
29821have_lqr='no'
29822LQR_CFLAGS=""
29823LQR_LIBS=""
29824LQR_PKG=""
29825if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029826 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29827$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029828
29829pkg_failed=no
29830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29831$as_echo_n "checking for LQR... " >&6; }
29832
29833if test -n "$LQR_CFLAGS"; then
29834 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29835 elif test -n "$PKG_CONFIG"; then
29836 if test -n "$PKG_CONFIG" && \
29837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29838 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29839 ac_status=$?
29840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29841 test $ac_status = 0; }; then
29842 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29843else
29844 pkg_failed=yes
29845fi
29846 else
29847 pkg_failed=untried
29848fi
29849if test -n "$LQR_LIBS"; then
29850 pkg_cv_LQR_LIBS="$LQR_LIBS"
29851 elif test -n "$PKG_CONFIG"; then
29852 if test -n "$PKG_CONFIG" && \
29853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29854 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29855 ac_status=$?
29856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29857 test $ac_status = 0; }; then
29858 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29859else
29860 pkg_failed=yes
29861fi
29862 else
29863 pkg_failed=untried
29864fi
29865
29866
29867
29868if test $pkg_failed = yes; then
29869
29870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29871 _pkg_short_errors_supported=yes
29872else
29873 _pkg_short_errors_supported=no
29874fi
29875 if test $_pkg_short_errors_supported = yes; then
29876 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29877 else
29878 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29879 fi
29880 # Put the nasty error message in config.log where it belongs
29881 echo "$LQR_PKG_ERRORS" >&5
29882
29883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29884$as_echo "no" >&6; }
29885 have_lqr=no
29886elif test $pkg_failed = untried; then
29887 have_lqr=no
29888else
29889 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29890 LQR_LIBS=$pkg_cv_LQR_LIBS
29891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29892$as_echo "yes" >&6; }
29893 have_lqr=yes
29894fi
cristy09b53e12011-10-14 12:47:22 +000029895 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29896$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029897fi
29898
29899if test "$have_lqr" = 'yes'; then
29900
cristy8b350f62009-11-15 23:12:43 +000029901$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029902
29903 CFLAGS="$LQR_CFLAGS $CFLAGS"
29904fi
29905
cristy73bd4a52010-10-05 11:24:23 +000029906 if test "$have_lqr" = 'yes'; then
29907 LQR_DELEGATE_TRUE=
29908 LQR_DELEGATE_FALSE='#'
29909else
29910 LQR_DELEGATE_TRUE='#'
29911 LQR_DELEGATE_FALSE=
29912fi
29913
cristy3ed852e2009-09-05 21:47:34 +000029914
29915
29916
29917
cristy81beccd2011-10-03 18:17:24 +000029918# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000029919
29920# Check whether --with-lzma was given.
29921if test "${with_lzma+set}" = set; then :
29922 withval=$with_lzma; with_lzma=$withval
29923else
29924 with_lzma='yes'
29925fi
29926
cristy81beccd2011-10-03 18:17:24 +000029927if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000029928 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29929fi
29930
cristy81beccd2011-10-03 18:17:24 +000029931#
29932# Check for LZMA
29933#
29934have_lzma='no'
29935LZMA_LIBS=''
29936if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029937 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29938$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000029940$as_echo_n "checking for LZMA... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029941 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29942$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029943 failed=0
29944 passed=0
29945 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
29946if test "x$ac_cv_header_lzma_h" = xyes; then :
29947 passed=`expr $passed + 1`
29948else
29949 failed=`expr $failed + 1`
cristyfbb0ef02010-12-19 02:32:11 +000029950fi
29951
cristy81beccd2011-10-03 18:17:24 +000029952
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29954$as_echo_n "checking for lzma_code in -llzma... " >&6; }
29955if ${ac_cv_lib_lzma_lzma_code+:} false; then :
29956 $as_echo_n "(cached) " >&6
29957else
29958 ac_check_lib_save_LIBS=$LIBS
29959LIBS="-llzma $LIBS"
29960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29961/* end confdefs.h. */
29962
29963/* Override any GCC internal prototype to avoid an error.
29964 Use char because int might match the return type of a GCC
29965 builtin and then its argument prototype would still apply. */
29966#ifdef __cplusplus
29967extern "C"
29968#endif
29969char lzma_code ();
29970int
29971main ()
29972{
29973return lzma_code ();
29974 ;
29975 return 0;
29976}
29977_ACEOF
29978if ac_fn_c_try_link "$LINENO"; then :
29979 ac_cv_lib_lzma_lzma_code=yes
29980else
29981 ac_cv_lib_lzma_lzma_code=no
29982fi
29983rm -f core conftest.err conftest.$ac_objext \
29984 conftest$ac_exeext conftest.$ac_ext
29985LIBS=$ac_check_lib_save_LIBS
29986fi
29987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29988$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
29989if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
29990 passed=`expr $passed + 1`
29991else
29992 failed=`expr $failed + 1`
29993fi
29994
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29996$as_echo_n "checking if LZMA package is complete... " >&6; }
29997 if test $passed -gt 0; then
29998 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029999 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30000$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030001 have_lzma='no (failed tests)'
30002 else
30003 LZMA_LIBS='-llzma'
30004 LIBS="$LZMA_LIBS $LIBS"
cristyfbb0ef02010-12-19 02:32:11 +000030005
30006$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30007
cristy09b53e12011-10-14 12:47:22 +000030008 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30009$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030010 have_lzma='yes'
cristyfbb0ef02010-12-19 02:32:11 +000030011 fi
cristy81beccd2011-10-03 18:17:24 +000030012 else
cristy09b53e12011-10-14 12:47:22 +000030013 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30014$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030015 fi
cristyfbb0ef02010-12-19 02:32:11 +000030016fi
30017 if test "$have_lzma" = 'yes'; then
30018 LZMA_DELEGATE_TRUE=
30019 LZMA_DELEGATE_FALSE='#'
30020else
30021 LZMA_DELEGATE_TRUE='#'
30022 LZMA_DELEGATE_FALSE=
30023fi
30024
30025
30026
30027
cristy3ed852e2009-09-05 21:47:34 +000030028#
30029# Check for the OpenEXR delegate library.
30030#
30031
30032# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030033if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030034 withval=$with_openexr; with_openexr=$withval
30035else
30036 with_openexr='yes'
30037fi
30038
30039
30040if test "$with_openexr" != 'yes'; then
30041 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30042fi
30043
30044have_openexr='no'
30045OPENEXR_CFLAGS=""
30046OPENEXR_LIBS=""
30047OPENEXR_PKG=""
30048if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030049 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30050$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030051
30052pkg_failed=no
30053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30054$as_echo_n "checking for OPENEXR... " >&6; }
30055
30056if test -n "$OPENEXR_CFLAGS"; then
30057 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30058 elif test -n "$PKG_CONFIG"; then
30059 if test -n "$PKG_CONFIG" && \
30060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30061 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30062 ac_status=$?
30063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30064 test $ac_status = 0; }; then
30065 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30066else
30067 pkg_failed=yes
30068fi
30069 else
30070 pkg_failed=untried
30071fi
30072if test -n "$OPENEXR_LIBS"; then
30073 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30074 elif test -n "$PKG_CONFIG"; then
30075 if test -n "$PKG_CONFIG" && \
30076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30077 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30078 ac_status=$?
30079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30080 test $ac_status = 0; }; then
30081 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30082else
30083 pkg_failed=yes
30084fi
30085 else
30086 pkg_failed=untried
30087fi
30088
30089
30090
30091if test $pkg_failed = yes; then
30092
30093if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30094 _pkg_short_errors_supported=yes
30095else
30096 _pkg_short_errors_supported=no
30097fi
30098 if test $_pkg_short_errors_supported = yes; then
30099 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30100 else
30101 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30102 fi
30103 # Put the nasty error message in config.log where it belongs
30104 echo "$OPENEXR_PKG_ERRORS" >&5
30105
30106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30107$as_echo "no" >&6; }
30108 have_openexr=no
30109elif test $pkg_failed = untried; then
30110 have_openexr=no
30111else
30112 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30113 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30115$as_echo "yes" >&6; }
30116 have_openexr=yes
30117fi
cristy09b53e12011-10-14 12:47:22 +000030118 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30119$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030120fi
30121
30122if test "$have_openexr" = 'yes'; then
30123
cristy8b350f62009-11-15 23:12:43 +000030124$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030125
30126 if test "$with_modules" = 'no'; then
30127 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30128 fi
30129fi
30130
cristy73bd4a52010-10-05 11:24:23 +000030131 if test "$have_openexr" = 'yes'; then
30132 OPENEXR_DELEGATE_TRUE=
30133 OPENEXR_DELEGATE_FALSE='#'
30134else
30135 OPENEXR_DELEGATE_TRUE='#'
30136 OPENEXR_DELEGATE_FALSE=
30137fi
30138
cristy3ed852e2009-09-05 21:47:34 +000030139
30140
30141
30142
30143#
30144# Check for PNG delegate library.
30145#
30146
30147# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030148if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030149 withval=$with_png; with_png=$withval
30150else
30151 with_png='yes'
30152fi
30153
30154
30155if test "$with_png" != 'yes'; then
30156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30157fi
30158
cristy81beccd2011-10-03 18:17:24 +000030159have_png='no'
30160PNG_LIBS=''
30161
30162if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030163 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30164$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30166$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030167 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30168$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030169 failed=0
30170 passed=0
30171 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30172if test "x$ac_cv_header_png_h" = xyes; then :
30173 passed=`expr $passed + 1`
30174else
30175 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030176fi
30177
cristy81beccd2011-10-03 18:17:24 +000030178
30179
30180 if test $passed -gt 0; then
30181 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030182 if test "$have_png" = 'no' ; then
30183 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030184 pnglib='png'
30185 else
30186 pnglib="png1${var}"
30187 fi
30188
30189# Test for compatible LIBPNG library
30190 failed=0
30191 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030192 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030193 if test "${pnglib}" != 'png' ; then
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30195$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30197/* end confdefs.h. */
30198#include <stdio.h>
30199#include <stdlib.h>
30200#include <png.h>
30201
30202int
30203main ()
30204{
30205
30206#if PNG_LIBPNG_VER_MINOR != ${var}
30207#error LIBPNG library must be version 1${var}!
30208Kaboom, Kaboom
30209#endif
30210return 0;
30211
30212 ;
30213 return 0;
30214}
30215_ACEOF
30216if ac_fn_c_try_compile "$LINENO"; then :
30217 ac_cv_libpng_ok='yes'
30218else
30219 ac_cv_libpng_ok='no'
30220fi
30221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30222 if test "$ac_cv_libpng_ok" = 'yes' ; then
30223 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030224 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30225$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030226 else
30227 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030228 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30229$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030230 fi
30231 else
30232 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030233 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30234$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030235 fi
30236 fi
30237
30238 if test $passed -gt 0 -a $failed -le 0; then
30239 if test "1${var}" = '15' ; then
30240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30241$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30242if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30243 $as_echo_n "(cached) " >&6
30244else
30245 ac_check_lib_save_LIBS=$LIBS
30246LIBS="-lpng15 $LIBS"
30247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30248/* end confdefs.h. */
30249
30250/* Override any GCC internal prototype to avoid an error.
30251 Use char because int might match the return type of a GCC
30252 builtin and then its argument prototype would still apply. */
30253#ifdef __cplusplus
30254extern "C"
30255#endif
30256char png_get_io_ptr ();
30257int
30258main ()
30259{
30260return png_get_io_ptr ();
30261 ;
30262 return 0;
30263}
30264_ACEOF
30265if ac_fn_c_try_link "$LINENO"; then :
30266 ac_cv_lib_png15_png_get_io_ptr=yes
30267else
30268 ac_cv_lib_png15_png_get_io_ptr=no
30269fi
30270rm -f core conftest.err conftest.$ac_objext \
30271 conftest$ac_exeext conftest.$ac_ext
30272LIBS=$ac_check_lib_save_LIBS
30273fi
30274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30275$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30276if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30277 passed=`expr $passed + 1`
30278else
30279 failed=`expr $failed + 1`
30280fi
30281
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30283$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30284if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30285 $as_echo_n "(cached) " >&6
30286else
30287 ac_check_lib_save_LIBS=$LIBS
30288LIBS="-lpng15 $LIBS"
30289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30290/* end confdefs.h. */
30291
30292/* Override any GCC internal prototype to avoid an error.
30293 Use char because int might match the return type of a GCC
30294 builtin and then its argument prototype would still apply. */
30295#ifdef __cplusplus
30296extern "C"
30297#endif
30298char png_longjmp ();
30299int
30300main ()
30301{
30302return png_longjmp ();
30303 ;
30304 return 0;
30305}
30306_ACEOF
30307if ac_fn_c_try_link "$LINENO"; then :
30308 ac_cv_lib_png15_png_longjmp=yes
30309else
30310 ac_cv_lib_png15_png_longjmp=no
30311fi
30312rm -f core conftest.err conftest.$ac_objext \
30313 conftest$ac_exeext conftest.$ac_ext
30314LIBS=$ac_check_lib_save_LIBS
30315fi
30316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30317$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30318if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30319 passed=`expr $passed + 1`
30320else
30321 failed=`expr $failed + 1`
30322fi
30323
30324 fi
30325 if test "1${var}" = '14' ; then
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30327$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30328if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30329 $as_echo_n "(cached) " >&6
30330else
30331 ac_check_lib_save_LIBS=$LIBS
30332LIBS="-lpng14 $LIBS"
30333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30334/* end confdefs.h. */
30335
30336/* Override any GCC internal prototype to avoid an error.
30337 Use char because int might match the return type of a GCC
30338 builtin and then its argument prototype would still apply. */
30339#ifdef __cplusplus
30340extern "C"
30341#endif
30342char png_get_io_ptr ();
30343int
30344main ()
30345{
30346return png_get_io_ptr ();
30347 ;
30348 return 0;
30349}
30350_ACEOF
30351if ac_fn_c_try_link "$LINENO"; then :
30352 ac_cv_lib_png14_png_get_io_ptr=yes
30353else
30354 ac_cv_lib_png14_png_get_io_ptr=no
30355fi
30356rm -f core conftest.err conftest.$ac_objext \
30357 conftest$ac_exeext conftest.$ac_ext
30358LIBS=$ac_check_lib_save_LIBS
30359fi
30360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30361$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30362if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30363 passed=`expr $passed + 1`
30364else
30365 failed=`expr $failed + 1`
30366fi
30367
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30369$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30370if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30371 $as_echo_n "(cached) " >&6
30372else
30373 ac_check_lib_save_LIBS=$LIBS
30374LIBS="-lpng14 $LIBS"
30375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30376/* end confdefs.h. */
30377
30378/* Override any GCC internal prototype to avoid an error.
30379 Use char because int might match the return type of a GCC
30380 builtin and then its argument prototype would still apply. */
30381#ifdef __cplusplus
30382extern "C"
30383#endif
30384char png_get_io_state ();
30385int
30386main ()
30387{
30388return png_get_io_state ();
30389 ;
30390 return 0;
30391}
30392_ACEOF
30393if ac_fn_c_try_link "$LINENO"; then :
30394 ac_cv_lib_png14_png_get_io_state=yes
30395else
30396 ac_cv_lib_png14_png_get_io_state=no
30397fi
30398rm -f core conftest.err conftest.$ac_objext \
30399 conftest$ac_exeext conftest.$ac_ext
30400LIBS=$ac_check_lib_save_LIBS
30401fi
30402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30403$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30404if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30405 passed=`expr $passed + 1`
30406else
30407 failed=`expr $failed + 1`
30408fi
30409
30410 fi
30411 if test "1${var}" = '12' ; then
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30413$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30414if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30415 $as_echo_n "(cached) " >&6
30416else
30417 ac_check_lib_save_LIBS=$LIBS
30418LIBS="-lpng12 $LIBS"
30419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30420/* end confdefs.h. */
30421
30422/* Override any GCC internal prototype to avoid an error.
30423 Use char because int might match the return type of a GCC
30424 builtin and then its argument prototype would still apply. */
30425#ifdef __cplusplus
30426extern "C"
30427#endif
30428char png_get_io_ptr ();
30429int
30430main ()
30431{
30432return png_get_io_ptr ();
30433 ;
30434 return 0;
30435}
30436_ACEOF
30437if ac_fn_c_try_link "$LINENO"; then :
30438 ac_cv_lib_png12_png_get_io_ptr=yes
30439else
30440 ac_cv_lib_png12_png_get_io_ptr=no
30441fi
30442rm -f core conftest.err conftest.$ac_objext \
30443 conftest$ac_exeext conftest.$ac_ext
30444LIBS=$ac_check_lib_save_LIBS
30445fi
30446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30447$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30448if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30449 passed=`expr $passed + 1`
30450else
30451 failed=`expr $failed + 1`
30452fi
30453
30454 fi
30455 if test "1${var}" = '1' ; then
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30457$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30458if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30459 $as_echo_n "(cached) " >&6
30460else
30461 ac_check_lib_save_LIBS=$LIBS
30462LIBS="-lpng $LIBS"
30463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30464/* end confdefs.h. */
30465
30466/* Override any GCC internal prototype to avoid an error.
30467 Use char because int might match the return type of a GCC
30468 builtin and then its argument prototype would still apply. */
30469#ifdef __cplusplus
30470extern "C"
30471#endif
30472char png_get_io_ptr ();
30473int
30474main ()
30475{
30476return png_get_io_ptr ();
30477 ;
30478 return 0;
30479}
30480_ACEOF
30481if ac_fn_c_try_link "$LINENO"; then :
30482 ac_cv_lib_png_png_get_io_ptr=yes
30483else
30484 ac_cv_lib_png_png_get_io_ptr=no
30485fi
30486rm -f core conftest.err conftest.$ac_objext \
30487 conftest$ac_exeext conftest.$ac_ext
30488LIBS=$ac_check_lib_save_LIBS
30489fi
30490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30491$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30492if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30493 passed=`expr $passed + 1`
30494else
30495 failed=`expr $failed + 1`
30496fi
30497
30498 fi
30499 if test $passed -gt 0 -a $failed -le 0 ; then
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30501$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30502 if test $passed -gt 0 ; then
30503 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030504 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30505$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030506 have_png='no (failed tests)'
30507 else
30508 PNG_LIBS="-l${pnglib}"
30509 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030510
cristy8b350f62009-11-15 23:12:43 +000030511$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030512
cristy09b53e12011-10-14 12:47:22 +000030513 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30514$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030515 have_png='yes'
30516 fi
30517 fi
30518 fi
30519 fi
30520 fi
30521 done
30522 fi
cristy3ed852e2009-09-05 21:47:34 +000030523fi
cristy64877302011-08-23 19:10:31 +000030524
cristy73bd4a52010-10-05 11:24:23 +000030525 if test "$have_png" = 'yes'; then
30526 PNG_DELEGATE_TRUE=
30527 PNG_DELEGATE_FALSE='#'
30528else
30529 PNG_DELEGATE_TRUE='#'
30530 PNG_DELEGATE_FALSE=
30531fi
30532
cristy3ed852e2009-09-05 21:47:34 +000030533
cristy50d3f5c2011-09-10 20:09:06 +000030534
cristy3ed852e2009-09-05 21:47:34 +000030535
30536
30537#
30538# Check for RSVG delegate library.
30539#
30540
30541# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030542if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030543 withval=$with_rsvg; with_rsvg=$withval
30544else
30545 with_rsvg=$have_x
30546fi
30547
30548
30549if test "$with_rsvg" != 'yes'; then
30550 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30551fi
30552
30553have_rsvg='no'
30554have_cairo='no'
30555RSVG_CFLAGS=""
30556RSVG_LIBS=""
30557RSVG_PKG=""
30558if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030559 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30560$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030561
30562pkg_failed=no
30563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30564$as_echo_n "checking for RSVG... " >&6; }
30565
30566if test -n "$RSVG_CFLAGS"; then
30567 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30568 elif test -n "$PKG_CONFIG"; then
30569 if test -n "$PKG_CONFIG" && \
30570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30571 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30572 ac_status=$?
30573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30574 test $ac_status = 0; }; then
30575 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30576else
30577 pkg_failed=yes
30578fi
30579 else
30580 pkg_failed=untried
30581fi
30582if test -n "$RSVG_LIBS"; then
30583 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30584 elif test -n "$PKG_CONFIG"; then
30585 if test -n "$PKG_CONFIG" && \
30586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30587 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30588 ac_status=$?
30589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30590 test $ac_status = 0; }; then
30591 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30592else
30593 pkg_failed=yes
30594fi
30595 else
30596 pkg_failed=untried
30597fi
30598
30599
30600
30601if test $pkg_failed = yes; then
30602
30603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30604 _pkg_short_errors_supported=yes
30605else
30606 _pkg_short_errors_supported=no
30607fi
30608 if test $_pkg_short_errors_supported = yes; then
30609 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30610 else
30611 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30612 fi
30613 # Put the nasty error message in config.log where it belongs
30614 echo "$RSVG_PKG_ERRORS" >&5
30615
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30617$as_echo "no" >&6; }
30618 have_rsvg=no
30619elif test $pkg_failed = untried; then
30620 have_rsvg=no
30621else
30622 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30623 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30625$as_echo "yes" >&6; }
30626 have_rsvg=yes
30627fi
cristy09b53e12011-10-14 12:47:22 +000030628 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30629$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030630
30631pkg_failed=no
30632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30633$as_echo_n "checking for CAIRO_SVG... " >&6; }
30634
30635if test -n "$CAIRO_SVG_CFLAGS"; then
30636 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30637 elif test -n "$PKG_CONFIG"; then
30638 if test -n "$PKG_CONFIG" && \
30639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30640 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30641 ac_status=$?
30642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30643 test $ac_status = 0; }; then
30644 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30645else
30646 pkg_failed=yes
30647fi
30648 else
30649 pkg_failed=untried
30650fi
30651if test -n "$CAIRO_SVG_LIBS"; then
30652 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30653 elif test -n "$PKG_CONFIG"; then
30654 if test -n "$PKG_CONFIG" && \
30655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30656 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30657 ac_status=$?
30658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30659 test $ac_status = 0; }; then
30660 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30661else
30662 pkg_failed=yes
30663fi
30664 else
30665 pkg_failed=untried
30666fi
30667
30668
30669
30670if test $pkg_failed = yes; then
30671
30672if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30673 _pkg_short_errors_supported=yes
30674else
30675 _pkg_short_errors_supported=no
30676fi
30677 if test $_pkg_short_errors_supported = yes; then
30678 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30679 else
30680 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30681 fi
30682 # Put the nasty error message in config.log where it belongs
30683 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30684
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30686$as_echo "no" >&6; }
30687 have_cairo=no
30688elif test $pkg_failed = untried; then
30689 have_cairo=no
30690else
30691 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30692 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30694$as_echo "yes" >&6; }
30695 have_cairo=yes
30696fi
cristy09b53e12011-10-14 12:47:22 +000030697 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30698$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030699fi
30700
30701if test "$have_rsvg" = 'yes'; then
30702
cristy8b350f62009-11-15 23:12:43 +000030703$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030704
30705 if test "$with_modules" = 'no'; then
30706 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30707 fi
30708fi
30709
30710if test "$have_cairo" = 'yes'; then
30711
cristy8b350f62009-11-15 23:12:43 +000030712$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030713
30714 if test "$with_modules" = 'no'; then
30715 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30716 fi
30717fi
30718
cristy73bd4a52010-10-05 11:24:23 +000030719 if test "$have_rsvg" = 'yes'; then
30720 RSVG_DELEGATE_TRUE=
30721 RSVG_DELEGATE_FALSE='#'
30722else
30723 RSVG_DELEGATE_TRUE='#'
30724 RSVG_DELEGATE_FALSE=
30725fi
30726
30727 if test "$have_cairo" = 'yes'; then
30728 CAIRO_DELEGATE_TRUE=
30729 CAIRO_DELEGATE_FALSE='#'
30730else
30731 CAIRO_DELEGATE_TRUE='#'
30732 CAIRO_DELEGATE_FALSE=
30733fi
30734
cristy3ed852e2009-09-05 21:47:34 +000030735
30736
30737
30738
30739#
30740# Check for TIFF delegate library.
30741#
30742
30743# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030744if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030745 withval=$with_tiff; with_tiff=$withval
30746else
30747 with_tiff='yes'
30748fi
30749
30750
30751if test "$with_tiff" != 'yes'; then
30752 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30753fi
30754
30755have_tiff='no'
30756TIFF_LIBS=''
30757if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030758 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30759$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030761$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030762 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30763$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030764 failed=0
30765 passed=0
cristy8b350f62009-11-15 23:12:43 +000030766 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030767if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030768 passed=`expr $passed + 1`
30769else
30770 failed=`expr $failed + 1`
30771fi
30772
30773
cristy8b350f62009-11-15 23:12:43 +000030774 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030775if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030776 passed=`expr $passed + 1`
30777else
30778 failed=`expr $failed + 1`
30779fi
30780
30781
cristy8b350f62009-11-15 23:12:43 +000030782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030783$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030784if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030785 $as_echo_n "(cached) " >&6
30786else
30787 ac_check_lib_save_LIBS=$LIBS
30788LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030790/* end confdefs.h. */
30791
30792/* Override any GCC internal prototype to avoid an error.
30793 Use char because int might match the return type of a GCC
30794 builtin and then its argument prototype would still apply. */
30795#ifdef __cplusplus
30796extern "C"
30797#endif
30798char TIFFOpen ();
30799int
30800main ()
30801{
30802return TIFFOpen ();
30803 ;
30804 return 0;
30805}
30806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030807if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030808 ac_cv_lib_tiff_TIFFOpen=yes
30809else
cristy8b350f62009-11-15 23:12:43 +000030810 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030811fi
cristy8b350f62009-11-15 23:12:43 +000030812rm -f core conftest.err conftest.$ac_objext \
30813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030814LIBS=$ac_check_lib_save_LIBS
30815fi
cristy8b350f62009-11-15 23:12:43 +000030816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030817$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030818if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030819 passed=`expr $passed + 1`
30820else
30821 failed=`expr $failed + 1`
30822fi
30823
cristy8b350f62009-11-15 23:12:43 +000030824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030825$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030826if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030827 $as_echo_n "(cached) " >&6
30828else
30829 ac_check_lib_save_LIBS=$LIBS
30830LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030832/* end confdefs.h. */
30833
30834/* Override any GCC internal prototype to avoid an error.
30835 Use char because int might match the return type of a GCC
30836 builtin and then its argument prototype would still apply. */
30837#ifdef __cplusplus
30838extern "C"
30839#endif
30840char TIFFClientOpen ();
30841int
30842main ()
30843{
30844return TIFFClientOpen ();
30845 ;
30846 return 0;
30847}
30848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030850 ac_cv_lib_tiff_TIFFClientOpen=yes
30851else
cristy8b350f62009-11-15 23:12:43 +000030852 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030853fi
cristy8b350f62009-11-15 23:12:43 +000030854rm -f core conftest.err conftest.$ac_objext \
30855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030856LIBS=$ac_check_lib_save_LIBS
30857fi
cristy8b350f62009-11-15 23:12:43 +000030858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030859$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030860if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030861 passed=`expr $passed + 1`
30862else
30863 failed=`expr $failed + 1`
30864fi
30865
cristyb97f1002010-07-26 14:02:57 +000030866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30867$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030868if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000030869 $as_echo_n "(cached) " >&6
30870else
30871 ac_check_lib_save_LIBS=$LIBS
30872LIBS="-ltiff $LIBS"
30873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30874/* end confdefs.h. */
30875
30876/* Override any GCC internal prototype to avoid an error.
30877 Use char because int might match the return type of a GCC
30878 builtin and then its argument prototype would still apply. */
30879#ifdef __cplusplus
30880extern "C"
30881#endif
30882char TIFFIsBigEndian ();
30883int
30884main ()
30885{
30886return TIFFIsBigEndian ();
30887 ;
30888 return 0;
30889}
30890_ACEOF
30891if ac_fn_c_try_link "$LINENO"; then :
30892 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30893else
30894 ac_cv_lib_tiff_TIFFIsBigEndian=no
30895fi
30896rm -f core conftest.err conftest.$ac_objext \
30897 conftest$ac_exeext conftest.$ac_ext
30898LIBS=$ac_check_lib_save_LIBS
30899fi
30900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30901$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000030902if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000030903 passed=`expr $passed + 1`
30904else
30905 failed=`expr $failed + 1`
30906fi
30907
cristy8b350f62009-11-15 23:12:43 +000030908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030909$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030910if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030911 $as_echo_n "(cached) " >&6
30912else
30913 ac_check_lib_save_LIBS=$LIBS
30914LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030916/* end confdefs.h. */
30917
30918/* Override any GCC internal prototype to avoid an error.
30919 Use char because int might match the return type of a GCC
30920 builtin and then its argument prototype would still apply. */
30921#ifdef __cplusplus
30922extern "C"
30923#endif
30924char TIFFIsByteSwapped ();
30925int
30926main ()
30927{
30928return TIFFIsByteSwapped ();
30929 ;
30930 return 0;
30931}
30932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030933if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030934 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30935else
cristy8b350f62009-11-15 23:12:43 +000030936 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000030937fi
cristy8b350f62009-11-15 23:12:43 +000030938rm -f core conftest.err conftest.$ac_objext \
30939 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030940LIBS=$ac_check_lib_save_LIBS
30941fi
cristy8b350f62009-11-15 23:12:43 +000030942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000030943$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000030944if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030945 passed=`expr $passed + 1`
30946else
30947 failed=`expr $failed + 1`
30948fi
30949
cristy8b350f62009-11-15 23:12:43 +000030950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030951$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030952if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030953 $as_echo_n "(cached) " >&6
30954else
30955 ac_check_lib_save_LIBS=$LIBS
30956LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030958/* end confdefs.h. */
30959
30960/* Override any GCC internal prototype to avoid an error.
30961 Use char because int might match the return type of a GCC
30962 builtin and then its argument prototype would still apply. */
30963#ifdef __cplusplus
30964extern "C"
30965#endif
30966char TIFFReadRGBATile ();
30967int
30968main ()
30969{
30970return TIFFReadRGBATile ();
30971 ;
30972 return 0;
30973}
30974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030975if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030976 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30977else
cristy8b350f62009-11-15 23:12:43 +000030978 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000030979fi
cristy8b350f62009-11-15 23:12:43 +000030980rm -f core conftest.err conftest.$ac_objext \
30981 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030982LIBS=$ac_check_lib_save_LIBS
30983fi
cristy8b350f62009-11-15 23:12:43 +000030984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000030985$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000030986if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030987 passed=`expr $passed + 1`
30988else
30989 failed=`expr $failed + 1`
30990fi
30991
cristy8b350f62009-11-15 23:12:43 +000030992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030993$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030994if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030995 $as_echo_n "(cached) " >&6
30996else
30997 ac_check_lib_save_LIBS=$LIBS
30998LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031000/* end confdefs.h. */
31001
31002/* Override any GCC internal prototype to avoid an error.
31003 Use char because int might match the return type of a GCC
31004 builtin and then its argument prototype would still apply. */
31005#ifdef __cplusplus
31006extern "C"
31007#endif
31008char TIFFReadRGBAStrip ();
31009int
31010main ()
31011{
31012return TIFFReadRGBAStrip ();
31013 ;
31014 return 0;
31015}
31016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031017if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031018 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31019else
cristy8b350f62009-11-15 23:12:43 +000031020 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031021fi
cristy8b350f62009-11-15 23:12:43 +000031022rm -f core conftest.err conftest.$ac_objext \
31023 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031024LIBS=$ac_check_lib_save_LIBS
31025fi
cristy8b350f62009-11-15 23:12:43 +000031026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031027$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031028if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031029 passed=`expr $passed + 1`
31030else
31031 failed=`expr $failed + 1`
31032fi
31033
cristy8b350f62009-11-15 23:12:43 +000031034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031035$as_echo_n "checking if TIFF package is complete... " >&6; }
31036 if test $passed -gt 0; then
31037 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031038 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31039$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031040 have_tiff='no (failed tests)'
31041 else
31042 TIFF_LIBS='-ltiff'
31043 LIBS="$TIFF_LIBS $LIBS"
31044
cristy8b350f62009-11-15 23:12:43 +000031045$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031046
cristy09b53e12011-10-14 12:47:22 +000031047 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31048$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031049 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031050 for ac_header in tiffconf.h
31051do :
31052 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031053if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031054 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031055#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031056_ACEOF
31057
31058fi
31059
31060done
31061
cristy8b350f62009-11-15 23:12:43 +000031062 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000031063 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31064 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031065do :
31066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031068if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031069 cat >>confdefs.h <<_ACEOF
31070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31071_ACEOF
31072
31073fi
31074done
31075
31076 fi
31077 else
cristy09b53e12011-10-14 12:47:22 +000031078 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31079$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031080 fi
31081fi
cristy73bd4a52010-10-05 11:24:23 +000031082 if test "$have_tiff" = 'yes'; then
31083 TIFF_DELEGATE_TRUE=
31084 TIFF_DELEGATE_FALSE='#'
31085else
31086 TIFF_DELEGATE_TRUE='#'
31087 TIFF_DELEGATE_FALSE=
31088fi
31089
cristy3ed852e2009-09-05 21:47:34 +000031090
31091
31092
31093#
cristyb1860752011-03-14 00:27:46 +000031094# Check for WEBP delegate library.
31095#
31096
31097# Check whether --with-webp was given.
31098if test "${with_webp+set}" = set; then :
31099 withval=$with_webp; with_webp=$withval
31100else
31101 with_webp='yes'
31102fi
31103
31104
31105if test "$with_webp" != 'yes'; then
31106 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31107fi
31108
31109have_webp='no'
31110WEBP_LIBS=''
31111if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031112 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31113$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31115$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031116 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31117$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031118 failed=0
31119 passed=0
31120 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31121if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31122 passed=`expr $passed + 1`
31123else
31124 failed=`expr $failed + 1`
31125fi
31126
31127
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31129$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31130if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31131 $as_echo_n "(cached) " >&6
31132else
31133 ac_check_lib_save_LIBS=$LIBS
31134LIBS="-lwebp $LIBS"
31135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31136/* end confdefs.h. */
31137
31138/* Override any GCC internal prototype to avoid an error.
31139 Use char because int might match the return type of a GCC
31140 builtin and then its argument prototype would still apply. */
31141#ifdef __cplusplus
31142extern "C"
31143#endif
31144char WebPDecodeRGB ();
31145int
31146main ()
31147{
31148return WebPDecodeRGB ();
31149 ;
31150 return 0;
31151}
31152_ACEOF
31153if ac_fn_c_try_link "$LINENO"; then :
31154 ac_cv_lib_webp_WebPDecodeRGB=yes
31155else
31156 ac_cv_lib_webp_WebPDecodeRGB=no
31157fi
31158rm -f core conftest.err conftest.$ac_objext \
31159 conftest$ac_exeext conftest.$ac_ext
31160LIBS=$ac_check_lib_save_LIBS
31161fi
31162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31163$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31164if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31165 passed=`expr $passed + 1`
31166else
31167 failed=`expr $failed + 1`
31168fi
31169
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31171$as_echo_n "checking if WEBP package is complete... " >&6; }
31172 if test $passed -gt 0; then
31173 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031174 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31175$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031176 have_webp='no (failed tests)'
31177 else
31178 WEBP_LIBS='-lwebp'
31179 LIBS="$WEBP_LIBS $LIBS"
31180
31181$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31182
cristy09b53e12011-10-14 12:47:22 +000031183 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31184$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031185 have_webp='yes'
31186 fi
31187 else
cristy09b53e12011-10-14 12:47:22 +000031188 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31189$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031190 fi
31191fi
31192 if test "$have_webp" = 'yes'; then
31193 WEBP_DELEGATE_TRUE=
31194 WEBP_DELEGATE_FALSE='#'
31195else
31196 WEBP_DELEGATE_TRUE='#'
31197 WEBP_DELEGATE_FALSE=
31198fi
31199
31200
31201
31202
31203#
cristy3ed852e2009-09-05 21:47:34 +000031204# Set Windows font directory.
31205#
31206
31207# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031208if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031209 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31210else
31211 with_windows_font_dir=''
31212fi
31213
31214if test "$with_windows_font_dir" != '' ; then
31215 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31216fi
31217
31218
31219#
31220# Check for WMF delegate library.
31221#
31222
31223# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031224if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031225 withval=$with_wmf; with_wmf=$withval
31226else
cristy8d63d1d2010-01-06 20:38:37 +000031227 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031228fi
31229
31230
31231if test "$with_wmf" != 'yes'; then
31232 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31233fi
31234
31235have_wmf='no'
31236WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031237if test "$with_wmf" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031238 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31239$as_echo "$as_me: -------------------------------------------------------------" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031241$as_echo_n "checking for WMF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031242 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31243$as_echo "$as_me: " >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031244 failed=0
31245 passed=0
31246 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31247if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31248 passed=`expr $passed + 1`
31249else
31250 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031251fi
31252
31253
glennrp33e524b2011-08-24 17:41:57 +000031254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31255$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31256if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031257 $as_echo_n "(cached) " >&6
31258else
31259 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031260LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031262/* end confdefs.h. */
31263
31264/* Override any GCC internal prototype to avoid an error.
31265 Use char because int might match the return type of a GCC
31266 builtin and then its argument prototype would still apply. */
31267#ifdef __cplusplus
31268extern "C"
31269#endif
glennrp33e524b2011-08-24 17:41:57 +000031270char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031271int
31272main ()
31273{
glennrp33e524b2011-08-24 17:41:57 +000031274return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031275 ;
31276 return 0;
31277}
31278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031279if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031280 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031281else
glennrp33e524b2011-08-24 17:41:57 +000031282 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031283fi
cristy8b350f62009-11-15 23:12:43 +000031284rm -f core conftest.err conftest.$ac_objext \
31285 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031286LIBS=$ac_check_lib_save_LIBS
31287fi
glennrp33e524b2011-08-24 17:41:57 +000031288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31289$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31290if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31291 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031292else
glennrp33e524b2011-08-24 17:41:57 +000031293 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031294fi
31295
glennrp33e524b2011-08-24 17:41:57 +000031296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31297$as_echo_n "checking if WMF package is complete... " >&6; }
31298 if test $passed -gt 0; then
31299 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031300 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31301$as_echo "$as_me: no -- some components failed test" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031302 have_wmf='no (failed tests)'
31303 else
31304 WMF_LIBS='-lwmf -lwmflite'
31305 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031306
cristy8b350f62009-11-15 23:12:43 +000031307$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031308
cristy09b53e12011-10-14 12:47:22 +000031309 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31310$as_echo "$as_me: yes" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031311 have_wmf='yes'
31312 fi
31313 else
cristy09b53e12011-10-14 12:47:22 +000031314 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31315$as_echo "$as_me: no" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031316 fi
cristy3ed852e2009-09-05 21:47:34 +000031317fi
cristy73bd4a52010-10-05 11:24:23 +000031318 if test "$have_wmf" = 'yes'; then
31319 WMF_DELEGATE_TRUE=
31320 WMF_DELEGATE_FALSE='#'
31321else
31322 WMF_DELEGATE_TRUE='#'
31323 WMF_DELEGATE_FALSE=
31324fi
31325
cristy3ed852e2009-09-05 21:47:34 +000031326
31327
31328
cristy81beccd2011-10-03 18:17:24 +000031329
31330
cristy3ed852e2009-09-05 21:47:34 +000031331#
31332# Check for XML delegate library.
31333#
31334
31335# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031336if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031337 withval=$with_xml; with_xml=$withval
31338else
cristy81beccd2011-10-03 18:17:24 +000031339 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031340fi
31341
31342
cristy81beccd2011-10-03 18:17:24 +000031343if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31345fi
31346
cristy81beccd2011-10-03 18:17:24 +000031347have_xml='no'
31348XML_LIBS=''
31349if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031350 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31351$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31353$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031354 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31355$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031356 PERSIST_LDFLAGS=$LDFLAGS
31357 PERSIST_CPPFLAGS=$CPPFLAGS
31358 xml2_config=''
31359 # Extract the first word of "xml2-config", so it can be a program name with args.
31360set dummy xml2-config; ac_word=$2
31361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31362$as_echo_n "checking for $ac_word... " >&6; }
31363if ${ac_cv_path_xml2_config+:} false; then :
31364 $as_echo_n "(cached) " >&6
31365else
31366 case $xml2_config in
31367 [\\/]* | ?:[\\/]*)
31368 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31369 ;;
31370 *)
31371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31372for as_dir in $PATH
31373do
31374 IFS=$as_save_IFS
31375 test -z "$as_dir" && as_dir=.
31376 for ac_exec_ext in '' $ac_executable_extensions; do
31377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31378 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31380 break 2
31381 fi
31382done
31383 done
31384IFS=$as_save_IFS
31385
31386 ;;
31387esac
31388fi
31389xml2_config=$ac_cv_path_xml2_config
31390if test -n "$xml2_config"; then
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31392$as_echo "$xml2_config" >&6; }
31393else
31394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31395$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031396fi
31397
cristy81beccd2011-10-03 18:17:24 +000031398 if test -n "$xml2_config"; then
31399 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31400 # the shared library installed under /usr/lib, whereas the package
31401 # installs itself under $prefix/libxml and $prefix/lib.
31402 xml2_prefix=`xml2-config --prefix`
31403 if test -d "${xml2_prefix}/include/libxml2"; then
31404 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31405 fi
31406 if test "${xml2_prefix}" != '/usr'; then
31407 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31408 fi
31409 fi
31410 failed=0
31411 passed=0
31412 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31413if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31414 passed=`expr $passed + 1`
31415else
31416 failed=`expr $failed + 1`
31417fi
31418
31419
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31421$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31422if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31423 $as_echo_n "(cached) " >&6
31424else
31425 ac_check_lib_save_LIBS=$LIBS
31426LIBS="-lxml2 $LIBS"
31427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31428/* end confdefs.h. */
31429
31430/* Override any GCC internal prototype to avoid an error.
31431 Use char because int might match the return type of a GCC
31432 builtin and then its argument prototype would still apply. */
31433#ifdef __cplusplus
31434extern "C"
31435#endif
31436char xmlSAXVersion ();
31437int
31438main ()
31439{
31440return xmlSAXVersion ();
31441 ;
31442 return 0;
31443}
31444_ACEOF
31445if ac_fn_c_try_link "$LINENO"; then :
31446 ac_cv_lib_xml2_xmlSAXVersion=yes
31447else
31448 ac_cv_lib_xml2_xmlSAXVersion=no
31449fi
31450rm -f core conftest.err conftest.$ac_objext \
31451 conftest$ac_exeext conftest.$ac_ext
31452LIBS=$ac_check_lib_save_LIBS
31453fi
31454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31455$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31456if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31457 passed=`expr $passed + 1`
31458else
31459 failed=`expr $failed + 1`
31460fi
31461
31462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31463$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31464if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31465 $as_echo_n "(cached) " >&6
31466else
31467 ac_check_lib_save_LIBS=$LIBS
31468LIBS="-lxml2 $LIBS"
31469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31470/* end confdefs.h. */
31471
31472/* Override any GCC internal prototype to avoid an error.
31473 Use char because int might match the return type of a GCC
31474 builtin and then its argument prototype would still apply. */
31475#ifdef __cplusplus
31476extern "C"
31477#endif
31478char xmlParseChunk ();
31479int
31480main ()
31481{
31482return xmlParseChunk ();
31483 ;
31484 return 0;
31485}
31486_ACEOF
31487if ac_fn_c_try_link "$LINENO"; then :
31488 ac_cv_lib_xml2_xmlParseChunk=yes
31489else
31490 ac_cv_lib_xml2_xmlParseChunk=no
31491fi
31492rm -f core conftest.err conftest.$ac_objext \
31493 conftest$ac_exeext conftest.$ac_ext
31494LIBS=$ac_check_lib_save_LIBS
31495fi
31496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31497$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31498if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31499 passed=`expr $passed + 1`
31500else
31501 failed=`expr $failed + 1`
31502fi
31503
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31505$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31506if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31507 $as_echo_n "(cached) " >&6
31508else
31509 ac_check_lib_save_LIBS=$LIBS
31510LIBS="-lxml2 $LIBS"
31511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31512/* end confdefs.h. */
31513
31514/* Override any GCC internal prototype to avoid an error.
31515 Use char because int might match the return type of a GCC
31516 builtin and then its argument prototype would still apply. */
31517#ifdef __cplusplus
31518extern "C"
31519#endif
31520char xmlCreatePushParserCtxt ();
31521int
31522main ()
31523{
31524return xmlCreatePushParserCtxt ();
31525 ;
31526 return 0;
31527}
31528_ACEOF
31529if ac_fn_c_try_link "$LINENO"; then :
31530 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31531else
31532 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31533fi
31534rm -f core conftest.err conftest.$ac_objext \
31535 conftest$ac_exeext conftest.$ac_ext
31536LIBS=$ac_check_lib_save_LIBS
31537fi
31538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31539$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31540if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31541 passed=`expr $passed + 1`
31542else
31543 failed=`expr $failed + 1`
31544fi
31545
31546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31547$as_echo_n "checking if XML package is complete... " >&6; }
31548 if test $passed -gt 0; then
31549 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031550 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31551$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031552 have_xml='no (failed tests)'
31553 LDFLAGS="$PERSIST_LDFLAGS"
31554 CPPFLAGS="$PERSIST_CPPFLAGS"
31555 else
31556 XML_LIBS='-lxml2'
31557 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031558
cristy8b350f62009-11-15 23:12:43 +000031559$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031560
cristy09b53e12011-10-14 12:47:22 +000031561 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31562$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031563 have_xml='yes'
31564 fi
31565 else
cristy09b53e12011-10-14 12:47:22 +000031566 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31567$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031568 fi
31569fi
cristy73bd4a52010-10-05 11:24:23 +000031570 if test "$have_xml" = 'yes'; then
31571 XML_DELEGATE_TRUE=
31572 XML_DELEGATE_FALSE='#'
31573else
31574 XML_DELEGATE_TRUE='#'
31575 XML_DELEGATE_FALSE=
31576fi
31577
cristy3ed852e2009-09-05 21:47:34 +000031578
31579
31580
31581# Substitute compiler name to build/link PerlMagick
31582#
31583
31584
31585#
31586# Configure install Paths
31587#
31588
31589# Subdirectory under lib to place ImageMagick lib files
31590LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31591
31592cat >>confdefs.h <<_ACEOF
31593#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31594_ACEOF
31595
31596
31597# Path to ImageMagick bin directory
31598EXECUTABLE_PATH="${BIN_DIR}"
31599DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31600case "${build_os}" in
31601 mingw* )
31602 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31603 ;;
31604esac
31605
31606cat >>confdefs.h <<_ACEOF
31607#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31608_ACEOF
31609
31610
31611
31612# Path to ImageMagick lib
31613LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31614DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31615case "${build_os}" in
31616 mingw* )
31617 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31618 ;;
31619esac
31620
31621cat >>confdefs.h <<_ACEOF
31622#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31623_ACEOF
31624
31625
31626
cristy3ed852e2009-09-05 21:47:34 +000031627#
31628# Subdirectory under lib to place ImageMagick coder module files
31629CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31630
31631cat >>confdefs.h <<_ACEOF
31632#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31633_ACEOF
31634
31635CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31636DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31637case "${build_os}" in
31638 mingw* )
31639 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31640 ;;
31641esac
31642
31643cat >>confdefs.h <<_ACEOF
31644#define CODER_PATH "$DEFINE_CODER_PATH"
31645_ACEOF
31646
31647
31648
31649#
31650# Subdirectory under lib to place ImageMagick filter module files
31651FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31652
31653cat >>confdefs.h <<_ACEOF
31654#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31655_ACEOF
31656
31657FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31658DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31659case "${build_os}" in
31660 mingw* )
31661 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31662 ;;
31663esac
31664
31665cat >>confdefs.h <<_ACEOF
31666#define FILTER_PATH "$DEFINE_FILTER_PATH"
31667_ACEOF
31668
31669
31670
31671#
31672# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031673DOCUMENTATION_RELATIVE_PATH=""
31674DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31675DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031676case "${build_os}" in
31677 mingw* )
31678 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31679 ;;
31680esac
31681
31682cat >>confdefs.h <<_ACEOF
31683#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31684_ACEOF
31685
31686
31687
cristy3cf8a722011-03-20 23:32:22 +000031688# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031689CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031690
31691cat >>confdefs.h <<_ACEOF
31692#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31693_ACEOF
31694
31695CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31696DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31697case "${build_os}" in
31698 mingw* )
31699 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31700 ;;
31701esac
31702
31703cat >>confdefs.h <<_ACEOF
31704#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31705_ACEOF
31706
31707
31708
31709# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031710SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031711
31712cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031713#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031714_ACEOF
31715
cristy4f820712011-04-01 12:35:43 +000031716SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31717DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031718case "${build_os}" in
31719 mingw* )
cristy4f820712011-04-01 12:35:43 +000031720 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031721 ;;
31722esac
31723
31724cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031725#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031726_ACEOF
31727
31728
31729
31730#
31731# program_transform_name is formed for use in a Makefile, so create a
31732# modified version for use in a shell script.
31733configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31734
31735# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000031736{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31737$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031739$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031740{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31741$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031742AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031743BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031744BZIPDelegateDefault='bzip2'
31745BrowseDelegateDefault='xdg-open'
31746CGMDecodeDelegateDefault='ralcgm'
31747CatDelegateDefault='cat'
31748DNGDecodeDelegateDefault='ufraw-batch'
31749GVCDecodeDelegateDefault='dot'
31750DVIDecodeDelegateDefault='dvips'
31751EchoDelegateDefault='echo'
31752EditorDelegateDefault='xterm'
31753FIGDecodeDelegateDefault='fig2dev'
31754ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31755DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31756MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31757GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031758HPGLDecodeDelegateDefault='hp2xx'
31759HTMLDecodeDelegateDefault='html2ps'
31760ILBMDecodeDelegateDefault='ilbmtoppm'
31761ILBMEncodeDelegateDefault='ppmtoilbm'
31762LPDelegateDefault='lp'
31763LPRDelegateDefault='lpr'
31764LZWDecodeDelegateDefault='uncompress'
31765LZWEncodeDelegateDefault='compress'
31766LaunchDelegateDefault='gimp'
31767MANDelegateDefault='groff'
31768MPEGDecodeDelegateDefault='ffmpeg'
31769MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031770MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031771MVDelegateDefault='mv'
31772PCLDelegateDefault='pcl6'
31773PGPDecodeDelegateDefault='pgpv'
31774POVDelegateDefault='povray'
31775if test "$native_win32_build" = 'yes'; then
31776 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031777elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031778 PSDelegateDefault='gsc'
31779else
31780 PSDelegateDefault='gs'
31781fi
31782RLEEncodeDelegateDefault='rawtorle'
31783RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000031784RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000031785SCANDecodeDelegateDefault='scanimage'
31786TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031787UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031788WMFDecodeDelegateDefault='wmf2eps'
31789WWWDecodeDelegateDefault='curl'
31790XPSDelegateDefault='gxps'
31791ZipDelegateDefault='gzip'
31792
31793# Search for delegates
31794# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31795set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031797$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031798if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031799 $as_echo_n "(cached) " >&6
31800else
31801 case $AutotraceDecodeDelegate in
31802 [\\/]* | ?:[\\/]*)
31803 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31804 ;;
31805 *)
31806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31807for as_dir in $PATH
31808do
31809 IFS=$as_save_IFS
31810 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31813 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031815 break 2
31816 fi
31817done
cristy8b350f62009-11-15 23:12:43 +000031818 done
cristy3ed852e2009-09-05 21:47:34 +000031819IFS=$as_save_IFS
31820
31821 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31822 ;;
31823esac
31824fi
31825AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31826if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031828$as_echo "$AutotraceDecodeDelegate" >&6; }
31829else
cristy8b350f62009-11-15 23:12:43 +000031830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031831$as_echo "no" >&6; }
31832fi
31833
31834
cristy3ed852e2009-09-05 21:47:34 +000031835# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31836set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031839if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031840 $as_echo_n "(cached) " >&6
31841else
31842 case $BlenderDecodeDelegate in
31843 [\\/]* | ?:[\\/]*)
31844 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31845 ;;
31846 *)
31847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31848for as_dir in $PATH
31849do
31850 IFS=$as_save_IFS
31851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31854 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031856 break 2
31857 fi
31858done
cristy8b350f62009-11-15 23:12:43 +000031859 done
cristy3ed852e2009-09-05 21:47:34 +000031860IFS=$as_save_IFS
31861
31862 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31863 ;;
31864esac
31865fi
31866BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31867if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031869$as_echo "$BlenderDecodeDelegate" >&6; }
31870else
cristy8b350f62009-11-15 23:12:43 +000031871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031872$as_echo "no" >&6; }
31873fi
31874
31875
31876# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31877set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031879$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031880if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031881 $as_echo_n "(cached) " >&6
31882else
31883 case $BZIPDelegate in
31884 [\\/]* | ?:[\\/]*)
31885 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31886 ;;
31887 *)
31888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31889for as_dir in $PATH
31890do
31891 IFS=$as_save_IFS
31892 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31895 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031897 break 2
31898 fi
31899done
cristy8b350f62009-11-15 23:12:43 +000031900 done
cristy3ed852e2009-09-05 21:47:34 +000031901IFS=$as_save_IFS
31902
31903 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31904 ;;
31905esac
31906fi
31907BZIPDelegate=$ac_cv_path_BZIPDelegate
31908if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031910$as_echo "$BZIPDelegate" >&6; }
31911else
cristy8b350f62009-11-15 23:12:43 +000031912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031913$as_echo "no" >&6; }
31914fi
31915
31916
31917# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31918set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031921if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031922 $as_echo_n "(cached) " >&6
31923else
31924 case $BrowseDelegate in
31925 [\\/]* | ?:[\\/]*)
31926 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31927 ;;
31928 *)
31929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31930for as_dir in $PATH
31931do
31932 IFS=$as_save_IFS
31933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31936 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031938 break 2
31939 fi
31940done
cristy8b350f62009-11-15 23:12:43 +000031941 done
cristy3ed852e2009-09-05 21:47:34 +000031942IFS=$as_save_IFS
31943
31944 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31945 ;;
31946esac
31947fi
31948BrowseDelegate=$ac_cv_path_BrowseDelegate
31949if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031951$as_echo "$BrowseDelegate" >&6; }
31952else
cristy8b350f62009-11-15 23:12:43 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo "no" >&6; }
31955fi
31956
31957
31958# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31959set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031962if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031963 $as_echo_n "(cached) " >&6
31964else
31965 case $CGMDecodeDelegate in
31966 [\\/]* | ?:[\\/]*)
31967 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31968 ;;
31969 *)
31970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31971for as_dir in $PATH
31972do
31973 IFS=$as_save_IFS
31974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31977 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031979 break 2
31980 fi
31981done
cristy8b350f62009-11-15 23:12:43 +000031982 done
cristy3ed852e2009-09-05 21:47:34 +000031983IFS=$as_save_IFS
31984
31985 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31986 ;;
31987esac
31988fi
31989CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31990if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031992$as_echo "$CGMDecodeDelegate" >&6; }
31993else
cristy8b350f62009-11-15 23:12:43 +000031994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031995$as_echo "no" >&6; }
31996fi
31997
31998
31999# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32000set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032003if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032004 $as_echo_n "(cached) " >&6
32005else
32006 case $CatDelegate in
32007 [\\/]* | ?:[\\/]*)
32008 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32009 ;;
32010 *)
32011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32012for as_dir in $PATH
32013do
32014 IFS=$as_save_IFS
32015 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32018 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032020 break 2
32021 fi
32022done
cristy8b350f62009-11-15 23:12:43 +000032023 done
cristy3ed852e2009-09-05 21:47:34 +000032024IFS=$as_save_IFS
32025
32026 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32027 ;;
32028esac
32029fi
32030CatDelegate=$ac_cv_path_CatDelegate
32031if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032033$as_echo "$CatDelegate" >&6; }
32034else
cristy8b350f62009-11-15 23:12:43 +000032035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032036$as_echo "no" >&6; }
32037fi
32038
32039
32040# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32041set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032044if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032045 $as_echo_n "(cached) " >&6
32046else
32047 case $DNGDecodeDelegate in
32048 [\\/]* | ?:[\\/]*)
32049 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32050 ;;
32051 *)
32052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32053for as_dir in $PATH
32054do
32055 IFS=$as_save_IFS
32056 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032057 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32059 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032061 break 2
32062 fi
32063done
cristy8b350f62009-11-15 23:12:43 +000032064 done
cristy3ed852e2009-09-05 21:47:34 +000032065IFS=$as_save_IFS
32066
32067 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32068 ;;
32069esac
32070fi
32071DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32072if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032074$as_echo "$DNGDecodeDelegate" >&6; }
32075else
cristy8b350f62009-11-15 23:12:43 +000032076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032077$as_echo "no" >&6; }
32078fi
32079
32080
32081# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32082set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032085if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032086 $as_echo_n "(cached) " >&6
32087else
32088 case $GVCDecodeDelegate in
32089 [\\/]* | ?:[\\/]*)
32090 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32091 ;;
32092 *)
32093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32094for as_dir in $PATH
32095do
32096 IFS=$as_save_IFS
32097 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032098 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32100 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032102 break 2
32103 fi
32104done
cristy8b350f62009-11-15 23:12:43 +000032105 done
cristy3ed852e2009-09-05 21:47:34 +000032106IFS=$as_save_IFS
32107
32108 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32109 ;;
32110esac
32111fi
32112GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32113if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032115$as_echo "$GVCDecodeDelegate" >&6; }
32116else
cristy8b350f62009-11-15 23:12:43 +000032117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032118$as_echo "no" >&6; }
32119fi
32120
32121
32122# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32123set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032125$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032126if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032127 $as_echo_n "(cached) " >&6
32128else
32129 case $DVIDecodeDelegate in
32130 [\\/]* | ?:[\\/]*)
32131 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32132 ;;
32133 *)
32134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32135for as_dir in $PATH
32136do
32137 IFS=$as_save_IFS
32138 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32141 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032143 break 2
32144 fi
32145done
cristy8b350f62009-11-15 23:12:43 +000032146 done
cristy3ed852e2009-09-05 21:47:34 +000032147IFS=$as_save_IFS
32148
32149 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32150 ;;
32151esac
32152fi
32153DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32154if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032156$as_echo "$DVIDecodeDelegate" >&6; }
32157else
cristy8b350f62009-11-15 23:12:43 +000032158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032159$as_echo "no" >&6; }
32160fi
32161
32162
32163# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32164set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032166$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032167if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032168 $as_echo_n "(cached) " >&6
32169else
32170 case $EchoDelegate in
32171 [\\/]* | ?:[\\/]*)
32172 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32173 ;;
32174 *)
32175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32176for as_dir in $PATH
32177do
32178 IFS=$as_save_IFS
32179 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032180 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32182 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032184 break 2
32185 fi
32186done
cristy8b350f62009-11-15 23:12:43 +000032187 done
cristy3ed852e2009-09-05 21:47:34 +000032188IFS=$as_save_IFS
32189
32190 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32191 ;;
32192esac
32193fi
32194EchoDelegate=$ac_cv_path_EchoDelegate
32195if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032197$as_echo "$EchoDelegate" >&6; }
32198else
cristy8b350f62009-11-15 23:12:43 +000032199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032200$as_echo "no" >&6; }
32201fi
32202
32203
32204# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32205set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032207$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032208if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032209 $as_echo_n "(cached) " >&6
32210else
32211 case $EditorDelegate in
32212 [\\/]* | ?:[\\/]*)
32213 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32214 ;;
32215 *)
32216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32217for as_dir in $PATH
32218do
32219 IFS=$as_save_IFS
32220 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032221 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32223 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032225 break 2
32226 fi
32227done
cristy8b350f62009-11-15 23:12:43 +000032228 done
cristy3ed852e2009-09-05 21:47:34 +000032229IFS=$as_save_IFS
32230
32231 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32232 ;;
32233esac
32234fi
32235EditorDelegate=$ac_cv_path_EditorDelegate
32236if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032238$as_echo "$EditorDelegate" >&6; }
32239else
cristy8b350f62009-11-15 23:12:43 +000032240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032241$as_echo "no" >&6; }
32242fi
32243
32244
32245# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32246set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032248$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032249if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032250 $as_echo_n "(cached) " >&6
32251else
32252 case $FIGDecodeDelegate in
32253 [\\/]* | ?:[\\/]*)
32254 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32255 ;;
32256 *)
32257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32258for as_dir in $PATH
32259do
32260 IFS=$as_save_IFS
32261 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32264 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032266 break 2
32267 fi
32268done
cristy8b350f62009-11-15 23:12:43 +000032269 done
cristy3ed852e2009-09-05 21:47:34 +000032270IFS=$as_save_IFS
32271
32272 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32273 ;;
32274esac
32275fi
32276FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32277if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032279$as_echo "$FIGDecodeDelegate" >&6; }
32280else
cristy8b350f62009-11-15 23:12:43 +000032281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032282$as_echo "no" >&6; }
32283fi
32284
32285
32286# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32287set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032290if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032291 $as_echo_n "(cached) " >&6
32292else
32293 case $ConvertDelegate in
32294 [\\/]* | ?:[\\/]*)
32295 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32296 ;;
32297 *)
32298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32299for as_dir in $PATH
32300do
32301 IFS=$as_save_IFS
32302 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032303 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32305 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032307 break 2
32308 fi
32309done
cristy8b350f62009-11-15 23:12:43 +000032310 done
cristy3ed852e2009-09-05 21:47:34 +000032311IFS=$as_save_IFS
32312
32313 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32314 ;;
32315esac
32316fi
32317ConvertDelegate=$ac_cv_path_ConvertDelegate
32318if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032320$as_echo "$ConvertDelegate" >&6; }
32321else
cristy8b350f62009-11-15 23:12:43 +000032322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323$as_echo "no" >&6; }
32324fi
32325
32326
32327# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32328set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032330$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032331if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032332 $as_echo_n "(cached) " >&6
32333else
32334 case $DisplayDelegate in
32335 [\\/]* | ?:[\\/]*)
32336 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32337 ;;
32338 *)
32339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32340for as_dir in $PATH
32341do
32342 IFS=$as_save_IFS
32343 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032344 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32346 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032348 break 2
32349 fi
32350done
cristy8b350f62009-11-15 23:12:43 +000032351 done
cristy3ed852e2009-09-05 21:47:34 +000032352IFS=$as_save_IFS
32353
32354 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32355 ;;
32356esac
32357fi
32358DisplayDelegate=$ac_cv_path_DisplayDelegate
32359if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032361$as_echo "$DisplayDelegate" >&6; }
32362else
cristy8b350f62009-11-15 23:12:43 +000032363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032364$as_echo "no" >&6; }
32365fi
32366
32367
32368# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32369set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032371$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032372if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032373 $as_echo_n "(cached) " >&6
32374else
32375 case $MogrifyDelegate in
32376 [\\/]* | ?:[\\/]*)
32377 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32378 ;;
32379 *)
32380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32381for as_dir in $PATH
32382do
32383 IFS=$as_save_IFS
32384 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32387 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032389 break 2
32390 fi
32391done
cristy8b350f62009-11-15 23:12:43 +000032392 done
cristy3ed852e2009-09-05 21:47:34 +000032393IFS=$as_save_IFS
32394
32395 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32396 ;;
32397esac
32398fi
32399MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32400if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032402$as_echo "$MogrifyDelegate" >&6; }
32403else
cristy8b350f62009-11-15 23:12:43 +000032404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032405$as_echo "no" >&6; }
32406fi
32407
32408
32409# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32410set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032412$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032413if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032414 $as_echo_n "(cached) " >&6
32415else
32416 case $GnuplotDecodeDelegate in
32417 [\\/]* | ?:[\\/]*)
32418 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32419 ;;
32420 *)
32421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32422for as_dir in $PATH
32423do
32424 IFS=$as_save_IFS
32425 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032426 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32428 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032430 break 2
32431 fi
32432done
cristy8b350f62009-11-15 23:12:43 +000032433 done
cristy3ed852e2009-09-05 21:47:34 +000032434IFS=$as_save_IFS
32435
32436 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32437 ;;
32438esac
32439fi
32440GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32441if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032443$as_echo "$GnuplotDecodeDelegate" >&6; }
32444else
cristy8b350f62009-11-15 23:12:43 +000032445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032446$as_echo "no" >&6; }
32447fi
32448
32449
cristy3ed852e2009-09-05 21:47:34 +000032450# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32451set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032453$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032454if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032455 $as_echo_n "(cached) " >&6
32456else
32457 case $HPGLDecodeDelegate in
32458 [\\/]* | ?:[\\/]*)
32459 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32460 ;;
32461 *)
32462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32463for as_dir in $PATH
32464do
32465 IFS=$as_save_IFS
32466 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032467 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32469 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032471 break 2
32472 fi
32473done
cristy8b350f62009-11-15 23:12:43 +000032474 done
cristy3ed852e2009-09-05 21:47:34 +000032475IFS=$as_save_IFS
32476
32477 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32478 ;;
32479esac
32480fi
32481HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32482if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032484$as_echo "$HPGLDecodeDelegate" >&6; }
32485else
cristy8b350f62009-11-15 23:12:43 +000032486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032487$as_echo "no" >&6; }
32488fi
32489
32490
32491# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32492set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032494$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032495if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032496 $as_echo_n "(cached) " >&6
32497else
32498 case $HTMLDecodeDelegate in
32499 [\\/]* | ?:[\\/]*)
32500 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32501 ;;
32502 *)
32503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32504for as_dir in $PATH
32505do
32506 IFS=$as_save_IFS
32507 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032508 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32510 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032512 break 2
32513 fi
32514done
cristy8b350f62009-11-15 23:12:43 +000032515 done
cristy3ed852e2009-09-05 21:47:34 +000032516IFS=$as_save_IFS
32517
32518 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32519 ;;
32520esac
32521fi
32522HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32523if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032525$as_echo "$HTMLDecodeDelegate" >&6; }
32526else
cristy8b350f62009-11-15 23:12:43 +000032527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032528$as_echo "no" >&6; }
32529fi
32530
32531
32532# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32533set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032535$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032536if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032537 $as_echo_n "(cached) " >&6
32538else
32539 case $ILBMDecodeDelegate in
32540 [\\/]* | ?:[\\/]*)
32541 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32542 ;;
32543 *)
32544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32545for as_dir in $PATH
32546do
32547 IFS=$as_save_IFS
32548 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32551 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032553 break 2
32554 fi
32555done
cristy8b350f62009-11-15 23:12:43 +000032556 done
cristy3ed852e2009-09-05 21:47:34 +000032557IFS=$as_save_IFS
32558
32559 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32560 ;;
32561esac
32562fi
32563ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32564if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032566$as_echo "$ILBMDecodeDelegate" >&6; }
32567else
cristy8b350f62009-11-15 23:12:43 +000032568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032569$as_echo "no" >&6; }
32570fi
32571
32572
32573# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32574set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032576$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032577if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032578 $as_echo_n "(cached) " >&6
32579else
32580 case $ILBMEncodeDelegate in
32581 [\\/]* | ?:[\\/]*)
32582 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32583 ;;
32584 *)
32585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32586for as_dir in $PATH
32587do
32588 IFS=$as_save_IFS
32589 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032590 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32592 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032594 break 2
32595 fi
32596done
cristy8b350f62009-11-15 23:12:43 +000032597 done
cristy3ed852e2009-09-05 21:47:34 +000032598IFS=$as_save_IFS
32599
32600 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32601 ;;
32602esac
32603fi
32604ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32605if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032607$as_echo "$ILBMEncodeDelegate" >&6; }
32608else
cristy8b350f62009-11-15 23:12:43 +000032609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032610$as_echo "no" >&6; }
32611fi
32612
32613
32614# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32615set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032617$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032618if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032619 $as_echo_n "(cached) " >&6
32620else
32621 case $LPDelegate in
32622 [\\/]* | ?:[\\/]*)
32623 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32624 ;;
32625 *)
32626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32627for as_dir in $PATH
32628do
32629 IFS=$as_save_IFS
32630 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032631 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32633 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032635 break 2
32636 fi
32637done
cristy8b350f62009-11-15 23:12:43 +000032638 done
cristy3ed852e2009-09-05 21:47:34 +000032639IFS=$as_save_IFS
32640
32641 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32642 ;;
32643esac
32644fi
32645LPDelegate=$ac_cv_path_LPDelegate
32646if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032648$as_echo "$LPDelegate" >&6; }
32649else
cristy8b350f62009-11-15 23:12:43 +000032650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032651$as_echo "no" >&6; }
32652fi
32653
32654
32655# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32656set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032659if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032660 $as_echo_n "(cached) " >&6
32661else
32662 case $LPRDelegate in
32663 [\\/]* | ?:[\\/]*)
32664 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32665 ;;
32666 *)
32667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32668for as_dir in $PATH
32669do
32670 IFS=$as_save_IFS
32671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32674 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032676 break 2
32677 fi
32678done
cristy8b350f62009-11-15 23:12:43 +000032679 done
cristy3ed852e2009-09-05 21:47:34 +000032680IFS=$as_save_IFS
32681
32682 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32683 ;;
32684esac
32685fi
32686LPRDelegate=$ac_cv_path_LPRDelegate
32687if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032689$as_echo "$LPRDelegate" >&6; }
32690else
cristy8b350f62009-11-15 23:12:43 +000032691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032692$as_echo "no" >&6; }
32693fi
32694
32695
32696# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32697set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032700if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032701 $as_echo_n "(cached) " >&6
32702else
32703 case $LZWDecodeDelegate in
32704 [\\/]* | ?:[\\/]*)
32705 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32706 ;;
32707 *)
32708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32709for as_dir in $PATH
32710do
32711 IFS=$as_save_IFS
32712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32715 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032717 break 2
32718 fi
32719done
cristy8b350f62009-11-15 23:12:43 +000032720 done
cristy3ed852e2009-09-05 21:47:34 +000032721IFS=$as_save_IFS
32722
32723 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32724 ;;
32725esac
32726fi
32727LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32728if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032730$as_echo "$LZWDecodeDelegate" >&6; }
32731else
cristy8b350f62009-11-15 23:12:43 +000032732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032733$as_echo "no" >&6; }
32734fi
32735
32736
32737# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32738set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032741if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032742 $as_echo_n "(cached) " >&6
32743else
32744 case $LZWEncodeDelegate in
32745 [\\/]* | ?:[\\/]*)
32746 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32747 ;;
32748 *)
32749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32750for as_dir in $PATH
32751do
32752 IFS=$as_save_IFS
32753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32756 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032758 break 2
32759 fi
32760done
cristy8b350f62009-11-15 23:12:43 +000032761 done
cristy3ed852e2009-09-05 21:47:34 +000032762IFS=$as_save_IFS
32763
32764 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32765 ;;
32766esac
32767fi
32768LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32769if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032771$as_echo "$LZWEncodeDelegate" >&6; }
32772else
cristy8b350f62009-11-15 23:12:43 +000032773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032774$as_echo "no" >&6; }
32775fi
32776
32777
32778# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32779set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032782if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032783 $as_echo_n "(cached) " >&6
32784else
32785 case $LaunchDelegate in
32786 [\\/]* | ?:[\\/]*)
32787 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32788 ;;
32789 *)
32790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32791for as_dir in $PATH
32792do
32793 IFS=$as_save_IFS
32794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32797 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032799 break 2
32800 fi
32801done
cristy8b350f62009-11-15 23:12:43 +000032802 done
cristy3ed852e2009-09-05 21:47:34 +000032803IFS=$as_save_IFS
32804
32805 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32806 ;;
32807esac
32808fi
32809LaunchDelegate=$ac_cv_path_LaunchDelegate
32810if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812$as_echo "$LaunchDelegate" >&6; }
32813else
cristy8b350f62009-11-15 23:12:43 +000032814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032815$as_echo "no" >&6; }
32816fi
32817
32818
32819# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32820set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032823if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032824 $as_echo_n "(cached) " >&6
32825else
32826 case $MANDelegate in
32827 [\\/]* | ?:[\\/]*)
32828 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32829 ;;
32830 *)
32831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32832for as_dir in $PATH
32833do
32834 IFS=$as_save_IFS
32835 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32838 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032840 break 2
32841 fi
32842done
cristy8b350f62009-11-15 23:12:43 +000032843 done
cristy3ed852e2009-09-05 21:47:34 +000032844IFS=$as_save_IFS
32845
32846 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32847 ;;
32848esac
32849fi
32850MANDelegate=$ac_cv_path_MANDelegate
32851if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032853$as_echo "$MANDelegate" >&6; }
32854else
cristy8b350f62009-11-15 23:12:43 +000032855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032856$as_echo "no" >&6; }
32857fi
32858
32859
32860# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32861set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032864if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032865 $as_echo_n "(cached) " >&6
32866else
32867 case $MPEGDecodeDelegate in
32868 [\\/]* | ?:[\\/]*)
32869 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32870 ;;
32871 *)
32872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32873for as_dir in $PATH
32874do
32875 IFS=$as_save_IFS
32876 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32879 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032881 break 2
32882 fi
32883done
cristy8b350f62009-11-15 23:12:43 +000032884 done
cristy3ed852e2009-09-05 21:47:34 +000032885IFS=$as_save_IFS
32886
32887 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32888 ;;
32889esac
32890fi
32891MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32892if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032894$as_echo "$MPEGDecodeDelegate" >&6; }
32895else
cristy8b350f62009-11-15 23:12:43 +000032896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897$as_echo "no" >&6; }
32898fi
32899
32900
32901# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32902set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032905if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032906 $as_echo_n "(cached) " >&6
32907else
32908 case $MPEGEncodeDelegate in
32909 [\\/]* | ?:[\\/]*)
32910 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32911 ;;
32912 *)
32913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32914for as_dir in $PATH
32915do
32916 IFS=$as_save_IFS
32917 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032918 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32920 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032922 break 2
32923 fi
32924done
cristy8b350f62009-11-15 23:12:43 +000032925 done
cristy3ed852e2009-09-05 21:47:34 +000032926IFS=$as_save_IFS
32927
32928 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32929 ;;
32930esac
32931fi
32932MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32933if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032935$as_echo "$MPEGEncodeDelegate" >&6; }
32936else
cristy8b350f62009-11-15 23:12:43 +000032937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032938$as_echo "no" >&6; }
32939fi
32940
32941
cristy935c86e2010-06-05 23:50:07 +000032942# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32943set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032946if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000032947 $as_echo_n "(cached) " >&6
32948else
32949 case $MrSIDDecodeDelegate in
32950 [\\/]* | ?:[\\/]*)
32951 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32952 ;;
32953 *)
32954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32955for as_dir in $PATH
32956do
32957 IFS=$as_save_IFS
32958 test -z "$as_dir" && as_dir=.
32959 for ac_exec_ext in '' $ac_executable_extensions; do
32960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32961 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32963 break 2
32964 fi
32965done
32966 done
32967IFS=$as_save_IFS
32968
32969 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32970 ;;
32971esac
32972fi
32973MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32974if test -n "$MrSIDDecodeDelegate"; then
32975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32976$as_echo "$MrSIDDecodeDelegate" >&6; }
32977else
32978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32979$as_echo "no" >&6; }
32980fi
32981
32982
cristy3ed852e2009-09-05 21:47:34 +000032983# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32984set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032986$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032987if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032988 $as_echo_n "(cached) " >&6
32989else
32990 case $MVDelegate in
32991 [\\/]* | ?:[\\/]*)
32992 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32993 ;;
32994 *)
32995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32996for as_dir in $PATH
32997do
32998 IFS=$as_save_IFS
32999 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33002 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033004 break 2
33005 fi
33006done
cristy8b350f62009-11-15 23:12:43 +000033007 done
cristy3ed852e2009-09-05 21:47:34 +000033008IFS=$as_save_IFS
33009
33010 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33011 ;;
33012esac
33013fi
33014MVDelegate=$ac_cv_path_MVDelegate
33015if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017$as_echo "$MVDelegate" >&6; }
33018else
cristy8b350f62009-11-15 23:12:43 +000033019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033020$as_echo "no" >&6; }
33021fi
33022
33023
33024# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33025set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033028if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033029 $as_echo_n "(cached) " >&6
33030else
33031 case $PCLDelegate in
33032 [\\/]* | ?:[\\/]*)
33033 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33034 ;;
33035 *)
33036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33037for as_dir in $PATH
33038do
33039 IFS=$as_save_IFS
33040 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033041 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33043 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033045 break 2
33046 fi
33047done
cristy8b350f62009-11-15 23:12:43 +000033048 done
cristy3ed852e2009-09-05 21:47:34 +000033049IFS=$as_save_IFS
33050
33051 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33052 ;;
33053esac
33054fi
33055PCLDelegate=$ac_cv_path_PCLDelegate
33056if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033058$as_echo "$PCLDelegate" >&6; }
33059else
cristy8b350f62009-11-15 23:12:43 +000033060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033061$as_echo "no" >&6; }
33062fi
33063
33064
33065# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33066set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033069if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033070 $as_echo_n "(cached) " >&6
33071else
33072 case $PGPDecodeDelegate in
33073 [\\/]* | ?:[\\/]*)
33074 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33075 ;;
33076 *)
33077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33078for as_dir in $PATH
33079do
33080 IFS=$as_save_IFS
33081 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33084 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033086 break 2
33087 fi
33088done
cristy8b350f62009-11-15 23:12:43 +000033089 done
cristy3ed852e2009-09-05 21:47:34 +000033090IFS=$as_save_IFS
33091
33092 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33093 ;;
33094esac
33095fi
33096PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33097if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033099$as_echo "$PGPDecodeDelegate" >&6; }
33100else
cristy8b350f62009-11-15 23:12:43 +000033101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033102$as_echo "no" >&6; }
33103fi
33104
33105
33106# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33107set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033109$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033110if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033111 $as_echo_n "(cached) " >&6
33112else
33113 case $POVDelegate in
33114 [\\/]* | ?:[\\/]*)
33115 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33116 ;;
33117 *)
33118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33119for as_dir in $PATH
33120do
33121 IFS=$as_save_IFS
33122 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033123 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33125 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033127 break 2
33128 fi
33129done
cristy8b350f62009-11-15 23:12:43 +000033130 done
cristy3ed852e2009-09-05 21:47:34 +000033131IFS=$as_save_IFS
33132
33133 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33134 ;;
33135esac
33136fi
33137POVDelegate=$ac_cv_path_POVDelegate
33138if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033140$as_echo "$POVDelegate" >&6; }
33141else
cristy8b350f62009-11-15 23:12:43 +000033142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033143$as_echo "no" >&6; }
33144fi
33145
33146
33147for ac_prog in gsx gsc "$PSDelegateDefault"
33148do
33149 # Extract the first word of "$ac_prog", so it can be a program name with args.
33150set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033152$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033153if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033154 $as_echo_n "(cached) " >&6
33155else
33156 case $PSDelegate in
33157 [\\/]* | ?:[\\/]*)
33158 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33159 ;;
33160 *)
33161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33162for as_dir in $PATH
33163do
33164 IFS=$as_save_IFS
33165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33168 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033170 break 2
33171 fi
33172done
cristy8b350f62009-11-15 23:12:43 +000033173 done
cristy3ed852e2009-09-05 21:47:34 +000033174IFS=$as_save_IFS
33175
33176 ;;
33177esac
33178fi
33179PSDelegate=$ac_cv_path_PSDelegate
33180if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033182$as_echo "$PSDelegate" >&6; }
33183else
cristy8b350f62009-11-15 23:12:43 +000033184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185$as_echo "no" >&6; }
33186fi
33187
33188
33189 test -n "$PSDelegate" && break
33190done
33191test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33192
33193# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33194set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033197if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033198 $as_echo_n "(cached) " >&6
33199else
33200 case $RLEEncodeDelegate in
33201 [\\/]* | ?:[\\/]*)
33202 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33203 ;;
33204 *)
33205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33206for as_dir in $PATH
33207do
33208 IFS=$as_save_IFS
33209 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033210 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33212 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033214 break 2
33215 fi
33216done
cristy8b350f62009-11-15 23:12:43 +000033217 done
cristy3ed852e2009-09-05 21:47:34 +000033218IFS=$as_save_IFS
33219
33220 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33221 ;;
33222esac
33223fi
33224RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33225if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033227$as_echo "$RLEEncodeDelegate" >&6; }
33228else
cristy8b350f62009-11-15 23:12:43 +000033229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033230$as_echo "no" >&6; }
33231fi
33232
33233
33234# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33235set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033238if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033239 $as_echo_n "(cached) " >&6
33240else
33241 case $RMDelegate in
33242 [\\/]* | ?:[\\/]*)
33243 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33244 ;;
33245 *)
33246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33247for as_dir in $PATH
33248do
33249 IFS=$as_save_IFS
33250 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33253 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033255 break 2
33256 fi
33257done
cristy8b350f62009-11-15 23:12:43 +000033258 done
cristy3ed852e2009-09-05 21:47:34 +000033259IFS=$as_save_IFS
33260
33261 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33262 ;;
33263esac
33264fi
33265RMDelegate=$ac_cv_path_RMDelegate
33266if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033268$as_echo "$RMDelegate" >&6; }
33269else
cristy8b350f62009-11-15 23:12:43 +000033270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033271$as_echo "no" >&6; }
33272fi
33273
33274
cristy4689cf02010-02-17 21:15:45 +000033275# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33276set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033279if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033280 $as_echo_n "(cached) " >&6
33281else
33282 case $RSVGDecodeDelegate in
33283 [\\/]* | ?:[\\/]*)
33284 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33285 ;;
33286 *)
33287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33288for as_dir in $PATH
33289do
33290 IFS=$as_save_IFS
33291 test -z "$as_dir" && as_dir=.
33292 for ac_exec_ext in '' $ac_executable_extensions; do
33293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33294 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33296 break 2
33297 fi
33298done
33299 done
33300IFS=$as_save_IFS
33301
33302 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33303 ;;
33304esac
33305fi
33306RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33307if test -n "$RSVGDecodeDelegate"; then
33308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33309$as_echo "$RSVGDecodeDelegate" >&6; }
33310else
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33312$as_echo "no" >&6; }
33313fi
33314
33315
cristy3ed852e2009-09-05 21:47:34 +000033316# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33317set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033320if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033321 $as_echo_n "(cached) " >&6
33322else
33323 case $SCANDecodeDelegate in
33324 [\\/]* | ?:[\\/]*)
33325 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33326 ;;
33327 *)
33328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33329for as_dir in $PATH
33330do
33331 IFS=$as_save_IFS
33332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33335 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033337 break 2
33338 fi
33339done
cristy8b350f62009-11-15 23:12:43 +000033340 done
cristy3ed852e2009-09-05 21:47:34 +000033341IFS=$as_save_IFS
33342
33343 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33344 ;;
33345esac
33346fi
33347SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33348if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033350$as_echo "$SCANDecodeDelegate" >&6; }
33351else
cristy8b350f62009-11-15 23:12:43 +000033352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033353$as_echo "no" >&6; }
33354fi
33355
33356
33357# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33358set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033360$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033361if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033362 $as_echo_n "(cached) " >&6
33363else
33364 case $TXTDelegate in
33365 [\\/]* | ?:[\\/]*)
33366 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33367 ;;
33368 *)
33369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33370for as_dir in $PATH
33371do
33372 IFS=$as_save_IFS
33373 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33376 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033378 break 2
33379 fi
33380done
cristy8b350f62009-11-15 23:12:43 +000033381 done
cristy3ed852e2009-09-05 21:47:34 +000033382IFS=$as_save_IFS
33383
33384 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33385 ;;
33386esac
33387fi
33388TXTDelegate=$ac_cv_path_TXTDelegate
33389if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033391$as_echo "$TXTDelegate" >&6; }
33392else
cristy8b350f62009-11-15 23:12:43 +000033393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033394$as_echo "no" >&6; }
33395fi
33396
33397
cristy5ac9ac82010-07-29 13:24:24 +000033398# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33399set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33401$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033402if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033403 $as_echo_n "(cached) " >&6
33404else
33405 case $UniconvertorDelegate in
33406 [\\/]* | ?:[\\/]*)
33407 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33408 ;;
33409 *)
33410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33411for as_dir in $PATH
33412do
33413 IFS=$as_save_IFS
33414 test -z "$as_dir" && as_dir=.
33415 for ac_exec_ext in '' $ac_executable_extensions; do
33416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33417 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33419 break 2
33420 fi
33421done
33422 done
33423IFS=$as_save_IFS
33424
33425 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33426 ;;
33427esac
33428fi
33429UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33430if test -n "$UniconvertorDelegate"; then
33431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33432$as_echo "$UniconvertorDelegate" >&6; }
33433else
33434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33435$as_echo "no" >&6; }
33436fi
33437
33438
cristy3ed852e2009-09-05 21:47:34 +000033439# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33440set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033443if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033444 $as_echo_n "(cached) " >&6
33445else
33446 case $WMFDecodeDelegate in
33447 [\\/]* | ?:[\\/]*)
33448 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33449 ;;
33450 *)
33451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33452for as_dir in $PATH
33453do
33454 IFS=$as_save_IFS
33455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33458 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033460 break 2
33461 fi
33462done
cristy8b350f62009-11-15 23:12:43 +000033463 done
cristy3ed852e2009-09-05 21:47:34 +000033464IFS=$as_save_IFS
33465
33466 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33467 ;;
33468esac
33469fi
33470WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33471if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033473$as_echo "$WMFDecodeDelegate" >&6; }
33474else
cristy8b350f62009-11-15 23:12:43 +000033475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033476$as_echo "no" >&6; }
33477fi
33478
33479
33480# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33481set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033483$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033484if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033485 $as_echo_n "(cached) " >&6
33486else
33487 case $WWWDecodeDelegate in
33488 [\\/]* | ?:[\\/]*)
33489 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33490 ;;
33491 *)
33492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33493for as_dir in $PATH
33494do
33495 IFS=$as_save_IFS
33496 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33499 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033501 break 2
33502 fi
33503done
cristy8b350f62009-11-15 23:12:43 +000033504 done
cristy3ed852e2009-09-05 21:47:34 +000033505IFS=$as_save_IFS
33506
33507 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33508 ;;
33509esac
33510fi
33511WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33512if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033514$as_echo "$WWWDecodeDelegate" >&6; }
33515else
cristy8b350f62009-11-15 23:12:43 +000033516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517$as_echo "no" >&6; }
33518fi
33519
33520
33521# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33522set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033524$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033525if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033526 $as_echo_n "(cached) " >&6
33527else
33528 case $XPSDelegate in
33529 [\\/]* | ?:[\\/]*)
33530 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33531 ;;
33532 *)
33533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33534for as_dir in $PATH
33535do
33536 IFS=$as_save_IFS
33537 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33540 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033542 break 2
33543 fi
33544done
cristy8b350f62009-11-15 23:12:43 +000033545 done
cristy3ed852e2009-09-05 21:47:34 +000033546IFS=$as_save_IFS
33547
33548 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33549 ;;
33550esac
33551fi
33552XPSDelegate=$ac_cv_path_XPSDelegate
33553if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033555$as_echo "$XPSDelegate" >&6; }
33556else
cristy8b350f62009-11-15 23:12:43 +000033557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033558$as_echo "no" >&6; }
33559fi
33560
33561
33562# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33563set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033566if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033567 $as_echo_n "(cached) " >&6
33568else
33569 case $ZipDelegate in
33570 [\\/]* | ?:[\\/]*)
33571 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33572 ;;
33573 *)
33574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33575for as_dir in $PATH
33576do
33577 IFS=$as_save_IFS
33578 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33581 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033583 break 2
33584 fi
33585done
cristy8b350f62009-11-15 23:12:43 +000033586 done
cristy3ed852e2009-09-05 21:47:34 +000033587IFS=$as_save_IFS
33588
33589 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33590 ;;
33591esac
33592fi
33593ZipDelegate=$ac_cv_path_ZipDelegate
33594if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033596$as_echo "$ZipDelegate" >&6; }
33597else
cristy8b350f62009-11-15 23:12:43 +000033598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033599$as_echo "no" >&6; }
33600fi
33601
33602
33603
33604# Prefer lpr to lp; lp needs options tacked on.
33605if test "$LPRDelegate" != no; then
33606 PrintDelegate="$LPRDelegate"
33607else
33608 PrintDelegate="$LPDelegate -c -s"
33609fi
33610
33611
33612# Installed ImageMagick utiltity paths
33613ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33614DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33615MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33616
33617# Set delegate booleans
33618have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33619have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33620have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33621have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33622have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033623have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033624have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33625have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033626have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33627have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33628
33629#
33630# Test for font directories
33631#
33632type_include_files=''
33633
cristy430a7312010-01-21 20:44:04 +000033634# Dejavu fonts.
33635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33636$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33637dejavu_font_dir=''
33638if test "${with_dejavu_font_dir}" != 'default'; then
33639 dejavu_font_dir="${with_dejavu_font_dir}/"
33640else
33641 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33642 if test -f "${font_dir}DejaVuSerif.ttf"; then
33643 dejavu_font_dir="${font_dir}"
33644 break 1
33645 fi
33646 done
33647fi
33648if test "${dejavu_font_dir}x" != 'x'; then
33649 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033650 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33651$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033652else
cristy09b53e12011-10-14 12:47:22 +000033653 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33654$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033655fi
33656
33657
cristy3ed852e2009-09-05 21:47:34 +000033658# Windows
33659windows_font_dir=''
33660if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33661 windows_font_dir="${with_windows_font_dir}/"
33662fi
cristy430a7312010-01-21 20:44:04 +000033663if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033664 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33665 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33666 fi
33667 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33668 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33669 fi
33670 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33671 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33672 fi
33673fi
cristy430a7312010-01-21 20:44:04 +000033674if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033675 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33676fi
33677
33678
33679# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033681$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33682ghostscript_font_dir=''
33683if test "${with_gs_font_dir}" != 'default'; then
33684 ghostscript_font_dir="${with_gs_font_dir}/"
33685else
33686 if test "${native_win32_build}" = 'yes'; then
33687 # Native Windows Build
33688 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33689 if test -f "${font_dir}a010013l.pfb"; then
33690 ghostscript_font_dir="$font_dir"
33691 break 1
33692 fi
33693 done
33694 if test "${PSDelegate}" != 'gswin32c'; then
33695 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33696 fi
33697 else
33698 # Linux / Mac OS X / Unix Build
33699 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
33700 if test -f "${font_dir}a010013l.pfb"; then
33701 ghostscript_font_dir="${font_dir}"
33702 break 1
33703 fi
33704 done
33705 if test "${ghostscript_font_dir}x" = 'x'; then
33706 if test "$PSDelegate" != 'gs'; then
33707 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33708 fi
33709 fi
33710 fi
33711fi
33712if test "${ghostscript_font_dir}x" != 'x'; then
33713 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033714 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
33715$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000033716else
cristy09b53e12011-10-14 12:47:22 +000033717 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33718$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000033719fi
33720
33721case "${build_os}" in
33722 mingw* )
33723 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33724 ;;
33725esac
33726
33727
33728
33729#
33730# Handle case where user doesn't want frozen paths
33731#
33732if test "$with_frozenpaths" != 'yes'; then
33733 # Re-set delegate definitions to default (no paths)
33734 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033735 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33736 BZIPDelegate="$BZIPDelegateDefault"
33737 BrowseDelegate="$BrowseDelegateDefault"
33738 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33739 CatDelegate="$CatDelegateDefault"
33740 ConvertDelegate="$ConvertDelegateDefault"
33741 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33742 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33743 EchoDelegate="$EchoDelegateDefault"
33744 EditorDelegate="$EditorDelegateDefault"
33745 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33746 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33747 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33748 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33749 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33750 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33751 LPDelegate="$LPDelegateDefault"
33752 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33753 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33754 LaunchDelegate="$LaunchDelegateDefault"
33755 MANDelegate="$MANDelegateDefault"
33756 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33757 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033758 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033759 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33760 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033761 PCLDelegate="$PCLDelegateDefault"
33762 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33763 POVDelegate="$POVDelegateDefault"
33764 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033765 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33766 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033767 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033768 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33769 ShowImageDelegate="$ShowImageDelegateDefault"
33770 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033771 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033772 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33773 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33774 XPSDelegate="$XPSDelegateDefault"
33775 ZipDelegate="$ZipDelegateDefault"
33776fi
33777
33778# Delegate substitutions
33779
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# RPM support.
33823#
33824RPM=''
33825for ac_prog in gnutar gtar tar
33826do
33827 # Extract the first word of "$ac_prog", so it can be a program name with args.
33828set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033831if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033832 $as_echo_n "(cached) " >&6
33833else
33834 if test -n "$TAR"; then
33835 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33836else
33837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33838for as_dir in $PATH
33839do
33840 IFS=$as_save_IFS
33841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33844 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033846 break 2
33847 fi
33848done
cristy8b350f62009-11-15 23:12:43 +000033849 done
cristy3ed852e2009-09-05 21:47:34 +000033850IFS=$as_save_IFS
33851
33852fi
33853fi
33854TAR=$ac_cv_prog_TAR
33855if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033857$as_echo "$TAR" >&6; }
33858else
cristy8b350f62009-11-15 23:12:43 +000033859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033860$as_echo "no" >&6; }
33861fi
33862
33863
33864 test -n "$TAR" && break
33865done
33866
33867for ac_prog in perl
33868do
33869 # Extract the first word of "$ac_prog", so it can be a program name with args.
33870set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033873if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033874 $as_echo_n "(cached) " >&6
33875else
33876 if test -n "$PERL"; then
33877 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33878else
33879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33880for as_dir in $PATH
33881do
33882 IFS=$as_save_IFS
33883 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033884 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33886 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033888 break 2
33889 fi
33890done
cristy8b350f62009-11-15 23:12:43 +000033891 done
cristy3ed852e2009-09-05 21:47:34 +000033892IFS=$as_save_IFS
33893
33894fi
33895fi
33896PERL=$ac_cv_prog_PERL
33897if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899$as_echo "$PERL" >&6; }
33900else
cristy8b350f62009-11-15 23:12:43 +000033901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033902$as_echo "no" >&6; }
33903fi
33904
33905
33906 test -n "$PERL" && break
33907done
33908
33909for ac_prog in rpmbuild rpm
33910do
33911 # Extract the first word of "$ac_prog", so it can be a program name with args.
33912set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033914$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033915if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033916 $as_echo_n "(cached) " >&6
33917else
33918 if test -n "$RPM"; then
33919 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33920else
33921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33922for as_dir in $PATH
33923do
33924 IFS=$as_save_IFS
33925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033926 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33928 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033930 break 2
33931 fi
33932done
cristy8b350f62009-11-15 23:12:43 +000033933 done
cristy3ed852e2009-09-05 21:47:34 +000033934IFS=$as_save_IFS
33935
33936fi
33937fi
33938RPM=$ac_cv_prog_RPM
33939if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000033940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941$as_echo "$RPM" >&6; }
33942else
cristy8b350f62009-11-15 23:12:43 +000033943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033944$as_echo "no" >&6; }
33945fi
33946
33947
33948 test -n "$RPM" && break
33949done
33950
33951
cristy73bd4a52010-10-05 11:24:23 +000033952ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33953
33954
33955AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33956
33957
33958AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33959
33960
33961AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33962
33963
33964 if test "x$RPM" != "x" ; then
33965 RPM_DELEGATE_TRUE=
33966 RPM_DELEGATE_FALSE='#'
33967else
33968 RPM_DELEGATE_TRUE='#'
33969 RPM_DELEGATE_FALSE=
33970fi
33971
cristy3ed852e2009-09-05 21:47:34 +000033972
33973#
33974# 7ZIP support (http://p7zip.sourceforge.net/)
33975#
33976P7ZIP=''
33977for ac_prog in 7za
33978do
33979 # Extract the first word of "$ac_prog", so it can be a program name with args.
33980set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033982$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033983if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033984 $as_echo_n "(cached) " >&6
33985else
33986 if test -n "$P7ZIP"; then
33987 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33988else
33989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33990for as_dir in $PATH
33991do
33992 IFS=$as_save_IFS
33993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33996 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033998 break 2
33999 fi
34000done
cristy8b350f62009-11-15 23:12:43 +000034001 done
cristy3ed852e2009-09-05 21:47:34 +000034002IFS=$as_save_IFS
34003
34004fi
34005fi
34006P7ZIP=$ac_cv_prog_P7ZIP
34007if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034009$as_echo "$P7ZIP" >&6; }
34010else
cristy8b350f62009-11-15 23:12:43 +000034011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034012$as_echo "no" >&6; }
34013fi
34014
34015
34016 test -n "$P7ZIP" && break
34017done
34018
34019
cristy73bd4a52010-10-05 11:24:23 +000034020 if test "x$P7ZIP" != "x" ; then
34021 P7ZIP_DELEGATE_TRUE=
34022 P7ZIP_DELEGATE_FALSE='#'
34023else
34024 P7ZIP_DELEGATE_TRUE='#'
34025 P7ZIP_DELEGATE_FALSE=
34026fi
34027
cristy3ed852e2009-09-05 21:47:34 +000034028
34029#
34030# ZIP support (http://www.info-zip.org/Zip.html)
34031#
34032ZIP=''
34033for ac_prog in zip
34034do
34035 # Extract the first word of "$ac_prog", so it can be a program name with args.
34036set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034038$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034039if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034040 $as_echo_n "(cached) " >&6
34041else
34042 if test -n "$ZIP"; then
34043 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34044else
34045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34046for as_dir in $PATH
34047do
34048 IFS=$as_save_IFS
34049 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34052 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034054 break 2
34055 fi
34056done
cristy8b350f62009-11-15 23:12:43 +000034057 done
cristy3ed852e2009-09-05 21:47:34 +000034058IFS=$as_save_IFS
34059
34060fi
34061fi
34062ZIP=$ac_cv_prog_ZIP
34063if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034065$as_echo "$ZIP" >&6; }
34066else
cristy8b350f62009-11-15 23:12:43 +000034067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034068$as_echo "no" >&6; }
34069fi
34070
34071
34072 test -n "$ZIP" && break
34073done
34074
34075
cristy73bd4a52010-10-05 11:24:23 +000034076 if test "x$ZIP" != "x" ; then
34077 ZIP_DELEGATE_TRUE=
34078 ZIP_DELEGATE_FALSE='#'
34079else
34080 ZIP_DELEGATE_TRUE='#'
34081 ZIP_DELEGATE_FALSE=
34082fi
34083
cristy3ed852e2009-09-05 21:47:34 +000034084
34085#
34086# GhostPCL related configuration.
34087#
34088PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034089PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034090PCLMonoDevice=pbmraw
34091if test -z "$PCLVersion"; then
34092 PCLVersion='unknown'
34093fi
34094if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034095 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34096$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034098$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034099 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34100$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034101 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034103$as_echo_n "checking for pcl color device... " >&6; }
34104 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34105 :
34106 else
34107 PCLColorDevice=ppmraw
34108 fi
cristy09b53e12011-10-14 12:47:22 +000034109 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34110$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034111
34112 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034114$as_echo_n "checking for pcl CMYK device... " >&6; }
34115 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34116 :
34117 else
34118 PCLCMYKDevice=$PCLColorDevice
34119 fi
cristy09b53e12011-10-14 12:47:22 +000034120 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34121$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034122
34123 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034125$as_echo_n "checking for pcl mono device... " >&6; }
34126 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34127 :
34128 else
34129 PCLMonoDevice=$PCLColorDevice
34130 fi
cristy09b53e12011-10-14 12:47:22 +000034131 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34132$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034133fi
34134
34135
34136
34137
34138
34139
34140#
34141# GhostXPS related configuration.
34142#
34143XPSColorDevice=ppmraw
34144XPSCMYKDevice=bmpsep8
34145XPSMonoDevice=pbmraw
34146if test -z "$XPSVersion"; then
34147 XPSVersion='unknown'
34148fi
34149if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034150 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34151$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034153$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034154 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34155$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034156 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034158$as_echo_n "checking for xps color device... " >&6; }
34159 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34160 :
34161 else
34162 XPSColorDevice=ppmraw
34163 fi
cristy09b53e12011-10-14 12:47:22 +000034164 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34165$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034166
34167 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034169$as_echo_n "checking for xps CMYK device... " >&6; }
34170 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34171 :
34172 else
34173 XPSCMYKDevice=$XPSColorDevice
34174 fi
cristy09b53e12011-10-14 12:47:22 +000034175 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34176$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034177
34178 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034180$as_echo_n "checking for xps mono device... " >&6; }
34181 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34182 :
34183 else
34184 XPSMonoDevice=$XPSColorDevice
34185 fi
cristy09b53e12011-10-14 12:47:22 +000034186 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34187$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034188fi
34189
34190
34191
34192
34193
34194
34195#
34196# Ghostscript related configuration.
34197#
cristya97426c2011-02-04 01:41:27 +000034198GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034199GSColorDevice=pnmraw
34200GSCMYKDevice=pam
34201GSMonoDevice=pbmraw
34202GSPDFDevice=pdfwrite
34203GSPSDevice=pswrite
34204GSEPSDevice=epswrite
34205GSVersion='unknown'
34206if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034207 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34208$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034210$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034211 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34212$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034214$as_echo_n "checking for Ghostscript version... " >&6; }
34215 if GSVersion=`$PSDelegate --version`; then
34216 :
34217 else
34218 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34219 fi
cristy09b53e12011-10-14 12:47:22 +000034220 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34221$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034222
34223 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034225$as_echo_n "checking for gs alpha device... " >&6; }
34226 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34227 :
34228 else
34229 GSAlphaDevice=pnmraw
34230 fi
cristy09b53e12011-10-14 12:47:22 +000034231 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34232$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034233
34234 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034236$as_echo_n "checking for gs color device... " >&6; }
34237 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34238 :
34239 else
34240 GSColorDevice=pnmraw
34241 fi
cristy09b53e12011-10-14 12:47:22 +000034242 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34243$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034244
34245 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034247$as_echo_n "checking for gs CMYK device... " >&6; }
34248 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34249 :
34250 else
34251 GSCMYKDevice=bmpsep8
34252 fi
cristy09b53e12011-10-14 12:47:22 +000034253 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34254$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034255
34256 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034258$as_echo_n "checking for gs mono device... " >&6; }
34259 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34260 :
34261 else
34262 GSMonoDevice=$GSColorDevice
34263 fi
cristy09b53e12011-10-14 12:47:22 +000034264 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34265$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034266
34267 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034269$as_echo_n "checking for gs PDF writing device... " >&6; }
34270 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34271 :
34272 else
34273 GSPDFDevice=nodevice
34274 fi
cristy09b53e12011-10-14 12:47:22 +000034275 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34276$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034277
34278 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034280$as_echo_n "checking for gs PS writing device... " >&6; }
34281 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34282 :
34283 else
34284 GSPSDevice=nodevice
34285 fi
cristy09b53e12011-10-14 12:47:22 +000034286 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34287$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034288
34289 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034291$as_echo_n "checking for gs EPS writing device... " >&6; }
34292 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34293 :
34294 else
34295 GSEPSDevice=nodevice
34296 fi
cristy09b53e12011-10-14 12:47:22 +000034297 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34298$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034299fi
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310#
34311# PerlMagick-related configuration
34312#
34313
34314# Look for PERL if PerlMagick requested
34315# If name/path of desired PERL interpreter is specified, look for that one first
34316have_perl='no'
34317if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034318 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34319$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034321$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034322 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34323$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034324 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034326$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034327if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034328 $as_echo_n "(cached) " >&6
34329else
34330 ac_cv_path_PERL="$with_perl"
34331fi
cristy8b350f62009-11-15 23:12:43 +000034332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034333$as_echo "$ac_cv_path_PERL" >&6; };
34334 PERL=$ac_cv_path_PERL
34335 have_perl="$ac_cv_path_PERL"
34336 else
34337 for ac_prog in perl perl5
34338do
34339 # Extract the first word of "$ac_prog", so it can be a program name with args.
34340set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034343if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034344 $as_echo_n "(cached) " >&6
34345else
34346 case $PERL in
34347 [\\/]* | ?:[\\/]*)
34348 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34349 ;;
34350 *)
34351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34352for as_dir in $PATH
34353do
34354 IFS=$as_save_IFS
34355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34358 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034360 break 2
34361 fi
34362done
cristy8b350f62009-11-15 23:12:43 +000034363 done
cristy3ed852e2009-09-05 21:47:34 +000034364IFS=$as_save_IFS
34365
34366 ;;
34367esac
34368fi
34369PERL=$ac_cv_path_PERL
34370if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034372$as_echo "$PERL" >&6; }
34373else
cristy8b350f62009-11-15 23:12:43 +000034374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034375$as_echo "no" >&6; }
34376fi
34377
34378
34379 test -n "$PERL" && break
34380done
34381 if test "$ac_cv_path_PERL"; then
34382 have_perl="$ac_cv_path_PERL"
34383 fi
34384 fi
34385fi
34386
cristy949301e2010-01-06 01:38:40 +000034387if test "$with_perl" != 'yes' ; then
34388 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34389fi
34390
34391PERL_SUPPORTS_DESTDIR='no'
34392
cristy3ed852e2009-09-05 21:47:34 +000034393with_perl_static='no'
34394with_perl_dynamic='no'
34395if test "$have_perl" != 'no'; then
34396 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34397 with_perl_static='yes'
34398 fi
34399 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34400 with_perl_dynamic='yes'
34401 fi
34402 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034403
34404
34405
34406
34407 if test -n "$PERL"; then :
34408
34409 ax_perl_version="5.8.1"
34410
34411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34412$as_echo_n "checking for perl version... " >&6; }
34413
34414 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34415
34416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34417$as_echo "$perl_version" >&6; }
34418
34419 PERL_VERSION=$perl_version
34420
34421
34422
34423
34424
34425 # Used to indicate true or false condition
34426 ax_compare_version=false
34427
34428 # Convert the two version strings to be compared into a format that
34429 # allows a simple string comparison. The end result is that a version
34430 # string of the form 1.12.5-r617 will be converted to the form
34431 # 0001001200050617. In other words, each number is zero padded to four
34432 # digits, and non digits are removed.
34433
34434 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34435 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34436 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34437 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34438 -e 's/[^0-9]//g'`
34439
34440
34441 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34442 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34443 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34444 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34445 -e 's/[^0-9]//g'`
34446
34447
34448 ax_compare_version=`echo "x$ax_compare_version_A
34449x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34450
34451
34452
34453 if test "$ax_compare_version" = "true" ; then
34454
34455 :
34456 PERL_SUPPORTS_DESTDIR='yes'
34457
34458 else
34459 :
34460 PERL_SUPPORTS_DESTDIR='no'
34461
34462 fi
34463
34464
34465else
34466
34467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34468$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34469 PERL_SUPPORTS_DESTDIR='no'
34470
cristy3ed852e2009-09-05 21:47:34 +000034471fi
cristy73bd4a52010-10-05 11:24:23 +000034472
34473fi
34474 if test "$have_perl" != 'no'; then
34475 WITH_PERL_TRUE=
34476 WITH_PERL_FALSE='#'
34477else
34478 WITH_PERL_TRUE='#'
34479 WITH_PERL_FALSE=
34480fi
34481
34482 if test $with_perl_static = 'yes'; then
34483 WITH_PERL_STATIC_TRUE=
34484 WITH_PERL_STATIC_FALSE='#'
34485else
34486 WITH_PERL_STATIC_TRUE='#'
34487 WITH_PERL_STATIC_FALSE=
34488fi
34489
34490 if test $with_perl_dynamic = 'yes'; then
34491 WITH_PERL_DYNAMIC_TRUE=
34492 WITH_PERL_DYNAMIC_FALSE='#'
34493else
34494 WITH_PERL_DYNAMIC_TRUE='#'
34495 WITH_PERL_DYNAMIC_FALSE=
34496fi
34497
cristy3ed852e2009-09-05 21:47:34 +000034498
34499
34500# Determine path to pick up MagickCore library from for use with building PerlMagick
34501MAGICKCORE_PATH="${LIB_DIR}"
34502if test $with_perl_static = 'yes'; then
34503 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34504 libtool_objdir=$objdir
34505
34506 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034507 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034508fi
34509
34510
34511# Create a simple string containing format names for all delegate libraries
34512DELEGATES=''
34513if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34514if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34515if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34516if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34517if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34518if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34519if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34520if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34521if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34522if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34523if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34524if test "$have_jpeg" = 'yes'; then
34525 DELEGATES="$DELEGATES jpeg";
34526 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34527fi
34528if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034529if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034530if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34531if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034532if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034533if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34534if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34535if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34536if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34537if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34538if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34539if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34540if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34541if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34542
34543
34544
34545#
34546# Handle special compiler flags
34547#
34548
34549# Add '-p' if prof source profiling support enabled
34550if test "$enable_prof" = 'yes'; then
34551 CFLAGS="-p $CFLAGS"
34552 CXXFLAGS="-p $CXXFLAGS"
34553 LDFLAGS="-p $LDFLAGS"
34554fi
34555
34556# Add '-pg' if gprof source profiling support enabled
34557if test "$enable_gprof" = 'yes'; then
34558 CFLAGS="-pg $CFLAGS"
34559 CXXFLAGS="-pg $CXXFLAGS"
34560 LDFLAGS="-pg $LDFLAGS"
34561fi
34562
34563# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34564# This is a gcc-specific feature
34565if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034567$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034568if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034569 $as_echo_n "(cached) " >&6
34570else
34571 ac_check_lib_save_LIBS=$LIBS
34572LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034574/* end confdefs.h. */
34575
34576/* Override any GCC internal prototype to avoid an error.
34577 Use char because int might match the return type of a GCC
34578 builtin and then its argument prototype would still apply. */
34579#ifdef __cplusplus
34580extern "C"
34581#endif
34582char _gcov_init ();
34583int
34584main ()
34585{
34586return _gcov_init ();
34587 ;
34588 return 0;
34589}
34590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034591if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034592 ac_cv_lib_gcov__gcov_init=yes
34593else
cristy8b350f62009-11-15 23:12:43 +000034594 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034595fi
cristy8b350f62009-11-15 23:12:43 +000034596rm -f core conftest.err conftest.$ac_objext \
34597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034598LIBS=$ac_check_lib_save_LIBS
34599fi
cristy8b350f62009-11-15 23:12:43 +000034600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034601$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034602if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034603 cat >>confdefs.h <<_ACEOF
34604#define HAVE_LIBGCOV 1
34605_ACEOF
34606
34607 LIBS="-lgcov $LIBS"
34608
34609fi
34610
cristy8b350f62009-11-15 23:12:43 +000034611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034612$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034613if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034614 $as_echo_n "(cached) " >&6
34615else
34616 ac_check_lib_save_LIBS=$LIBS
34617LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034619/* end confdefs.h. */
34620
34621/* Override any GCC internal prototype to avoid an error.
34622 Use char because int might match the return type of a GCC
34623 builtin and then its argument prototype would still apply. */
34624#ifdef __cplusplus
34625extern "C"
34626#endif
34627char __gcov_init ();
34628int
34629main ()
34630{
34631return __gcov_init ();
34632 ;
34633 return 0;
34634}
34635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034637 ac_cv_lib_gcov___gcov_init=yes
34638else
cristy8b350f62009-11-15 23:12:43 +000034639 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034640fi
cristy8b350f62009-11-15 23:12:43 +000034641rm -f core conftest.err conftest.$ac_objext \
34642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034643LIBS=$ac_check_lib_save_LIBS
34644fi
cristy8b350f62009-11-15 23:12:43 +000034645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034646$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034647if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034648 cat >>confdefs.h <<_ACEOF
34649#define HAVE_LIBGCOV 1
34650_ACEOF
34651
34652 LIBS="-lgcov $LIBS"
34653
34654fi
34655
34656 case "$target_os" in
34657 darwin*)
34658 OSX_GCOV_LDFLAG="-Wl,-single_module"
34659 ;;
34660 *)
34661 OSX_GCOV_LDFLAG=""
34662 ;;
34663 esac
34664
34665 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34666 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34667 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34668fi
34669
34670#
34671# Build library dependency list for libMagickCore
34672#
34673
34674MAGICK_LIBLTDL='' # Libltdl for build
34675MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34676MAGICK_LTDLDEPS='' # extra libltdl dependencies
34677if test "$with_ltdl" != 'no'
34678then
34679 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34680 MAGICK_API_LIBLTDL='-lltdl'
34681 fi
34682 MAGICK_LIBLTDL=${LIBLTDL}
34683 MAGICK_LTDLDEPS=${LTDLDEPS}
34684fi
34685
34686
34687
34688if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034689 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 +000034690else
cristyb1860752011-03-14 00:27:46 +000034691 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 +000034692fi
34693
34694
34695#
34696# Remove extraneous spaces from output variables (asthetic)
34697#
34698X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34699X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34700X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34701X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34702
34703CC=`echo $CC | sed -e 's/ */ /g'`
34704CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34705CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34706CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34707DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34708DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34709LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34710TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34711MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34712#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34713
34714# Pass only user-provided LIBS as "global" libraries
34715LIBS=$USER_LIBS
34716
34717#AC_SUBST(CPPFLAGS)
34718
34719#AC_SUBST(LDFLAGS)
34720#AC_SUBST(X_PRE_LIBS)
34721#AC_SUBST(X_LIBS)
34722#AC_SUBST(X_EXTRA_LIBS)
34723
34724MAGICK_CFLAGS=$CFLAGS
34725MAGICK_CXXFLAGS="$CXXFLAGS"
34726MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34727MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34728MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34729MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34730
34731
34732
34733
34734
34735
34736
34737
cristyfd9dcd42010-08-08 18:07:02 +000034738
cristy3ed852e2009-09-05 21:47:34 +000034739# Set configured scripts to executable.
34740ac_config_commands="$ac_config_commands default"
34741
34742ac_config_commands="$ac_config_commands MagickCore-config.in"
34743
cristy3ed852e2009-09-05 21:47:34 +000034744ac_config_commands="$ac_config_commands MagickWand-config.in"
34745
cristy3ed852e2009-09-05 21:47:34 +000034746ac_config_commands="$ac_config_commands Magick++-config.in"
34747
34748ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34749
34750
cristy09b53e12011-10-14 12:47:22 +000034751{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34752$as_echo "$as_me: -------------------------------------------------------------" >&6;}
34753{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
34754$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034755cat >confcache <<\_ACEOF
34756# This file is a shell script that caches the results of configure
34757# tests run on this system so they can be shared between configure
34758# scripts and configure runs, see configure's option --config-cache.
34759# It is not useful on other systems. If it contains results you don't
34760# want to keep, you may remove or edit it.
34761#
34762# config.status only pays attention to the cache file if you give it
34763# the --recheck option to rerun configure.
34764#
34765# `ac_cv_env_foo' variables (set or unset) will be overridden when
34766# loading this file, other *unset* `ac_cv_foo' will be assigned the
34767# following values.
34768
34769_ACEOF
34770
34771# The following way of writing the cache mishandles newlines in values,
34772# but we know of no workaround that is simple, portable, and efficient.
34773# So, we kill variables containing newlines.
34774# Ultrix sh set writes to stderr and can't be redirected directly,
34775# and sets the high bit in the cache file unless we assign to the vars.
34776(
34777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34778 eval ac_val=\$$ac_var
34779 case $ac_val in #(
34780 *${as_nl}*)
34781 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034783$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34784 esac
34785 case $ac_var in #(
34786 _ | IFS | as_nl) ;; #(
34787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034788 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034789 esac ;;
34790 esac
34791 done
34792
34793 (set) 2>&1 |
34794 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34795 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034796 # `set' does not quote correctly, so add quotes: double-quote
34797 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034798 sed -n \
34799 "s/'/'\\\\''/g;
34800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34801 ;; #(
34802 *)
34803 # `set' quotes correctly as required by POSIX, so do not add quotes.
34804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34805 ;;
34806 esac |
34807 sort
34808) |
34809 sed '
34810 /^ac_cv_env_/b end
34811 t clear
34812 :clear
34813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34814 t end
34815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34816 :end' >>confcache
34817if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34818 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034819 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034820 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034821$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034822 if test ! -f "$cache_file" || test -h "$cache_file"; then
34823 cat confcache >"$cache_file"
34824 else
34825 case $cache_file in #(
34826 */* | ?:*)
34827 mv -f confcache "$cache_file"$$ &&
34828 mv -f "$cache_file"$$ "$cache_file" ;; #(
34829 *)
34830 mv -f confcache "$cache_file" ;;
34831 esac
34832 fi
34833 fi
cristy3ed852e2009-09-05 21:47:34 +000034834 else
cristy8b350f62009-11-15 23:12:43 +000034835 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034836$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34837 fi
34838fi
34839rm -f confcache
34840
34841test "x$prefix" = xNONE && prefix=$ac_default_prefix
34842# Let make expand exec_prefix.
34843test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34844
34845DEFS=-DHAVE_CONFIG_H
34846
34847ac_libobjs=
34848ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034849U=
cristy3ed852e2009-09-05 21:47:34 +000034850for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34851 # 1. Remove the extension, and $U if already installed.
34852 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34853 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34854 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34855 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034856 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34857 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034858done
34859LIBOBJS=$ac_libobjs
34860
34861LTLIBOBJS=$ac_ltlibobjs
34862
34863
cristy73bd4a52010-10-05 11:24:23 +000034864 if test -n "$EXEEXT"; then
34865 am__EXEEXT_TRUE=
34866 am__EXEEXT_FALSE='#'
34867else
34868 am__EXEEXT_TRUE='#'
34869 am__EXEEXT_FALSE=
34870fi
cristy3ed852e2009-09-05 21:47:34 +000034871
cristy73bd4a52010-10-05 11:24:23 +000034872if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034873 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034874Usually this means the macro was only invoked conditionally." "$LINENO" 5
34875fi
34876if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034877 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034878Usually this means the macro was only invoked conditionally." "$LINENO" 5
34879fi
34880if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034881 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034882Usually this means the macro was only invoked conditionally." "$LINENO" 5
34883fi
34884if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034885 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034886Usually this means the macro was only invoked conditionally." "$LINENO" 5
34887fi
34888if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034889 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034890Usually this means the macro was only invoked conditionally." "$LINENO" 5
34891fi
34892if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034893 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034894Usually this means the macro was only invoked conditionally." "$LINENO" 5
34895fi
34896if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034897 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034898Usually this means the macro was only invoked conditionally." "$LINENO" 5
34899fi
34900if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034901 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034902Usually this means the macro was only invoked conditionally." "$LINENO" 5
34903fi
cristy73bd4a52010-10-05 11:24:23 +000034904if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034905 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034906Usually this means the macro was only invoked conditionally." "$LINENO" 5
34907fi
34908if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034909 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034910Usually this means the macro was only invoked conditionally." "$LINENO" 5
34911fi
34912LT_CONFIG_H=config/config.h
34913
34914 _ltdl_libobjs=
34915 _ltdl_ltlibobjs=
34916 if test -n "$_LT_LIBOBJS"; then
34917 # Remove the extension.
34918 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34919 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34920 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34921 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34922 done
34923 fi
34924 ltdl_LIBOBJS=$_ltdl_libobjs
34925
34926 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34927
34928
34929if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034930 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034931Usually this means the macro was only invoked conditionally." "$LINENO" 5
34932fi
34933if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034934 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034935Usually this means the macro was only invoked conditionally." "$LINENO" 5
34936fi
34937if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034938 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034939Usually this means the macro was only invoked conditionally." "$LINENO" 5
34940fi
34941if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034942 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034943Usually this means the macro was only invoked conditionally." "$LINENO" 5
34944fi
34945
34946if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034947 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034948Usually this means the macro was only invoked conditionally." "$LINENO" 5
34949fi
34950if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034951 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034952Usually this means the macro was only invoked conditionally." "$LINENO" 5
34953fi
34954if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034955 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034956Usually this means the macro was only invoked conditionally." "$LINENO" 5
34957fi
34958if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034959 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034960Usually this means the macro was only invoked conditionally." "$LINENO" 5
34961fi
34962if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034963 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034964Usually this means the macro was only invoked conditionally." "$LINENO" 5
34965fi
34966if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034967 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034968Usually this means the macro was only invoked conditionally." "$LINENO" 5
34969fi
34970if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034971 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034972Usually this means the macro was only invoked conditionally." "$LINENO" 5
34973fi
34974if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034975 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034976Usually this means the macro was only invoked conditionally." "$LINENO" 5
34977fi
34978if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034979 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034980Usually this means the macro was only invoked conditionally." "$LINENO" 5
34981fi
34982if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034983 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034984Usually this means the macro was only invoked conditionally." "$LINENO" 5
34985fi
34986if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034987 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034988Usually this means the macro was only invoked conditionally." "$LINENO" 5
34989fi
34990if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034991 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034992Usually this means the macro was only invoked conditionally." "$LINENO" 5
34993fi
34994if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034995 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034996Usually this means the macro was only invoked conditionally." "$LINENO" 5
34997fi
34998if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034999 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035000Usually this means the macro was only invoked conditionally." "$LINENO" 5
35001fi
35002if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035003 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035004Usually this means the macro was only invoked conditionally." "$LINENO" 5
35005fi
35006if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035007 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035008Usually this means the macro was only invoked conditionally." "$LINENO" 5
35009fi
35010if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035011 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035012Usually this means the macro was only invoked conditionally." "$LINENO" 5
35013fi
35014if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035015 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035016Usually this means the macro was only invoked conditionally." "$LINENO" 5
35017fi
35018if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035019 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035020Usually this means the macro was only invoked conditionally." "$LINENO" 5
35021fi
35022if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035023 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035024Usually this means the macro was only invoked conditionally." "$LINENO" 5
35025fi
cristyfbb0ef02010-12-19 02:32:11 +000035026if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35027 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35028Usually this means the macro was only invoked conditionally." "$LINENO" 5
35029fi
cristy73bd4a52010-10-05 11:24:23 +000035030if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035031 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035032Usually this means the macro was only invoked conditionally." "$LINENO" 5
35033fi
35034if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035035 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035036Usually this means the macro was only invoked conditionally." "$LINENO" 5
35037fi
35038if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035039 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035040Usually this means the macro was only invoked conditionally." "$LINENO" 5
35041fi
35042if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035043 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035044Usually this means the macro was only invoked conditionally." "$LINENO" 5
35045fi
35046if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035047 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035048Usually this means the macro was only invoked conditionally." "$LINENO" 5
35049fi
cristyb1860752011-03-14 00:27:46 +000035050if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35051 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35052Usually this means the macro was only invoked conditionally." "$LINENO" 5
35053fi
cristy73bd4a52010-10-05 11:24:23 +000035054if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035055 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035056Usually this means the macro was only invoked conditionally." "$LINENO" 5
35057fi
35058if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035059 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035060Usually this means the macro was only invoked conditionally." "$LINENO" 5
35061fi
35062if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035063 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035064Usually this means the macro was only invoked conditionally." "$LINENO" 5
35065fi
35066if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035067 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035068Usually this means the macro was only invoked conditionally." "$LINENO" 5
35069fi
35070if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035071 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035072Usually this means the macro was only invoked conditionally." "$LINENO" 5
35073fi
35074if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035075 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035076Usually this means the macro was only invoked conditionally." "$LINENO" 5
35077fi
35078if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035079 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035080Usually this means the macro was only invoked conditionally." "$LINENO" 5
35081fi
35082if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035083 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035084Usually this means the macro was only invoked conditionally." "$LINENO" 5
35085fi
cristy3ed852e2009-09-05 21:47:34 +000035086
cristyda16f162011-02-19 23:52:17 +000035087: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035088ac_write_fail=0
35089ac_clean_files_save=$ac_clean_files
35090ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035091{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035092$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035093as_write_fail=0
35094cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035095#! $SHELL
35096# Generated by $as_me.
35097# Run this file to recreate the current configuration.
35098# Compiler output produced by configure, useful for debugging
35099# configure, is in config.log if it exists.
35100
35101debug=false
35102ac_cs_recheck=false
35103ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035104
cristy8b350f62009-11-15 23:12:43 +000035105SHELL=\${CONFIG_SHELL-$SHELL}
35106export SHELL
35107_ASEOF
35108cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35109## -------------------- ##
35110## M4sh Initialization. ##
35111## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035112
35113# Be more Bourne compatible
35114DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035115if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035116 emulate sh
35117 NULLCMD=:
35118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35119 # is contrary to our usage. Disable this feature.
35120 alias -g '${1+"$@"}'='"$@"'
35121 setopt NO_GLOB_SUBST
35122else
cristy8b350f62009-11-15 23:12:43 +000035123 case `(set -o) 2>/dev/null` in #(
35124 *posix*) :
35125 set -o posix ;; #(
35126 *) :
35127 ;;
cristy3ed852e2009-09-05 21:47:34 +000035128esac
cristy3ed852e2009-09-05 21:47:34 +000035129fi
35130
35131
cristy3ed852e2009-09-05 21:47:34 +000035132as_nl='
35133'
35134export as_nl
35135# Printing a long string crashes Solaris 7 /usr/bin/printf.
35136as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35137as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35138as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035139# Prefer a ksh shell builtin over an external printf program on Solaris,
35140# but without wasting forks for bash or zsh.
35141if test -z "$BASH_VERSION$ZSH_VERSION" \
35142 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35143 as_echo='print -r --'
35144 as_echo_n='print -rn --'
35145elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035146 as_echo='printf %s\n'
35147 as_echo_n='printf %s'
35148else
35149 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35150 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35151 as_echo_n='/usr/ucb/echo -n'
35152 else
35153 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35154 as_echo_n_body='eval
35155 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035156 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035157 *"$as_nl"*)
35158 expr "X$arg" : "X\\(.*\\)$as_nl";
35159 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35160 esac;
35161 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35162 '
35163 export as_echo_n_body
35164 as_echo_n='sh -c $as_echo_n_body as_echo'
35165 fi
35166 export as_echo_body
35167 as_echo='sh -c $as_echo_body as_echo'
35168fi
35169
35170# The user is always right.
35171if test "${PATH_SEPARATOR+set}" != set; then
35172 PATH_SEPARATOR=:
35173 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35174 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35175 PATH_SEPARATOR=';'
35176 }
35177fi
35178
cristy3ed852e2009-09-05 21:47:34 +000035179
35180# IFS
35181# We need space, tab and new line, in precisely that order. Quoting is
35182# there to prevent editors from complaining about space-tab.
35183# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35184# splitting by setting IFS to empty value.)
35185IFS=" "" $as_nl"
35186
35187# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035188as_myself=
cristy8b350f62009-11-15 23:12:43 +000035189case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035190 *[\\/]* ) as_myself=$0 ;;
35191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35192for as_dir in $PATH
35193do
35194 IFS=$as_save_IFS
35195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35197 done
cristy3ed852e2009-09-05 21:47:34 +000035198IFS=$as_save_IFS
35199
35200 ;;
35201esac
35202# We did not find ourselves, most probably we were run as `sh COMMAND'
35203# in which case we are not to be found in the path.
35204if test "x$as_myself" = x; then
35205 as_myself=$0
35206fi
35207if test ! -f "$as_myself"; then
35208 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035209 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035210fi
35211
cristy8b350f62009-11-15 23:12:43 +000035212# Unset variables that we do not need and which cause bugs (e.g. in
35213# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35214# suppresses any "Segmentation fault" message there. '((' could
35215# trigger a bug in pdksh 5.2.14.
35216for as_var in BASH_ENV ENV MAIL MAILPATH
35217do eval test x\${$as_var+set} = xset \
35218 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035219done
35220PS1='$ '
35221PS2='> '
35222PS4='+ '
35223
35224# NLS nuisances.
35225LC_ALL=C
35226export LC_ALL
35227LANGUAGE=C
35228export LANGUAGE
35229
cristy8b350f62009-11-15 23:12:43 +000035230# CDPATH.
35231(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35232
35233
cristy98dddb52010-11-04 00:30:15 +000035234# as_fn_error STATUS ERROR [LINENO LOG_FD]
35235# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035236# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35237# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035238# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035239as_fn_error ()
35240{
cristy98dddb52010-11-04 00:30:15 +000035241 as_status=$1; test $as_status -eq 0 && as_status=1
35242 if test "$4"; then
35243 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35244 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035245 fi
cristy98dddb52010-11-04 00:30:15 +000035246 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035247 as_fn_exit $as_status
35248} # as_fn_error
35249
35250
35251# as_fn_set_status STATUS
35252# -----------------------
35253# Set $? to STATUS, without forking.
35254as_fn_set_status ()
35255{
35256 return $1
35257} # as_fn_set_status
35258
35259# as_fn_exit STATUS
35260# -----------------
35261# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35262as_fn_exit ()
35263{
35264 set +e
35265 as_fn_set_status $1
35266 exit $1
35267} # as_fn_exit
35268
35269# as_fn_unset VAR
35270# ---------------
35271# Portably unset VAR.
35272as_fn_unset ()
35273{
35274 { eval $1=; unset $1;}
35275}
35276as_unset=as_fn_unset
35277# as_fn_append VAR VALUE
35278# ----------------------
35279# Append the text in VALUE to the end of the definition contained in VAR. Take
35280# advantage of any shell optimizations that allow amortized linear growth over
35281# repeated appends, instead of the typical quadratic growth present in naive
35282# implementations.
35283if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35284 eval 'as_fn_append ()
35285 {
35286 eval $1+=\$2
35287 }'
35288else
35289 as_fn_append ()
35290 {
35291 eval $1=\$$1\$2
35292 }
35293fi # as_fn_append
35294
35295# as_fn_arith ARG...
35296# ------------------
35297# Perform arithmetic evaluation on the ARGs, and store the result in the
35298# global $as_val. Take advantage of shells that can avoid forks. The arguments
35299# must be portable across $(()) and expr.
35300if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35301 eval 'as_fn_arith ()
35302 {
35303 as_val=$(( $* ))
35304 }'
35305else
35306 as_fn_arith ()
35307 {
35308 as_val=`expr "$@" || test $? -eq 1`
35309 }
35310fi # as_fn_arith
35311
35312
cristy3ed852e2009-09-05 21:47:34 +000035313if expr a : '\(a\)' >/dev/null 2>&1 &&
35314 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35315 as_expr=expr
35316else
35317 as_expr=false
35318fi
35319
35320if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35321 as_basename=basename
35322else
35323 as_basename=false
35324fi
35325
cristy8b350f62009-11-15 23:12:43 +000035326if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35327 as_dirname=dirname
35328else
35329 as_dirname=false
35330fi
cristy3ed852e2009-09-05 21:47:34 +000035331
cristy3ed852e2009-09-05 21:47:34 +000035332as_me=`$as_basename -- "$0" ||
35333$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35334 X"$0" : 'X\(//\)$' \| \
35335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35336$as_echo X/"$0" |
35337 sed '/^.*\/\([^/][^/]*\)\/*$/{
35338 s//\1/
35339 q
35340 }
35341 /^X\/\(\/\/\)$/{
35342 s//\1/
35343 q
35344 }
35345 /^X\/\(\/\).*/{
35346 s//\1/
35347 q
35348 }
35349 s/.*/./; q'`
35350
cristy8b350f62009-11-15 23:12:43 +000035351# Avoid depending upon Character Ranges.
35352as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35353as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35354as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35355as_cr_digits='0123456789'
35356as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035357
35358ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035359case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035360-n*)
cristy8b350f62009-11-15 23:12:43 +000035361 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035362 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035363 xy) ECHO_C='\c';;
35364 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35365 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035366 esac;;
35367*)
35368 ECHO_N='-n';;
35369esac
cristy3ed852e2009-09-05 21:47:34 +000035370
35371rm -f conf$$ conf$$.exe conf$$.file
35372if test -d conf$$.dir; then
35373 rm -f conf$$.dir/conf$$.file
35374else
35375 rm -f conf$$.dir
35376 mkdir conf$$.dir 2>/dev/null
35377fi
35378if (echo >conf$$.file) 2>/dev/null; then
35379 if ln -s conf$$.file conf$$ 2>/dev/null; then
35380 as_ln_s='ln -s'
35381 # ... but there are two gotchas:
35382 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35383 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35384 # In both cases, we have to default to `cp -p'.
35385 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35386 as_ln_s='cp -p'
35387 elif ln conf$$.file conf$$ 2>/dev/null; then
35388 as_ln_s=ln
35389 else
35390 as_ln_s='cp -p'
35391 fi
35392else
35393 as_ln_s='cp -p'
35394fi
35395rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35396rmdir conf$$.dir 2>/dev/null
35397
cristy8b350f62009-11-15 23:12:43 +000035398
35399# as_fn_mkdir_p
35400# -------------
35401# Create "$as_dir" as a directory, including parents if necessary.
35402as_fn_mkdir_p ()
35403{
35404
35405 case $as_dir in #(
35406 -*) as_dir=./$as_dir;;
35407 esac
35408 test -d "$as_dir" || eval $as_mkdir_p || {
35409 as_dirs=
35410 while :; do
35411 case $as_dir in #(
35412 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35413 *) as_qdir=$as_dir;;
35414 esac
35415 as_dirs="'$as_qdir' $as_dirs"
35416 as_dir=`$as_dirname -- "$as_dir" ||
35417$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35418 X"$as_dir" : 'X\(//\)[^/]' \| \
35419 X"$as_dir" : 'X\(//\)$' \| \
35420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35421$as_echo X"$as_dir" |
35422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35423 s//\1/
35424 q
35425 }
35426 /^X\(\/\/\)[^/].*/{
35427 s//\1/
35428 q
35429 }
35430 /^X\(\/\/\)$/{
35431 s//\1/
35432 q
35433 }
35434 /^X\(\/\).*/{
35435 s//\1/
35436 q
35437 }
35438 s/.*/./; q'`
35439 test -d "$as_dir" && break
35440 done
35441 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035442 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035443
35444
35445} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035446if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035447 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035448else
35449 test -d ./-p && rmdir ./-p
35450 as_mkdir_p=false
35451fi
35452
35453if test -x / >/dev/null 2>&1; then
35454 as_test_x='test -x'
35455else
35456 if ls -dL / >/dev/null 2>&1; then
35457 as_ls_L_option=L
35458 else
35459 as_ls_L_option=
35460 fi
35461 as_test_x='
35462 eval sh -c '\''
35463 if test -d "$1"; then
35464 test -d "$1/.";
35465 else
cristy8b350f62009-11-15 23:12:43 +000035466 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035467 -*)set "./$1";;
35468 esac;
cristy8b350f62009-11-15 23:12:43 +000035469 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035470 ???[sx]*):;;*)false;;esac;fi
35471 '\'' sh
35472 '
35473fi
35474as_executable_p=$as_test_x
35475
35476# Sed expression to map a string onto a valid CPP name.
35477as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35478
35479# Sed expression to map a string onto a valid variable name.
35480as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35481
35482
35483exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035484## ----------------------------------- ##
35485## Main body of $CONFIG_STATUS script. ##
35486## ----------------------------------- ##
35487_ASEOF
35488test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035489
cristy8b350f62009-11-15 23:12:43 +000035490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35491# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035492# report actual input values of CONFIG_FILES etc. instead of their
35493# values after options handling.
35494ac_log="
cristy4c08aed2011-07-01 19:47:50 +000035495This file was extended by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +000035496generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035497
35498 CONFIG_FILES = $CONFIG_FILES
35499 CONFIG_HEADERS = $CONFIG_HEADERS
35500 CONFIG_LINKS = $CONFIG_LINKS
35501 CONFIG_COMMANDS = $CONFIG_COMMANDS
35502 $ $0 $@
35503
35504on `(hostname || uname -n) 2>/dev/null | sed 1q`
35505"
35506
35507_ACEOF
35508
35509case $ac_config_files in *"
35510"*) set x $ac_config_files; shift; ac_config_files=$*;;
35511esac
35512
35513case $ac_config_headers in *"
35514"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35515esac
35516
35517
35518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35519# Files that config.status was made for.
35520config_files="$ac_config_files"
35521config_headers="$ac_config_headers"
35522config_commands="$ac_config_commands"
35523
35524_ACEOF
35525
35526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35527ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035528\`$as_me' instantiates files and other configuration actions
35529from templates according to the current configuration. Unless the files
35530and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035531
cristy8b350f62009-11-15 23:12:43 +000035532Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035533
35534 -h, --help print this help, then exit
35535 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035536 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035537 -q, --quiet, --silent
35538 do not print progress messages
35539 -d, --debug don't remove temporary files
35540 --recheck update $as_me by reconfiguring in the same conditions
35541 --file=FILE[:TEMPLATE]
35542 instantiate the configuration file FILE
35543 --header=FILE[:TEMPLATE]
35544 instantiate the configuration header FILE
35545
35546Configuration files:
35547$config_files
35548
35549Configuration headers:
35550$config_headers
35551
35552Configuration commands:
35553$config_commands
35554
cristy8b350f62009-11-15 23:12:43 +000035555Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035556
35557_ACEOF
35558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035559ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035560ac_cs_version="\\
cristy4c08aed2011-07-01 19:47:50 +000035561ImageMagick config.status 7.0.0
cristyda16f162011-02-19 23:52:17 +000035562configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035563 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035564
cristy98dddb52010-11-04 00:30:15 +000035565Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035566This config.status script is free software; the Free Software Foundation
35567gives unlimited permission to copy, distribute and modify it."
35568
35569ac_pwd='$ac_pwd'
35570srcdir='$srcdir'
35571INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035572MKDIR_P='$MKDIR_P'
35573AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035574test -n "\$AWK" || AWK=awk
35575_ACEOF
35576
35577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35578# The default lists apply if the user does not specify any file.
35579ac_need_defaults=:
35580while test $# != 0
35581do
35582 case $1 in
cristyda16f162011-02-19 23:52:17 +000035583 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35586 ac_shift=:
35587 ;;
cristyda16f162011-02-19 23:52:17 +000035588 --*=)
35589 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35590 ac_optarg=
35591 ac_shift=:
35592 ;;
cristy3ed852e2009-09-05 21:47:34 +000035593 *)
35594 ac_option=$1
35595 ac_optarg=$2
35596 ac_shift=shift
35597 ;;
35598 esac
35599
35600 case $ac_option in
35601 # Handling of the options.
35602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35603 ac_cs_recheck=: ;;
35604 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35605 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035606 --config | --confi | --conf | --con | --co | --c )
35607 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035608 --debug | --debu | --deb | --de | --d | -d )
35609 debug=: ;;
35610 --file | --fil | --fi | --f )
35611 $ac_shift
35612 case $ac_optarg in
35613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035614 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035615 esac
cristy8b350f62009-11-15 23:12:43 +000035616 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035617 ac_need_defaults=false;;
35618 --header | --heade | --head | --hea )
35619 $ac_shift
35620 case $ac_optarg in
35621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35622 esac
cristy8b350f62009-11-15 23:12:43 +000035623 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035624 ac_need_defaults=false;;
35625 --he | --h)
35626 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035627 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035628Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035629 --help | --hel | -h )
35630 $as_echo "$ac_cs_usage"; exit ;;
35631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35633 ac_cs_silent=: ;;
35634
35635 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035636 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035637Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035638
cristy8b350f62009-11-15 23:12:43 +000035639 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035640 ac_need_defaults=false ;;
35641
35642 esac
35643 shift
35644done
35645
35646ac_configure_extra_args=
35647
35648if $ac_cs_silent; then
35649 exec 6>/dev/null
35650 ac_configure_extra_args="$ac_configure_extra_args --silent"
35651fi
35652
35653_ACEOF
35654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35655if \$ac_cs_recheck; then
35656 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35657 shift
35658 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35659 CONFIG_SHELL='$SHELL'
35660 export CONFIG_SHELL
35661 exec "\$@"
35662fi
35663
35664_ACEOF
35665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35666exec 5>>config.log
35667{
35668 echo
35669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35670## Running $as_me. ##
35671_ASBOX
35672 $as_echo "$ac_log"
35673} >&5
35674
35675_ACEOF
35676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035677#
35678# INIT-COMMANDS
35679#
35680PACKAGE="$PACKAGE"
35681AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35682
35683
35684# The HP-UX ksh and POSIX shell print the target directory to stdout
35685# if CDPATH is set.
35686(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35687
35688sed_quote_subst='$sed_quote_subst'
35689double_quote_subst='$double_quote_subst'
35690delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035691SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35692Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35693GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35694EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35695FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35696SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35697ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35698LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35699macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35700macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35701AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35702DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35703OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35704enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35705enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35706pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35707enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35708host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35709host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35710host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35711build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35712build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35713build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35714NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35715LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35716max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35717ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35718exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35719lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35720lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35721lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035722lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35723lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035724reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35725reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35726deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35727file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035728file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35729want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35730sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035731AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35732AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035733archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035734STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35735RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35736old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35737old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35738old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35739lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35740CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35741CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35742compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35743GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35744lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35745lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35746lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35747lt_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 +000035748nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35749lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035750objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35751MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35752lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035753lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035754lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035755lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35756lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35757need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035758MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035759DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35760NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35761LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35762OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35763OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35764libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35765shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35766extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35767archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35768enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35769export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35770whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35771compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35772old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35773old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35774archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35775archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35776module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35777module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35778with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35779allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35780no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35781hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35782hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35783hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35784hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35785hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35786hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35787hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35788hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35789inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35790link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035791always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35792export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35793exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35794include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35795prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035796postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035797file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35798variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35799need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35800need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35801version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35802runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35803shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35804shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35805libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35806library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35807soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35808install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35809postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35810postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35811finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35812finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35813hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35814sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35815sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35816hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35817enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35818enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35819enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35820old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35821striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35822compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35823predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35824postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35825predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35826postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35827compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35828LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35829reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35830reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35831old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35832compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35833GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35834lt_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 +000035835lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035836lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035837lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35838lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35839archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35840enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35841export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35842whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35843compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35844old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35845old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35846archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35847archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35848module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35849module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35850with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35851allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35852no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35853hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35854hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35855hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35856hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35857hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35858hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35859hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35860hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35861inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35862link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035863always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35864export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35865exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35866include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35867prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035868postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035869file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35870hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35871compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35872predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35873postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35874predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35875postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35876compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035877
35878LTCC='$LTCC'
35879LTCFLAGS='$LTCFLAGS'
35880compiler='$compiler_DEFAULT'
35881
cristy0c60a692010-11-04 01:09:47 +000035882# A function that is used when there is no print builtin or printf.
35883func_fallback_echo ()
35884{
35885 eval 'cat <<_LTECHO_EOF
35886\$1
35887_LTECHO_EOF'
35888}
35889
cristy73bd4a52010-10-05 11:24:23 +000035890# Quote evaled strings.
35891for var in SED \
35892GREP \
35893EGREP \
35894FGREP \
cristy0c60a692010-11-04 01:09:47 +000035895SHELL \
35896ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035897LD \
cristy0c60a692010-11-04 01:09:47 +000035898AS \
35899DLLTOOL \
35900OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000035901NM \
35902LN_S \
35903lt_SP2NL \
35904lt_NL2SP \
35905reload_flag \
35906deplibs_check_method \
35907file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035908file_magic_glob \
35909want_nocaseglob \
35910sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035911AR \
35912AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035913archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035914STRIP \
35915RANLIB \
35916CC \
35917CFLAGS \
35918compiler \
35919lt_cv_sys_global_symbol_pipe \
35920lt_cv_sys_global_symbol_to_cdecl \
35921lt_cv_sys_global_symbol_to_c_name_address \
35922lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035923nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035924lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035925lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035926lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035927lt_prog_compiler_static \
35928lt_cv_prog_compiler_c_o \
35929need_locks \
cristyda16f162011-02-19 23:52:17 +000035930MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035931DSYMUTIL \
35932NMEDIT \
35933LIPO \
35934OTOOL \
35935OTOOL64 \
35936shrext_cmds \
35937export_dynamic_flag_spec \
35938whole_archive_flag_spec \
35939compiler_needs_object \
35940with_gnu_ld \
35941allow_undefined_flag \
35942no_undefined_flag \
35943hardcode_libdir_flag_spec \
35944hardcode_libdir_flag_spec_ld \
35945hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000035946exclude_expsyms \
35947include_expsyms \
35948file_list_spec \
35949variables_saved_for_relink \
35950libname_spec \
35951library_names_spec \
35952soname_spec \
cristy0c60a692010-11-04 01:09:47 +000035953install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000035954finish_eval \
35955old_striplib \
35956striplib \
35957compiler_lib_search_dirs \
35958predep_objects \
35959postdep_objects \
35960predeps \
35961postdeps \
35962compiler_lib_search_path \
35963LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000035964reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035965compiler_CXX \
35966lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035967lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000035968lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035969lt_prog_compiler_static_CXX \
35970lt_cv_prog_compiler_c_o_CXX \
35971export_dynamic_flag_spec_CXX \
35972whole_archive_flag_spec_CXX \
35973compiler_needs_object_CXX \
35974with_gnu_ld_CXX \
35975allow_undefined_flag_CXX \
35976no_undefined_flag_CXX \
35977hardcode_libdir_flag_spec_CXX \
35978hardcode_libdir_flag_spec_ld_CXX \
35979hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035980exclude_expsyms_CXX \
35981include_expsyms_CXX \
35982file_list_spec_CXX \
35983compiler_lib_search_dirs_CXX \
35984predep_objects_CXX \
35985postdep_objects_CXX \
35986predeps_CXX \
35987postdeps_CXX \
35988compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035989 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035990 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035991 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035992 ;;
35993 *)
35994 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35995 ;;
35996 esac
35997done
35998
35999# Double-quote double-evaled strings.
36000for var in reload_cmds \
36001old_postinstall_cmds \
36002old_postuninstall_cmds \
36003old_archive_cmds \
36004extract_expsyms_cmds \
36005old_archive_from_new_cmds \
36006old_archive_from_expsyms_cmds \
36007archive_cmds \
36008archive_expsym_cmds \
36009module_cmds \
36010module_expsym_cmds \
36011export_symbols_cmds \
36012prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036013postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036014postinstall_cmds \
36015postuninstall_cmds \
36016finish_cmds \
36017sys_lib_search_path_spec \
36018sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036019reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036020old_archive_cmds_CXX \
36021old_archive_from_new_cmds_CXX \
36022old_archive_from_expsyms_cmds_CXX \
36023archive_cmds_CXX \
36024archive_expsym_cmds_CXX \
36025module_cmds_CXX \
36026module_expsym_cmds_CXX \
36027export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036028prelink_cmds_CXX \
36029postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036030 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036031 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036032 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036033 ;;
36034 *)
36035 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36036 ;;
36037 esac
36038done
36039
cristy73bd4a52010-10-05 11:24:23 +000036040ac_aux_dir='$ac_aux_dir'
36041xsi_shell='$xsi_shell'
36042lt_shell_append='$lt_shell_append'
36043
36044# See if we are running on zsh, and set the options which allow our
36045# commands through without removal of \ escapes INIT.
36046if test -n "\${ZSH_VERSION+set}" ; then
36047 setopt NO_GLOB_SUBST
36048fi
36049
36050
36051 PACKAGE='$PACKAGE'
36052 VERSION='$VERSION'
36053 TIMESTAMP='$TIMESTAMP'
36054 RM='$RM'
36055 ofile='$ofile'
36056
36057
36058
36059
36060
36061
cristy3ed852e2009-09-05 21:47:34 +000036062_ACEOF
36063
36064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36065
36066# Handling of arguments.
36067for ac_config_target in $ac_config_targets
36068do
36069 case $ac_config_target in
36070 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036071 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036072 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36073 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36074 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36075 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36076 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036077 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036078 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36079 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36080 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36081 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36082 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036083 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036084 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36085 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036086 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36087 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36088 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036089 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36090 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36091 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36092 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36093 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36094 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36095 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36096 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36097 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36098 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36099 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36100 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36101 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36102 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36103 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36104 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36105 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036106 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36107 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036108 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36109 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036110 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36111 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036112 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036113 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36114 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36115
cristy98dddb52010-11-04 00:30:15 +000036116 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036117 esac
36118done
36119
36120
36121# If the user did not use the arguments to specify the items to instantiate,
36122# then the envvar interface is used. Set only those that are not.
36123# We use the long form for the default assignment because of an extremely
36124# bizarre bug on SunOS 4.1.3.
36125if $ac_need_defaults; then
36126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36128 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36129fi
36130
36131# Have a temporary directory for convenience. Make it in the build tree
36132# simply because there is no reason against having it here, and in addition,
36133# creating and moving files from /tmp can sometimes cause problems.
36134# Hook for its removal unless debugging.
36135# Note that there is a small window in which the directory will not be cleaned:
36136# after its creation but before its name has been assigned to `$tmp'.
36137$debug ||
36138{
cristyda16f162011-02-19 23:52:17 +000036139 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036140 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036141 : "${ac_tmp:=$tmp}"
36142 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036143' 0
cristy8b350f62009-11-15 23:12:43 +000036144 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036145}
36146# Create a (secure) tmp directory for tmp files.
36147
36148{
36149 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036150 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036151} ||
36152{
36153 tmp=./conf$$-$RANDOM
36154 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036155} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036156ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036157
36158# Set up the scripts for CONFIG_FILES section.
36159# No need to generate them if there are no CONFIG_FILES.
36160# This happens for instance with `./config.status config.h'.
36161if test -n "$CONFIG_FILES"; then
36162
36163
cristy8b350f62009-11-15 23:12:43 +000036164ac_cr=`echo X | tr X '\015'`
36165# On cygwin, bash can eat \r inside `` if the user requested igncr.
36166# But we know of no other shell where ac_cr would be empty at this
36167# point, so we can use a bashism as a fallback.
36168if test "x$ac_cr" = x; then
36169 eval ac_cr=\$\'\\r\'
36170fi
cristy3ed852e2009-09-05 21:47:34 +000036171ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36172if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036173 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036174else
36175 ac_cs_awk_cr=$ac_cr
36176fi
36177
cristyda16f162011-02-19 23:52:17 +000036178echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036179_ACEOF
36180
36181
36182{
36183 echo "cat >conf$$subs.awk <<_ACEOF" &&
36184 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36185 echo "_ACEOF"
36186} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36188ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036189ac_delim='%!_!# '
36190for ac_last_try in false false false false false :; do
36191 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036192 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036193
36194 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36195 if test $ac_delim_n = $ac_delim_num; then
36196 break
36197 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036198 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036199 else
36200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36201 fi
36202done
36203rm -f conf$$subs.sh
36204
36205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036206cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036207_ACEOF
36208sed -n '
36209h
36210s/^/S["/; s/!.*/"]=/
36211p
36212g
36213s/^[^!]*!//
36214:repl
36215t repl
36216s/'"$ac_delim"'$//
36217t delim
36218:nl
36219h
cristycd4c5312009-11-22 01:19:08 +000036220s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036221t more1
36222s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36223p
36224n
36225b repl
36226:more1
36227s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36228p
36229g
36230s/.\{148\}//
36231t nl
36232:delim
36233h
cristycd4c5312009-11-22 01:19:08 +000036234s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036235t more2
36236s/["\\]/\\&/g; s/^/"/; s/$/"/
36237p
36238b
36239:more2
36240s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36241p
36242g
36243s/.\{148\}//
36244t delim
36245' <conf$$subs.awk | sed '
36246/^[^""]/{
36247 N
36248 s/\n//
36249}
36250' >>$CONFIG_STATUS || ac_write_fail=1
36251rm -f conf$$subs.awk
36252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36253_ACAWK
cristyda16f162011-02-19 23:52:17 +000036254cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036255 for (key in S) S_is_set[key] = 1
36256 FS = ""
36257
36258}
36259{
36260 line = $ 0
36261 nfields = split(line, field, "@")
36262 substed = 0
36263 len = length(field[1])
36264 for (i = 2; i < nfields; i++) {
36265 key = field[i]
36266 keylen = length(key)
36267 if (S_is_set[key]) {
36268 value = S[key]
36269 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36270 len += length(value) + length(field[++i])
36271 substed = 1
36272 } else
36273 len += 1 + keylen
36274 }
36275
36276 print line
36277}
36278
36279_ACAWK
36280_ACEOF
36281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36282if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36283 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36284else
36285 cat
cristyda16f162011-02-19 23:52:17 +000036286fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036287 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036288_ACEOF
36289
cristy98dddb52010-11-04 00:30:15 +000036290# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36291# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036292# trailing colons and then remove the whole line if VPATH becomes empty
36293# (actually we leave an empty line to preserve line numbers).
36294if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036295 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36296h
36297s///
36298s/^/:/
36299s/[ ]*$/:/
36300s/:\$(srcdir):/:/g
36301s/:\${srcdir}:/:/g
36302s/:@srcdir@:/:/g
36303s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036304s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036305x
36306s/\(=[ ]*\).*/\1/
36307G
36308s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036309s/^[^=]*=[ ]*$//
36310}'
36311fi
36312
36313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36314fi # test -n "$CONFIG_FILES"
36315
36316# Set up the scripts for CONFIG_HEADERS section.
36317# No need to generate them if there are no CONFIG_HEADERS.
36318# This happens for instance with `./config.status Makefile'.
36319if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036320cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036321BEGIN {
36322_ACEOF
36323
36324# Transform confdefs.h into an awk script `defines.awk', embedded as
36325# here-document in config.status, that substitutes the proper values into
36326# config.h.in to produce config.h.
36327
36328# Create a delimiter string that does not exist in confdefs.h, to ease
36329# handling of long lines.
36330ac_delim='%!_!# '
36331for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036332 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36333 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036334 break
36335 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036336 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036337 else
36338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36339 fi
36340done
36341
36342# For the awk script, D is an array of macro values keyed by name,
36343# likewise P contains macro parameters if any. Preserve backslash
36344# newline sequences.
36345
36346ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36347sed -n '
36348s/.\{148\}/&'"$ac_delim"'/g
36349t rset
36350:rset
36351s/^[ ]*#[ ]*define[ ][ ]*/ /
36352t def
36353d
36354:def
36355s/\\$//
36356t bsnl
36357s/["\\]/\\&/g
36358s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36359D["\1"]=" \3"/p
36360s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36361d
36362:bsnl
36363s/["\\]/\\&/g
36364s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36365D["\1"]=" \3\\\\\\n"\\/p
36366t cont
36367s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36368t cont
36369d
36370:cont
36371n
36372s/.\{148\}/&'"$ac_delim"'/g
36373t clear
36374:clear
36375s/\\$//
36376t bsnlc
36377s/["\\]/\\&/g; s/^/"/; s/$/"/p
36378d
36379:bsnlc
36380s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36381b cont
36382' <confdefs.h | sed '
36383s/'"$ac_delim"'/"\\\
36384"/g' >>$CONFIG_STATUS || ac_write_fail=1
36385
36386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36387 for (key in D) D_is_set[key] = 1
36388 FS = ""
36389}
36390/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36391 line = \$ 0
36392 split(line, arg, " ")
36393 if (arg[1] == "#") {
36394 defundef = arg[2]
36395 mac1 = arg[3]
36396 } else {
36397 defundef = substr(arg[1], 2)
36398 mac1 = arg[2]
36399 }
36400 split(mac1, mac2, "(") #)
36401 macro = mac2[1]
36402 prefix = substr(line, 1, index(line, defundef) - 1)
36403 if (D_is_set[macro]) {
36404 # Preserve the white space surrounding the "#".
36405 print prefix "define", macro P[macro] D[macro]
36406 next
36407 } else {
36408 # Replace #undef with comments. This is necessary, for example,
36409 # in the case of _POSIX_SOURCE, which is predefined and required
36410 # on some systems where configure will not decide to define it.
36411 if (defundef == "undef") {
36412 print "/*", prefix defundef, macro, "*/"
36413 next
36414 }
36415 }
36416}
36417{ print }
36418_ACAWK
36419_ACEOF
36420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036421 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036422fi # test -n "$CONFIG_HEADERS"
36423
36424
36425eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36426shift
36427for ac_tag
36428do
36429 case $ac_tag in
36430 :[FHLC]) ac_mode=$ac_tag; continue;;
36431 esac
36432 case $ac_mode$ac_tag in
36433 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036434 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036435 :[FH]-) ac_tag=-:-;;
36436 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36437 esac
36438 ac_save_IFS=$IFS
36439 IFS=:
36440 set x $ac_tag
36441 IFS=$ac_save_IFS
36442 shift
36443 ac_file=$1
36444 shift
36445
36446 case $ac_mode in
36447 :L) ac_source=$1;;
36448 :[FH])
36449 ac_file_inputs=
36450 for ac_f
36451 do
36452 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036453 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036454 *) # Look for the file first in the build tree, then in the source tree
36455 # (if the path is not absolute). The absolute path cannot be DOS-style,
36456 # because $ac_f cannot contain `:'.
36457 test -f "$ac_f" ||
36458 case $ac_f in
36459 [\\/$]*) false;;
36460 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36461 esac ||
cristy98dddb52010-11-04 00:30:15 +000036462 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036463 esac
36464 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036465 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036466 done
36467
36468 # Let's still pretend it is `configure' which instantiates (i.e., don't
36469 # use $as_me), people would be surprised to read:
36470 # /* config.h. Generated by config.status. */
36471 configure_input='Generated from '`
36472 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36473 `' by configure.'
36474 if test x"$ac_file" != x-; then
36475 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036477$as_echo "$as_me: creating $ac_file" >&6;}
36478 fi
36479 # Neutralize special characters interpreted by sed in replacement strings.
36480 case $configure_input in #(
36481 *\&* | *\|* | *\\* )
36482 ac_sed_conf_input=`$as_echo "$configure_input" |
36483 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36484 *) ac_sed_conf_input=$configure_input;;
36485 esac
36486
36487 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036488 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036490 esac
36491 ;;
36492 esac
36493
36494 ac_dir=`$as_dirname -- "$ac_file" ||
36495$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36496 X"$ac_file" : 'X\(//\)[^/]' \| \
36497 X"$ac_file" : 'X\(//\)$' \| \
36498 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36499$as_echo X"$ac_file" |
36500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36501 s//\1/
36502 q
36503 }
36504 /^X\(\/\/\)[^/].*/{
36505 s//\1/
36506 q
36507 }
36508 /^X\(\/\/\)$/{
36509 s//\1/
36510 q
36511 }
36512 /^X\(\/\).*/{
36513 s//\1/
36514 q
36515 }
36516 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036517 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036518 ac_builddir=.
36519
36520case "$ac_dir" in
36521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36522*)
36523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36524 # A ".." for each directory in $ac_dir_suffix.
36525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36526 case $ac_top_builddir_sub in
36527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36529 esac ;;
36530esac
36531ac_abs_top_builddir=$ac_pwd
36532ac_abs_builddir=$ac_pwd$ac_dir_suffix
36533# for backward compatibility:
36534ac_top_builddir=$ac_top_build_prefix
36535
36536case $srcdir in
36537 .) # We are building in place.
36538 ac_srcdir=.
36539 ac_top_srcdir=$ac_top_builddir_sub
36540 ac_abs_top_srcdir=$ac_pwd ;;
36541 [\\/]* | ?:[\\/]* ) # Absolute name.
36542 ac_srcdir=$srcdir$ac_dir_suffix;
36543 ac_top_srcdir=$srcdir
36544 ac_abs_top_srcdir=$srcdir ;;
36545 *) # Relative name.
36546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36547 ac_top_srcdir=$ac_top_build_prefix$srcdir
36548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36549esac
36550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36551
36552
36553 case $ac_mode in
36554 :F)
36555 #
36556 # CONFIG_FILE
36557 #
36558
36559 case $INSTALL in
36560 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36561 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36562 esac
cristy73bd4a52010-10-05 11:24:23 +000036563 ac_MKDIR_P=$MKDIR_P
36564 case $MKDIR_P in
36565 [\\/$]* | ?:[\\/]* ) ;;
36566 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36567 esac
cristy3ed852e2009-09-05 21:47:34 +000036568_ACEOF
36569
36570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36571# If the template does not know about datarootdir, expand it.
36572# FIXME: This hack should be removed a few years after 2.60.
36573ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036574ac_sed_dataroot='
36575/datarootdir/ {
36576 p
36577 q
36578}
36579/@datadir@/p
36580/@docdir@/p
36581/@infodir@/p
36582/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036583/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036584case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36585*datarootdir*) ac_datarootdir_seen=yes;;
36586*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036588$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36589_ACEOF
36590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36591 ac_datarootdir_hack='
36592 s&@datadir@&$datadir&g
36593 s&@docdir@&$docdir&g
36594 s&@infodir@&$infodir&g
36595 s&@localedir@&$localedir&g
36596 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036597 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036598esac
36599_ACEOF
36600
36601# Neutralize VPATH when `$srcdir' = `.'.
36602# Shell code in configure.ac might set extrasub.
36603# FIXME: do we really want to maintain this feature?
36604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36605ac_sed_extra="$ac_vpsub
36606$extrasub
36607_ACEOF
36608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36609:t
36610/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36611s|@configure_input@|$ac_sed_conf_input|;t t
36612s&@top_builddir@&$ac_top_builddir_sub&;t t
36613s&@top_build_prefix@&$ac_top_build_prefix&;t t
36614s&@srcdir@&$ac_srcdir&;t t
36615s&@abs_srcdir@&$ac_abs_srcdir&;t t
36616s&@top_srcdir@&$ac_top_srcdir&;t t
36617s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36618s&@builddir@&$ac_builddir&;t t
36619s&@abs_builddir@&$ac_abs_builddir&;t t
36620s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36621s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036622s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036623$ac_datarootdir_hack
36624"
cristyda16f162011-02-19 23:52:17 +000036625eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36626 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036627
36628test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036629 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36630 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36631 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036633which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036634$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036635which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036636
cristyda16f162011-02-19 23:52:17 +000036637 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036638 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036639 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36640 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036641 esac \
cristy98dddb52010-11-04 00:30:15 +000036642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036643 ;;
36644 :H)
36645 #
36646 # CONFIG_HEADER
36647 #
36648 if test x"$ac_file" != x-; then
36649 {
36650 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036651 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36652 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036654 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036655 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036656$as_echo "$as_me: $ac_file is unchanged" >&6;}
36657 else
36658 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036659 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036661 fi
36662 else
36663 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036665 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036666 fi
cristy73bd4a52010-10-05 11:24:23 +000036667# Compute "$ac_file"'s index in $config_headers.
36668_am_arg="$ac_file"
36669_am_stamp_count=1
36670for _am_header in $config_headers :; do
36671 case $_am_header in
36672 $_am_arg | $_am_arg:* )
36673 break ;;
36674 * )
36675 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36676 esac
36677done
36678echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36679$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36680 X"$_am_arg" : 'X\(//\)[^/]' \| \
36681 X"$_am_arg" : 'X\(//\)$' \| \
36682 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36683$as_echo X"$_am_arg" |
36684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36685 s//\1/
36686 q
36687 }
36688 /^X\(\/\/\)[^/].*/{
36689 s//\1/
36690 q
36691 }
36692 /^X\(\/\/\)$/{
36693 s//\1/
36694 q
36695 }
36696 /^X\(\/\).*/{
36697 s//\1/
36698 q
36699 }
36700 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036701 ;;
36702
cristy8b350f62009-11-15 23:12:43 +000036703 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036704$as_echo "$as_me: executing $ac_file commands" >&6;}
36705 ;;
36706 esac
36707
36708
36709 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036710 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000036711ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36712ac_prefix_conf_PKG=`echo MagickCore`
36713ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36714ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36715ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36716if test ".$ac_prefix_conf_INP" = "."; then
36717 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36718 case "$ac_file" in
36719 *.h) ac_prefix_conf_INP=$ac_file ;;
36720 *)
36721 esac
36722 test ".$ac_prefix_conf_INP" != "." && break
36723 done
36724fi
36725if test ".$ac_prefix_conf_INP" = "."; then
36726 case "$ac_prefix_conf_OUT" in
36727 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36728 ;;
36729 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36730 ;;
36731 *) ac_prefix_conf_INP=config.h
36732 ;;
36733 esac
36734fi
36735if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036736 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036737else
36738 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36739 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36740 fi fi
36741 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36742$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36743 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036744 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36745 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36746 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36747 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36748 $as_echo "#endif/" >> conftest.prefix
36749 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36750 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36751 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036752 # now executing _script on _DEF input to create _OUT output file
36753 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36754 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36755 echo ' ' >>$tmp/pconfig.h
36756 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36757
36758 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36759 echo ' ' >>$tmp/pconfig.h
36760 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36761 echo "#endif" >>$tmp/pconfig.h
36762 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36763 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36764$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36765 else
36766 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36767$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36768 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36769 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36770 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36771$as_echo X"$ac_prefix_conf_OUT" |
36772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36773 s//\1/
36774 q
36775 }
36776 /^X\(\/\/\)[^/].*/{
36777 s//\1/
36778 q
36779 }
36780 /^X\(\/\/\)$/{
36781 s//\1/
36782 q
36783 }
36784 /^X\(\/\).*/{
36785 s//\1/
36786 q
36787 }
36788 s/.*/./; q'`
36789 as_dir="$ac_dir"; as_fn_mkdir_p
36790 rm -f "$ac_prefix_conf_OUT"
36791 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36792 fi
36793 cp conftest.prefix _configs.sed
36794 else
cristy98dddb52010-11-04 00:30:15 +000036795 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 +000036796 fi
36797 rm -f conftest.*
36798fi
36799 ;;
36800 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36801 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36802 # are listed without --file. Let's play safe and only enable the eval
36803 # if we detect the quoting.
36804 case $CONFIG_FILES in
36805 *\'*) eval set x "$CONFIG_FILES" ;;
36806 *) set x $CONFIG_FILES ;;
36807 esac
36808 shift
36809 for mf
36810 do
36811 # Strip MF so we end up with the name of the file.
36812 mf=`echo "$mf" | sed -e 's/:.*$//'`
36813 # Check whether this is an Automake generated Makefile or not.
36814 # We used to match only the files named `Makefile.in', but
36815 # some people rename them; so instead we look at the file content.
36816 # Grep'ing the first line is not enough: some people post-process
36817 # each Makefile.in and add a new line on top of each file to say so.
36818 # Grep'ing the whole file is not good either: AIX grep has a line
36819 # limit of 2048, but all sed's we know have understand at least 4000.
36820 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36821 dirpart=`$as_dirname -- "$mf" ||
36822$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36823 X"$mf" : 'X\(//\)[^/]' \| \
36824 X"$mf" : 'X\(//\)$' \| \
36825 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36826$as_echo X"$mf" |
36827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36828 s//\1/
36829 q
36830 }
36831 /^X\(\/\/\)[^/].*/{
36832 s//\1/
36833 q
36834 }
36835 /^X\(\/\/\)$/{
36836 s//\1/
36837 q
36838 }
36839 /^X\(\/\).*/{
36840 s//\1/
36841 q
36842 }
36843 s/.*/./; q'`
36844 else
36845 continue
36846 fi
36847 # Extract the definition of DEPDIR, am__include, and am__quote
36848 # from the Makefile without running `make'.
36849 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36850 test -z "$DEPDIR" && continue
36851 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36852 test -z "am__include" && continue
36853 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36854 # When using ansi2knr, U may be empty or an underscore; expand it
36855 U=`sed -n 's/^U = //p' < "$mf"`
36856 # Find all dependency output files, they are included files with
36857 # $(DEPDIR) in their names. We invoke sed twice because it is the
36858 # simplest approach to changing $(DEPDIR) to its actual value in the
36859 # expansion.
36860 for file in `sed -n "
36861 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36862 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36863 # Make sure the directory exists.
36864 test -f "$dirpart/$file" && continue
36865 fdir=`$as_dirname -- "$file" ||
36866$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36867 X"$file" : 'X\(//\)[^/]' \| \
36868 X"$file" : 'X\(//\)$' \| \
36869 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36870$as_echo X"$file" |
36871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36872 s//\1/
36873 q
36874 }
36875 /^X\(\/\/\)[^/].*/{
36876 s//\1/
36877 q
36878 }
36879 /^X\(\/\/\)$/{
36880 s//\1/
36881 q
36882 }
36883 /^X\(\/\).*/{
36884 s//\1/
36885 q
36886 }
36887 s/.*/./; q'`
36888 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36889 # echo "creating $dirpart/$file"
36890 echo '# dummy' > "$dirpart/$file"
36891 done
36892 done
36893}
36894 ;;
36895 "libtool":C)
36896
36897 # See if we are running on zsh, and set the options which allow our
36898 # commands through without removal of \ escapes.
36899 if test -n "${ZSH_VERSION+set}" ; then
36900 setopt NO_GLOB_SUBST
36901 fi
36902
36903 cfgfile="${ofile}T"
36904 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36905 $RM "$cfgfile"
36906
36907 cat <<_LT_EOF >> "$cfgfile"
36908#! $SHELL
36909
36910# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36911# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36912# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36913# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36914#
36915# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000036916# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36917# Inc.
cristy73bd4a52010-10-05 11:24:23 +000036918# Written by Gordon Matzigkeit, 1996
36919#
36920# This file is part of GNU Libtool.
36921#
36922# GNU Libtool is free software; you can redistribute it and/or
36923# modify it under the terms of the GNU General Public License as
36924# published by the Free Software Foundation; either version 2 of
36925# the License, or (at your option) any later version.
36926#
36927# As a special exception to the GNU General Public License,
36928# if you distribute this file as part of a program or library that
36929# is built using GNU Libtool, you may include this file under the
36930# same distribution terms that you use for the rest of that program.
36931#
36932# GNU Libtool is distributed in the hope that it will be useful,
36933# but WITHOUT ANY WARRANTY; without even the implied warranty of
36934# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36935# GNU General Public License for more details.
36936#
36937# You should have received a copy of the GNU General Public License
36938# along with GNU Libtool; see the file COPYING. If not, a copy
36939# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36940# obtained by writing to the Free Software Foundation, Inc.,
36941# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36942
36943
36944# The names of the tagged configurations supported by this script.
36945available_tags="CXX "
36946
36947# ### BEGIN LIBTOOL CONFIG
36948
36949# A sed program that does not truncate output.
36950SED=$lt_SED
36951
36952# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36953Xsed="\$SED -e 1s/^X//"
36954
36955# A grep program that handles long lines.
36956GREP=$lt_GREP
36957
36958# An ERE matcher.
36959EGREP=$lt_EGREP
36960
36961# A literal string matcher.
36962FGREP=$lt_FGREP
36963
cristy0c60a692010-11-04 01:09:47 +000036964# Shell to use when invoking shell scripts.
36965SHELL=$lt_SHELL
36966
36967# An echo program that protects backslashes.
36968ECHO=$lt_ECHO
36969
cristy73bd4a52010-10-05 11:24:23 +000036970# Which release of libtool.m4 was used?
36971macro_version=$macro_version
36972macro_revision=$macro_revision
36973
36974# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000036975AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000036976
36977# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000036978DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000036979
36980# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000036981OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000036982
36983# Whether or not to build shared libraries.
36984build_libtool_libs=$enable_shared
36985
36986# Whether or not to build static libraries.
36987build_old_libs=$enable_static
36988
36989# What type of objects to build.
36990pic_mode=$pic_mode
36991
36992# Whether or not to optimize for fast installation.
36993fast_install=$enable_fast_install
36994
36995# The host system.
36996host_alias=$host_alias
36997host=$host
36998host_os=$host_os
36999
37000# The build system.
37001build_alias=$build_alias
37002build=$build
37003build_os=$build_os
37004
37005# A BSD- or MS-compatible name lister.
37006NM=$lt_NM
37007
37008# Whether we need soft or hard links.
37009LN_S=$lt_LN_S
37010
37011# What is the maximum length of a command?
37012max_cmd_len=$max_cmd_len
37013
37014# Object file suffix (normally "o").
37015objext=$ac_objext
37016
37017# Executable file suffix (normally "").
37018exeext=$exeext
37019
37020# whether the shell understands "unset".
37021lt_unset=$lt_unset
37022
37023# turn spaces into newlines.
37024SP2NL=$lt_lt_SP2NL
37025
37026# turn newlines into spaces.
37027NL2SP=$lt_lt_NL2SP
37028
cristyda16f162011-02-19 23:52:17 +000037029# convert \$build file names to \$host format.
37030to_host_file_cmd=$lt_cv_to_host_file_cmd
37031
37032# convert \$build files to toolchain format.
37033to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37034
cristy73bd4a52010-10-05 11:24:23 +000037035# Method to check whether dependent libraries are shared objects.
37036deplibs_check_method=$lt_deplibs_check_method
37037
cristyda16f162011-02-19 23:52:17 +000037038# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037039file_magic_cmd=$lt_file_magic_cmd
37040
cristyda16f162011-02-19 23:52:17 +000037041# How to find potential files when deplibs_check_method = "file_magic".
37042file_magic_glob=$lt_file_magic_glob
37043
37044# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37045want_nocaseglob=$lt_want_nocaseglob
37046
37047# Command to associate shared and link libraries.
37048sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37049
cristy73bd4a52010-10-05 11:24:23 +000037050# The archiver.
37051AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037052
37053# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037054AR_FLAGS=$lt_AR_FLAGS
37055
cristyda16f162011-02-19 23:52:17 +000037056# How to feed a file listing to the archiver.
37057archiver_list_spec=$lt_archiver_list_spec
37058
cristy73bd4a52010-10-05 11:24:23 +000037059# A symbol stripping program.
37060STRIP=$lt_STRIP
37061
37062# Commands used to install an old-style archive.
37063RANLIB=$lt_RANLIB
37064old_postinstall_cmds=$lt_old_postinstall_cmds
37065old_postuninstall_cmds=$lt_old_postuninstall_cmds
37066
cristy0c60a692010-11-04 01:09:47 +000037067# Whether to use a lock for old archive extraction.
37068lock_old_archive_extraction=$lock_old_archive_extraction
37069
cristy73bd4a52010-10-05 11:24:23 +000037070# A C compiler.
37071LTCC=$lt_CC
37072
37073# LTCC compiler flags.
37074LTCFLAGS=$lt_CFLAGS
37075
37076# Take the output of nm and produce a listing of raw symbols and C names.
37077global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37078
37079# Transform the output of nm in a proper C declaration.
37080global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37081
37082# Transform the output of nm in a C name address pair.
37083global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37084
37085# Transform the output of nm in a C name address pair when lib prefix is needed.
37086global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37087
cristyda16f162011-02-19 23:52:17 +000037088# Specify filename containing input files for \$NM.
37089nm_file_list_spec=$lt_nm_file_list_spec
37090
37091# The root where to search for dependent libraries,and in which our libraries should be installed.
37092lt_sysroot=$lt_sysroot
37093
cristy73bd4a52010-10-05 11:24:23 +000037094# The name of the directory that contains temporary libtool files.
37095objdir=$objdir
37096
cristy73bd4a52010-10-05 11:24:23 +000037097# Used to examine libraries when file_magic_cmd begins with "file".
37098MAGIC_CMD=$MAGIC_CMD
37099
37100# Must we lock files when doing compilation?
37101need_locks=$lt_need_locks
37102
cristyda16f162011-02-19 23:52:17 +000037103# Manifest tool.
37104MANIFEST_TOOL=$lt_MANIFEST_TOOL
37105
cristy73bd4a52010-10-05 11:24:23 +000037106# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37107DSYMUTIL=$lt_DSYMUTIL
37108
37109# Tool to change global to local symbols on Mac OS X.
37110NMEDIT=$lt_NMEDIT
37111
37112# Tool to manipulate fat objects and archives on Mac OS X.
37113LIPO=$lt_LIPO
37114
37115# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37116OTOOL=$lt_OTOOL
37117
37118# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37119OTOOL64=$lt_OTOOL64
37120
37121# Old archive suffix (normally "a").
37122libext=$libext
37123
37124# Shared library suffix (normally ".so").
37125shrext_cmds=$lt_shrext_cmds
37126
37127# The commands to extract the exported symbol list from a shared archive.
37128extract_expsyms_cmds=$lt_extract_expsyms_cmds
37129
37130# Variables whose values should be saved in libtool wrapper scripts and
37131# restored at link time.
37132variables_saved_for_relink=$lt_variables_saved_for_relink
37133
37134# Do we need the "lib" prefix for modules?
37135need_lib_prefix=$need_lib_prefix
37136
37137# Do we need a version for libraries?
37138need_version=$need_version
37139
37140# Library versioning type.
37141version_type=$version_type
37142
37143# Shared library runtime path variable.
37144runpath_var=$runpath_var
37145
37146# Shared library path variable.
37147shlibpath_var=$shlibpath_var
37148
37149# Is shlibpath searched before the hard-coded library search path?
37150shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37151
37152# Format of library name prefix.
37153libname_spec=$lt_libname_spec
37154
37155# List of archive names. First name is the real one, the rest are links.
37156# The last name is the one that the linker finds with -lNAME
37157library_names_spec=$lt_library_names_spec
37158
37159# The coded name of the library, if different from the real name.
37160soname_spec=$lt_soname_spec
37161
cristy0c60a692010-11-04 01:09:47 +000037162# Permission mode override for installation of shared libraries.
37163install_override_mode=$lt_install_override_mode
37164
cristy73bd4a52010-10-05 11:24:23 +000037165# Command to use after installation of a shared archive.
37166postinstall_cmds=$lt_postinstall_cmds
37167
37168# Command to use after uninstallation of a shared archive.
37169postuninstall_cmds=$lt_postuninstall_cmds
37170
37171# Commands used to finish a libtool library installation in a directory.
37172finish_cmds=$lt_finish_cmds
37173
37174# As "finish_cmds", except a single script fragment to be evaled but
37175# not shown.
37176finish_eval=$lt_finish_eval
37177
37178# Whether we should hardcode library paths into libraries.
37179hardcode_into_libs=$hardcode_into_libs
37180
37181# Compile-time system search path for libraries.
37182sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37183
37184# Run-time system search path for libraries.
37185sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37186
37187# Whether dlopen is supported.
37188dlopen_support=$enable_dlopen
37189
37190# Whether dlopen of programs is supported.
37191dlopen_self=$enable_dlopen_self
37192
37193# Whether dlopen of statically linked programs is supported.
37194dlopen_self_static=$enable_dlopen_self_static
37195
37196# Commands to strip libraries.
37197old_striplib=$lt_old_striplib
37198striplib=$lt_striplib
37199
37200
37201# The linker used to build libraries.
37202LD=$lt_LD
37203
cristy0c60a692010-11-04 01:09:47 +000037204# How to create reloadable object files.
37205reload_flag=$lt_reload_flag
37206reload_cmds=$lt_reload_cmds
37207
cristy73bd4a52010-10-05 11:24:23 +000037208# Commands used to build an old-style archive.
37209old_archive_cmds=$lt_old_archive_cmds
37210
37211# A language specific compiler.
37212CC=$lt_compiler
37213
37214# Is the compiler the GNU compiler?
37215with_gcc=$GCC
37216
37217# Compiler flag to turn off builtin functions.
37218no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37219
cristy73bd4a52010-10-05 11:24:23 +000037220# Additional compiler flags for building library objects.
37221pic_flag=$lt_lt_prog_compiler_pic
37222
cristyda16f162011-02-19 23:52:17 +000037223# How to pass a linker flag through the compiler.
37224wl=$lt_lt_prog_compiler_wl
37225
cristy73bd4a52010-10-05 11:24:23 +000037226# Compiler flag to prevent dynamic linking.
37227link_static_flag=$lt_lt_prog_compiler_static
37228
37229# Does compiler simultaneously support -c and -o options?
37230compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37231
37232# Whether or not to add -lc for building shared libraries.
37233build_libtool_need_lc=$archive_cmds_need_lc
37234
37235# Whether or not to disallow shared libs when runtime libs are static.
37236allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37237
37238# Compiler flag to allow reflexive dlopens.
37239export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37240
37241# Compiler flag to generate shared objects directly from archives.
37242whole_archive_flag_spec=$lt_whole_archive_flag_spec
37243
37244# Whether the compiler copes with passing no objects directly.
37245compiler_needs_object=$lt_compiler_needs_object
37246
37247# Create an old-style archive from a shared archive.
37248old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37249
37250# Create a temporary old-style archive to link instead of a shared archive.
37251old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37252
37253# Commands used to build a shared archive.
37254archive_cmds=$lt_archive_cmds
37255archive_expsym_cmds=$lt_archive_expsym_cmds
37256
37257# Commands used to build a loadable module if different from building
37258# a shared archive.
37259module_cmds=$lt_module_cmds
37260module_expsym_cmds=$lt_module_expsym_cmds
37261
37262# Whether we are building with GNU ld or not.
37263with_gnu_ld=$lt_with_gnu_ld
37264
37265# Flag that allows shared libraries with undefined symbols to be built.
37266allow_undefined_flag=$lt_allow_undefined_flag
37267
37268# Flag that enforces no undefined symbols.
37269no_undefined_flag=$lt_no_undefined_flag
37270
37271# Flag to hardcode \$libdir into a binary during linking.
37272# This must work even if \$libdir does not exist
37273hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37274
37275# If ld is used when linking, flag to hardcode \$libdir into a binary
37276# during linking. This must work even if \$libdir does not exist.
37277hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37278
37279# Whether we need a single "-rpath" flag with a separated argument.
37280hardcode_libdir_separator=$lt_hardcode_libdir_separator
37281
37282# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37283# DIR into the resulting binary.
37284hardcode_direct=$hardcode_direct
37285
37286# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37287# DIR into the resulting binary and the resulting library dependency is
37288# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37289# library is relocated.
37290hardcode_direct_absolute=$hardcode_direct_absolute
37291
37292# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37293# into the resulting binary.
37294hardcode_minus_L=$hardcode_minus_L
37295
37296# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37297# into the resulting binary.
37298hardcode_shlibpath_var=$hardcode_shlibpath_var
37299
37300# Set to "yes" if building a shared library automatically hardcodes DIR
37301# into the library and all subsequent libraries and executables linked
37302# against it.
37303hardcode_automatic=$hardcode_automatic
37304
37305# Set to yes if linker adds runtime paths of dependent libraries
37306# to runtime path list.
37307inherit_rpath=$inherit_rpath
37308
37309# Whether libtool must link a program against all its dependency libraries.
37310link_all_deplibs=$link_all_deplibs
37311
cristy73bd4a52010-10-05 11:24:23 +000037312# Set to "yes" if exported symbols are required.
37313always_export_symbols=$always_export_symbols
37314
37315# The commands to list exported symbols.
37316export_symbols_cmds=$lt_export_symbols_cmds
37317
37318# Symbols that should not be listed in the preloaded symbols.
37319exclude_expsyms=$lt_exclude_expsyms
37320
37321# Symbols that must always be exported.
37322include_expsyms=$lt_include_expsyms
37323
37324# Commands necessary for linking programs (against libraries) with templates.
37325prelink_cmds=$lt_prelink_cmds
37326
cristyda16f162011-02-19 23:52:17 +000037327# Commands necessary for finishing linking programs.
37328postlink_cmds=$lt_postlink_cmds
37329
cristy73bd4a52010-10-05 11:24:23 +000037330# Specify filename containing input files.
37331file_list_spec=$lt_file_list_spec
37332
37333# How to hardcode a shared library path into an executable.
37334hardcode_action=$hardcode_action
37335
37336# The directories searched by this compiler when creating a shared library.
37337compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37338
37339# Dependencies to place before and after the objects being linked to
37340# create a shared library.
37341predep_objects=$lt_predep_objects
37342postdep_objects=$lt_postdep_objects
37343predeps=$lt_predeps
37344postdeps=$lt_postdeps
37345
37346# The library search path used internally by the compiler when linking
37347# a shared library.
37348compiler_lib_search_path=$lt_compiler_lib_search_path
37349
37350# ### END LIBTOOL CONFIG
37351
37352_LT_EOF
37353
37354 case $host_os in
37355 aix3*)
37356 cat <<\_LT_EOF >> "$cfgfile"
37357# AIX sometimes has problems with the GCC collect2 program. For some
37358# reason, if we set the COLLECT_NAMES environment variable, the problems
37359# vanish in a puff of smoke.
37360if test "X${COLLECT_NAMES+set}" != Xset; then
37361 COLLECT_NAMES=
37362 export COLLECT_NAMES
37363fi
37364_LT_EOF
37365 ;;
37366 esac
37367
37368
37369ltmain="$ac_aux_dir/ltmain.sh"
37370
37371
37372 # We use sed instead of cat because bash on DJGPP gets confused if
37373 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37374 # text mode, it properly converts lines to CR/LF. This bash problem
37375 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037376 sed '$q' "$ltmain" >> "$cfgfile" \
37377 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037378
cristyda16f162011-02-19 23:52:17 +000037379 if test x"$xsi_shell" = xyes; then
37380 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37381func_dirname ()\
37382{\
37383\ case ${1} in\
37384\ */*) func_dirname_result="${1%/*}${2}" ;;\
37385\ * ) func_dirname_result="${3}" ;;\
37386\ esac\
37387} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37388 && mv -f "$cfgfile.tmp" "$cfgfile" \
37389 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37390test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037391
37392
cristyda16f162011-02-19 23:52:17 +000037393 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37394func_basename ()\
37395{\
37396\ func_basename_result="${1##*/}"\
37397} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37398 && mv -f "$cfgfile.tmp" "$cfgfile" \
37399 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37400test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037401
37402
cristyda16f162011-02-19 23:52:17 +000037403 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37404func_dirname_and_basename ()\
37405{\
37406\ case ${1} in\
37407\ */*) func_dirname_result="${1%/*}${2}" ;;\
37408\ * ) func_dirname_result="${3}" ;;\
37409\ esac\
37410\ func_basename_result="${1##*/}"\
37411} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37412 && mv -f "$cfgfile.tmp" "$cfgfile" \
37413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37414test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037415
cristyda16f162011-02-19 23:52:17 +000037416
37417 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37418func_stripname ()\
37419{\
37420\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37421\ # positional parameters, so assign one to ordinary parameter first.\
37422\ func_stripname_result=${3}\
37423\ func_stripname_result=${func_stripname_result#"${1}"}\
37424\ func_stripname_result=${func_stripname_result%"${2}"}\
37425} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37426 && mv -f "$cfgfile.tmp" "$cfgfile" \
37427 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37428test 0 -eq $? || _lt_function_replace_fail=:
37429
37430
37431 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37432func_split_long_opt ()\
37433{\
37434\ func_split_long_opt_name=${1%%=*}\
37435\ func_split_long_opt_arg=${1#*=}\
37436} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37437 && mv -f "$cfgfile.tmp" "$cfgfile" \
37438 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37439test 0 -eq $? || _lt_function_replace_fail=:
37440
37441
37442 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37443func_split_short_opt ()\
37444{\
37445\ func_split_short_opt_arg=${1#??}\
37446\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37447} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37448 && mv -f "$cfgfile.tmp" "$cfgfile" \
37449 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37450test 0 -eq $? || _lt_function_replace_fail=:
37451
37452
37453 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37454func_lo2o ()\
37455{\
37456\ case ${1} in\
37457\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37458\ *) func_lo2o_result=${1} ;;\
37459\ esac\
37460} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37461 && mv -f "$cfgfile.tmp" "$cfgfile" \
37462 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37463test 0 -eq $? || _lt_function_replace_fail=:
37464
37465
37466 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37467func_xform ()\
37468{\
37469 func_xform_result=${1%.*}.lo\
37470} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37471 && mv -f "$cfgfile.tmp" "$cfgfile" \
37472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37473test 0 -eq $? || _lt_function_replace_fail=:
37474
37475
37476 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37477func_arith ()\
37478{\
37479 func_arith_result=$(( $* ))\
37480} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37481 && mv -f "$cfgfile.tmp" "$cfgfile" \
37482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37483test 0 -eq $? || _lt_function_replace_fail=:
37484
37485
37486 sed -e '/^func_len ()$/,/^} # func_len /c\
37487func_len ()\
37488{\
37489 func_len_result=${#1}\
37490} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37491 && mv -f "$cfgfile.tmp" "$cfgfile" \
37492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37493test 0 -eq $? || _lt_function_replace_fail=:
37494
37495fi
37496
37497if test x"$lt_shell_append" = xyes; then
37498 sed -e '/^func_append ()$/,/^} # func_append /c\
37499func_append ()\
37500{\
37501 eval "${1}+=\\${2}"\
37502} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37503 && mv -f "$cfgfile.tmp" "$cfgfile" \
37504 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37505test 0 -eq $? || _lt_function_replace_fail=:
37506
37507
37508 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37509func_append_quoted ()\
37510{\
37511\ func_quote_for_eval "${2}"\
37512\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37513} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37514 && mv -f "$cfgfile.tmp" "$cfgfile" \
37515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37516test 0 -eq $? || _lt_function_replace_fail=:
37517
37518
37519 # Save a `func_append' function call where possible by direct use of '+='
37520 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37521 && mv -f "$cfgfile.tmp" "$cfgfile" \
37522 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37523 test 0 -eq $? || _lt_function_replace_fail=:
37524else
37525 # Save a `func_append' function call even when '+=' is not available
37526 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37527 && mv -f "$cfgfile.tmp" "$cfgfile" \
37528 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37529 test 0 -eq $? || _lt_function_replace_fail=:
37530fi
37531
37532if test x"$_lt_function_replace_fail" = x":"; then
37533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37534$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37535fi
37536
37537
37538 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037539 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37540 chmod +x "$ofile"
37541
37542
37543 cat <<_LT_EOF >> "$ofile"
37544
37545# ### BEGIN LIBTOOL TAG CONFIG: CXX
37546
37547# The linker used to build libraries.
37548LD=$lt_LD_CXX
37549
cristy0c60a692010-11-04 01:09:47 +000037550# How to create reloadable object files.
37551reload_flag=$lt_reload_flag_CXX
37552reload_cmds=$lt_reload_cmds_CXX
37553
cristy73bd4a52010-10-05 11:24:23 +000037554# Commands used to build an old-style archive.
37555old_archive_cmds=$lt_old_archive_cmds_CXX
37556
37557# A language specific compiler.
37558CC=$lt_compiler_CXX
37559
37560# Is the compiler the GNU compiler?
37561with_gcc=$GCC_CXX
37562
37563# Compiler flag to turn off builtin functions.
37564no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37565
cristy73bd4a52010-10-05 11:24:23 +000037566# Additional compiler flags for building library objects.
37567pic_flag=$lt_lt_prog_compiler_pic_CXX
37568
cristyda16f162011-02-19 23:52:17 +000037569# How to pass a linker flag through the compiler.
37570wl=$lt_lt_prog_compiler_wl_CXX
37571
cristy73bd4a52010-10-05 11:24:23 +000037572# Compiler flag to prevent dynamic linking.
37573link_static_flag=$lt_lt_prog_compiler_static_CXX
37574
37575# Does compiler simultaneously support -c and -o options?
37576compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37577
37578# Whether or not to add -lc for building shared libraries.
37579build_libtool_need_lc=$archive_cmds_need_lc_CXX
37580
37581# Whether or not to disallow shared libs when runtime libs are static.
37582allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37583
37584# Compiler flag to allow reflexive dlopens.
37585export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37586
37587# Compiler flag to generate shared objects directly from archives.
37588whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37589
37590# Whether the compiler copes with passing no objects directly.
37591compiler_needs_object=$lt_compiler_needs_object_CXX
37592
37593# Create an old-style archive from a shared archive.
37594old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37595
37596# Create a temporary old-style archive to link instead of a shared archive.
37597old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37598
37599# Commands used to build a shared archive.
37600archive_cmds=$lt_archive_cmds_CXX
37601archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37602
37603# Commands used to build a loadable module if different from building
37604# a shared archive.
37605module_cmds=$lt_module_cmds_CXX
37606module_expsym_cmds=$lt_module_expsym_cmds_CXX
37607
37608# Whether we are building with GNU ld or not.
37609with_gnu_ld=$lt_with_gnu_ld_CXX
37610
37611# Flag that allows shared libraries with undefined symbols to be built.
37612allow_undefined_flag=$lt_allow_undefined_flag_CXX
37613
37614# Flag that enforces no undefined symbols.
37615no_undefined_flag=$lt_no_undefined_flag_CXX
37616
37617# Flag to hardcode \$libdir into a binary during linking.
37618# This must work even if \$libdir does not exist
37619hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37620
37621# If ld is used when linking, flag to hardcode \$libdir into a binary
37622# during linking. This must work even if \$libdir does not exist.
37623hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37624
37625# Whether we need a single "-rpath" flag with a separated argument.
37626hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37627
37628# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37629# DIR into the resulting binary.
37630hardcode_direct=$hardcode_direct_CXX
37631
37632# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37633# DIR into the resulting binary and the resulting library dependency is
37634# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37635# library is relocated.
37636hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37637
37638# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37639# into the resulting binary.
37640hardcode_minus_L=$hardcode_minus_L_CXX
37641
37642# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37643# into the resulting binary.
37644hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37645
37646# Set to "yes" if building a shared library automatically hardcodes DIR
37647# into the library and all subsequent libraries and executables linked
37648# against it.
37649hardcode_automatic=$hardcode_automatic_CXX
37650
37651# Set to yes if linker adds runtime paths of dependent libraries
37652# to runtime path list.
37653inherit_rpath=$inherit_rpath_CXX
37654
37655# Whether libtool must link a program against all its dependency libraries.
37656link_all_deplibs=$link_all_deplibs_CXX
37657
cristy73bd4a52010-10-05 11:24:23 +000037658# Set to "yes" if exported symbols are required.
37659always_export_symbols=$always_export_symbols_CXX
37660
37661# The commands to list exported symbols.
37662export_symbols_cmds=$lt_export_symbols_cmds_CXX
37663
37664# Symbols that should not be listed in the preloaded symbols.
37665exclude_expsyms=$lt_exclude_expsyms_CXX
37666
37667# Symbols that must always be exported.
37668include_expsyms=$lt_include_expsyms_CXX
37669
37670# Commands necessary for linking programs (against libraries) with templates.
37671prelink_cmds=$lt_prelink_cmds_CXX
37672
cristyda16f162011-02-19 23:52:17 +000037673# Commands necessary for finishing linking programs.
37674postlink_cmds=$lt_postlink_cmds_CXX
37675
cristy73bd4a52010-10-05 11:24:23 +000037676# Specify filename containing input files.
37677file_list_spec=$lt_file_list_spec_CXX
37678
37679# How to hardcode a shared library path into an executable.
37680hardcode_action=$hardcode_action_CXX
37681
37682# The directories searched by this compiler when creating a shared library.
37683compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37684
37685# Dependencies to place before and after the objects being linked to
37686# create a shared library.
37687predep_objects=$lt_predep_objects_CXX
37688postdep_objects=$lt_postdep_objects_CXX
37689predeps=$lt_predeps_CXX
37690postdeps=$lt_postdeps_CXX
37691
37692# The library search path used internally by the compiler when linking
37693# a shared library.
37694compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37695
37696# ### END LIBTOOL TAG CONFIG: CXX
37697_LT_EOF
37698
37699 ;;
cristy4c08aed2011-07-01 19:47:50 +000037700 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037701 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037702 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37703 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37704
37705 esac
37706done # for ac_tag
37707
37708
cristy8b350f62009-11-15 23:12:43 +000037709as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037710_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037711ac_clean_files=$ac_clean_files_save
37712
37713test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037714 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037715
37716
37717# configure is writing to config.log, and then calls config.status.
37718# config.status does its own redirection, appending to config.log.
37719# Unfortunately, on DOS this fails, as config.log is still kept open
37720# by configure, so config.status won't be able to write to it; its
37721# output is simply discarded. So we exec the FD to /dev/null,
37722# effectively closing config.log, so it can be properly (re)opened and
37723# appended to by config.status. When coming back to configure, we
37724# need to make the FD available again.
37725if test "$no_create" != yes; then
37726 ac_cs_success=:
37727 ac_config_status_args=
37728 test "$silent" = yes &&
37729 ac_config_status_args="$ac_config_status_args --quiet"
37730 exec 5>/dev/null
37731 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37732 exec 5>>config.log
37733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37734 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037735 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037736fi
37737if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037739$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37740fi
37741
37742
37743rm -f magick-version
37744
cristy430a7312010-01-21 20:44:04 +000037745result_dejavu_font_dir='none'
37746if test "${dejavu_font_dir}x" != 'x'; then
37747 result_dejavu_font_dir=$dejavu_font_dir
37748fi
37749
cristy3ed852e2009-09-05 21:47:34 +000037750result_ghostscript_font_dir='none'
37751if test "${ghostscript_font_dir}x" != 'x'; then
37752 result_ghostscript_font_dir=$ghostscript_font_dir
37753fi
37754
37755result_windows_font_dir='none'
37756if test "${windows_font_dir}x" != 'x'; then
37757 result_windows_font_dir=${windows_font_dir}
37758fi
37759
cristy09b53e12011-10-14 12:47:22 +000037760{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000037761ImageMagick is configured as follows. Please verify that this configuration
37762matches your expectations.
37763
37764Host system type: $host
37765Build system type: $build
37766
37767 Option Value
37768-------------------------------------------------------------------------------
37769Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37770Static libraries --enable-static=$enable_static $libtool_build_static_libs
37771Module support --with-modules=$with_modules $with_modules
37772GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37773Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37774High Dynamic Range Imagery
37775 --enable-hdri=$enable_hdri $enable_hdri
37776
37777Delegate Configuration:
37778BZLIB --with-bzlib=$with_bzlib $have_bzlib
37779Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037780Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037781DJVU --with-djvu=$with_djvu $have_djvu
37782DPS --with-dps=$with_dps $have_dps
37783FFTW --with-fftw=$with_fftw $have_fftw
37784FlashPIX --with-fpx=$with_fpx $have_fpx
37785FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37786FreeType --with-freetype=$with_freetype $have_freetype
37787GhostPCL None $PCLDelegate ($PCLVersion)
37788GhostXPS None $XPSDelegate ($XPSVersion)
37789Ghostscript None $PSDelegate ($GSVersion)
37790Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37791Ghostscript lib --with-gslib=$with_gslib $have_gslib
37792Graphviz --with-gvc=$with_gvc $have_gvc
37793JBIG --with-jbig=$with_jbig $have_jbig
37794JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37795JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037796LCMS v1 --with-lcms=$with_lcms $have_lcms
37797LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037798LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037799LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037800Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37801OpenEXR --with-openexr=$with_openexr $have_openexr
37802PERL --with-perl=$with_perl $have_perl
37803PNG --with-png=$with_png $have_png
37804RSVG --with-rsvg=$with_rsvg $have_rsvg
37805TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037806WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037807Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37808WMF --with-wmf=$with_wmf $have_wmf
37809X11 --with-x=$with_x $have_x
37810XML --with-xml=$with_xml $have_xml
37811ZLIB --with-zlib=$with_zlib $have_zlib
37812
37813X11 Configuration:
37814 X_CFLAGS = $X_CFLAGS
37815 X_PRE_LIBS = $X_PRE_LIBS
37816 X_LIBS = $X_LIBS
37817 X_EXTRA_LIBS = $X_EXTRA_LIBS
37818
37819Options used to compile and link:
37820 PREFIX = $PREFIX_DIR
37821 EXEC-PREFIX = $EXEC_PREFIX_DIR
37822 VERSION = $PACKAGE_VERSION
37823 CC = $CC
37824 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037825 CPPFLAGS = $MAGICK_CPPFLAGS
37826 PCFLAGS = $MAGICK_PCFLAGS
37827 DEFS = $DEFS
37828 LDFLAGS = $LDFLAGS
37829 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37830 LIBS = $MAGICK_LIBS
37831 CXX = $CXX
37832 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037833 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037834" >&5
cristy09b53e12011-10-14 12:47:22 +000037835$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000037836ImageMagick is configured as follows. Please verify that this configuration
37837matches your expectations.
37838
37839Host system type: $host
37840Build system type: $build
37841
37842 Option Value
37843-------------------------------------------------------------------------------
37844Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37845Static libraries --enable-static=$enable_static $libtool_build_static_libs
37846Module support --with-modules=$with_modules $with_modules
37847GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37848Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37849High Dynamic Range Imagery
37850 --enable-hdri=$enable_hdri $enable_hdri
37851
37852Delegate Configuration:
37853BZLIB --with-bzlib=$with_bzlib $have_bzlib
37854Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037855Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037856DJVU --with-djvu=$with_djvu $have_djvu
37857DPS --with-dps=$with_dps $have_dps
37858FFTW --with-fftw=$with_fftw $have_fftw
37859FlashPIX --with-fpx=$with_fpx $have_fpx
37860FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37861FreeType --with-freetype=$with_freetype $have_freetype
37862GhostPCL None $PCLDelegate ($PCLVersion)
37863GhostXPS None $XPSDelegate ($XPSVersion)
37864Ghostscript None $PSDelegate ($GSVersion)
37865Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37866Ghostscript lib --with-gslib=$with_gslib $have_gslib
37867Graphviz --with-gvc=$with_gvc $have_gvc
37868JBIG --with-jbig=$with_jbig $have_jbig
37869JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37870JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037871LCMS v1 --with-lcms=$with_lcms $have_lcms
37872LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037873LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037874LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037875Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37876OpenEXR --with-openexr=$with_openexr $have_openexr
37877PERL --with-perl=$with_perl $have_perl
37878PNG --with-png=$with_png $have_png
37879RSVG --with-rsvg=$with_rsvg $have_rsvg
37880TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037881WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037882Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37883WMF --with-wmf=$with_wmf $have_wmf
37884X11 --with-x=$with_x $have_x
37885XML --with-xml=$with_xml $have_xml
37886ZLIB --with-zlib=$with_zlib $have_zlib
37887
37888X11 Configuration:
37889 X_CFLAGS = $X_CFLAGS
37890 X_PRE_LIBS = $X_PRE_LIBS
37891 X_LIBS = $X_LIBS
37892 X_EXTRA_LIBS = $X_EXTRA_LIBS
37893
37894Options used to compile and link:
37895 PREFIX = $PREFIX_DIR
37896 EXEC-PREFIX = $EXEC_PREFIX_DIR
37897 VERSION = $PACKAGE_VERSION
37898 CC = $CC
37899 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037900 CPPFLAGS = $MAGICK_CPPFLAGS
37901 PCFLAGS = $MAGICK_PCFLAGS
37902 DEFS = $DEFS
37903 LDFLAGS = $LDFLAGS
37904 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37905 LIBS = $MAGICK_LIBS
37906 CXX = $CXX
37907 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037908 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000037909" >&6;}