blob: 417c20fcd2c4399432523d7bbf32d2ac99804d31 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy4c08aed2011-07-01 19:47:50 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy4c08aed2011-07-01 19:47:50 +0000576PACKAGE_TARNAME='ImageMagick-7.0.0'
577PACKAGE_VERSION='7.0.0'
578PACKAGE_STRING='ImageMagick 7.0.0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristyf805afb2011-10-03 17:17:37 +0000733XML_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000734XML_DELEGATE_FALSE
735XML_DELEGATE_TRUE
cristyf805afb2011-10-03 17:17:37 +0000736XML2_LIBS
737XML2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000738WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000739WMF_DELEGATE_FALSE
740WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000741WEBP_LIBS
742WEBP_DELEGATE_FALSE
743WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000744TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000745TIFF_DELEGATE_FALSE
746TIFF_DELEGATE_TRUE
747CAIRO_DELEGATE_FALSE
748CAIRO_DELEGATE_TRUE
749RSVG_DELEGATE_FALSE
750RSVG_DELEGATE_TRUE
751CAIRO_SVG_LIBS
752CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000753RSVG_LIBS
754RSVG_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000755PNG_DELEGATE_FALSE
756PNG_DELEGATE_TRUE
cristyf805afb2011-10-03 17:17:37 +0000757PNG_LIBS
758PNG_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000759OPENEXR_DELEGATE_FALSE
760OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000761OPENEXR_LIBS
762OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000763LZMA_DELEGATE_FALSE
764LZMA_DELEGATE_TRUE
cristyf805afb2011-10-03 17:17:37 +0000765LZMA_LIBS
766LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000767LQR_DELEGATE_FALSE
768LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000769LQR_LIBS
770LQR_CFLAGS
771LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772LCMS_DELEGATE_FALSE
773LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000774JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000775JP2_DELEGATE_FALSE
776JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778JPEG_DELEGATE_FALSE
779JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000780JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781JBIG_DELEGATE_FALSE
782JBIG_DELEGATE_TRUE
783GVC_DELEGATE_FALSE
784GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000785GVC_LIBS
786GVC_CFLAGS
787GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000788GS_DELEGATE_FALSE
789GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000790FREETYPE_LIBS
cristyf805afb2011-10-03 17:17:37 +0000791FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000792FREETYPE_DELEGATE_FALSE
793FREETYPE_DELEGATE_TRUE
cristyf805afb2011-10-03 17:17:37 +0000794FREETYPE2_LIBS
795FREETYPE2_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000796FONTCONFIG_DELEGATE_FALSE
797FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798FONTCONFIG_LIBS
799FONTCONFIG_CFLAGS
800FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801FPX_DELEGATE_FALSE
802FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803FFTW_LIBS
cristyf805afb2011-10-03 17:17:37 +0000804FFTW_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000805FFTW_DELEGATE_FALSE
806FFTW_DELEGATE_TRUE
cristyf805afb2011-10-03 17:17:37 +0000807FFTW3_LIBS
808FFTW3_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000809DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810DJVU_DELEGATE_FALSE
811DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813DPS_DELEGATE_FALSE
814DPS_DELEGATE_TRUE
815AUTOTRACE_DELEGATE_FALSE
816AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817AUTOTRACE_LIBS
818AUTOTRACE_CFLAGS
819LIB_DL
820ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821ZLIB_DELEGATE_FALSE
822ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823XEXT_LIBS
824X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825X11_DELEGATE_FALSE
826X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827X_EXTRA_LIBS
828X_LIBS
829X_PRE_LIBS
830X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000831XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000832BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833BZLIB_DELEGATE_FALSE
834BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835CCMALLOCDelegate
836UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837HasUMEM_FALSE
838HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839THREAD_LIBS
840GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841WITH_MAGICK_PLUS_PLUS_FALSE
842WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000844MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000845POW_LIB
846LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000847UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000848UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000849UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000850UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000851UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000852UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000853INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000854INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000855UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000856UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000857INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000858INT32_T
859UINT16_T
860INT16_T
861UINT8_T
862INT8_T
863LIBRARY_EXTRA_CPPFLAGS
864MODULE_EXTRA_CPPFLAGS
865LIBSTDCLDFLAGS
866PERL_MAKE_OPTIONS
867QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000868MAINT
869MAINTAINER_MODE_FALSE
870MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871MAGICK_HDRI
872DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000873WITH_LTDL_FALSE
874WITH_LTDL_TRUE
875WITH_MODULES_FALSE
876WITH_MODULES_TRUE
877WITH_SHARED_LIBS_FALSE
878WITH_SHARED_LIBS_TRUE
879LTDLOPEN
880LT_CONFIG_H
881CONVENIENCE_LTDL_FALSE
882CONVENIENCE_LTDL_TRUE
883INSTALL_LTDL_FALSE
884INSTALL_LTDL_TRUE
885ARGZ_H
886sys_symbol_underscore
887LIBADD_DL
888LT_DLPREOPEN
889LIBADD_DLD_LINK
890LIBADD_SHL_LOAD
891LIBADD_DLOPEN
892LT_DLLOADERS
893INCLTDL
894LTDLINCL
895LTDLDEPS
896LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000897LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000898CXXCPP
899OTOOL64
900OTOOL
901LIPO
902NMEDIT
903DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000904MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000905RANLIB
cristyda16f162011-02-19 23:52:17 +0000906ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000907AR
908NM
909ac_ct_DUMPBIN
910DUMPBIN
911LIBTOOL
912OBJDUMP
913DLLTOOL
914AS
cristy3ed852e2009-09-05 21:47:34 +0000915LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000916CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000917CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000918OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000919PTHREAD_CFLAGS
920PTHREAD_LIBS
921PTHREAD_CC
922ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000923WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000924USING_CL_FALSE
925USING_CL_TRUE
926CYGWIN_BUILD_FALSE
927CYGWIN_BUILD_TRUE
928WIN32_NATIVE_BUILD_FALSE
929WIN32_NATIVE_BUILD_TRUE
930WINGDI32_DELEGATE_FALSE
931WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000932GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000933PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000934LN_S
cristy3ed852e2009-09-05 21:47:34 +0000935LD
cristy73bd4a52010-10-05 11:24:23 +0000936FGREP
937SED
938am__fastdepCXX_FALSE
939am__fastdepCXX_TRUE
940CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000941ac_ct_CXX
942CXXFLAGS
943CXX
cristya0b81c32010-01-22 02:54:33 +0000944EGREP
945GREP
946CPP
cristy73bd4a52010-10-05 11:24:23 +0000947am__fastdepCC_FALSE
948am__fastdepCC_TRUE
949CCDEPMODE
950AMDEPBACKSLASH
951AMDEP_FALSE
952AMDEP_TRUE
953am__quote
954am__include
955DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000956OBJEXT
957EXEEXT
958ac_ct_CC
959CPPFLAGS
960LDFLAGS
961CFLAGS
962CC
963DIRSEP
964MAGICK_FILTER_MODULE_PATH
965MAGICK_CONFIGURE_BUILD_PATH
966MAGICK_CONFIGURE_SRC_PATH
967MAGICK_CODER_MODULE_PATH
968MAN_DIR
969INFO_DIR
970PERSISTINCLUDE_DIR
971INCLUDE_DIR
972LIB_DIR
973LOCALSTATE_DIR
974SHAREDSTATE_DIR
975SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000976DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000977DATA_DIR
978LIBEXEC_DIR
979SBIN_DIR
980BIN_DIR
981EXEC_PREFIX_DIR
982PREFIX_DIR
983CONFIG_STATUS_DEPENDENCIES
984MAGICK_LIB_VERSION_NUMBER
985MAGICK_LIB_VERSION_TEXT
986MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000987AM_BACKSLASH
988AM_DEFAULT_VERBOSITY
989am__untar
990am__tar
991AMTAR
992am__leading_dot
993SET_MAKE
994AWK
995mkdir_p
996MKDIR_P
997INSTALL_STRIP_PROGRAM
998STRIP
999install_sh
1000MAKEINFO
1001AUTOHEADER
1002AUTOMAKE
1003AUTOCONF
1004ACLOCAL
1005VERSION
1006PACKAGE
1007CYGPATH_W
1008am__isrc
1009INSTALL_DATA
1010INSTALL_SCRIPT
1011INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001012PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001013PACKAGE_RELEASE_DATE
1014PACKAGE_LIB_VERSION_NUMBER
1015PACKAGE_LIB_VERSION
1016PACKAGE_CHANGE_DATE
1017PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001018PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001019MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001020MAGICK_LIBRARY_VERSION_INFO
1021MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001022MAGICK_LIBRARY_AGE
1023MAGICK_LIBRARY_REVISION
1024MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001025MAGICK_TARGET_OS
1026MAGICK_TARGET_VENDOR
1027MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001028target_os
1029target_vendor
1030target_cpu
1031target
1032host_os
1033host_vendor
1034host_cpu
1035host
1036build_os
1037build_vendor
1038build_cpu
1039build
1040CONFIGURE_ARGS
1041DISTCHECK_CONFIG_FLAGS
1042target_alias
1043host_alias
1044build_alias
1045LIBS
1046ECHO_T
1047ECHO_N
1048ECHO_C
1049DEFS
1050mandir
1051localedir
1052libdir
1053psdir
1054pdfdir
1055dvidir
1056htmldir
1057infodir
1058docdir
1059oldincludedir
1060includedir
1061localstatedir
1062sharedstatedir
1063sysconfdir
1064datadir
1065datarootdir
1066libexecdir
1067sbindir
1068bindir
1069program_transform_name
1070prefix
1071exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001072PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001073PACKAGE_BUGREPORT
1074PACKAGE_STRING
1075PACKAGE_VERSION
1076PACKAGE_TARNAME
1077PACKAGE_NAME
1078PATH_SEPARATOR
1079SHELL'
1080ac_subst_files=''
1081ac_user_opts='
1082enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001083enable_silent_rules
1084enable_dependency_tracking
1085with_gnu_ld
1086with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001087enable_bounds_checking
1088enable_osx_universal_binary
1089with_threads
1090enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001091enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001092enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001093enable_shared
1094enable_static
1095with_pic
1096enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001097with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001098enable_libtool_lock
1099with_included_ltdl
1100with_ltdl_include
1101with_ltdl_lib
1102enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001103with_modules
1104enable_delegate_build
1105enable_deprecated
1106enable_installed
1107enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001108enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001109enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001110enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001111enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001112enable_ccmalloc
1113enable_efence
1114enable_prof
1115enable_gprof
1116enable_gcov
1117with_method_prefix
1118with_quantum_depth
1119with_cache
1120with_frozenpaths
1121with_magick_plus_plus
1122with_perl
1123with_perl_options
1124with_umem
1125with_libstdc
1126with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001127with_x
cristy3ed852e2009-09-05 21:47:34 +00001128with_zlib
1129with_autotrace
1130with_dps
1131with_djvu
cristy430a7312010-01-21 20:44:04 +00001132with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001133with_fftw
1134with_fpx
1135with_fontconfig
1136with_freetype
1137with_gslib
1138with_fontpath
1139with_gs_font_dir
1140with_gvc
1141with_jbig
1142with_jpeg
1143with_jp2
1144with_lcms
cristy71203402010-06-18 13:12:03 +00001145with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001146with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001147with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001148with_openexr
1149with_png
1150with_rsvg
1151with_tiff
cristyb1860752011-03-14 00:27:46 +00001152with_webp
cristy3ed852e2009-09-05 21:47:34 +00001153with_windows_font_dir
1154with_wmf
1155with_xml
1156'
1157 ac_precious_vars='build_alias
1158host_alias
1159target_alias
1160CC
1161CFLAGS
1162LDFLAGS
1163LIBS
1164CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001165CPP
cristy3ed852e2009-09-05 21:47:34 +00001166CXX
1167CXXFLAGS
1168CCC
cristy73bd4a52010-10-05 11:24:23 +00001169PKG_CONFIG
1170CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001171XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001172AUTOTRACE_CFLAGS
1173AUTOTRACE_LIBS
cristyf805afb2011-10-03 17:17:37 +00001174FFTW3_CFLAGS
1175FFTW3_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001176FONTCONFIG_CFLAGS
1177FONTCONFIG_LIBS
cristyf805afb2011-10-03 17:17:37 +00001178FREETYPE2_CFLAGS
1179FREETYPE2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001180GVC_CFLAGS
1181GVC_LIBS
1182LQR_CFLAGS
1183LQR_LIBS
cristyf805afb2011-10-03 17:17:37 +00001184LZMA_CFLAGS
1185LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001186OPENEXR_CFLAGS
1187OPENEXR_LIBS
cristyf805afb2011-10-03 17:17:37 +00001188PNG_CFLAGS
1189PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001190RSVG_CFLAGS
1191RSVG_LIBS
1192CAIRO_SVG_CFLAGS
cristyf805afb2011-10-03 17:17:37 +00001193CAIRO_SVG_LIBS
1194XML2_CFLAGS
1195XML2_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001196
1197
1198# Initialize some variables set by options.
1199ac_init_help=
1200ac_init_version=false
1201ac_unrecognized_opts=
1202ac_unrecognized_sep=
1203# The variables have the same names as the options, with
1204# dashes changed to underlines.
1205cache_file=/dev/null
1206exec_prefix=NONE
1207no_create=
1208no_recursion=
1209prefix=NONE
1210program_prefix=NONE
1211program_suffix=NONE
1212program_transform_name=s,x,x,
1213silent=
1214site=
1215srcdir=
1216verbose=
1217x_includes=NONE
1218x_libraries=NONE
1219
1220# Installation directory options.
1221# These are left unexpanded so users can "make install exec_prefix=/foo"
1222# and all the variables that are supposed to be based on exec_prefix
1223# by default will actually change.
1224# Use braces instead of parens because sh, perl, etc. also accept them.
1225# (The list follows the same order as the GNU Coding Standards.)
1226bindir='${exec_prefix}/bin'
1227sbindir='${exec_prefix}/sbin'
1228libexecdir='${exec_prefix}/libexec'
1229datarootdir='${prefix}/share'
1230datadir='${datarootdir}'
1231sysconfdir='${prefix}/etc'
1232sharedstatedir='${prefix}/com'
1233localstatedir='${prefix}/var'
1234includedir='${prefix}/include'
1235oldincludedir='/usr/include'
1236docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1237infodir='${datarootdir}/info'
1238htmldir='${docdir}'
1239dvidir='${docdir}'
1240pdfdir='${docdir}'
1241psdir='${docdir}'
1242libdir='${exec_prefix}/lib'
1243localedir='${datarootdir}/locale'
1244mandir='${datarootdir}/man'
1245
1246ac_prev=
1247ac_dashdash=
1248for ac_option
1249do
1250 # If the previous option needs an argument, assign it.
1251 if test -n "$ac_prev"; then
1252 eval $ac_prev=\$ac_option
1253 ac_prev=
1254 continue
1255 fi
1256
1257 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001258 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1259 *=) ac_optarg= ;;
1260 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001261 esac
1262
1263 # Accept the important Cygnus configure options, so we can diagnose typos.
1264
1265 case $ac_dashdash$ac_option in
1266 --)
1267 ac_dashdash=yes ;;
1268
1269 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1270 ac_prev=bindir ;;
1271 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1272 bindir=$ac_optarg ;;
1273
1274 -build | --build | --buil | --bui | --bu)
1275 ac_prev=build_alias ;;
1276 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1277 build_alias=$ac_optarg ;;
1278
1279 -cache-file | --cache-file | --cache-fil | --cache-fi \
1280 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1281 ac_prev=cache_file ;;
1282 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1283 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1284 cache_file=$ac_optarg ;;
1285
1286 --config-cache | -C)
1287 cache_file=config.cache ;;
1288
1289 -datadir | --datadir | --datadi | --datad)
1290 ac_prev=datadir ;;
1291 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1292 datadir=$ac_optarg ;;
1293
1294 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1295 | --dataroo | --dataro | --datar)
1296 ac_prev=datarootdir ;;
1297 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1298 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1299 datarootdir=$ac_optarg ;;
1300
1301 -disable-* | --disable-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001305 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310"enable_$ac_useropt"
1311"*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval enable_$ac_useropt=no ;;
1316
1317 -docdir | --docdir | --docdi | --doc | --do)
1318 ac_prev=docdir ;;
1319 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1320 docdir=$ac_optarg ;;
1321
1322 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1323 ac_prev=dvidir ;;
1324 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1325 dvidir=$ac_optarg ;;
1326
1327 -enable-* | --enable-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001331 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1335 *"
1336"enable_$ac_useropt"
1337"*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval enable_$ac_useropt=\$ac_optarg ;;
1342
1343 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1344 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1345 | --exec | --exe | --ex)
1346 ac_prev=exec_prefix ;;
1347 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1348 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1349 | --exec=* | --exe=* | --ex=*)
1350 exec_prefix=$ac_optarg ;;
1351
1352 -gas | --gas | --ga | --g)
1353 # Obsolete; use --with-gas.
1354 with_gas=yes ;;
1355
1356 -help | --help | --hel | --he | -h)
1357 ac_init_help=long ;;
1358 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1359 ac_init_help=recursive ;;
1360 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1361 ac_init_help=short ;;
1362
1363 -host | --host | --hos | --ho)
1364 ac_prev=host_alias ;;
1365 -host=* | --host=* | --hos=* | --ho=*)
1366 host_alias=$ac_optarg ;;
1367
1368 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1369 ac_prev=htmldir ;;
1370 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1371 | --ht=*)
1372 htmldir=$ac_optarg ;;
1373
1374 -includedir | --includedir | --includedi | --included | --include \
1375 | --includ | --inclu | --incl | --inc)
1376 ac_prev=includedir ;;
1377 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1378 | --includ=* | --inclu=* | --incl=* | --inc=*)
1379 includedir=$ac_optarg ;;
1380
1381 -infodir | --infodir | --infodi | --infod | --info | --inf)
1382 ac_prev=infodir ;;
1383 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1384 infodir=$ac_optarg ;;
1385
1386 -libdir | --libdir | --libdi | --libd)
1387 ac_prev=libdir ;;
1388 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1389 libdir=$ac_optarg ;;
1390
1391 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1392 | --libexe | --libex | --libe)
1393 ac_prev=libexecdir ;;
1394 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1395 | --libexe=* | --libex=* | --libe=*)
1396 libexecdir=$ac_optarg ;;
1397
1398 -localedir | --localedir | --localedi | --localed | --locale)
1399 ac_prev=localedir ;;
1400 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1401 localedir=$ac_optarg ;;
1402
1403 -localstatedir | --localstatedir | --localstatedi | --localstated \
1404 | --localstate | --localstat | --localsta | --localst | --locals)
1405 ac_prev=localstatedir ;;
1406 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1407 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1408 localstatedir=$ac_optarg ;;
1409
1410 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1411 ac_prev=mandir ;;
1412 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1413 mandir=$ac_optarg ;;
1414
1415 -nfp | --nfp | --nf)
1416 # Obsolete; use --without-fp.
1417 with_fp=no ;;
1418
1419 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1420 | --no-cr | --no-c | -n)
1421 no_create=yes ;;
1422
1423 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1424 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1425 no_recursion=yes ;;
1426
1427 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1428 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1429 | --oldin | --oldi | --old | --ol | --o)
1430 ac_prev=oldincludedir ;;
1431 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1432 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1433 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1434 oldincludedir=$ac_optarg ;;
1435
1436 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1437 ac_prev=prefix ;;
1438 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1439 prefix=$ac_optarg ;;
1440
1441 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1442 | --program-pre | --program-pr | --program-p)
1443 ac_prev=program_prefix ;;
1444 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1445 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1446 program_prefix=$ac_optarg ;;
1447
1448 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1449 | --program-suf | --program-su | --program-s)
1450 ac_prev=program_suffix ;;
1451 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1452 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1453 program_suffix=$ac_optarg ;;
1454
1455 -program-transform-name | --program-transform-name \
1456 | --program-transform-nam | --program-transform-na \
1457 | --program-transform-n | --program-transform- \
1458 | --program-transform | --program-transfor \
1459 | --program-transfo | --program-transf \
1460 | --program-trans | --program-tran \
1461 | --progr-tra | --program-tr | --program-t)
1462 ac_prev=program_transform_name ;;
1463 -program-transform-name=* | --program-transform-name=* \
1464 | --program-transform-nam=* | --program-transform-na=* \
1465 | --program-transform-n=* | --program-transform-=* \
1466 | --program-transform=* | --program-transfor=* \
1467 | --program-transfo=* | --program-transf=* \
1468 | --program-trans=* | --program-tran=* \
1469 | --progr-tra=* | --program-tr=* | --program-t=*)
1470 program_transform_name=$ac_optarg ;;
1471
1472 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1473 ac_prev=pdfdir ;;
1474 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1475 pdfdir=$ac_optarg ;;
1476
1477 -psdir | --psdir | --psdi | --psd | --ps)
1478 ac_prev=psdir ;;
1479 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1480 psdir=$ac_optarg ;;
1481
1482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483 | -silent | --silent | --silen | --sile | --sil)
1484 silent=yes ;;
1485
1486 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1487 ac_prev=sbindir ;;
1488 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1489 | --sbi=* | --sb=*)
1490 sbindir=$ac_optarg ;;
1491
1492 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1493 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1494 | --sharedst | --shareds | --shared | --share | --shar \
1495 | --sha | --sh)
1496 ac_prev=sharedstatedir ;;
1497 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1498 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1499 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1500 | --sha=* | --sh=*)
1501 sharedstatedir=$ac_optarg ;;
1502
1503 -site | --site | --sit)
1504 ac_prev=site ;;
1505 -site=* | --site=* | --sit=*)
1506 site=$ac_optarg ;;
1507
1508 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1509 ac_prev=srcdir ;;
1510 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1511 srcdir=$ac_optarg ;;
1512
1513 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1514 | --syscon | --sysco | --sysc | --sys | --sy)
1515 ac_prev=sysconfdir ;;
1516 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1517 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1518 sysconfdir=$ac_optarg ;;
1519
1520 -target | --target | --targe | --targ | --tar | --ta | --t)
1521 ac_prev=target_alias ;;
1522 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1523 target_alias=$ac_optarg ;;
1524
1525 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1526 verbose=yes ;;
1527
1528 -version | --version | --versio | --versi | --vers | -V)
1529 ac_init_version=: ;;
1530
1531 -with-* | --with-*)
1532 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1533 # Reject names that are not valid shell variable names.
1534 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001535 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001536 ac_useropt_orig=$ac_useropt
1537 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1538 case $ac_user_opts in
1539 *"
1540"with_$ac_useropt"
1541"*) ;;
1542 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1543 ac_unrecognized_sep=', ';;
1544 esac
1545 eval with_$ac_useropt=\$ac_optarg ;;
1546
1547 -without-* | --without-*)
1548 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1549 # Reject names that are not valid shell variable names.
1550 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001551 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001552 ac_useropt_orig=$ac_useropt
1553 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554 case $ac_user_opts in
1555 *"
1556"with_$ac_useropt"
1557"*) ;;
1558 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1559 ac_unrecognized_sep=', ';;
1560 esac
1561 eval with_$ac_useropt=no ;;
1562
1563 --x)
1564 # Obsolete; use --with-x.
1565 with_x=yes ;;
1566
1567 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1568 | --x-incl | --x-inc | --x-in | --x-i)
1569 ac_prev=x_includes ;;
1570 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1571 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1572 x_includes=$ac_optarg ;;
1573
1574 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1575 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1576 ac_prev=x_libraries ;;
1577 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1578 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1579 x_libraries=$ac_optarg ;;
1580
cristy98dddb52010-11-04 00:30:15 +00001581 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1582Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001583 ;;
1584
1585 *=*)
1586 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1587 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001588 case $ac_envvar in #(
1589 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001590 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001591 esac
cristy3ed852e2009-09-05 21:47:34 +00001592 eval $ac_envvar=\$ac_optarg
1593 export $ac_envvar ;;
1594
1595 *)
1596 # FIXME: should be removed in autoconf 3.0.
1597 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1598 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1599 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001600 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001601 ;;
1602
1603 esac
1604done
1605
1606if test -n "$ac_prev"; then
1607 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001608 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001609fi
1610
1611if test -n "$ac_unrecognized_opts"; then
1612 case $enable_option_checking in
1613 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001614 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001615 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1616 esac
1617fi
1618
1619# Check all directory arguments for consistency.
1620for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1621 datadir sysconfdir sharedstatedir localstatedir includedir \
1622 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1623 libdir localedir mandir
1624do
1625 eval ac_val=\$$ac_var
1626 # Remove trailing slashes.
1627 case $ac_val in
1628 */ )
1629 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1630 eval $ac_var=\$ac_val;;
1631 esac
1632 # Be sure to have absolute directory names.
1633 case $ac_val in
1634 [\\/$]* | ?:[\\/]* ) continue;;
1635 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1636 esac
cristy98dddb52010-11-04 00:30:15 +00001637 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001638done
1639
1640# There might be people who depend on the old broken behavior: `$host'
1641# used to hold the argument of --host etc.
1642# FIXME: To remove some day.
1643build=$build_alias
1644host=$host_alias
1645target=$target_alias
1646
1647# FIXME: To remove some day.
1648if test "x$host_alias" != x; then
1649 if test "x$build_alias" = x; then
1650 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001651 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1652 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001653 elif test "x$build_alias" != "x$host_alias"; then
1654 cross_compiling=yes
1655 fi
1656fi
1657
1658ac_tool_prefix=
1659test -n "$host_alias" && ac_tool_prefix=$host_alias-
1660
1661test "$silent" = yes && exec 6>/dev/null
1662
1663
1664ac_pwd=`pwd` && test -n "$ac_pwd" &&
1665ac_ls_di=`ls -di .` &&
1666ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001667 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001668test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001669 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001670
1671
1672# Find the source files, if location was not specified.
1673if test -z "$srcdir"; then
1674 ac_srcdir_defaulted=yes
1675 # Try the directory containing this script, then the parent directory.
1676 ac_confdir=`$as_dirname -- "$as_myself" ||
1677$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1678 X"$as_myself" : 'X\(//\)[^/]' \| \
1679 X"$as_myself" : 'X\(//\)$' \| \
1680 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1681$as_echo X"$as_myself" |
1682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1683 s//\1/
1684 q
1685 }
1686 /^X\(\/\/\)[^/].*/{
1687 s//\1/
1688 q
1689 }
1690 /^X\(\/\/\)$/{
1691 s//\1/
1692 q
1693 }
1694 /^X\(\/\).*/{
1695 s//\1/
1696 q
1697 }
1698 s/.*/./; q'`
1699 srcdir=$ac_confdir
1700 if test ! -r "$srcdir/$ac_unique_file"; then
1701 srcdir=..
1702 fi
1703else
1704 ac_srcdir_defaulted=no
1705fi
1706if test ! -r "$srcdir/$ac_unique_file"; then
1707 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001708 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001709fi
1710ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1711ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001712 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001713 pwd)`
1714# When building in place, set srcdir=.
1715if test "$ac_abs_confdir" = "$ac_pwd"; then
1716 srcdir=.
1717fi
1718# Remove unnecessary trailing slashes from srcdir.
1719# Double slashes in file names in object file debugging info
1720# mess up M-x gdb in Emacs.
1721case $srcdir in
1722*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1723esac
1724for ac_var in $ac_precious_vars; do
1725 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1726 eval ac_env_${ac_var}_value=\$${ac_var}
1727 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1728 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1729done
1730
1731#
1732# Report the --help message.
1733#
1734if test "$ac_init_help" = "long"; then
1735 # Omit some internal or obsolete options to make the list less imposing.
1736 # This message is too long to be a string in the A/UX 3.1 sh.
1737 cat <<_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00001738\`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001739
1740Usage: $0 [OPTION]... [VAR=VALUE]...
1741
1742To assign environment variables (e.g., CC, CFLAGS...), specify them as
1743VAR=VALUE. See below for descriptions of some of the useful variables.
1744
1745Defaults for the options are specified in brackets.
1746
1747Configuration:
1748 -h, --help display this help and exit
1749 --help=short display options specific to this package
1750 --help=recursive display the short help of all the included packages
1751 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001752 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001753 --cache-file=FILE cache test results in FILE [disabled]
1754 -C, --config-cache alias for \`--cache-file=config.cache'
1755 -n, --no-create do not create output files
1756 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1757
1758Installation directories:
1759 --prefix=PREFIX install architecture-independent files in PREFIX
1760 [$ac_default_prefix]
1761 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1762 [PREFIX]
1763
1764By default, \`make install' will install all the files in
1765\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1766an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1767for instance \`--prefix=\$HOME'.
1768
1769For better control, use the options below.
1770
1771Fine tuning of the installation directories:
1772 --bindir=DIR user executables [EPREFIX/bin]
1773 --sbindir=DIR system admin executables [EPREFIX/sbin]
1774 --libexecdir=DIR program executables [EPREFIX/libexec]
1775 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1776 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1777 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1778 --libdir=DIR object code libraries [EPREFIX/lib]
1779 --includedir=DIR C header files [PREFIX/include]
1780 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1781 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1782 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1783 --infodir=DIR info documentation [DATAROOTDIR/info]
1784 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1785 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001786 --docdir=DIR documentation root
cristy4c08aed2011-07-01 19:47:50 +00001787 [DATAROOTDIR/doc/ImageMagick-7.0.0]
cristy3ed852e2009-09-05 21:47:34 +00001788 --htmldir=DIR html documentation [DOCDIR]
1789 --dvidir=DIR dvi documentation [DOCDIR]
1790 --pdfdir=DIR pdf documentation [DOCDIR]
1791 --psdir=DIR ps documentation [DOCDIR]
1792_ACEOF
1793
1794 cat <<\_ACEOF
1795
cristy73bd4a52010-10-05 11:24:23 +00001796Program names:
1797 --program-prefix=PREFIX prepend PREFIX to installed program names
1798 --program-suffix=SUFFIX append SUFFIX to installed program names
1799 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1800
cristy3ed852e2009-09-05 21:47:34 +00001801X features:
1802 --x-includes=DIR X include files are in DIR
1803 --x-libraries=DIR X library files are in DIR
1804
1805System types:
1806 --build=BUILD configure for building on BUILD [guessed]
1807 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1808 --target=TARGET configure for building compilers for TARGET [HOST]
1809_ACEOF
1810fi
1811
1812if test -n "$ac_init_help"; then
1813 case $ac_init_help in
cristy4c08aed2011-07-01 19:47:50 +00001814 short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
cristy3ed852e2009-09-05 21:47:34 +00001815 esac
1816 cat <<\_ACEOF
1817
1818Optional Features:
1819 --disable-option-checking ignore unrecognized --enable/--with options
1820 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1821 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001822 --enable-silent-rules less verbose build output (undo: `make V=1')
1823 --disable-silent-rules verbose build output (undo: `make V=0')
1824 --disable-dependency-tracking speeds up one-time build
1825 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001826 --bounds-checking enable run-time bounds-checking
1827 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001828 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001829 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001830 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001831 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001832 --enable-shared[=PKGS] build shared libraries [default=yes]
1833 --enable-static[=PKGS] build static libraries [default=yes]
1834 --enable-fast-install[=PKGS]
1835 optimize for fast installation [default=yes]
1836 --disable-libtool-lock avoid locking (might break parallel builds)
1837 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001838 --enable-delegate-build look for delegate libraries in build directory
1839 --disable-deprecated exclude deprecated methods in MagickCore and
1840 MagickWand API's
1841 --disable-installed Formally install ImageMagick under PREFIX
1842 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001843 --enable-zero-configuration
1844 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001845 zero-configuration ImageMagick
1846 --enable-hdri accurately represent the wide range of intensity
1847 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001848 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001849 --enable-maintainer-mode enable make rules and dependencies not useful
1850 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001851 --enable-ccmalloc enable 'ccmalloc' memory debug support
1852 --enable-efence enable 'efence' memory debug support
1853 --enable-prof enable 'prof' profiling support
1854 --enable-gprof enable 'gprof' profiling support
1855 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001856 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001857
1858Optional Packages:
1859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001861 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1862 --with-dmalloc use dmalloc, as in
1863 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001864 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001865 --with-pic try to use only PIC/non-PIC objects [default=use
1866 both]
cristyda16f162011-02-19 23:52:17 +00001867 --with-sysroot=DIR Search for dependent libraries within DIR
1868 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001869 --with-included-ltdl use the GNU ltdl sources included here
1870 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1871 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001872 --with-modules enable building dynamically loadable modules
1873 --with-method-prefix=PREFIX
1874 prefix MagickCore API methods
1875 --with-quantum-depth=DEPTH
1876 number of bits in a pixel quantum (default 16)
1877 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1878 memory)
1879 --with-frozenpaths freeze delegate paths
1880 --without-magick-plus-plus
1881 disable build/install of Magick++
1882 --with-perl enable build/install of PerlMagick
1883 --with-perl-options=OPTIONS
1884 options to pass on command-line when generating
1885 PerlMagick's build file
1886 --with-umem enable umem memory allocation library support
1887 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1888 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001889 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001890 --without-zlib disable ZLIB support
1891 --with-autotrace enable autotrace support
1892 --without-dps disable Display Postscript support
1893 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001894 --with-dejavu-font-dir=DIR
1895 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001896 --without-fftw disable FFTW support
1897 --without-fpx disable FlashPIX support
1898 --without-fontconfig disable fontconfig support
cristyf805afb2011-10-03 17:17:37 +00001899 --without-freetype disable FREETYPE support
cristy3ed852e2009-09-05 21:47:34 +00001900 --without-gslib enable Ghostscript library support
1901 --with-fontpath=DIR prepend to default font search path
1902 --with-gs-font-dir=DIR Ghostscript font directory
1903 --without-gvc disable GVC support
1904 --without-jbig disable JBIG support
1905 --without-jpeg disable JPEG support
1906 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001907 --without-lcms disable lcms (v1.1X) support
1908 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001909 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001910 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001911 --without-openexr disable OpenEXR support
1912 --without-png disable PNG support
1913 --without-rsvg disable RSVG support
1914 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001915 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001916 --with-windows-font-dir=DIR
1917 directory containing MS-Windows fonts
1918 --without-wmf disable WMF support
1919 --without-xml disable XML support
1920
1921Some influential environment variables:
1922 CC C compiler command
1923 CFLAGS C compiler flags
1924 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1925 nonstandard directory <lib dir>
1926 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001927 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001928 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001929 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001930 CXX C++ compiler command
1931 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001932 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001933 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001934 XMKMF Path to xmkmf, Makefile generator for X Window System
1935 AUTOTRACE_CFLAGS
1936 C compiler flags for AUTOTRACE, overriding pkg-config
1937 AUTOTRACE_LIBS
1938 linker flags for AUTOTRACE, overriding pkg-config
cristyf805afb2011-10-03 17:17:37 +00001939 FFTW3_CFLAGS
1940 C compiler flags for FFTW3, overriding pkg-config
1941 FFTW3_LIBS linker flags for FFTW3, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001942 FONTCONFIG_CFLAGS
1943 C compiler flags for FONTCONFIG, overriding pkg-config
1944 FONTCONFIG_LIBS
1945 linker flags for FONTCONFIG, overriding pkg-config
cristyf805afb2011-10-03 17:17:37 +00001946 FREETYPE2_CFLAGS
1947 C compiler flags for FREETYPE2, overriding pkg-config
1948 FREETYPE2_LIBS
1949 linker flags for FREETYPE2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001950 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1951 GVC_LIBS linker flags for GVC, overriding pkg-config
1952 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1953 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyf805afb2011-10-03 17:17:37 +00001954 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1955 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001956 OPENEXR_CFLAGS
1957 C compiler flags for OPENEXR, overriding pkg-config
1958 OPENEXR_LIBS
1959 linker flags for OPENEXR, overriding pkg-config
cristyf805afb2011-10-03 17:17:37 +00001960 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
1961 PNG_LIBS linker flags for PNG, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001962 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1963 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1964 CAIRO_SVG_CFLAGS
1965 C compiler flags for CAIRO_SVG, overriding pkg-config
1966 CAIRO_SVG_LIBS
1967 linker flags for CAIRO_SVG, overriding pkg-config
cristyf805afb2011-10-03 17:17:37 +00001968 XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
1969 XML2_LIBS linker flags for XML2, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001970
1971Use these variables to override the choices made by `configure' or to help
1972it to find libraries and programs with nonstandard names/locations.
1973
1974Report bugs to <http://www.imagemagick.org>.
1975_ACEOF
1976ac_status=$?
1977fi
1978
1979if test "$ac_init_help" = "recursive"; then
1980 # If there are subdirs, report their specific --help.
1981 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1982 test -d "$ac_dir" ||
1983 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1984 continue
1985 ac_builddir=.
1986
1987case "$ac_dir" in
1988.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1989*)
1990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1991 # A ".." for each directory in $ac_dir_suffix.
1992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1993 case $ac_top_builddir_sub in
1994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1996 esac ;;
1997esac
1998ac_abs_top_builddir=$ac_pwd
1999ac_abs_builddir=$ac_pwd$ac_dir_suffix
2000# for backward compatibility:
2001ac_top_builddir=$ac_top_build_prefix
2002
2003case $srcdir in
2004 .) # We are building in place.
2005 ac_srcdir=.
2006 ac_top_srcdir=$ac_top_builddir_sub
2007 ac_abs_top_srcdir=$ac_pwd ;;
2008 [\\/]* | ?:[\\/]* ) # Absolute name.
2009 ac_srcdir=$srcdir$ac_dir_suffix;
2010 ac_top_srcdir=$srcdir
2011 ac_abs_top_srcdir=$srcdir ;;
2012 *) # Relative name.
2013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2014 ac_top_srcdir=$ac_top_build_prefix$srcdir
2015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2016esac
2017ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2018
2019 cd "$ac_dir" || { ac_status=$?; continue; }
2020 # Check for guested configure.
2021 if test -f "$ac_srcdir/configure.gnu"; then
2022 echo &&
2023 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2024 elif test -f "$ac_srcdir/configure"; then
2025 echo &&
2026 $SHELL "$ac_srcdir/configure" --help=recursive
2027 else
2028 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2029 fi || ac_status=$?
2030 cd "$ac_pwd" || { ac_status=$?; break; }
2031 done
2032fi
2033
2034test -n "$ac_init_help" && exit $ac_status
2035if $ac_init_version; then
2036 cat <<\_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00002037ImageMagick configure 7.0.0
cristyda16f162011-02-19 23:52:17 +00002038generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002039
cristy98dddb52010-11-04 00:30:15 +00002040Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002041This configure script is free software; the Free Software Foundation
2042gives unlimited permission to copy, distribute and modify it.
2043_ACEOF
2044 exit
2045fi
cristy8b350f62009-11-15 23:12:43 +00002046
2047## ------------------------ ##
2048## Autoconf initialization. ##
2049## ------------------------ ##
2050
2051# ac_fn_c_try_compile LINENO
2052# --------------------------
2053# Try to compile conftest.$ac_ext, and return whether this succeeded.
2054ac_fn_c_try_compile ()
2055{
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 rm -f conftest.$ac_objext
2058 if { { ac_try="$ac_compile"
2059case "(($ac_try" in
2060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061 *) ac_try_echo=$ac_try;;
2062esac
2063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064$as_echo "$ac_try_echo"; } >&5
2065 (eval "$ac_compile") 2>conftest.err
2066 ac_status=$?
2067 if test -s conftest.err; then
2068 grep -v '^ *+' conftest.err >conftest.er1
2069 cat conftest.er1 >&5
2070 mv -f conftest.er1 conftest.err
2071 fi
2072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073 test $ac_status = 0; } && {
2074 test -z "$ac_c_werror_flag" ||
2075 test ! -s conftest.err
2076 } && test -s conftest.$ac_objext; then :
2077 ac_retval=0
2078else
2079 $as_echo "$as_me: failed program was:" >&5
2080sed 's/^/| /' conftest.$ac_ext >&5
2081
2082 ac_retval=1
2083fi
cristyda16f162011-02-19 23:52:17 +00002084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002085 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002086
2087} # ac_fn_c_try_compile
2088
cristy95646052009-11-28 23:05:30 +00002089# ac_fn_c_try_cpp LINENO
2090# ----------------------
2091# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2092ac_fn_c_try_cpp ()
2093{
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if { { ac_try="$ac_cpp conftest.$ac_ext"
2096case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099esac
2100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101$as_echo "$ac_try_echo"; } >&5
2102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2103 ac_status=$?
2104 if test -s conftest.err; then
2105 grep -v '^ *+' conftest.err >conftest.er1
2106 cat conftest.er1 >&5
2107 mv -f conftest.er1 conftest.err
2108 fi
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002110 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2112 test ! -s conftest.err
2113 }; then :
2114 ac_retval=0
2115else
2116 $as_echo "$as_me: failed program was:" >&5
2117sed 's/^/| /' conftest.$ac_ext >&5
2118
2119 ac_retval=1
2120fi
cristyda16f162011-02-19 23:52:17 +00002121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002122 as_fn_set_status $ac_retval
2123
2124} # ac_fn_c_try_cpp
2125
cristy8b350f62009-11-15 23:12:43 +00002126# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2127# -------------------------------------------------------
2128# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2129# the include files in INCLUDES and setting the cache variable VAR
2130# accordingly.
2131ac_fn_c_check_header_mongrel ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002134 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002137if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002138 $as_echo_n "(cached) " >&6
2139fi
2140eval ac_res=\$$3
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142$as_echo "$ac_res" >&6; }
2143else
2144 # Is the header compilable?
2145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2146$as_echo_n "checking $2 usability... " >&6; }
2147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h. */
2149$4
2150#include <$2>
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_header_compiler=yes
2154else
2155 ac_header_compiler=no
2156fi
2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2159$as_echo "$ac_header_compiler" >&6; }
2160
2161# Is the header present?
2162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2163$as_echo_n "checking $2 presence... " >&6; }
2164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h. */
2166#include <$2>
2167_ACEOF
2168if ac_fn_c_try_cpp "$LINENO"; then :
2169 ac_header_preproc=yes
2170else
2171 ac_header_preproc=no
2172fi
cristyda16f162011-02-19 23:52:17 +00002173rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2175$as_echo "$ac_header_preproc" >&6; }
2176
2177# So? What about this header?
2178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2179 yes:no: )
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2181$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2184 ;;
2185 no:yes:* )
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2187$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2189$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2191$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2193$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2195$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002196( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002197## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002198## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002199 ) | sed "s/^/$as_me: WARNING: /" >&2
2200 ;;
2201esac
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002204if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002205 $as_echo_n "(cached) " >&6
2206else
2207 eval "$3=\$ac_header_compiler"
2208fi
2209eval ac_res=\$$3
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211$as_echo "$ac_res" >&6; }
2212fi
cristyda16f162011-02-19 23:52:17 +00002213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002214
2215} # ac_fn_c_check_header_mongrel
2216
2217# ac_fn_c_try_run LINENO
2218# ----------------------
2219# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2220# that executables *can* be run.
2221ac_fn_c_try_run ()
2222{
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 if { { ac_try="$ac_link"
2225case "(($ac_try" in
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2228esac
2229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2230$as_echo "$ac_try_echo"; } >&5
2231 (eval "$ac_link") 2>&5
2232 ac_status=$?
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2235 { { case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238esac
2239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240$as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_try") 2>&5
2242 ac_status=$?
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; }; }; then :
2245 ac_retval=0
2246else
2247 $as_echo "$as_me: program exited with status $ac_status" >&5
2248 $as_echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 ac_retval=$ac_status
2252fi
2253 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002255 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002256
2257} # ac_fn_c_try_run
2258
2259# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2260# -------------------------------------------------------
2261# Tests whether HEADER exists and can be compiled using the include files in
2262# INCLUDES, setting the cache variable VAR accordingly.
2263ac_fn_c_check_header_compile ()
2264{
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2267$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002268if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002269 $as_echo_n "(cached) " >&6
2270else
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272/* end confdefs.h. */
2273$4
2274#include <$2>
2275_ACEOF
2276if ac_fn_c_try_compile "$LINENO"; then :
2277 eval "$3=yes"
2278else
2279 eval "$3=no"
2280fi
2281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282fi
2283eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002287
2288} # ac_fn_c_check_header_compile
2289
cristya0b81c32010-01-22 02:54:33 +00002290# ac_fn_cxx_try_compile LINENO
2291# ----------------------------
2292# Try to compile conftest.$ac_ext, and return whether this succeeded.
2293ac_fn_cxx_try_compile ()
2294{
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 rm -f conftest.$ac_objext
2297 if { { ac_try="$ac_compile"
2298case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301esac
2302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303$as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_compile") 2>conftest.err
2305 ac_status=$?
2306 if test -s conftest.err; then
2307 grep -v '^ *+' conftest.err >conftest.er1
2308 cat conftest.er1 >&5
2309 mv -f conftest.er1 conftest.err
2310 fi
2311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2312 test $ac_status = 0; } && {
2313 test -z "$ac_cxx_werror_flag" ||
2314 test ! -s conftest.err
2315 } && test -s conftest.$ac_objext; then :
2316 ac_retval=0
2317else
2318 $as_echo "$as_me: failed program was:" >&5
2319sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 ac_retval=1
2322fi
cristyda16f162011-02-19 23:52:17 +00002323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002324 as_fn_set_status $ac_retval
2325
2326} # ac_fn_cxx_try_compile
2327
cristy8b350f62009-11-15 23:12:43 +00002328# ac_fn_c_try_link LINENO
2329# -----------------------
2330# Try to link conftest.$ac_ext, and return whether this succeeded.
2331ac_fn_c_try_link ()
2332{
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 rm -f conftest.$ac_objext conftest$ac_exeext
2335 if { { ac_try="$ac_link"
2336case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339esac
2340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2341$as_echo "$ac_try_echo"; } >&5
2342 (eval "$ac_link") 2>conftest.err
2343 ac_status=$?
2344 if test -s conftest.err; then
2345 grep -v '^ *+' conftest.err >conftest.er1
2346 cat conftest.er1 >&5
2347 mv -f conftest.er1 conftest.err
2348 fi
2349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2350 test $ac_status = 0; } && {
2351 test -z "$ac_c_werror_flag" ||
2352 test ! -s conftest.err
2353 } && test -s conftest$ac_exeext && {
2354 test "$cross_compiling" = yes ||
2355 $as_test_x conftest$ac_exeext
2356 }; then :
2357 ac_retval=0
2358else
2359 $as_echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 ac_retval=1
2363fi
2364 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2365 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2366 # interfere with the next link command; also delete a directory that is
2367 # left behind by Apple's compiler. We do this before executing the actions.
2368 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002370 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002371
2372} # ac_fn_c_try_link
2373
cristy73bd4a52010-10-05 11:24:23 +00002374# ac_fn_c_check_func LINENO FUNC VAR
2375# ----------------------------------
2376# Tests whether FUNC exists, setting the cache variable VAR accordingly
2377ac_fn_c_check_func ()
2378{
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002382if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002383 $as_echo_n "(cached) " >&6
2384else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386/* end confdefs.h. */
2387/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2389#define $2 innocuous_$2
2390
2391/* System header to define __stub macros and hopefully few prototypes,
2392 which can conflict with char $2 (); below.
2393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2394 <limits.h> exists even on freestanding compilers. */
2395
2396#ifdef __STDC__
2397# include <limits.h>
2398#else
2399# include <assert.h>
2400#endif
2401
2402#undef $2
2403
2404/* Override any GCC internal prototype to avoid an error.
2405 Use char because int might match the return type of a GCC
2406 builtin and then its argument prototype would still apply. */
2407#ifdef __cplusplus
2408extern "C"
2409#endif
2410char $2 ();
2411/* The GNU C library defines this for functions which it implements
2412 to always fail with ENOSYS. Some functions are actually named
2413 something starting with __ and the normal name is an alias. */
2414#if defined __stub_$2 || defined __stub___$2
2415choke me
2416#endif
2417
2418int
2419main ()
2420{
2421return $2 ();
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426if ac_fn_c_try_link "$LINENO"; then :
2427 eval "$3=yes"
2428else
2429 eval "$3=no"
2430fi
2431rm -f core conftest.err conftest.$ac_objext \
2432 conftest$ac_exeext conftest.$ac_ext
2433fi
2434eval ac_res=\$$3
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002438
2439} # ac_fn_c_check_func
2440
2441# ac_fn_cxx_try_cpp LINENO
2442# ------------------------
2443# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2444ac_fn_cxx_try_cpp ()
2445{
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 if { { ac_try="$ac_cpp conftest.$ac_ext"
2448case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451esac
2452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453$as_echo "$ac_try_echo"; } >&5
2454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2455 ac_status=$?
2456 if test -s conftest.err; then
2457 grep -v '^ *+' conftest.err >conftest.er1
2458 cat conftest.er1 >&5
2459 mv -f conftest.er1 conftest.err
2460 fi
2461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002462 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002463 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2464 test ! -s conftest.err
2465 }; then :
2466 ac_retval=0
2467else
2468 $as_echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 ac_retval=1
2472fi
cristyda16f162011-02-19 23:52:17 +00002473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002474 as_fn_set_status $ac_retval
2475
2476} # ac_fn_cxx_try_cpp
2477
2478# ac_fn_cxx_try_link LINENO
2479# -------------------------
2480# Try to link conftest.$ac_ext, and return whether this succeeded.
2481ac_fn_cxx_try_link ()
2482{
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 rm -f conftest.$ac_objext conftest$ac_exeext
2485 if { { ac_try="$ac_link"
2486case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491$as_echo "$ac_try_echo"; } >&5
2492 (eval "$ac_link") 2>conftest.err
2493 ac_status=$?
2494 if test -s conftest.err; then
2495 grep -v '^ *+' conftest.err >conftest.er1
2496 cat conftest.er1 >&5
2497 mv -f conftest.er1 conftest.err
2498 fi
2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500 test $ac_status = 0; } && {
2501 test -z "$ac_cxx_werror_flag" ||
2502 test ! -s conftest.err
2503 } && test -s conftest$ac_exeext && {
2504 test "$cross_compiling" = yes ||
2505 $as_test_x conftest$ac_exeext
2506 }; then :
2507 ac_retval=0
2508else
2509 $as_echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 ac_retval=1
2513fi
2514 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2515 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2516 # interfere with the next link command; also delete a directory that is
2517 # left behind by Apple's compiler. We do this before executing the actions.
2518 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002520 as_fn_set_status $ac_retval
2521
2522} # ac_fn_cxx_try_link
2523
cristy98dddb52010-11-04 00:30:15 +00002524# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2525# ---------------------------------------------
2526# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2527# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002528ac_fn_c_check_decl ()
2529{
2530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002531 as_decl_name=`echo $2|sed 's/ *(.*//'`
2532 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2534$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002535if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002536 $as_echo_n "(cached) " >&6
2537else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539/* end confdefs.h. */
2540$4
2541int
2542main ()
2543{
cristy98dddb52010-11-04 00:30:15 +00002544#ifndef $as_decl_name
2545#ifdef __cplusplus
2546 (void) $as_decl_use;
2547#else
2548 (void) $as_decl_name;
2549#endif
cristy73bd4a52010-10-05 11:24:23 +00002550#endif
2551
2552 ;
2553 return 0;
2554}
2555_ACEOF
2556if ac_fn_c_try_compile "$LINENO"; then :
2557 eval "$3=yes"
2558else
2559 eval "$3=no"
2560fi
2561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562fi
2563eval ac_res=\$$3
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002567
2568} # ac_fn_c_check_decl
2569
cristy8b350f62009-11-15 23:12:43 +00002570# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2571# -------------------------------------------
2572# Tests whether TYPE exists after having included INCLUDES, setting cache
2573# variable VAR accordingly.
2574ac_fn_c_check_type ()
2575{
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002579if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002580 $as_echo_n "(cached) " >&6
2581else
2582 eval "$3=no"
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584/* end confdefs.h. */
2585$4
2586int
2587main ()
2588{
2589if (sizeof ($2))
2590 return 0;
2591 ;
2592 return 0;
2593}
2594_ACEOF
2595if ac_fn_c_try_compile "$LINENO"; then :
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$4
2599int
2600main ()
2601{
2602if (sizeof (($2)))
2603 return 0;
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608if ac_fn_c_try_compile "$LINENO"; then :
2609
2610else
2611 eval "$3=yes"
2612fi
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616fi
2617eval ac_res=\$$3
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002621
2622} # ac_fn_c_check_type
2623
cristy92703d82010-04-26 00:18:18 +00002624# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2625# ----------------------------------------------------
2626# Tries to find if the field MEMBER exists in type AGGR, after including
2627# INCLUDES, setting cache variable VAR accordingly.
2628ac_fn_c_check_member ()
2629{
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2632$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002633if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002634 $as_echo_n "(cached) " >&6
2635else
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637/* end confdefs.h. */
2638$5
2639int
2640main ()
2641{
2642static $2 ac_aggr;
2643if (ac_aggr.$3)
2644return 0;
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649if ac_fn_c_try_compile "$LINENO"; then :
2650 eval "$4=yes"
2651else
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653/* end confdefs.h. */
2654$5
2655int
2656main ()
2657{
2658static $2 ac_aggr;
2659if (sizeof ac_aggr.$3)
2660return 0;
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665if ac_fn_c_try_compile "$LINENO"; then :
2666 eval "$4=yes"
2667else
2668 eval "$4=no"
2669fi
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673fi
2674eval ac_res=\$$4
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002678
2679} # ac_fn_c_check_member
2680
cristy501c8042011-05-26 17:46:28 +00002681# ac_fn_c_find_intX_t LINENO BITS VAR
2682# -----------------------------------
2683# Finds a signed integer type with width BITS, setting cache variable VAR
2684# accordingly.
2685ac_fn_c_find_intX_t ()
2686{
2687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2689$as_echo_n "checking for int$2_t... " >&6; }
2690if eval \${$3+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692else
2693 eval "$3=no"
2694 # Order is important - never check a type that is potentially smaller
2695 # than half of the expected target width.
2696 for ac_type in int$2_t 'int' 'long int' \
2697 'long long int' 'short int' 'signed char'; do
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699/* end confdefs.h. */
2700$ac_includes_default
2701 enum { N = $2 / 2 - 1 };
2702int
2703main ()
2704{
2705static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2706test_array [0] = 0
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712if ac_fn_c_try_compile "$LINENO"; then :
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714/* end confdefs.h. */
2715$ac_includes_default
2716 enum { N = $2 / 2 - 1 };
2717int
2718main ()
2719{
2720static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2721 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2722test_array [0] = 0
2723
2724 ;
2725 return 0;
2726}
2727_ACEOF
2728if ac_fn_c_try_compile "$LINENO"; then :
2729
2730else
2731 case $ac_type in #(
2732 int$2_t) :
2733 eval "$3=yes" ;; #(
2734 *) :
2735 eval "$3=\$ac_type" ;;
2736esac
2737fi
2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739fi
2740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 if eval test \"x\$"$3"\" = x"no"; then :
2742
2743else
2744 break
2745fi
2746 done
2747fi
2748eval ac_res=\$$3
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2750$as_echo "$ac_res" >&6; }
2751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752
2753} # ac_fn_c_find_intX_t
2754
2755# ac_fn_c_find_uintX_t LINENO BITS VAR
2756# ------------------------------------
2757# Finds an unsigned integer type with width BITS, setting cache variable VAR
2758# accordingly.
2759ac_fn_c_find_uintX_t ()
2760{
2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2763$as_echo_n "checking for uint$2_t... " >&6; }
2764if eval \${$3+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766else
2767 eval "$3=no"
2768 # Order is important - never check a type that is potentially smaller
2769 # than half of the expected target width.
2770 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2771 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773/* end confdefs.h. */
2774$ac_includes_default
2775int
2776main ()
2777{
2778static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2779test_array [0] = 0
2780
2781 ;
2782 return 0;
2783}
2784_ACEOF
2785if ac_fn_c_try_compile "$LINENO"; then :
2786 case $ac_type in #(
2787 uint$2_t) :
2788 eval "$3=yes" ;; #(
2789 *) :
2790 eval "$3=\$ac_type" ;;
2791esac
2792fi
2793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794 if eval test \"x\$"$3"\" = x"no"; then :
2795
2796else
2797 break
2798fi
2799 done
2800fi
2801eval ac_res=\$$3
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803$as_echo "$ac_res" >&6; }
2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805
2806} # ac_fn_c_find_uintX_t
2807
cristy8b350f62009-11-15 23:12:43 +00002808# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2809# --------------------------------------------
2810# Tries to find the compile-time value of EXPR in a program that includes
2811# INCLUDES, setting VAR accordingly. Returns whether the value could be
2812# computed
2813ac_fn_c_compute_int ()
2814{
2815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816 if test "$cross_compiling" = yes; then
2817 # Depending upon the size, compute the lo and hi bounds.
2818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819/* end confdefs.h. */
2820$4
2821int
2822main ()
2823{
2824static int test_array [1 - 2 * !(($2) >= 0)];
2825test_array [0] = 0
2826
2827 ;
2828 return 0;
2829}
2830_ACEOF
2831if ac_fn_c_try_compile "$LINENO"; then :
2832 ac_lo=0 ac_mid=0
2833 while :; do
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835/* end confdefs.h. */
2836$4
2837int
2838main ()
2839{
2840static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2841test_array [0] = 0
2842
2843 ;
2844 return 0;
2845}
2846_ACEOF
2847if ac_fn_c_try_compile "$LINENO"; then :
2848 ac_hi=$ac_mid; break
2849else
2850 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2851 if test $ac_lo -le $ac_mid; then
2852 ac_lo= ac_hi=
2853 break
2854 fi
2855 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2856fi
2857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858 done
2859else
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h. */
2862$4
2863int
2864main ()
2865{
2866static int test_array [1 - 2 * !(($2) < 0)];
2867test_array [0] = 0
2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_hi=-1 ac_mid=-1
2875 while :; do
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877/* end confdefs.h. */
2878$4
2879int
2880main ()
2881{
2882static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2883test_array [0] = 0
2884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889if ac_fn_c_try_compile "$LINENO"; then :
2890 ac_lo=$ac_mid; break
2891else
2892 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2893 if test $ac_mid -le $ac_hi; then
2894 ac_lo= ac_hi=
2895 break
2896 fi
2897 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2898fi
2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 done
2901else
2902 ac_lo= ac_hi=
2903fi
2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905fi
2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907# Binary search between lo and hi bounds.
2908while test "x$ac_lo" != "x$ac_hi"; do
2909 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911/* end confdefs.h. */
2912$4
2913int
2914main ()
2915{
2916static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2917test_array [0] = 0
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923if ac_fn_c_try_compile "$LINENO"; then :
2924 ac_hi=$ac_mid
2925else
2926 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2927fi
2928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929done
2930case $ac_lo in #((
2931?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2932'') ac_retval=1 ;;
2933esac
2934 else
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936/* end confdefs.h. */
2937$4
2938static long int longval () { return $2; }
2939static unsigned long int ulongval () { return $2; }
2940#include <stdio.h>
2941#include <stdlib.h>
2942int
2943main ()
2944{
2945
2946 FILE *f = fopen ("conftest.val", "w");
2947 if (! f)
2948 return 1;
2949 if (($2) < 0)
2950 {
2951 long int i = longval ();
2952 if (i != ($2))
2953 return 1;
2954 fprintf (f, "%ld", i);
2955 }
2956 else
2957 {
2958 unsigned long int i = ulongval ();
2959 if (i != ($2))
2960 return 1;
2961 fprintf (f, "%lu", i);
2962 }
2963 /* Do not output a trailing newline, as this causes \r\n confusion
2964 on some platforms. */
2965 return ferror (f) || fclose (f) != 0;
2966
2967 ;
2968 return 0;
2969}
2970_ACEOF
2971if ac_fn_c_try_run "$LINENO"; then :
2972 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2973else
2974 ac_retval=1
2975fi
2976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2977 conftest.$ac_objext conftest.beam conftest.$ac_ext
2978rm -f conftest.val
2979
2980 fi
cristyda16f162011-02-19 23:52:17 +00002981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002982 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002983
2984} # ac_fn_c_compute_int
2985
2986# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2987# ---------------------------------------------------------
2988# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2989# the include files in INCLUDES and setting the cache variable VAR
2990# accordingly.
2991ac_fn_cxx_check_header_mongrel ()
2992{
2993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002994 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2996$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002997if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002998 $as_echo_n "(cached) " >&6
2999fi
3000eval ac_res=\$$3
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3002$as_echo "$ac_res" >&6; }
3003else
3004 # Is the header compilable?
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3006$as_echo_n "checking $2 usability... " >&6; }
3007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008/* end confdefs.h. */
3009$4
3010#include <$2>
3011_ACEOF
3012if ac_fn_cxx_try_compile "$LINENO"; then :
3013 ac_header_compiler=yes
3014else
3015 ac_header_compiler=no
3016fi
3017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3019$as_echo "$ac_header_compiler" >&6; }
3020
3021# Is the header present?
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3023$as_echo_n "checking $2 presence... " >&6; }
3024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025/* end confdefs.h. */
3026#include <$2>
3027_ACEOF
3028if ac_fn_cxx_try_cpp "$LINENO"; then :
3029 ac_header_preproc=yes
3030else
3031 ac_header_preproc=no
3032fi
cristyda16f162011-02-19 23:52:17 +00003033rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3035$as_echo "$ac_header_preproc" >&6; }
3036
3037# So? What about this header?
3038case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3039 yes:no: )
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3041$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3043$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3044 ;;
3045 no:yes:* )
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3047$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3049$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3051$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3053$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3055$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003056( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003057## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003058## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003059 ) | sed "s/^/$as_me: WARNING: /" >&2
3060 ;;
3061esac
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3063$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003064if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003065 $as_echo_n "(cached) " >&6
3066else
3067 eval "$3=\$ac_header_compiler"
3068fi
3069eval ac_res=\$$3
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3071$as_echo "$ac_res" >&6; }
3072fi
cristyda16f162011-02-19 23:52:17 +00003073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003074
3075} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003076cat >config.log <<_ACEOF
3077This file contains any messages produced by compilers while
3078running configure, to aid debugging if configure makes a mistake.
3079
cristy4c08aed2011-07-01 19:47:50 +00003080It was created by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +00003081generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003082
3083 $ $0 $@
3084
3085_ACEOF
3086exec 5>>config.log
3087{
3088cat <<_ASUNAME
3089## --------- ##
3090## Platform. ##
3091## --------- ##
3092
3093hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3094uname -m = `(uname -m) 2>/dev/null || echo unknown`
3095uname -r = `(uname -r) 2>/dev/null || echo unknown`
3096uname -s = `(uname -s) 2>/dev/null || echo unknown`
3097uname -v = `(uname -v) 2>/dev/null || echo unknown`
3098
3099/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3100/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3101
3102/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3103/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3104/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3105/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3106/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3107/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3108/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3109
3110_ASUNAME
3111
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003117 $as_echo "PATH: $as_dir"
3118 done
cristy3ed852e2009-09-05 21:47:34 +00003119IFS=$as_save_IFS
3120
3121} >&5
3122
3123cat >&5 <<_ACEOF
3124
3125
3126## ----------- ##
3127## Core tests. ##
3128## ----------- ##
3129
3130_ACEOF
3131
3132
3133# Keep a trace of the command line.
3134# Strip out --no-create and --no-recursion so they do not pile up.
3135# Strip out --silent because we don't want to record it for future runs.
3136# Also quote any args containing shell meta-characters.
3137# Make two passes to allow for proper duplicate-argument suppression.
3138ac_configure_args=
3139ac_configure_args0=
3140ac_configure_args1=
3141ac_must_keep_next=false
3142for ac_pass in 1 2
3143do
3144 for ac_arg
3145 do
3146 case $ac_arg in
3147 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3149 | -silent | --silent | --silen | --sile | --sil)
3150 continue ;;
3151 *\'*)
3152 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3153 esac
3154 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003155 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003156 2)
cristy8b350f62009-11-15 23:12:43 +00003157 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003158 if test $ac_must_keep_next = true; then
3159 ac_must_keep_next=false # Got value, back to normal.
3160 else
3161 case $ac_arg in
3162 *=* | --config-cache | -C | -disable-* | --disable-* \
3163 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3164 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3165 | -with-* | --with-* | -without-* | --without-* | --x)
3166 case "$ac_configure_args0 " in
3167 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3168 esac
3169 ;;
3170 -* ) ac_must_keep_next=true ;;
3171 esac
3172 fi
cristy8b350f62009-11-15 23:12:43 +00003173 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003174 ;;
3175 esac
3176 done
3177done
cristy8b350f62009-11-15 23:12:43 +00003178{ ac_configure_args0=; unset ac_configure_args0;}
3179{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003180
3181# When interrupted or exit'd, cleanup temporary files, and complete
3182# config.log. We remove comments because anyway the quotes in there
3183# would cause problems or look ugly.
3184# WARNING: Use '\'' to represent an apostrophe within the trap.
3185# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3186trap 'exit_status=$?
3187 # Save into config.log some information that might help in debugging.
3188 {
3189 echo
3190
cristy98dddb52010-11-04 00:30:15 +00003191 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003192## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003193## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003194 echo
3195 # The following way of writing the cache mishandles newlines in values,
3196(
3197 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3198 eval ac_val=\$$ac_var
3199 case $ac_val in #(
3200 *${as_nl}*)
3201 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003202 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003203$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3204 esac
3205 case $ac_var in #(
3206 _ | IFS | as_nl) ;; #(
3207 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003208 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003209 esac ;;
3210 esac
3211 done
3212 (set) 2>&1 |
3213 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3214 *${as_nl}ac_space=\ *)
3215 sed -n \
3216 "s/'\''/'\''\\\\'\'''\''/g;
3217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3218 ;; #(
3219 *)
3220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3221 ;;
3222 esac |
3223 sort
3224)
3225 echo
3226
cristy98dddb52010-11-04 00:30:15 +00003227 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003228## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003229## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003230 echo
3231 for ac_var in $ac_subst_vars
3232 do
3233 eval ac_val=\$$ac_var
3234 case $ac_val in
3235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3236 esac
3237 $as_echo "$ac_var='\''$ac_val'\''"
3238 done | sort
3239 echo
3240
3241 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003242 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003243## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003244## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003245 echo
3246 for ac_var in $ac_subst_files
3247 do
3248 eval ac_val=\$$ac_var
3249 case $ac_val in
3250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3251 esac
3252 $as_echo "$ac_var='\''$ac_val'\''"
3253 done | sort
3254 echo
3255 fi
3256
3257 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003258 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003259## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003260## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003261 echo
3262 cat confdefs.h
3263 echo
3264 fi
3265 test "$ac_signal" != 0 &&
3266 $as_echo "$as_me: caught signal $ac_signal"
3267 $as_echo "$as_me: exit $exit_status"
3268 } >&5
3269 rm -f core *.core core.conftest.* &&
3270 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3271 exit $exit_status
3272' 0
3273for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003274 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003275done
3276ac_signal=0
3277
3278# confdefs.h avoids OS command line length limits that DEFS can exceed.
3279rm -f -r conftest* confdefs.h
3280
cristy8b350f62009-11-15 23:12:43 +00003281$as_echo "/* confdefs.h */" > confdefs.h
3282
cristy3ed852e2009-09-05 21:47:34 +00003283# Predefined preprocessor variables.
3284
3285cat >>confdefs.h <<_ACEOF
3286#define PACKAGE_NAME "$PACKAGE_NAME"
3287_ACEOF
3288
cristy3ed852e2009-09-05 21:47:34 +00003289cat >>confdefs.h <<_ACEOF
3290#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3291_ACEOF
3292
cristy3ed852e2009-09-05 21:47:34 +00003293cat >>confdefs.h <<_ACEOF
3294#define PACKAGE_VERSION "$PACKAGE_VERSION"
3295_ACEOF
3296
cristy3ed852e2009-09-05 21:47:34 +00003297cat >>confdefs.h <<_ACEOF
3298#define PACKAGE_STRING "$PACKAGE_STRING"
3299_ACEOF
3300
cristy3ed852e2009-09-05 21:47:34 +00003301cat >>confdefs.h <<_ACEOF
3302#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3303_ACEOF
3304
cristy8b350f62009-11-15 23:12:43 +00003305cat >>confdefs.h <<_ACEOF
3306#define PACKAGE_URL "$PACKAGE_URL"
3307_ACEOF
3308
cristy3ed852e2009-09-05 21:47:34 +00003309
3310# Let the site file select an alternate cache file if it wants to.
3311# Prefer an explicitly selected file to automatically selected ones.
3312ac_site_file1=NONE
3313ac_site_file2=NONE
3314if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003315 # We do not want a PATH search for config.site.
3316 case $CONFIG_SITE in #((
3317 -*) ac_site_file1=./$CONFIG_SITE;;
3318 */*) ac_site_file1=$CONFIG_SITE;;
3319 *) ac_site_file1=./$CONFIG_SITE;;
3320 esac
cristy3ed852e2009-09-05 21:47:34 +00003321elif test "x$prefix" != xNONE; then
3322 ac_site_file1=$prefix/share/config.site
3323 ac_site_file2=$prefix/etc/config.site
3324else
3325 ac_site_file1=$ac_default_prefix/share/config.site
3326 ac_site_file2=$ac_default_prefix/etc/config.site
3327fi
3328for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3329do
3330 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003331 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003333$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3334 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003335 . "$ac_site_file" \
3336 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338as_fn_error $? "failed to load site script $ac_site_file
3339See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003340 fi
3341done
3342
3343if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003344 # Some versions of bash will fail to source /dev/null (special files
3345 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3346 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003348$as_echo "$as_me: loading cache $cache_file" >&6;}
3349 case $cache_file in
3350 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3351 *) . "./$cache_file";;
3352 esac
3353 fi
3354else
cristy8b350f62009-11-15 23:12:43 +00003355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003356$as_echo "$as_me: creating cache $cache_file" >&6;}
3357 >$cache_file
3358fi
3359
cristycd4c5312009-11-22 01:19:08 +00003360as_fn_append ac_header_list " stdlib.h"
3361as_fn_append ac_header_list " unistd.h"
3362as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003363# Check that the precious variables saved in the cache have kept the same
3364# value.
3365ac_cache_corrupted=false
3366for ac_var in $ac_precious_vars; do
3367 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3368 eval ac_new_set=\$ac_env_${ac_var}_set
3369 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3370 eval ac_new_val=\$ac_env_${ac_var}_value
3371 case $ac_old_set,$ac_new_set in
3372 set,)
cristy8b350f62009-11-15 23:12:43 +00003373 { $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 +00003374$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3375 ac_cache_corrupted=: ;;
3376 ,set)
cristy8b350f62009-11-15 23:12:43 +00003377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003378$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3379 ac_cache_corrupted=: ;;
3380 ,);;
3381 *)
3382 if test "x$ac_old_val" != "x$ac_new_val"; then
3383 # differences in whitespace do not lead to failure.
3384 ac_old_val_w=`echo x $ac_old_val`
3385 ac_new_val_w=`echo x $ac_new_val`
3386 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003388$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3389 ac_cache_corrupted=:
3390 else
cristy8b350f62009-11-15 23:12:43 +00003391 { $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 +00003392$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3393 eval $ac_var=\$ac_old_val
3394 fi
cristy8b350f62009-11-15 23:12:43 +00003395 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003397 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003398$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3399 fi;;
3400 esac
3401 # Pass precious variables to config.status.
3402 if test "$ac_new_set" = set; then
3403 case $ac_new_val in
3404 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3405 *) ac_arg=$ac_var=$ac_new_val ;;
3406 esac
3407 case " $ac_configure_args " in
3408 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003409 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003410 esac
3411 fi
3412done
3413if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003417$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003418 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003419fi
cristy8b350f62009-11-15 23:12:43 +00003420## -------------------- ##
3421## Main body of script. ##
3422## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003423
3424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429
3430
3431
3432ac_aux_dir=
3433for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003434 if test -f "$ac_dir/install-sh"; then
3435 ac_aux_dir=$ac_dir
3436 ac_install_sh="$ac_aux_dir/install-sh -c"
3437 break
3438 elif test -f "$ac_dir/install.sh"; then
3439 ac_aux_dir=$ac_dir
3440 ac_install_sh="$ac_aux_dir/install.sh -c"
3441 break
3442 elif test -f "$ac_dir/shtool"; then
3443 ac_aux_dir=$ac_dir
3444 ac_install_sh="$ac_aux_dir/shtool install -c"
3445 break
3446 fi
cristy3ed852e2009-09-05 21:47:34 +00003447done
3448if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003449 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003450fi
3451
3452# These three variables are undocumented and unsupported,
3453# and are intended to be withdrawn in a future Autoconf release.
3454# They can cause serious problems if a builder's source tree is in a directory
3455# whose full name contains unusual characters.
3456ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3457ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3458ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3459
3460
3461
3462
3463ac_config_headers="$ac_config_headers config/config.h"
3464
cristy24fc1fe2010-10-23 21:13:01 +00003465
cristy4c08aed2011-07-01 19:47:50 +00003466ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003467
cristy4c08aed2011-07-01 19:47:50 +00003468ac_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 +00003469
3470
3471#
3472# Save initial user-tunable values
3473#
3474USER_LIBS=$LIBS
3475for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3476 eval isset=\${$var+set}
3477 if test "$isset" = 'set'; then
3478 eval val=$`echo $var`
3479 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3480 fi
3481done
3482
3483
3484CONFIGURE_ARGS="$0 ${ac_configure_args}"
3485
3486
3487# Source file containing package/library versioning information.
3488. ${srcdir}/version.sh
3489
cristy15a88782010-01-31 23:24:49 +00003490echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003491# Make sure we can run config.sub.
3492$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003493 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003494
cristy8b350f62009-11-15 23:12:43 +00003495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003497if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003498 $as_echo_n "(cached) " >&6
3499else
3500 ac_build_alias=$build_alias
3501test "x$ac_build_alias" = x &&
3502 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3503test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003504 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003505ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003507
3508fi
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo "$ac_cv_build" >&6; }
3511case $ac_cv_build in
3512*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003513*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003514esac
3515build=$ac_cv_build
3516ac_save_IFS=$IFS; IFS='-'
3517set x $ac_cv_build
3518shift
3519build_cpu=$1
3520build_vendor=$2
3521shift; shift
3522# Remember, the first character of IFS is used to create $*,
3523# except with old shells:
3524build_os=$*
3525IFS=$ac_save_IFS
3526case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3527
3528
cristy8b350f62009-11-15 23:12:43 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003530$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003531if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003532 $as_echo_n "(cached) " >&6
3533else
3534 if test "x$host_alias" = x; then
3535 ac_cv_host=$ac_cv_build
3536else
3537 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_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_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo "$ac_cv_host" >&6; }
3544case $ac_cv_host in
3545*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003546*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003547esac
3548host=$ac_cv_host
3549ac_save_IFS=$IFS; IFS='-'
3550set x $ac_cv_host
3551shift
3552host_cpu=$1
3553host_vendor=$2
3554shift; shift
3555# Remember, the first character of IFS is used to create $*,
3556# except with old shells:
3557host_os=$*
3558IFS=$ac_save_IFS
3559case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3560
3561
cristy8b350f62009-11-15 23:12:43 +00003562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003563$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003564if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003565 $as_echo_n "(cached) " >&6
3566else
3567 if test "x$target_alias" = x; then
3568 ac_cv_target=$ac_cv_host
3569else
3570 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003572fi
3573
3574fi
cristy8b350f62009-11-15 23:12:43 +00003575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003576$as_echo "$ac_cv_target" >&6; }
3577case $ac_cv_target in
3578*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003579*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003580esac
3581target=$ac_cv_target
3582ac_save_IFS=$IFS; IFS='-'
3583set x $ac_cv_target
3584shift
3585target_cpu=$1
3586target_vendor=$2
3587shift; shift
3588# Remember, the first character of IFS is used to create $*,
3589# except with old shells:
3590target_os=$*
3591IFS=$ac_save_IFS
3592case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3593
3594
3595# The aliases save the names the user supplied, while $host etc.
3596# will get canonicalized.
3597test -n "$target_alias" &&
3598 test "$program_prefix$program_suffix$program_transform_name" = \
3599 NONENONEs,x,x, &&
3600 program_prefix=${target_alias}-
3601
cristy837d6dc2010-02-27 01:16:57 +00003602
3603
3604
cristy19615b82011-04-13 20:02:01 +00003605MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003606
3607
cristy19615b82011-04-13 20:02:01 +00003608MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003609
3610
cristy19615b82011-04-13 20:02:01 +00003611MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003612
3613
cristy3ed852e2009-09-05 21:47:34 +00003614# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003615MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3616
3617MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3618
cristyf805afb2011-10-03 17:17:37 +00003619MAGICK_SVN_REVISION=5486
cristyd694ca32011-03-27 21:42:54 +00003620
3621
cristy3ed852e2009-09-05 21:47:34 +00003622
3623
3624# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3626$as_echo_n "checking whether build environment is sane... " >&6; }
3627# Just in case
3628sleep 1
3629echo timestamp > conftest.file
3630# Reject unsafe characters in $srcdir or the absolute working directory
3631# name. Accept space and tab only in the latter.
3632am_lf='
3633'
3634case `pwd` in
3635 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003636 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003637esac
3638case $srcdir in
3639 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003640 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003641esac
cristy3ed852e2009-09-05 21:47:34 +00003642
cristy73bd4a52010-10-05 11:24:23 +00003643# Do `set' in a subshell so we don't clobber the current shell's
3644# arguments. Must try -L first in case configure is actually a
3645# symlink; some systems play weird games with the mod time of symlinks
3646# (eg FreeBSD returns the mod time of the symlink's containing
3647# directory).
3648if (
3649 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3650 if test "$*" = "X"; then
3651 # -L didn't work.
3652 set X `ls -t "$srcdir/configure" conftest.file`
3653 fi
3654 rm -f conftest.file
3655 if test "$*" != "X $srcdir/configure conftest.file" \
3656 && test "$*" != "X conftest.file $srcdir/configure"; then
3657
3658 # If neither matched, then we have a broken ls. This can happen
3659 # if, for instance, CONFIG_SHELL is bash and it inherits a
3660 # broken ls alias from the environment. This has actually
3661 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003662 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003663alias in your environment" "$LINENO" 5
3664 fi
3665
3666 test "$2" = conftest.file
3667 )
3668then
3669 # Ok.
3670 :
3671else
cristy98dddb52010-11-04 00:30:15 +00003672 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003673Check your system clock" "$LINENO" 5
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676$as_echo "yes" >&6; }
3677
3678am__api_version='1.11'
3679
3680# Find a good install program. We prefer a C program (faster),
3681# so one script is as good as another. But avoid the broken or
3682# incompatible versions:
3683# SysV /etc/install, /usr/sbin/install
3684# SunOS /usr/etc/install
3685# IRIX /sbin/install
3686# AIX /bin/install
3687# AmigaOS /C/install, which installs bootblocks on floppy discs
3688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3691# OS/2's system install, which has a completely different semantic
3692# ./install, which can be erroneously created by make from ./install.sh.
3693# Reject install programs that cannot install multiple files.
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3695$as_echo_n "checking for a BSD-compatible install... " >&6; }
3696if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003697if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003698 $as_echo_n "(cached) " >&6
3699else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 # Account for people who put trailing slashes in PATH elements.
3706case $as_dir/ in #((
3707 ./ | .// | /[cC]/* | \
3708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3709 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3710 /usr/ucb/* ) ;;
3711 *)
3712 # OSF1 and SCO ODT 3.0 have their own names for install.
3713 # Don't use installbsd from OSF since it installs stuff as root
3714 # by default.
3715 for ac_prog in ginstall scoinst install; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3718 if test $ac_prog = install &&
3719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720 # AIX install. It has an incompatible calling convention.
3721 :
3722 elif test $ac_prog = install &&
3723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724 # program-specific install script used by HP pwplus--don't use.
3725 :
3726 else
3727 rm -rf conftest.one conftest.two conftest.dir
3728 echo one > conftest.one
3729 echo two > conftest.two
3730 mkdir conftest.dir
3731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3732 test -s conftest.one && test -s conftest.two &&
3733 test -s conftest.dir/conftest.one &&
3734 test -s conftest.dir/conftest.two
3735 then
3736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3737 break 3
3738 fi
3739 fi
3740 fi
3741 done
3742 done
3743 ;;
3744esac
3745
3746 done
3747IFS=$as_save_IFS
3748
3749rm -rf conftest.one conftest.two conftest.dir
3750
3751fi
3752 if test "${ac_cv_path_install+set}" = set; then
3753 INSTALL=$ac_cv_path_install
3754 else
3755 # As a last resort, use the slow shell script. Don't cache a
3756 # value for INSTALL within a source directory, because that will
3757 # break other packages using the cache if that directory is
3758 # removed, or if the value is a relative name.
3759 INSTALL=$ac_install_sh
3760 fi
3761fi
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3763$as_echo "$INSTALL" >&6; }
3764
3765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3766# It thinks the first close brace ends the variable substitution.
3767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3768
3769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3770
3771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3772
3773test "$program_prefix" != NONE &&
3774 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3775# Use a double $ so make ignores it.
3776test "$program_suffix" != NONE &&
3777 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3778# Double any \ or $.
3779# By default was `s,x,x', remove it if useless.
3780ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3781program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3782
3783# expand $ac_aux_dir to an absolute path
3784am_aux_dir=`cd $ac_aux_dir && pwd`
3785
3786if test x"${MISSING+set}" != xset; then
3787 case $am_aux_dir in
3788 *\ * | *\ *)
3789 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3790 *)
3791 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3792 esac
3793fi
3794# Use eval to expand $SHELL
3795if eval "$MISSING --run true"; then
3796 am_missing_run="$MISSING --run "
3797else
3798 am_missing_run=
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3800$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3801fi
3802
3803if test x"${install_sh}" != xset; then
3804 case $am_aux_dir in
3805 *\ * | *\ *)
3806 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3807 *)
3808 install_sh="\${SHELL} $am_aux_dir/install-sh"
3809 esac
3810fi
3811
3812# Installed binaries are usually stripped using `strip' when the user
3813# run `make install-strip'. However `strip' might not be the right
3814# tool to use in cross-compilation environments, therefore Automake
3815# will honor the `STRIP' environment variable to overrule this program.
3816if test "$cross_compiling" != no; then
3817 if test -n "$ac_tool_prefix"; then
3818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3819set dummy ${ac_tool_prefix}strip; ac_word=$2
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003822if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003823 $as_echo_n "(cached) " >&6
3824else
3825 if test -n "$STRIP"; then
3826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839done
3840 done
3841IFS=$as_save_IFS
3842
3843fi
3844fi
3845STRIP=$ac_cv_prog_STRIP
3846if test -n "$STRIP"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3848$as_echo "$STRIP" >&6; }
3849else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
3852fi
3853
3854
3855fi
3856if test -z "$ac_cv_prog_STRIP"; then
3857 ac_ct_STRIP=$STRIP
3858 # Extract the first word of "strip", so it can be a program name with args.
3859set dummy strip; ac_word=$2
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003862if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003863 $as_echo_n "(cached) " >&6
3864else
3865 if test -n "$ac_ct_STRIP"; then
3866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3867else
3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869for as_dir in $PATH
3870do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3875 ac_cv_prog_ac_ct_STRIP="strip"
3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3878 fi
3879done
3880 done
3881IFS=$as_save_IFS
3882
3883fi
3884fi
3885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3886if test -n "$ac_ct_STRIP"; then
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3888$as_echo "$ac_ct_STRIP" >&6; }
3889else
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891$as_echo "no" >&6; }
3892fi
3893
3894 if test "x$ac_ct_STRIP" = x; then
3895 STRIP=":"
3896 else
3897 case $cross_compiling:$ac_tool_warned in
3898yes:)
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3901ac_tool_warned=yes ;;
3902esac
3903 STRIP=$ac_ct_STRIP
3904 fi
3905else
3906 STRIP="$ac_cv_prog_STRIP"
3907fi
3908
3909fi
3910INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3911
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3913$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3914if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003915 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003916 $as_echo_n "(cached) " >&6
3917else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3920do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_prog in mkdir gmkdir; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3926 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3927 'mkdir (GNU coreutils) '* | \
3928 'mkdir (coreutils) '* | \
3929 'mkdir (fileutils) '4.1*)
3930 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3931 break 3;;
3932 esac
3933 done
3934 done
3935 done
3936IFS=$as_save_IFS
3937
3938fi
3939
3940 test -d ./--version && rmdir ./--version
3941 if test "${ac_cv_path_mkdir+set}" = set; then
3942 MKDIR_P="$ac_cv_path_mkdir -p"
3943 else
3944 # As a last resort, use the slow shell script. Don't cache a
3945 # value for MKDIR_P within a source directory, because that will
3946 # break other packages using the cache if that directory is
3947 # removed, or if the value is a relative name.
3948 MKDIR_P="$ac_install_sh -d"
3949 fi
3950fi
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3952$as_echo "$MKDIR_P" >&6; }
3953
3954mkdir_p="$MKDIR_P"
3955case $mkdir_p in
3956 [\\/$]* | ?:[\\/]*) ;;
3957 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3958esac
3959
3960for ac_prog in gawk mawk nawk awk
3961do
3962 # Extract the first word of "$ac_prog", so it can be a program name with args.
3963set dummy $ac_prog; ac_word=$2
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003966if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003967 $as_echo_n "(cached) " >&6
3968else
3969 if test -n "$AWK"; then
3970 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_prog_AWK="$ac_prog"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984 done
3985IFS=$as_save_IFS
3986
3987fi
3988fi
3989AWK=$ac_cv_prog_AWK
3990if test -n "$AWK"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3992$as_echo "$AWK" >&6; }
3993else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996fi
3997
3998
3999 test -n "$AWK" && break
4000done
4001
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4003$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4004set x ${MAKE-make}
4005ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004006if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004007 $as_echo_n "(cached) " >&6
4008else
4009 cat >conftest.make <<\_ACEOF
4010SHELL = /bin/sh
4011all:
4012 @echo '@@@%%%=$(MAKE)=@@@%%%'
4013_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004014# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004015case `${MAKE-make} -f conftest.make 2>/dev/null` in
4016 *@@@%%%=?*=@@@%%%*)
4017 eval ac_cv_prog_make_${ac_make}_set=yes;;
4018 *)
4019 eval ac_cv_prog_make_${ac_make}_set=no;;
4020esac
4021rm -f conftest.make
4022fi
4023if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025$as_echo "yes" >&6; }
4026 SET_MAKE=
4027else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029$as_echo "no" >&6; }
4030 SET_MAKE="MAKE=${MAKE-make}"
4031fi
4032
4033rm -rf .tst 2>/dev/null
4034mkdir .tst 2>/dev/null
4035if test -d .tst; then
4036 am__leading_dot=.
4037else
4038 am__leading_dot=_
4039fi
4040rmdir .tst 2>/dev/null
4041
4042if test "`cd $srcdir && pwd`" != "`pwd`"; then
4043 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4044 # is not polluted with repeated "-I."
4045 am__isrc=' -I$(srcdir)'
4046 # test to see if srcdir already configured
4047 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004048 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004049 fi
4050fi
4051
4052# test whether we have cygpath
4053if test -z "$CYGPATH_W"; then
4054 if (cygpath --version) >/dev/null 2>/dev/null; then
4055 CYGPATH_W='cygpath -w'
4056 else
4057 CYGPATH_W=echo
4058 fi
4059fi
4060
4061
4062# Define the identity of the package.
4063 PACKAGE=$PACKAGE_NAME
4064 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4065
4066
4067# Some tools Automake needs.
4068
4069ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4070
4071
4072AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4073
4074
4075AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4076
4077
4078AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4079
4080
4081MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4082
4083# We need awk for the "check" target. The system "awk" is bad on
4084# some platforms.
4085# Always define AMTAR for backward compatibility.
4086
4087AMTAR=${AMTAR-"${am_missing_run}tar"}
4088
4089am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4090
4091
4092
4093
4094
cristy3ed852e2009-09-05 21:47:34 +00004095
4096# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004097# Check whether --enable-silent-rules was given.
4098if test "${enable_silent_rules+set}" = set; then :
4099 enableval=$enable_silent_rules;
4100fi
4101
4102case $enable_silent_rules in
4103yes) AM_DEFAULT_VERBOSITY=0;;
4104no) AM_DEFAULT_VERBOSITY=1;;
4105*) AM_DEFAULT_VERBOSITY=0;;
4106esac
4107AM_BACKSLASH='\'
4108
cristy3ed852e2009-09-05 21:47:34 +00004109
4110MAGICK_LIB_VERSION="0x"
4111if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4112 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4113fi
4114MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4115if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4116 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4117fi
4118MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4119if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4120 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4121fi
4122MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4123
4124
4125# Definition used to define MagickLibVersionText in version.h
4126MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4127
4128
4129# Definition used to define MagickLibVersionNumber in version.h
4130MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4131
4132
4133# Regenerate config.status if ChangeLog or version.sh is updated.
4134CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4135
4136
4137PERLMAINCC=$CC
4138
4139MAGICK_CFLAGS=''
4140MAGICK_CPPFLAGS=$CPPFLAGS_USER
4141MAGICK_PCFLAGS=$CPPFLAGS_USER
4142MAGICK_LDFLAGS=''
4143MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004144MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004145
4146#
4147# Evaluate shell variable equivalents to Makefile directory variables
4148#
4149if test "x$prefix" = xNONE; then
4150 prefix=$ac_default_prefix
4151fi
4152# Let make expand exec_prefix.
4153if test "x$exec_prefix" = xNONE; then
4154 exec_prefix='${prefix}'
4155fi
4156
4157#
4158eval "eval PREFIX_DIR=${prefix}"
4159
4160eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4161
4162eval "eval BIN_DIR=$bindir"
4163
4164eval "eval SBIN_DIR=$sbindir"
4165
4166eval "eval LIBEXEC_DIR=$libexecdir"
4167
4168eval "eval DATA_DIR=$datadir"
4169
cristyd55889c2011-03-27 00:50:24 +00004170eval "eval DOC_DIR=$docdir"
4171
cristy3ed852e2009-09-05 21:47:34 +00004172eval "eval SYSCONF_DIR=$sysconfdir"
4173
4174eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4175
4176eval "eval LOCALSTATE_DIR=$localstatedir"
4177
4178eval "eval LIB_DIR=$libdir"
4179
4180eval "eval INCLUDE_DIR=$includedir"
4181
4182eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4183
4184eval "eval INFO_DIR=$infodir"
4185
4186eval "eval MAN_DIR=$mandir"
4187
4188
4189# Get full paths to source and build directories
4190srcdirfull="`cd $srcdir && pwd`"
4191builddir="`pwd`"
4192
4193#
4194# Compute variables useful for running uninstalled software.
4195#
4196MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4197MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4198MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4199MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4200DIRSEP=':'
4201case "${build_os}" in
4202 mingw* )
4203 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4204 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4205 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4206 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4207 DIRSEP=';'
4208 ;;
4209esac
4210case "${host_os}" in
4211 mingw* )
4212 DIRSEP=';'
4213 ;;
4214esac
4215
4216
4217
4218
4219
4220
cristya0b81c32010-01-22 02:54:33 +00004221
4222#
4223# Enable OS features.
4224#
cristy73bd4a52010-10-05 11:24:23 +00004225DEPDIR="${am__leading_dot}deps"
4226
4227ac_config_commands="$ac_config_commands depfiles"
4228
4229
4230am_make=${MAKE-make}
4231cat > confinc << 'END'
4232am__doit:
4233 @echo this is the am__doit target
4234.PHONY: am__doit
4235END
4236# If we don't find an include directive, just comment out the code.
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4238$as_echo_n "checking for style of include used by $am_make... " >&6; }
4239am__include="#"
4240am__quote=
4241_am_result=none
4242# First try GNU make style include.
4243echo "include confinc" > confmf
4244# Ignore all kinds of additional output from `make'.
4245case `$am_make -s -f confmf 2> /dev/null` in #(
4246*the\ am__doit\ target*)
4247 am__include=include
4248 am__quote=
4249 _am_result=GNU
4250 ;;
4251esac
4252# Now try BSD make style include.
4253if test "$am__include" = "#"; then
4254 echo '.include "confinc"' > confmf
4255 case `$am_make -s -f confmf 2> /dev/null` in #(
4256 *the\ am__doit\ target*)
4257 am__include=.include
4258 am__quote="\""
4259 _am_result=BSD
4260 ;;
4261 esac
4262fi
4263
4264
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4266$as_echo "$_am_result" >&6; }
4267rm -f confinc confmf
4268
4269# Check whether --enable-dependency-tracking was given.
4270if test "${enable_dependency_tracking+set}" = set; then :
4271 enableval=$enable_dependency_tracking;
4272fi
4273
4274if test "x$enable_dependency_tracking" != xno; then
4275 am_depcomp="$ac_aux_dir/depcomp"
4276 AMDEPBACKSLASH='\'
4277fi
4278 if test "x$enable_dependency_tracking" != xno; then
4279 AMDEP_TRUE=
4280 AMDEP_FALSE='#'
4281else
4282 AMDEP_TRUE='#'
4283 AMDEP_FALSE=
4284fi
4285
4286
cristy3ed852e2009-09-05 21:47:34 +00004287ac_ext=c
4288ac_cpp='$CPP $CPPFLAGS'
4289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292if test -n "$ac_tool_prefix"; then
4293 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4294set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004296$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004297if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004298 $as_echo_n "(cached) " >&6
4299else
4300 if test -n "$CC"; then
4301 ac_cv_prog_CC="$CC" # Let the user override the test.
4302else
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004312 break 2
4313 fi
4314done
cristy8b350f62009-11-15 23:12:43 +00004315 done
cristy3ed852e2009-09-05 21:47:34 +00004316IFS=$as_save_IFS
4317
4318fi
4319fi
4320CC=$ac_cv_prog_CC
4321if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004323$as_echo "$CC" >&6; }
4324else
cristy8b350f62009-11-15 23:12:43 +00004325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004326$as_echo "no" >&6; }
4327fi
4328
4329
4330fi
4331if test -z "$ac_cv_prog_CC"; then
4332 ac_ct_CC=$CC
4333 # Extract the first word of "gcc", so it can be a program name with args.
4334set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004336$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004337if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004338 $as_echo_n "(cached) " >&6
4339else
4340 if test -n "$ac_ct_CC"; then
4341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004352 break 2
4353 fi
4354done
cristy8b350f62009-11-15 23:12:43 +00004355 done
cristy3ed852e2009-09-05 21:47:34 +00004356IFS=$as_save_IFS
4357
4358fi
4359fi
4360ac_ct_CC=$ac_cv_prog_ac_ct_CC
4361if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo "$ac_ct_CC" >&6; }
4364else
cristy8b350f62009-11-15 23:12:43 +00004365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366$as_echo "no" >&6; }
4367fi
4368
4369 if test "x$ac_ct_CC" = x; then
4370 CC=""
4371 else
4372 case $cross_compiling:$ac_tool_warned in
4373yes:)
cristy8b350f62009-11-15 23:12:43 +00004374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4376ac_tool_warned=yes ;;
4377esac
4378 CC=$ac_ct_CC
4379 fi
4380else
4381 CC="$ac_cv_prog_CC"
4382fi
4383
4384if test -z "$CC"; then
4385 if test -n "$ac_tool_prefix"; then
4386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4387set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004389$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004390if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004391 $as_echo_n "(cached) " >&6
4392else
4393 if test -n "$CC"; then
4394 ac_cv_prog_CC="$CC" # Let the user override the test.
4395else
4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004405 break 2
4406 fi
4407done
cristy8b350f62009-11-15 23:12:43 +00004408 done
cristy3ed852e2009-09-05 21:47:34 +00004409IFS=$as_save_IFS
4410
4411fi
4412fi
4413CC=$ac_cv_prog_CC
4414if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416$as_echo "$CC" >&6; }
4417else
cristy8b350f62009-11-15 23:12:43 +00004418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419$as_echo "no" >&6; }
4420fi
4421
4422
4423 fi
4424fi
4425if test -z "$CC"; then
4426 # Extract the first word of "cc", so it can be a program name with args.
4427set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004430if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004431 $as_echo_n "(cached) " >&6
4432else
4433 if test -n "$CC"; then
4434 ac_cv_prog_CC="$CC" # Let the user override the test.
4435else
4436 ac_prog_rejected=no
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004442 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4445 ac_prog_rejected=yes
4446 continue
4447 fi
4448 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004450 break 2
4451 fi
4452done
cristy8b350f62009-11-15 23:12:43 +00004453 done
cristy3ed852e2009-09-05 21:47:34 +00004454IFS=$as_save_IFS
4455
4456if test $ac_prog_rejected = yes; then
4457 # We found a bogon in the path, so make sure we never use it.
4458 set dummy $ac_cv_prog_CC
4459 shift
4460 if test $# != 0; then
4461 # We chose a different compiler from the bogus one.
4462 # However, it has the same basename, so the bogon will be chosen
4463 # first if we set CC to just the basename; use the full file name.
4464 shift
4465 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4466 fi
4467fi
4468fi
4469fi
4470CC=$ac_cv_prog_CC
4471if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004473$as_echo "$CC" >&6; }
4474else
cristy8b350f62009-11-15 23:12:43 +00004475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476$as_echo "no" >&6; }
4477fi
4478
4479
4480fi
4481if test -z "$CC"; then
4482 if test -n "$ac_tool_prefix"; then
4483 for ac_prog in cl.exe
4484 do
4485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4486set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004489if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004490 $as_echo_n "(cached) " >&6
4491else
4492 if test -n "$CC"; then
4493 ac_cv_prog_CC="$CC" # Let the user override the test.
4494else
4495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496for as_dir in $PATH
4497do
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004504 break 2
4505 fi
4506done
cristy8b350f62009-11-15 23:12:43 +00004507 done
cristy3ed852e2009-09-05 21:47:34 +00004508IFS=$as_save_IFS
4509
4510fi
4511fi
4512CC=$ac_cv_prog_CC
4513if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004515$as_echo "$CC" >&6; }
4516else
cristy8b350f62009-11-15 23:12:43 +00004517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004518$as_echo "no" >&6; }
4519fi
4520
4521
4522 test -n "$CC" && break
4523 done
4524fi
4525if test -z "$CC"; then
4526 ac_ct_CC=$CC
4527 for ac_prog in cl.exe
4528do
4529 # Extract the first word of "$ac_prog", so it can be a program name with args.
4530set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004533if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004534 $as_echo_n "(cached) " >&6
4535else
4536 if test -n "$ac_ct_CC"; then
4537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548 break 2
4549 fi
4550done
cristy8b350f62009-11-15 23:12:43 +00004551 done
cristy3ed852e2009-09-05 21:47:34 +00004552IFS=$as_save_IFS
4553
4554fi
4555fi
4556ac_ct_CC=$ac_cv_prog_ac_ct_CC
4557if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004559$as_echo "$ac_ct_CC" >&6; }
4560else
cristy8b350f62009-11-15 23:12:43 +00004561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004562$as_echo "no" >&6; }
4563fi
4564
4565
4566 test -n "$ac_ct_CC" && break
4567done
4568
4569 if test "x$ac_ct_CC" = x; then
4570 CC=""
4571 else
4572 case $cross_compiling:$ac_tool_warned in
4573yes:)
cristy8b350f62009-11-15 23:12:43 +00004574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4576ac_tool_warned=yes ;;
4577esac
4578 CC=$ac_ct_CC
4579 fi
4580fi
4581
4582fi
4583
4584
cristy8b350f62009-11-15 23:12:43 +00004585test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004587as_fn_error $? "no acceptable C compiler found in \$PATH
4588See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004589
4590# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004591$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004592set X $ac_compile
4593ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004594for ac_option in --version -v -V -qversion; do
4595 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004596case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599esac
cristy8b350f62009-11-15 23:12:43 +00004600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601$as_echo "$ac_try_echo"; } >&5
4602 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004603 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004604 if test -s conftest.err; then
4605 sed '10a\
4606... rest of stderr output deleted ...
4607 10q' conftest.err >conftest.er1
4608 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004609 fi
cristycd4c5312009-11-22 01:19:08 +00004610 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4612 test $ac_status = 0; }
4613done
cristy3ed852e2009-09-05 21:47:34 +00004614
cristy8b350f62009-11-15 23:12:43 +00004615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004616/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004617
cristy3ed852e2009-09-05 21:47:34 +00004618int
4619main ()
4620{
4621
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004627ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004628# Try to create an executable without -o first, disregard a.out.
4629# It will help us diagnose broken compilers, and finding out an intuition
4630# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4632$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004633ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4634
4635# The possible output files:
4636ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4637
4638ac_rmfiles=
4639for ac_file in $ac_files
4640do
4641 case $ac_file in
4642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4643 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4644 esac
4645done
4646rm -f $ac_rmfiles
4647
cristy8b350f62009-11-15 23:12:43 +00004648if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004649case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
cristy8b350f62009-11-15 23:12:43 +00004653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004655 (eval "$ac_link_default") 2>&5
4656 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004659 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4660# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4661# in a Makefile. We should not override ac_cv_exeext if it was cached,
4662# so that the user can short-circuit this test for compilers unknown to
4663# Autoconf.
4664for ac_file in $ac_files ''
4665do
4666 test -f "$ac_file" || continue
4667 case $ac_file in
4668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4669 ;;
4670 [ab].out )
4671 # We found the default executable, but exeext='' is most
4672 # certainly right.
4673 break;;
4674 *.* )
cristy8b350f62009-11-15 23:12:43 +00004675 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004676 then :; else
4677 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4678 fi
4679 # We set ac_cv_exeext here because the later test for it is not
4680 # safe: cross compilers may not add the suffix if given an `-o'
4681 # argument, so we may need to know it at that point already.
4682 # Even if this section looks crufty: it has the advantage of
4683 # actually working.
4684 break;;
4685 * )
4686 break;;
4687 esac
4688done
4689test "$ac_cv_exeext" = no && ac_cv_exeext=
4690
4691else
4692 ac_file=''
4693fi
cristy8b350f62009-11-15 23:12:43 +00004694if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696$as_echo "no" >&6; }
4697$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004698sed 's/^/| /' conftest.$ac_ext >&5
4699
cristy8b350f62009-11-15 23:12:43 +00004700{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004702as_fn_error 77 "C compiler cannot create executables
4703See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004704else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4706$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004707fi
cristycd4c5312009-11-22 01:19:08 +00004708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4709$as_echo_n "checking for C compiler default output file name... " >&6; }
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4711$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004712ac_exeext=$ac_cv_exeext
4713
cristycd4c5312009-11-22 01:19:08 +00004714rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004715ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004718if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004719case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722esac
cristy8b350f62009-11-15 23:12:43 +00004723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004725 (eval "$ac_link") 2>&5
4726 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004729 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4730# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4731# work properly (i.e., refer to `conftest.exe'), while it won't with
4732# `rm'.
4733for ac_file in conftest.exe conftest conftest.*; do
4734 test -f "$ac_file" || continue
4735 case $ac_file in
4736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4737 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4738 break;;
4739 * ) break;;
4740 esac
4741done
4742else
cristy8b350f62009-11-15 23:12:43 +00004743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004745as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4746See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004747fi
cristycd4c5312009-11-22 01:19:08 +00004748rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004750$as_echo "$ac_cv_exeext" >&6; }
4751
4752rm -f conftest.$ac_ext
4753EXEEXT=$ac_cv_exeext
4754ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h. */
4757#include <stdio.h>
4758int
4759main ()
4760{
4761FILE *f = fopen ("conftest.out", "w");
4762 return ferror (f) || fclose (f) != 0;
4763
4764 ;
4765 return 0;
4766}
4767_ACEOF
4768ac_clean_files="$ac_clean_files conftest.out"
4769# Check that the compiler produces executables we can run. If not, either
4770# the compiler is broken, or we cross compile.
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4772$as_echo_n "checking whether we are cross compiling... " >&6; }
4773if test "$cross_compiling" != yes; then
4774 { { ac_try="$ac_link"
4775case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778esac
4779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4780$as_echo "$ac_try_echo"; } >&5
4781 (eval "$ac_link") 2>&5
4782 ac_status=$?
4783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4784 test $ac_status = 0; }
4785 if { ac_try='./conftest$ac_cv_exeext'
4786 { { case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789esac
4790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4791$as_echo "$ac_try_echo"; } >&5
4792 (eval "$ac_try") 2>&5
4793 ac_status=$?
4794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4795 test $ac_status = 0; }; }; then
4796 cross_compiling=no
4797 else
4798 if test "$cross_compiling" = maybe; then
4799 cross_compiling=yes
4800 else
4801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004803as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004804If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004805See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004806 fi
4807 fi
4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4810$as_echo "$cross_compiling" >&6; }
4811
4812rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4813ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004815$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004816if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004817 $as_echo_n "(cached) " >&6
4818else
cristy8b350f62009-11-15 23:12:43 +00004819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004820/* end confdefs.h. */
4821
4822int
4823main ()
4824{
4825
4826 ;
4827 return 0;
4828}
4829_ACEOF
4830rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004831if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004832case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835esac
cristy8b350f62009-11-15 23:12:43 +00004836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4837$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004838 (eval "$ac_compile") 2>&5
4839 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4841 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004842 for ac_file in conftest.o conftest.obj conftest.*; do
4843 test -f "$ac_file" || continue;
4844 case $ac_file in
4845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4847 break;;
4848 esac
4849done
4850else
4851 $as_echo "$as_me: failed program was:" >&5
4852sed 's/^/| /' conftest.$ac_ext >&5
4853
cristy8b350f62009-11-15 23:12:43 +00004854{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004856as_fn_error $? "cannot compute suffix of object files: cannot compile
4857See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004858fi
cristy3ed852e2009-09-05 21:47:34 +00004859rm -f conftest.$ac_cv_objext conftest.$ac_ext
4860fi
cristy8b350f62009-11-15 23:12:43 +00004861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004862$as_echo "$ac_cv_objext" >&6; }
4863OBJEXT=$ac_cv_objext
4864ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004866$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004867if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004868 $as_echo_n "(cached) " >&6
4869else
cristy8b350f62009-11-15 23:12:43 +00004870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004871/* end confdefs.h. */
4872
4873int
4874main ()
4875{
4876#ifndef __GNUC__
4877 choke me
4878#endif
4879
4880 ;
4881 return 0;
4882}
4883_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004884if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004885 ac_compiler_gnu=yes
4886else
cristy8b350f62009-11-15 23:12:43 +00004887 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004888fi
cristy3ed852e2009-09-05 21:47:34 +00004889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890ac_cv_c_compiler_gnu=$ac_compiler_gnu
4891
4892fi
cristy8b350f62009-11-15 23:12:43 +00004893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004894$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4895if test $ac_compiler_gnu = yes; then
4896 GCC=yes
4897else
4898 GCC=
4899fi
4900ac_test_CFLAGS=${CFLAGS+set}
4901ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004903$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004904if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004905 $as_echo_n "(cached) " >&6
4906else
4907 ac_save_c_werror_flag=$ac_c_werror_flag
4908 ac_c_werror_flag=yes
4909 ac_cv_prog_cc_g=no
4910 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004912/* end confdefs.h. */
4913
4914int
4915main ()
4916{
4917
4918 ;
4919 return 0;
4920}
4921_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004922if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004923 ac_cv_prog_cc_g=yes
4924else
cristy8b350f62009-11-15 23:12:43 +00004925 CFLAGS=""
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004927/* end confdefs.h. */
4928
4929int
4930main ()
4931{
4932
4933 ;
4934 return 0;
4935}
4936_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004937if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004938
cristy8b350f62009-11-15 23:12:43 +00004939else
4940 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004941 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004943/* end confdefs.h. */
4944
4945int
4946main ()
4947{
4948
4949 ;
4950 return 0;
4951}
4952_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004953if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004954 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004955fi
cristy3ed852e2009-09-05 21:47:34 +00004956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957fi
cristy3ed852e2009-09-05 21:47:34 +00004958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959fi
cristy3ed852e2009-09-05 21:47:34 +00004960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ac_c_werror_flag=$ac_save_c_werror_flag
4962fi
cristy8b350f62009-11-15 23:12:43 +00004963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004964$as_echo "$ac_cv_prog_cc_g" >&6; }
4965if test "$ac_test_CFLAGS" = set; then
4966 CFLAGS=$ac_save_CFLAGS
4967elif test $ac_cv_prog_cc_g = yes; then
4968 if test "$GCC" = yes; then
4969 CFLAGS="-g -O2"
4970 else
4971 CFLAGS="-g"
4972 fi
4973else
4974 if test "$GCC" = yes; then
4975 CFLAGS="-O2"
4976 else
4977 CFLAGS=
4978 fi
4979fi
cristy8b350f62009-11-15 23:12:43 +00004980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004981$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004982if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004983 $as_echo_n "(cached) " >&6
4984else
4985 ac_cv_prog_cc_c89=no
4986ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004988/* end confdefs.h. */
4989#include <stdarg.h>
4990#include <stdio.h>
4991#include <sys/types.h>
4992#include <sys/stat.h>
4993/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4994struct buf { int x; };
4995FILE * (*rcsopen) (struct buf *, struct stat *, int);
4996static char *e (p, i)
4997 char **p;
4998 int i;
4999{
5000 return p[i];
5001}
5002static char *f (char * (*g) (char **, int), char **p, ...)
5003{
5004 char *s;
5005 va_list v;
5006 va_start (v,p);
5007 s = g (p, va_arg (v,int));
5008 va_end (v);
5009 return s;
5010}
5011
5012/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5013 function prototypes and stuff, but not '\xHH' hex character constants.
5014 These don't provoke an error unfortunately, instead are silently treated
5015 as 'x'. The following induces an error, until -std is added to get
5016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5017 array size at least. It's necessary to write '\x00'==0 to get something
5018 that's true only with -std. */
5019int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5020
5021/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5022 inside strings and character constants. */
5023#define FOO(x) 'x'
5024int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5025
5026int test (int i, double x);
5027struct s1 {int (*f) (int a);};
5028struct s2 {int (*f) (double a);};
5029int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5030int argc;
5031char **argv;
5032int
5033main ()
5034{
5035return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5036 ;
5037 return 0;
5038}
5039_ACEOF
5040for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5042do
5043 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005044 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005045 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005046fi
cristy3ed852e2009-09-05 21:47:34 +00005047rm -f core conftest.err conftest.$ac_objext
5048 test "x$ac_cv_prog_cc_c89" != "xno" && break
5049done
5050rm -f conftest.$ac_ext
5051CC=$ac_save_CC
5052
5053fi
5054# AC_CACHE_VAL
5055case "x$ac_cv_prog_cc_c89" in
5056 x)
cristy8b350f62009-11-15 23:12:43 +00005057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005058$as_echo "none needed" >&6; } ;;
5059 xno)
cristy8b350f62009-11-15 23:12:43 +00005060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005061$as_echo "unsupported" >&6; } ;;
5062 *)
5063 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005065$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5066esac
cristy8b350f62009-11-15 23:12:43 +00005067if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005068
cristy8b350f62009-11-15 23:12:43 +00005069fi
cristy3ed852e2009-09-05 21:47:34 +00005070
5071ac_ext=c
5072ac_cpp='$CPP $CPPFLAGS'
5073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005076
cristy73bd4a52010-10-05 11:24:23 +00005077depcc="$CC" am_compiler_list=
5078
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5080$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005081if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005082 $as_echo_n "(cached) " >&6
5083else
5084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5085 # We make a subdir and do the tests there. Otherwise we can end up
5086 # making bogus files that we don't know about and never remove. For
5087 # instance it was reported that on HP-UX the gcc test will end up
5088 # making a dummy file named `D' -- because `-MD' means `put the output
5089 # in D'.
5090 mkdir conftest.dir
5091 # Copy depcomp to subdir because otherwise we won't find it if we're
5092 # using a relative directory.
5093 cp "$am_depcomp" conftest.dir
5094 cd conftest.dir
5095 # We will build objects and dependencies in a subdirectory because
5096 # it helps to detect inapplicable dependency modes. For instance
5097 # both Tru64's cc and ICC support -MD to output dependencies as a
5098 # side effect of compilation, but ICC will put the dependencies in
5099 # the current directory while Tru64 will put them in the object
5100 # directory.
5101 mkdir sub
5102
5103 am_cv_CC_dependencies_compiler_type=none
5104 if test "$am_compiler_list" = ""; then
5105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5106 fi
5107 am__universal=false
5108 case " $depcc " in #(
5109 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5110 esac
5111
5112 for depmode in $am_compiler_list; do
5113 # Setup a source with many dependencies, because some compilers
5114 # like to wrap large dependency lists on column 80 (with \), and
5115 # we should not choose a depcomp mode which is confused by this.
5116 #
5117 # We need to recreate these files for each test, as the compiler may
5118 # overwrite some of them when testing with obscure command lines.
5119 # This happens at least with the AIX C compiler.
5120 : > sub/conftest.c
5121 for i in 1 2 3 4 5 6; do
5122 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5123 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5124 # Solaris 8's {/usr,}/bin/sh.
5125 touch sub/conftst$i.h
5126 done
5127 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5128
5129 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5130 # mode. It turns out that the SunPro C++ compiler does not properly
5131 # handle `-M -o', and we need to detect this. Also, some Intel
5132 # versions had trouble with output in subdirs
5133 am__obj=sub/conftest.${OBJEXT-o}
5134 am__minus_obj="-o $am__obj"
5135 case $depmode in
5136 gcc)
5137 # This depmode causes a compiler race in universal mode.
5138 test "$am__universal" = false || continue
5139 ;;
5140 nosideeffect)
5141 # after this tag, mechanisms are not by side-effect, so they'll
5142 # only be used when explicitly requested
5143 if test "x$enable_dependency_tracking" = xyes; then
5144 continue
5145 else
5146 break
5147 fi
5148 ;;
5149 msvisualcpp | msvcmsys)
5150 # This compiler won't grok `-c -o', but also, the minuso test has
5151 # not run yet. These depmodes are late enough in the game, and
5152 # so weak that their functioning should not be impacted.
5153 am__obj=conftest.${OBJEXT-o}
5154 am__minus_obj=
5155 ;;
5156 none) break ;;
5157 esac
5158 if depmode=$depmode \
5159 source=sub/conftest.c object=$am__obj \
5160 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5161 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5162 >/dev/null 2>conftest.err &&
5163 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5165 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5167 # icc doesn't choke on unknown options, it will just issue warnings
5168 # or remarks (even with -Werror). So we grep stderr for any message
5169 # that says an option was ignored or not supported.
5170 # When given -MP, icc 7.0 and 7.1 complain thusly:
5171 # icc: Command line warning: ignoring option '-M'; no argument required
5172 # The diagnosis changed in icc 8.0:
5173 # icc: Command line remark: option '-MP' not supported
5174 if (grep 'ignoring option' conftest.err ||
5175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5176 am_cv_CC_dependencies_compiler_type=$depmode
5177 break
5178 fi
5179 fi
5180 done
5181
5182 cd ..
5183 rm -rf conftest.dir
5184else
5185 am_cv_CC_dependencies_compiler_type=none
5186fi
5187
5188fi
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5190$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5191CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5192
5193 if
5194 test "x$enable_dependency_tracking" != xno \
5195 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5196 am__fastdepCC_TRUE=
5197 am__fastdepCC_FALSE='#'
5198else
5199 am__fastdepCC_TRUE='#'
5200 am__fastdepCC_FALSE=
5201fi
5202
5203
cristy3ed852e2009-09-05 21:47:34 +00005204
cristya0b81c32010-01-22 02:54:33 +00005205ac_ext=c
5206ac_cpp='$CPP $CPPFLAGS'
5207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5211$as_echo_n "checking how to run the C preprocessor... " >&6; }
5212# On Suns, sometimes $CPP names a directory.
5213if test -n "$CPP" && test -d "$CPP"; then
5214 CPP=
5215fi
5216if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005217 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005218 $as_echo_n "(cached) " >&6
5219else
5220 # Double quotes because CPP needs to be expanded
5221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5222 do
5223 ac_preproc_ok=false
5224for ac_c_preproc_warn_flag in '' yes
5225do
5226 # Use a header file that comes with gcc, so configuring glibc
5227 # with a fresh cross-compiler works.
5228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5229 # <limits.h> exists even on freestanding compilers.
5230 # On the NeXT, cc -E runs the code through the compiler's parser,
5231 # not just through cpp. "Syntax error" is here to catch this case.
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233/* end confdefs.h. */
5234#ifdef __STDC__
5235# include <limits.h>
5236#else
5237# include <assert.h>
5238#endif
5239 Syntax error
5240_ACEOF
5241if ac_fn_c_try_cpp "$LINENO"; then :
5242
5243else
5244 # Broken: fails on valid input.
5245continue
5246fi
cristyda16f162011-02-19 23:52:17 +00005247rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005248
5249 # OK, works on sane cases. Now check whether nonexistent headers
5250 # can be detected and how.
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252/* end confdefs.h. */
5253#include <ac_nonexistent.h>
5254_ACEOF
5255if ac_fn_c_try_cpp "$LINENO"; then :
5256 # Broken: success on invalid input.
5257continue
5258else
5259 # Passes both tests.
5260ac_preproc_ok=:
5261break
5262fi
cristyda16f162011-02-19 23:52:17 +00005263rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005264
5265done
5266# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005267rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005268if $ac_preproc_ok; then :
5269 break
5270fi
5271
5272 done
5273 ac_cv_prog_CPP=$CPP
5274
5275fi
5276 CPP=$ac_cv_prog_CPP
5277else
5278 ac_cv_prog_CPP=$CPP
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5281$as_echo "$CPP" >&6; }
5282ac_preproc_ok=false
5283for ac_c_preproc_warn_flag in '' yes
5284do
5285 # Use a header file that comes with gcc, so configuring glibc
5286 # with a fresh cross-compiler works.
5287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5288 # <limits.h> exists even on freestanding compilers.
5289 # On the NeXT, cc -E runs the code through the compiler's parser,
5290 # not just through cpp. "Syntax error" is here to catch this case.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h. */
5293#ifdef __STDC__
5294# include <limits.h>
5295#else
5296# include <assert.h>
5297#endif
5298 Syntax error
5299_ACEOF
5300if ac_fn_c_try_cpp "$LINENO"; then :
5301
5302else
5303 # Broken: fails on valid input.
5304continue
5305fi
cristyda16f162011-02-19 23:52:17 +00005306rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005307
5308 # OK, works on sane cases. Now check whether nonexistent headers
5309 # can be detected and how.
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311/* end confdefs.h. */
5312#include <ac_nonexistent.h>
5313_ACEOF
5314if ac_fn_c_try_cpp "$LINENO"; then :
5315 # Broken: success on invalid input.
5316continue
5317else
5318 # Passes both tests.
5319ac_preproc_ok=:
5320break
5321fi
cristyda16f162011-02-19 23:52:17 +00005322rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005323
5324done
5325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005326rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005327if $ac_preproc_ok; then :
5328
5329else
5330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005332as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5333See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005334fi
5335
5336ac_ext=c
5337ac_cpp='$CPP $CPPFLAGS'
5338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341
5342
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5344$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005345if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005346 $as_echo_n "(cached) " >&6
5347else
5348 if test -z "$GREP"; then
5349 ac_path_GREP_found=false
5350 # Loop through the user's path and test for each of PROGNAME-LIST
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5353do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_prog in grep ggrep; do
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5359 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5360# Check for GNU ac_path_GREP and select it if it is found.
5361 # Check for GNU $ac_path_GREP
5362case `"$ac_path_GREP" --version 2>&1` in
5363*GNU*)
5364 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5365*)
5366 ac_count=0
5367 $as_echo_n 0123456789 >"conftest.in"
5368 while :
5369 do
5370 cat "conftest.in" "conftest.in" >"conftest.tmp"
5371 mv "conftest.tmp" "conftest.in"
5372 cp "conftest.in" "conftest.nl"
5373 $as_echo 'GREP' >> "conftest.nl"
5374 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5376 as_fn_arith $ac_count + 1 && ac_count=$as_val
5377 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5378 # Best one so far, save it but keep looking for a better one
5379 ac_cv_path_GREP="$ac_path_GREP"
5380 ac_path_GREP_max=$ac_count
5381 fi
5382 # 10*(2^10) chars as input seems more than enough
5383 test $ac_count -gt 10 && break
5384 done
5385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5386esac
5387
5388 $ac_path_GREP_found && break 3
5389 done
5390 done
5391 done
5392IFS=$as_save_IFS
5393 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005394 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005395 fi
5396else
5397 ac_cv_path_GREP=$GREP
5398fi
5399
5400fi
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5402$as_echo "$ac_cv_path_GREP" >&6; }
5403 GREP="$ac_cv_path_GREP"
5404
5405
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5407$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005408if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005409 $as_echo_n "(cached) " >&6
5410else
5411 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5412 then ac_cv_path_EGREP="$GREP -E"
5413 else
5414 if test -z "$EGREP"; then
5415 ac_path_EGREP_found=false
5416 # Loop through the user's path and test for each of PROGNAME-LIST
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5419do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_prog in egrep; do
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5425 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5426# Check for GNU ac_path_EGREP and select it if it is found.
5427 # Check for GNU $ac_path_EGREP
5428case `"$ac_path_EGREP" --version 2>&1` in
5429*GNU*)
5430 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5431*)
5432 ac_count=0
5433 $as_echo_n 0123456789 >"conftest.in"
5434 while :
5435 do
5436 cat "conftest.in" "conftest.in" >"conftest.tmp"
5437 mv "conftest.tmp" "conftest.in"
5438 cp "conftest.in" "conftest.nl"
5439 $as_echo 'EGREP' >> "conftest.nl"
5440 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5442 as_fn_arith $ac_count + 1 && ac_count=$as_val
5443 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5444 # Best one so far, save it but keep looking for a better one
5445 ac_cv_path_EGREP="$ac_path_EGREP"
5446 ac_path_EGREP_max=$ac_count
5447 fi
5448 # 10*(2^10) chars as input seems more than enough
5449 test $ac_count -gt 10 && break
5450 done
5451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5452esac
5453
5454 $ac_path_EGREP_found && break 3
5455 done
5456 done
5457 done
5458IFS=$as_save_IFS
5459 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005460 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005461 fi
5462else
5463 ac_cv_path_EGREP=$EGREP
5464fi
5465
5466 fi
5467fi
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5469$as_echo "$ac_cv_path_EGREP" >&6; }
5470 EGREP="$ac_cv_path_EGREP"
5471
5472
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5474$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005475if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005476 $as_echo_n "(cached) " >&6
5477else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h. */
5480#include <stdlib.h>
5481#include <stdarg.h>
5482#include <string.h>
5483#include <float.h>
5484
5485int
5486main ()
5487{
5488
5489 ;
5490 return 0;
5491}
5492_ACEOF
5493if ac_fn_c_try_compile "$LINENO"; then :
5494 ac_cv_header_stdc=yes
5495else
5496 ac_cv_header_stdc=no
5497fi
5498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499
5500if test $ac_cv_header_stdc = yes; then
5501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h. */
5504#include <string.h>
5505
5506_ACEOF
5507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5508 $EGREP "memchr" >/dev/null 2>&1; then :
5509
5510else
5511 ac_cv_header_stdc=no
5512fi
5513rm -f conftest*
5514
5515fi
5516
5517if test $ac_cv_header_stdc = yes; then
5518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h. */
5521#include <stdlib.h>
5522
5523_ACEOF
5524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5525 $EGREP "free" >/dev/null 2>&1; then :
5526
5527else
5528 ac_cv_header_stdc=no
5529fi
5530rm -f conftest*
5531
5532fi
5533
5534if test $ac_cv_header_stdc = yes; then
5535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5536 if test "$cross_compiling" = yes; then :
5537 :
5538else
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h. */
5541#include <ctype.h>
5542#include <stdlib.h>
5543#if ((' ' & 0x0FF) == 0x020)
5544# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5545# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5546#else
5547# define ISLOWER(c) \
5548 (('a' <= (c) && (c) <= 'i') \
5549 || ('j' <= (c) && (c) <= 'r') \
5550 || ('s' <= (c) && (c) <= 'z'))
5551# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5552#endif
5553
5554#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5555int
5556main ()
5557{
5558 int i;
5559 for (i = 0; i < 256; i++)
5560 if (XOR (islower (i), ISLOWER (i))
5561 || toupper (i) != TOUPPER (i))
5562 return 2;
5563 return 0;
5564}
5565_ACEOF
5566if ac_fn_c_try_run "$LINENO"; then :
5567
5568else
5569 ac_cv_header_stdc=no
5570fi
5571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5572 conftest.$ac_objext conftest.beam conftest.$ac_ext
5573fi
5574
5575fi
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5578$as_echo "$ac_cv_header_stdc" >&6; }
5579if test $ac_cv_header_stdc = yes; then
5580
5581$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5582
5583fi
5584
5585# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5586for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5587 inttypes.h stdint.h unistd.h
5588do :
5589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5590ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5591"
cristy98dddb52010-11-04 00:30:15 +00005592if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005593 cat >>confdefs.h <<_ACEOF
5594#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5595_ACEOF
5596
5597fi
5598
5599done
5600
5601
5602
5603 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 +00005604if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005605 MINIX=yes
5606else
5607 MINIX=
5608fi
5609
5610
5611 if test "$MINIX" = yes; then
5612
5613$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5614
5615
5616$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5617
5618
5619$as_echo "#define _MINIX 1" >>confdefs.h
5620
5621 fi
5622
5623
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5625$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005626if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005627 $as_echo_n "(cached) " >&6
5628else
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631
5632# define __EXTENSIONS__ 1
5633 $ac_includes_default
5634int
5635main ()
5636{
5637
5638 ;
5639 return 0;
5640}
5641_ACEOF
5642if ac_fn_c_try_compile "$LINENO"; then :
5643 ac_cv_safe_to_define___extensions__=yes
5644else
5645 ac_cv_safe_to_define___extensions__=no
5646fi
5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648fi
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5650$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5651 test $ac_cv_safe_to_define___extensions__ = yes &&
5652 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5653
5654 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5655
5656 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5657
5658 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5659
5660 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5661
5662
5663
5664# Check for programs
5665ac_ext=c
5666ac_cpp='$CPP $CPPFLAGS'
5667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5669ac_compiler_gnu=$ac_cv_c_compiler_gnu
5670if test -n "$ac_tool_prefix"; then
5671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5672set dummy ${ac_tool_prefix}gcc; ac_word=$2
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005675if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005676 $as_echo_n "(cached) " >&6
5677else
5678 if test -n "$CC"; then
5679 ac_cv_prog_CC="$CC" # Let the user override the test.
5680else
5681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682for as_dir in $PATH
5683do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692done
5693 done
5694IFS=$as_save_IFS
5695
5696fi
5697fi
5698CC=$ac_cv_prog_CC
5699if test -n "$CC"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5701$as_echo "$CC" >&6; }
5702else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704$as_echo "no" >&6; }
5705fi
5706
5707
5708fi
5709if test -z "$ac_cv_prog_CC"; then
5710 ac_ct_CC=$CC
5711 # Extract the first word of "gcc", so it can be a program name with args.
5712set dummy gcc; ac_word=$2
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005715if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005716 $as_echo_n "(cached) " >&6
5717else
5718 if test -n "$ac_ct_CC"; then
5719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5720else
5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH
5723do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728 ac_cv_prog_ac_ct_CC="gcc"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732done
5733 done
5734IFS=$as_save_IFS
5735
5736fi
5737fi
5738ac_ct_CC=$ac_cv_prog_ac_ct_CC
5739if test -n "$ac_ct_CC"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5741$as_echo "$ac_ct_CC" >&6; }
5742else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745fi
5746
5747 if test "x$ac_ct_CC" = x; then
5748 CC=""
5749 else
5750 case $cross_compiling:$ac_tool_warned in
5751yes:)
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5754ac_tool_warned=yes ;;
5755esac
5756 CC=$ac_ct_CC
5757 fi
5758else
5759 CC="$ac_cv_prog_CC"
5760fi
5761
5762if test -z "$CC"; then
5763 if test -n "$ac_tool_prefix"; then
5764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5765set dummy ${ac_tool_prefix}cc; ac_word=$2
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005768if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005769 $as_echo_n "(cached) " >&6
5770else
5771 if test -n "$CC"; then
5772 ac_cv_prog_CC="$CC" # Let the user override the test.
5773else
5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH
5776do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781 ac_cv_prog_CC="${ac_tool_prefix}cc"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785done
5786 done
5787IFS=$as_save_IFS
5788
5789fi
5790fi
5791CC=$ac_cv_prog_CC
5792if test -n "$CC"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5794$as_echo "$CC" >&6; }
5795else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797$as_echo "no" >&6; }
5798fi
5799
5800
5801 fi
5802fi
5803if test -z "$CC"; then
5804 # Extract the first word of "cc", so it can be a program name with args.
5805set dummy cc; ac_word=$2
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005808if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005809 $as_echo_n "(cached) " >&6
5810else
5811 if test -n "$CC"; then
5812 ac_cv_prog_CC="$CC" # Let the user override the test.
5813else
5814 ac_prog_rejected=no
5815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816for as_dir in $PATH
5817do
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5823 ac_prog_rejected=yes
5824 continue
5825 fi
5826 ac_cv_prog_CC="cc"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830done
5831 done
5832IFS=$as_save_IFS
5833
5834if test $ac_prog_rejected = yes; then
5835 # We found a bogon in the path, so make sure we never use it.
5836 set dummy $ac_cv_prog_CC
5837 shift
5838 if test $# != 0; then
5839 # We chose a different compiler from the bogus one.
5840 # However, it has the same basename, so the bogon will be chosen
5841 # first if we set CC to just the basename; use the full file name.
5842 shift
5843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5844 fi
5845fi
5846fi
5847fi
5848CC=$ac_cv_prog_CC
5849if test -n "$CC"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5851$as_echo "$CC" >&6; }
5852else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854$as_echo "no" >&6; }
5855fi
5856
5857
5858fi
5859if test -z "$CC"; then
5860 if test -n "$ac_tool_prefix"; then
5861 for ac_prog in cl.exe
5862 do
5863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5864set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005867if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005868 $as_echo_n "(cached) " >&6
5869else
5870 if test -n "$CC"; then
5871 ac_cv_prog_CC="$CC" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884done
5885 done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890CC=$ac_cv_prog_CC
5891if test -n "$CC"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5893$as_echo "$CC" >&6; }
5894else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899
5900 test -n "$CC" && break
5901 done
5902fi
5903if test -z "$CC"; then
5904 ac_ct_CC=$CC
5905 for ac_prog in cl.exe
5906do
5907 # Extract the first word of "$ac_prog", so it can be a program name with args.
5908set dummy $ac_prog; ac_word=$2
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005911if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005912 $as_echo_n "(cached) " >&6
5913else
5914 if test -n "$ac_ct_CC"; then
5915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_prog_ac_ct_CC="$ac_prog"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928done
5929 done
5930IFS=$as_save_IFS
5931
5932fi
5933fi
5934ac_ct_CC=$ac_cv_prog_ac_ct_CC
5935if test -n "$ac_ct_CC"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5937$as_echo "$ac_ct_CC" >&6; }
5938else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940$as_echo "no" >&6; }
5941fi
5942
5943
5944 test -n "$ac_ct_CC" && break
5945done
5946
5947 if test "x$ac_ct_CC" = x; then
5948 CC=""
5949 else
5950 case $cross_compiling:$ac_tool_warned in
5951yes:)
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954ac_tool_warned=yes ;;
5955esac
5956 CC=$ac_ct_CC
5957 fi
5958fi
5959
5960fi
5961
5962
5963test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005965as_fn_error $? "no acceptable C compiler found in \$PATH
5966See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005967
5968# Provide some information about the compiler.
5969$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5970set X $ac_compile
5971ac_compiler=$2
5972for ac_option in --version -v -V -qversion; do
5973 { { ac_try="$ac_compiler $ac_option >&5"
5974case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977esac
5978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5979$as_echo "$ac_try_echo"; } >&5
5980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5981 ac_status=$?
5982 if test -s conftest.err; then
5983 sed '10a\
5984... rest of stderr output deleted ...
5985 10q' conftest.err >conftest.er1
5986 cat conftest.er1 >&5
5987 fi
5988 rm -f conftest.er1 conftest.err
5989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5990 test $ac_status = 0; }
5991done
5992
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5994$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005995if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005996 $as_echo_n "(cached) " >&6
5997else
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999/* end confdefs.h. */
6000
6001int
6002main ()
6003{
6004#ifndef __GNUC__
6005 choke me
6006#endif
6007
6008 ;
6009 return 0;
6010}
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013 ac_compiler_gnu=yes
6014else
6015 ac_compiler_gnu=no
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018ac_cv_c_compiler_gnu=$ac_compiler_gnu
6019
6020fi
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6022$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6023if test $ac_compiler_gnu = yes; then
6024 GCC=yes
6025else
6026 GCC=
6027fi
6028ac_test_CFLAGS=${CFLAGS+set}
6029ac_save_CFLAGS=$CFLAGS
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6031$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006032if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006033 $as_echo_n "(cached) " >&6
6034else
6035 ac_save_c_werror_flag=$ac_c_werror_flag
6036 ac_c_werror_flag=yes
6037 ac_cv_prog_cc_g=no
6038 CFLAGS="-g"
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h. */
6041
6042int
6043main ()
6044{
6045
6046 ;
6047 return 0;
6048}
6049_ACEOF
6050if ac_fn_c_try_compile "$LINENO"; then :
6051 ac_cv_prog_cc_g=yes
6052else
6053 CFLAGS=""
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h. */
6056
6057int
6058main ()
6059{
6060
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066
6067else
6068 ac_c_werror_flag=$ac_save_c_werror_flag
6069 CFLAGS="-g"
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071/* end confdefs.h. */
6072
6073int
6074main ()
6075{
6076
6077 ;
6078 return 0;
6079}
6080_ACEOF
6081if ac_fn_c_try_compile "$LINENO"; then :
6082 ac_cv_prog_cc_g=yes
6083fi
6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085fi
6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087fi
6088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 ac_c_werror_flag=$ac_save_c_werror_flag
6090fi
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6092$as_echo "$ac_cv_prog_cc_g" >&6; }
6093if test "$ac_test_CFLAGS" = set; then
6094 CFLAGS=$ac_save_CFLAGS
6095elif test $ac_cv_prog_cc_g = yes; then
6096 if test "$GCC" = yes; then
6097 CFLAGS="-g -O2"
6098 else
6099 CFLAGS="-g"
6100 fi
6101else
6102 if test "$GCC" = yes; then
6103 CFLAGS="-O2"
6104 else
6105 CFLAGS=
6106 fi
6107fi
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6109$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006110if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006111 $as_echo_n "(cached) " >&6
6112else
6113 ac_cv_prog_cc_c89=no
6114ac_save_CC=$CC
6115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h. */
6117#include <stdarg.h>
6118#include <stdio.h>
6119#include <sys/types.h>
6120#include <sys/stat.h>
6121/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6122struct buf { int x; };
6123FILE * (*rcsopen) (struct buf *, struct stat *, int);
6124static char *e (p, i)
6125 char **p;
6126 int i;
6127{
6128 return p[i];
6129}
6130static char *f (char * (*g) (char **, int), char **p, ...)
6131{
6132 char *s;
6133 va_list v;
6134 va_start (v,p);
6135 s = g (p, va_arg (v,int));
6136 va_end (v);
6137 return s;
6138}
6139
6140/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6141 function prototypes and stuff, but not '\xHH' hex character constants.
6142 These don't provoke an error unfortunately, instead are silently treated
6143 as 'x'. The following induces an error, until -std is added to get
6144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6145 array size at least. It's necessary to write '\x00'==0 to get something
6146 that's true only with -std. */
6147int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6148
6149/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6150 inside strings and character constants. */
6151#define FOO(x) 'x'
6152int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6153
6154int test (int i, double x);
6155struct s1 {int (*f) (int a);};
6156struct s2 {int (*f) (double a);};
6157int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6158int argc;
6159char **argv;
6160int
6161main ()
6162{
6163return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6164 ;
6165 return 0;
6166}
6167_ACEOF
6168for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6170do
6171 CC="$ac_save_CC $ac_arg"
6172 if ac_fn_c_try_compile "$LINENO"; then :
6173 ac_cv_prog_cc_c89=$ac_arg
6174fi
6175rm -f core conftest.err conftest.$ac_objext
6176 test "x$ac_cv_prog_cc_c89" != "xno" && break
6177done
6178rm -f conftest.$ac_ext
6179CC=$ac_save_CC
6180
6181fi
6182# AC_CACHE_VAL
6183case "x$ac_cv_prog_cc_c89" in
6184 x)
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6186$as_echo "none needed" >&6; } ;;
6187 xno)
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6189$as_echo "unsupported" >&6; } ;;
6190 *)
6191 CC="$CC $ac_cv_prog_cc_c89"
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6193$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6194esac
6195if test "x$ac_cv_prog_cc_c89" != xno; then :
6196
6197fi
6198
6199ac_ext=c
6200ac_cpp='$CPP $CPPFLAGS'
6201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204
cristy73bd4a52010-10-05 11:24:23 +00006205depcc="$CC" am_compiler_list=
6206
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6208$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006209if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006210 $as_echo_n "(cached) " >&6
6211else
6212 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6213 # We make a subdir and do the tests there. Otherwise we can end up
6214 # making bogus files that we don't know about and never remove. For
6215 # instance it was reported that on HP-UX the gcc test will end up
6216 # making a dummy file named `D' -- because `-MD' means `put the output
6217 # in D'.
6218 mkdir conftest.dir
6219 # Copy depcomp to subdir because otherwise we won't find it if we're
6220 # using a relative directory.
6221 cp "$am_depcomp" conftest.dir
6222 cd conftest.dir
6223 # We will build objects and dependencies in a subdirectory because
6224 # it helps to detect inapplicable dependency modes. For instance
6225 # both Tru64's cc and ICC support -MD to output dependencies as a
6226 # side effect of compilation, but ICC will put the dependencies in
6227 # the current directory while Tru64 will put them in the object
6228 # directory.
6229 mkdir sub
6230
6231 am_cv_CC_dependencies_compiler_type=none
6232 if test "$am_compiler_list" = ""; then
6233 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6234 fi
6235 am__universal=false
6236 case " $depcc " in #(
6237 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6238 esac
6239
6240 for depmode in $am_compiler_list; do
6241 # Setup a source with many dependencies, because some compilers
6242 # like to wrap large dependency lists on column 80 (with \), and
6243 # we should not choose a depcomp mode which is confused by this.
6244 #
6245 # We need to recreate these files for each test, as the compiler may
6246 # overwrite some of them when testing with obscure command lines.
6247 # This happens at least with the AIX C compiler.
6248 : > sub/conftest.c
6249 for i in 1 2 3 4 5 6; do
6250 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6251 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6252 # Solaris 8's {/usr,}/bin/sh.
6253 touch sub/conftst$i.h
6254 done
6255 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6256
6257 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6258 # mode. It turns out that the SunPro C++ compiler does not properly
6259 # handle `-M -o', and we need to detect this. Also, some Intel
6260 # versions had trouble with output in subdirs
6261 am__obj=sub/conftest.${OBJEXT-o}
6262 am__minus_obj="-o $am__obj"
6263 case $depmode in
6264 gcc)
6265 # This depmode causes a compiler race in universal mode.
6266 test "$am__universal" = false || continue
6267 ;;
6268 nosideeffect)
6269 # after this tag, mechanisms are not by side-effect, so they'll
6270 # only be used when explicitly requested
6271 if test "x$enable_dependency_tracking" = xyes; then
6272 continue
6273 else
6274 break
6275 fi
6276 ;;
6277 msvisualcpp | msvcmsys)
6278 # This compiler won't grok `-c -o', but also, the minuso test has
6279 # not run yet. These depmodes are late enough in the game, and
6280 # so weak that their functioning should not be impacted.
6281 am__obj=conftest.${OBJEXT-o}
6282 am__minus_obj=
6283 ;;
6284 none) break ;;
6285 esac
6286 if depmode=$depmode \
6287 source=sub/conftest.c object=$am__obj \
6288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6289 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6290 >/dev/null 2>conftest.err &&
6291 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6293 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6295 # icc doesn't choke on unknown options, it will just issue warnings
6296 # or remarks (even with -Werror). So we grep stderr for any message
6297 # that says an option was ignored or not supported.
6298 # When given -MP, icc 7.0 and 7.1 complain thusly:
6299 # icc: Command line warning: ignoring option '-M'; no argument required
6300 # The diagnosis changed in icc 8.0:
6301 # icc: Command line remark: option '-MP' not supported
6302 if (grep 'ignoring option' conftest.err ||
6303 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6304 am_cv_CC_dependencies_compiler_type=$depmode
6305 break
6306 fi
6307 fi
6308 done
6309
6310 cd ..
6311 rm -rf conftest.dir
6312else
6313 am_cv_CC_dependencies_compiler_type=none
6314fi
6315
6316fi
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6318$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6319CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6320
6321 if
6322 test "x$enable_dependency_tracking" != xno \
6323 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6324 am__fastdepCC_TRUE=
6325 am__fastdepCC_FALSE='#'
6326else
6327 am__fastdepCC_TRUE='#'
6328 am__fastdepCC_FALSE=
6329fi
6330
6331
cristy95646052009-11-28 23:05:30 +00006332ac_ext=cpp
6333ac_cpp='$CXXCPP $CPPFLAGS'
6334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6337if test -z "$CXX"; then
6338 if test -n "$CCC"; then
6339 CXX=$CCC
6340 else
6341 if test -n "$ac_tool_prefix"; then
6342 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6343 do
6344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006348if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006349 $as_echo_n "(cached) " >&6
6350else
6351 if test -n "$CXX"; then
6352 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365done
6366 done
6367IFS=$as_save_IFS
6368
6369fi
6370fi
6371CXX=$ac_cv_prog_CXX
6372if test -n "$CXX"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6374$as_echo "$CXX" >&6; }
6375else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377$as_echo "no" >&6; }
6378fi
6379
6380
6381 test -n "$CXX" && break
6382 done
6383fi
6384if test -z "$CXX"; then
6385 ac_ct_CXX=$CXX
6386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6387do
6388 # Extract the first word of "$ac_prog", so it can be a program name with args.
6389set dummy $ac_prog; ac_word=$2
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006392if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006393 $as_echo_n "(cached) " >&6
6394else
6395 if test -n "$ac_ct_CXX"; then
6396 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_prog_ac_ct_CXX="$ac_prog"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409done
6410 done
6411IFS=$as_save_IFS
6412
6413fi
6414fi
6415ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6416if test -n "$ac_ct_CXX"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6418$as_echo "$ac_ct_CXX" >&6; }
6419else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421$as_echo "no" >&6; }
6422fi
6423
6424
6425 test -n "$ac_ct_CXX" && break
6426done
6427
6428 if test "x$ac_ct_CXX" = x; then
6429 CXX="g++"
6430 else
6431 case $cross_compiling:$ac_tool_warned in
6432yes:)
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435ac_tool_warned=yes ;;
6436esac
6437 CXX=$ac_ct_CXX
6438 fi
6439fi
6440
6441 fi
6442fi
6443# Provide some information about the compiler.
6444$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6445set X $ac_compile
6446ac_compiler=$2
6447for ac_option in --version -v -V -qversion; do
6448 { { ac_try="$ac_compiler $ac_option >&5"
6449case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452esac
6453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6454$as_echo "$ac_try_echo"; } >&5
6455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6456 ac_status=$?
6457 if test -s conftest.err; then
6458 sed '10a\
6459... rest of stderr output deleted ...
6460 10q' conftest.err >conftest.er1
6461 cat conftest.er1 >&5
6462 fi
6463 rm -f conftest.er1 conftest.err
6464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465 test $ac_status = 0; }
6466done
6467
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6469$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006470if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006471 $as_echo_n "(cached) " >&6
6472else
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h. */
6475
6476int
6477main ()
6478{
6479#ifndef __GNUC__
6480 choke me
6481#endif
6482
6483 ;
6484 return 0;
6485}
6486_ACEOF
6487if ac_fn_cxx_try_compile "$LINENO"; then :
6488 ac_compiler_gnu=yes
6489else
6490 ac_compiler_gnu=no
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6494
6495fi
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6497$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6498if test $ac_compiler_gnu = yes; then
6499 GXX=yes
6500else
6501 GXX=
6502fi
6503ac_test_CXXFLAGS=${CXXFLAGS+set}
6504ac_save_CXXFLAGS=$CXXFLAGS
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6506$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006507if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006508 $as_echo_n "(cached) " >&6
6509else
6510 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6511 ac_cxx_werror_flag=yes
6512 ac_cv_prog_cxx_g=no
6513 CXXFLAGS="-g"
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515/* end confdefs.h. */
6516
6517int
6518main ()
6519{
6520
6521 ;
6522 return 0;
6523}
6524_ACEOF
6525if ac_fn_cxx_try_compile "$LINENO"; then :
6526 ac_cv_prog_cxx_g=yes
6527else
6528 CXXFLAGS=""
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h. */
6531
6532int
6533main ()
6534{
6535
6536 ;
6537 return 0;
6538}
6539_ACEOF
6540if ac_fn_cxx_try_compile "$LINENO"; then :
6541
6542else
6543 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6544 CXXFLAGS="-g"
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546/* end confdefs.h. */
6547
6548int
6549main ()
6550{
6551
6552 ;
6553 return 0;
6554}
6555_ACEOF
6556if ac_fn_cxx_try_compile "$LINENO"; then :
6557 ac_cv_prog_cxx_g=yes
6558fi
6559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560fi
6561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562fi
6563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6565fi
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6567$as_echo "$ac_cv_prog_cxx_g" >&6; }
6568if test "$ac_test_CXXFLAGS" = set; then
6569 CXXFLAGS=$ac_save_CXXFLAGS
6570elif test $ac_cv_prog_cxx_g = yes; then
6571 if test "$GXX" = yes; then
6572 CXXFLAGS="-g -O2"
6573 else
6574 CXXFLAGS="-g"
6575 fi
6576else
6577 if test "$GXX" = yes; then
6578 CXXFLAGS="-O2"
6579 else
6580 CXXFLAGS=
6581 fi
6582fi
6583ac_ext=c
6584ac_cpp='$CPP $CPPFLAGS'
6585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588
cristy73bd4a52010-10-05 11:24:23 +00006589depcc="$CXX" am_compiler_list=
6590
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6592$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006593if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006594 $as_echo_n "(cached) " >&6
6595else
6596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6597 # We make a subdir and do the tests there. Otherwise we can end up
6598 # making bogus files that we don't know about and never remove. For
6599 # instance it was reported that on HP-UX the gcc test will end up
6600 # making a dummy file named `D' -- because `-MD' means `put the output
6601 # in D'.
6602 mkdir conftest.dir
6603 # Copy depcomp to subdir because otherwise we won't find it if we're
6604 # using a relative directory.
6605 cp "$am_depcomp" conftest.dir
6606 cd conftest.dir
6607 # We will build objects and dependencies in a subdirectory because
6608 # it helps to detect inapplicable dependency modes. For instance
6609 # both Tru64's cc and ICC support -MD to output dependencies as a
6610 # side effect of compilation, but ICC will put the dependencies in
6611 # the current directory while Tru64 will put them in the object
6612 # directory.
6613 mkdir sub
6614
6615 am_cv_CXX_dependencies_compiler_type=none
6616 if test "$am_compiler_list" = ""; then
6617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6618 fi
6619 am__universal=false
6620 case " $depcc " in #(
6621 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6622 esac
6623
6624 for depmode in $am_compiler_list; do
6625 # Setup a source with many dependencies, because some compilers
6626 # like to wrap large dependency lists on column 80 (with \), and
6627 # we should not choose a depcomp mode which is confused by this.
6628 #
6629 # We need to recreate these files for each test, as the compiler may
6630 # overwrite some of them when testing with obscure command lines.
6631 # This happens at least with the AIX C compiler.
6632 : > sub/conftest.c
6633 for i in 1 2 3 4 5 6; do
6634 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6635 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6636 # Solaris 8's {/usr,}/bin/sh.
6637 touch sub/conftst$i.h
6638 done
6639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6640
6641 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6642 # mode. It turns out that the SunPro C++ compiler does not properly
6643 # handle `-M -o', and we need to detect this. Also, some Intel
6644 # versions had trouble with output in subdirs
6645 am__obj=sub/conftest.${OBJEXT-o}
6646 am__minus_obj="-o $am__obj"
6647 case $depmode in
6648 gcc)
6649 # This depmode causes a compiler race in universal mode.
6650 test "$am__universal" = false || continue
6651 ;;
6652 nosideeffect)
6653 # after this tag, mechanisms are not by side-effect, so they'll
6654 # only be used when explicitly requested
6655 if test "x$enable_dependency_tracking" = xyes; then
6656 continue
6657 else
6658 break
6659 fi
6660 ;;
6661 msvisualcpp | msvcmsys)
6662 # This compiler won't grok `-c -o', but also, the minuso test has
6663 # not run yet. These depmodes are late enough in the game, and
6664 # so weak that their functioning should not be impacted.
6665 am__obj=conftest.${OBJEXT-o}
6666 am__minus_obj=
6667 ;;
6668 none) break ;;
6669 esac
6670 if depmode=$depmode \
6671 source=sub/conftest.c object=$am__obj \
6672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6673 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6674 >/dev/null 2>conftest.err &&
6675 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6677 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6679 # icc doesn't choke on unknown options, it will just issue warnings
6680 # or remarks (even with -Werror). So we grep stderr for any message
6681 # that says an option was ignored or not supported.
6682 # When given -MP, icc 7.0 and 7.1 complain thusly:
6683 # icc: Command line warning: ignoring option '-M'; no argument required
6684 # The diagnosis changed in icc 8.0:
6685 # icc: Command line remark: option '-MP' not supported
6686 if (grep 'ignoring option' conftest.err ||
6687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6688 am_cv_CXX_dependencies_compiler_type=$depmode
6689 break
6690 fi
6691 fi
6692 done
6693
6694 cd ..
6695 rm -rf conftest.dir
6696else
6697 am_cv_CXX_dependencies_compiler_type=none
6698fi
6699
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6702$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6703CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6704
6705 if
6706 test "x$enable_dependency_tracking" != xno \
6707 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6708 am__fastdepCXX_TRUE=
6709 am__fastdepCXX_FALSE='#'
6710else
6711 am__fastdepCXX_TRUE='#'
6712 am__fastdepCXX_FALSE=
6713fi
6714
6715
cristy8b350f62009-11-15 23:12:43 +00006716 case $ac_cv_prog_cc_stdc in #(
6717 no) :
6718 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6719 *) :
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006721$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006722if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006723 $as_echo_n "(cached) " >&6
6724else
6725 ac_cv_prog_cc_c99=no
6726ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006728/* end confdefs.h. */
6729#include <stdarg.h>
6730#include <stdbool.h>
6731#include <stdlib.h>
6732#include <wchar.h>
6733#include <stdio.h>
6734
6735// Check varargs macros. These examples are taken from C99 6.10.3.5.
6736#define debug(...) fprintf (stderr, __VA_ARGS__)
6737#define showlist(...) puts (#__VA_ARGS__)
6738#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6739static void
6740test_varargs_macros (void)
6741{
6742 int x = 1234;
6743 int y = 5678;
6744 debug ("Flag");
6745 debug ("X = %d\n", x);
6746 showlist (The first, second, and third items.);
6747 report (x>y, "x is %d but y is %d", x, y);
6748}
6749
6750// Check long long types.
6751#define BIG64 18446744073709551615ull
6752#define BIG32 4294967295ul
6753#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6754#if !BIG_OK
6755 your preprocessor is broken;
6756#endif
6757#if BIG_OK
6758#else
6759 your preprocessor is broken;
6760#endif
6761static long long int bignum = -9223372036854775807LL;
6762static unsigned long long int ubignum = BIG64;
6763
6764struct incomplete_array
6765{
6766 int datasize;
6767 double data[];
6768};
6769
6770struct named_init {
6771 int number;
6772 const wchar_t *name;
6773 double average;
6774};
6775
6776typedef const char *ccp;
6777
6778static inline int
6779test_restrict (ccp restrict text)
6780{
6781 // See if C++-style comments work.
6782 // Iterate through items via the restricted pointer.
6783 // Also check for declarations in for loops.
6784 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6785 continue;
6786 return 0;
6787}
6788
6789// Check varargs and va_copy.
6790static void
6791test_varargs (const char *format, ...)
6792{
6793 va_list args;
6794 va_start (args, format);
6795 va_list args_copy;
6796 va_copy (args_copy, args);
6797
6798 const char *str;
6799 int number;
6800 float fnumber;
6801
6802 while (*format)
6803 {
6804 switch (*format++)
6805 {
6806 case 's': // string
6807 str = va_arg (args_copy, const char *);
6808 break;
6809 case 'd': // int
6810 number = va_arg (args_copy, int);
6811 break;
6812 case 'f': // float
6813 fnumber = va_arg (args_copy, double);
6814 break;
6815 default:
6816 break;
6817 }
6818 }
6819 va_end (args_copy);
6820 va_end (args);
6821}
6822
6823int
6824main ()
6825{
6826
6827 // Check bool.
6828 _Bool success = false;
6829
6830 // Check restrict.
6831 if (test_restrict ("String literal") == 0)
6832 success = true;
6833 char *restrict newvar = "Another string";
6834
6835 // Check varargs.
6836 test_varargs ("s, d' f .", "string", 65, 34.234);
6837 test_varargs_macros ();
6838
6839 // Check flexible array members.
6840 struct incomplete_array *ia =
6841 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6842 ia->datasize = 10;
6843 for (int i = 0; i < ia->datasize; ++i)
6844 ia->data[i] = i * 1.234;
6845
6846 // Check named initializers.
6847 struct named_init ni = {
6848 .number = 34,
6849 .name = L"Test wide string",
6850 .average = 543.34343,
6851 };
6852
6853 ni.number = 58;
6854
6855 int dynamic_array[ni.number];
6856 dynamic_array[ni.number - 1] = 543;
6857
6858 // work around unused variable warnings
6859 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6860 || dynamic_array[ni.number - 1] != 543);
6861
6862 ;
6863 return 0;
6864}
6865_ACEOF
6866for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6867do
6868 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006869 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006870 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006871fi
cristy3ed852e2009-09-05 21:47:34 +00006872rm -f core conftest.err conftest.$ac_objext
6873 test "x$ac_cv_prog_cc_c99" != "xno" && break
6874done
6875rm -f conftest.$ac_ext
6876CC=$ac_save_CC
6877
6878fi
6879# AC_CACHE_VAL
6880case "x$ac_cv_prog_cc_c99" in
6881 x)
cristy8b350f62009-11-15 23:12:43 +00006882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006883$as_echo "none needed" >&6; } ;;
6884 xno)
cristy8b350f62009-11-15 23:12:43 +00006885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006886$as_echo "unsupported" >&6; } ;;
6887 *)
6888 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006890$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6891esac
cristy8b350f62009-11-15 23:12:43 +00006892if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006893 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6894else
cristy8b350f62009-11-15 23:12:43 +00006895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006896$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006897if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006898 $as_echo_n "(cached) " >&6
6899else
6900 ac_cv_prog_cc_c89=no
6901ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006903/* end confdefs.h. */
6904#include <stdarg.h>
6905#include <stdio.h>
6906#include <sys/types.h>
6907#include <sys/stat.h>
6908/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6909struct buf { int x; };
6910FILE * (*rcsopen) (struct buf *, struct stat *, int);
6911static char *e (p, i)
6912 char **p;
6913 int i;
6914{
6915 return p[i];
6916}
6917static char *f (char * (*g) (char **, int), char **p, ...)
6918{
6919 char *s;
6920 va_list v;
6921 va_start (v,p);
6922 s = g (p, va_arg (v,int));
6923 va_end (v);
6924 return s;
6925}
6926
6927/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6928 function prototypes and stuff, but not '\xHH' hex character constants.
6929 These don't provoke an error unfortunately, instead are silently treated
6930 as 'x'. The following induces an error, until -std is added to get
6931 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6932 array size at least. It's necessary to write '\x00'==0 to get something
6933 that's true only with -std. */
6934int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6935
6936/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6937 inside strings and character constants. */
6938#define FOO(x) 'x'
6939int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6940
6941int test (int i, double x);
6942struct s1 {int (*f) (int a);};
6943struct s2 {int (*f) (double a);};
6944int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6945int argc;
6946char **argv;
6947int
6948main ()
6949{
6950return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6951 ;
6952 return 0;
6953}
6954_ACEOF
6955for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6956 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6957do
6958 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006959 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006960 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006961fi
cristy3ed852e2009-09-05 21:47:34 +00006962rm -f core conftest.err conftest.$ac_objext
6963 test "x$ac_cv_prog_cc_c89" != "xno" && break
6964done
6965rm -f conftest.$ac_ext
6966CC=$ac_save_CC
6967
6968fi
6969# AC_CACHE_VAL
6970case "x$ac_cv_prog_cc_c89" in
6971 x)
cristy8b350f62009-11-15 23:12:43 +00006972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006973$as_echo "none needed" >&6; } ;;
6974 xno)
cristy8b350f62009-11-15 23:12:43 +00006975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006976$as_echo "unsupported" >&6; } ;;
6977 *)
6978 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006980$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6981esac
cristy8b350f62009-11-15 23:12:43 +00006982if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006983 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6984else
6985 ac_cv_prog_cc_stdc=no
6986fi
6987
cristy3ed852e2009-09-05 21:47:34 +00006988fi
cristy3ed852e2009-09-05 21:47:34 +00006989 ;;
6990esac
cristy8b350f62009-11-15 23:12:43 +00006991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006992$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006993 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006994 $as_echo_n "(cached) " >&6
6995fi
6996
cristy8b350f62009-11-15 23:12:43 +00006997 case $ac_cv_prog_cc_stdc in #(
6998 no) :
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7000$as_echo "unsupported" >&6; } ;; #(
7001 '') :
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7003$as_echo "none needed" >&6; } ;; #(
7004 *) :
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007006$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7007esac
7008
cristy3ed852e2009-09-05 21:47:34 +00007009ac_ext=c
7010ac_cpp='$CPP $CPPFLAGS'
7011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007015$as_echo_n "checking how to run the C preprocessor... " >&6; }
7016# On Suns, sometimes $CPP names a directory.
7017if test -n "$CPP" && test -d "$CPP"; then
7018 CPP=
7019fi
7020if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007021 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007022 $as_echo_n "(cached) " >&6
7023else
7024 # Double quotes because CPP needs to be expanded
7025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7026 do
7027 ac_preproc_ok=false
7028for ac_c_preproc_warn_flag in '' yes
7029do
7030 # Use a header file that comes with gcc, so configuring glibc
7031 # with a fresh cross-compiler works.
7032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7033 # <limits.h> exists even on freestanding compilers.
7034 # On the NeXT, cc -E runs the code through the compiler's parser,
7035 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007037/* end confdefs.h. */
7038#ifdef __STDC__
7039# include <limits.h>
7040#else
7041# include <assert.h>
7042#endif
7043 Syntax error
7044_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007045if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007046
cristy8b350f62009-11-15 23:12:43 +00007047else
cristy3ed852e2009-09-05 21:47:34 +00007048 # Broken: fails on valid input.
7049continue
7050fi
cristyda16f162011-02-19 23:52:17 +00007051rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007052
7053 # OK, works on sane cases. Now check whether nonexistent headers
7054 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007056/* end confdefs.h. */
7057#include <ac_nonexistent.h>
7058_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007059if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007060 # Broken: success on invalid input.
7061continue
7062else
cristy3ed852e2009-09-05 21:47:34 +00007063 # Passes both tests.
7064ac_preproc_ok=:
7065break
7066fi
cristyda16f162011-02-19 23:52:17 +00007067rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007068
7069done
7070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007071rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007072if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007073 break
7074fi
7075
7076 done
7077 ac_cv_prog_CPP=$CPP
7078
7079fi
7080 CPP=$ac_cv_prog_CPP
7081else
7082 ac_cv_prog_CPP=$CPP
7083fi
cristy8b350f62009-11-15 23:12:43 +00007084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007085$as_echo "$CPP" >&6; }
7086ac_preproc_ok=false
7087for ac_c_preproc_warn_flag in '' yes
7088do
7089 # Use a header file that comes with gcc, so configuring glibc
7090 # with a fresh cross-compiler works.
7091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7092 # <limits.h> exists even on freestanding compilers.
7093 # On the NeXT, cc -E runs the code through the compiler's parser,
7094 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007096/* end confdefs.h. */
7097#ifdef __STDC__
7098# include <limits.h>
7099#else
7100# include <assert.h>
7101#endif
7102 Syntax error
7103_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007104if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007105
cristy8b350f62009-11-15 23:12:43 +00007106else
cristy3ed852e2009-09-05 21:47:34 +00007107 # Broken: fails on valid input.
7108continue
7109fi
cristyda16f162011-02-19 23:52:17 +00007110rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007111
7112 # OK, works on sane cases. Now check whether nonexistent headers
7113 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007115/* end confdefs.h. */
7116#include <ac_nonexistent.h>
7117_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007118if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007119 # Broken: success on invalid input.
7120continue
7121else
cristy3ed852e2009-09-05 21:47:34 +00007122 # Passes both tests.
7123ac_preproc_ok=:
7124break
7125fi
cristyda16f162011-02-19 23:52:17 +00007126rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007127
7128done
7129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007130rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007131if $ac_preproc_ok; then :
7132
cristy3ed852e2009-09-05 21:47:34 +00007133else
cristy8b350f62009-11-15 23:12:43 +00007134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007136as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7137See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007138fi
7139
7140ac_ext=c
7141ac_cpp='$CPP $CPPFLAGS'
7142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145
cristy73bd4a52010-10-05 11:24:23 +00007146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7147$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007148if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007149 $as_echo_n "(cached) " >&6
7150else
7151 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7152 for ac_i in 1 2 3 4 5 6 7; do
7153 ac_script="$ac_script$as_nl$ac_script"
7154 done
7155 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7156 { ac_script=; unset ac_script;}
7157 if test -z "$SED"; then
7158 ac_path_SED_found=false
7159 # Loop through the user's path and test for each of PROGNAME-LIST
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_prog in sed gsed; do
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7168 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7169# Check for GNU ac_path_SED and select it if it is found.
7170 # Check for GNU $ac_path_SED
7171case `"$ac_path_SED" --version 2>&1` in
7172*GNU*)
7173 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7174*)
7175 ac_count=0
7176 $as_echo_n 0123456789 >"conftest.in"
7177 while :
7178 do
7179 cat "conftest.in" "conftest.in" >"conftest.tmp"
7180 mv "conftest.tmp" "conftest.in"
7181 cp "conftest.in" "conftest.nl"
7182 $as_echo '' >> "conftest.nl"
7183 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7185 as_fn_arith $ac_count + 1 && ac_count=$as_val
7186 if test $ac_count -gt ${ac_path_SED_max-0}; then
7187 # Best one so far, save it but keep looking for a better one
7188 ac_cv_path_SED="$ac_path_SED"
7189 ac_path_SED_max=$ac_count
7190 fi
7191 # 10*(2^10) chars as input seems more than enough
7192 test $ac_count -gt 10 && break
7193 done
7194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7195esac
7196
7197 $ac_path_SED_found && break 3
7198 done
7199 done
7200 done
7201IFS=$as_save_IFS
7202 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007203 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007204 fi
7205else
7206 ac_cv_path_SED=$SED
7207fi
7208
7209fi
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7211$as_echo "$ac_cv_path_SED" >&6; }
7212 SED="$ac_cv_path_SED"
7213 rm -f conftest.sed
7214
7215test -z "$SED" && SED=sed
7216Xsed="$SED -e 1s/^X//"
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7229$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007230if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007231 $as_echo_n "(cached) " >&6
7232else
7233 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7234 then ac_cv_path_FGREP="$GREP -F"
7235 else
7236 if test -z "$FGREP"; then
7237 ac_path_FGREP_found=false
7238 # Loop through the user's path and test for each of PROGNAME-LIST
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_prog in fgrep; do
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7247 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7248# Check for GNU ac_path_FGREP and select it if it is found.
7249 # Check for GNU $ac_path_FGREP
7250case `"$ac_path_FGREP" --version 2>&1` in
7251*GNU*)
7252 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7253*)
7254 ac_count=0
7255 $as_echo_n 0123456789 >"conftest.in"
7256 while :
7257 do
7258 cat "conftest.in" "conftest.in" >"conftest.tmp"
7259 mv "conftest.tmp" "conftest.in"
7260 cp "conftest.in" "conftest.nl"
7261 $as_echo 'FGREP' >> "conftest.nl"
7262 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7264 as_fn_arith $ac_count + 1 && ac_count=$as_val
7265 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7266 # Best one so far, save it but keep looking for a better one
7267 ac_cv_path_FGREP="$ac_path_FGREP"
7268 ac_path_FGREP_max=$ac_count
7269 fi
7270 # 10*(2^10) chars as input seems more than enough
7271 test $ac_count -gt 10 && break
7272 done
7273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7274esac
7275
7276 $ac_path_FGREP_found && break 3
7277 done
7278 done
7279 done
7280IFS=$as_save_IFS
7281 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007282 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007283 fi
7284else
7285 ac_cv_path_FGREP=$FGREP
7286fi
7287
7288 fi
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7291$as_echo "$ac_cv_path_FGREP" >&6; }
7292 FGREP="$ac_cv_path_FGREP"
7293
7294
7295test -z "$GREP" && GREP=grep
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
cristy0c60a692010-11-04 01:09:47 +00007313ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7314ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7315ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7316
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7318$as_echo_n "checking how to print strings... " >&6; }
7319# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007320if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007321 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7322 ECHO='print -r --'
7323elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7324 ECHO='printf %s\n'
7325else
7326 # Use this function as a fallback that always works.
7327 func_fallback_echo ()
7328 {
7329 eval 'cat <<_LTECHO_EOF
7330$1
7331_LTECHO_EOF'
7332 }
7333 ECHO='func_fallback_echo'
7334fi
7335
7336# func_echo_all arg...
7337# Invoke $ECHO with all args, space-separated.
7338func_echo_all ()
7339{
7340 $ECHO ""
7341}
7342
7343case "$ECHO" in
7344 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7345$as_echo "printf" >&6; } ;;
7346 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7347$as_echo "print -r" >&6; } ;;
7348 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7349$as_echo "cat" >&6; } ;;
7350esac
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
cristy73bd4a52010-10-05 11:24:23 +00007365
7366
7367# Check whether --with-gnu-ld was given.
7368if test "${with_gnu_ld+set}" = set; then :
7369 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7370else
7371 with_gnu_ld=no
7372fi
7373
7374ac_prog=ld
7375if test "$GCC" = yes; then
7376 # Check if gcc -print-prog-name=ld gives a path.
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7378$as_echo_n "checking for ld used by $CC... " >&6; }
7379 case $host in
7380 *-*-mingw*)
7381 # gcc leaves a trailing carriage return which upsets mingw
7382 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7383 *)
7384 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7385 esac
7386 case $ac_prog in
7387 # Accept absolute paths.
7388 [\\/]* | ?:[\\/]*)
7389 re_direlt='/[^/][^/]*/\.\./'
7390 # Canonicalize the pathname of ld
7391 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7392 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7393 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7394 done
7395 test -z "$LD" && LD="$ac_prog"
7396 ;;
7397 "")
7398 # If it fails, then pretend we aren't using GCC.
7399 ac_prog=ld
7400 ;;
7401 *)
7402 # If it is relative, then search for the first ld in PATH.
7403 with_gnu_ld=unknown
7404 ;;
7405 esac
7406elif test "$with_gnu_ld" = yes; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7408$as_echo_n "checking for GNU ld... " >&6; }
7409else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7411$as_echo_n "checking for non-GNU ld... " >&6; }
7412fi
cristyda16f162011-02-19 23:52:17 +00007413if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007414 $as_echo_n "(cached) " >&6
7415else
7416 if test -z "$LD"; then
7417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7418 for ac_dir in $PATH; do
7419 IFS="$lt_save_ifs"
7420 test -z "$ac_dir" && ac_dir=.
7421 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7422 lt_cv_path_LD="$ac_dir/$ac_prog"
7423 # Check to see if the program is GNU ld. I'd rather use --version,
7424 # but apparently some variants of GNU ld only accept -v.
7425 # Break only if it was the GNU/non-GNU ld that we prefer.
7426 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7427 *GNU* | *'with BFD'*)
7428 test "$with_gnu_ld" != no && break
7429 ;;
7430 *)
7431 test "$with_gnu_ld" != yes && break
7432 ;;
7433 esac
7434 fi
7435 done
7436 IFS="$lt_save_ifs"
7437else
7438 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7439fi
7440fi
7441
7442LD="$lt_cv_path_LD"
7443if test -n "$LD"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7445$as_echo "$LD" >&6; }
7446else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448$as_echo "no" >&6; }
7449fi
cristy98dddb52010-11-04 00:30:15 +00007450test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7452$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007453if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007454 $as_echo_n "(cached) " >&6
7455else
7456 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7457case `$LD -v 2>&1 </dev/null` in
7458*GNU* | *'with BFD'*)
7459 lt_cv_prog_gnu_ld=yes
7460 ;;
7461*)
7462 lt_cv_prog_gnu_ld=no
7463 ;;
7464esac
7465fi
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7467$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7468with_gnu_ld=$lt_cv_prog_gnu_ld
7469
7470
7471
7472
7473
7474
7475
7476
7477
cristy3ed852e2009-09-05 21:47:34 +00007478
cristy837d6dc2010-02-27 01:16:57 +00007479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7480$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007481if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007482 $as_echo_n "(cached) " >&6
7483else
7484 ac_cv_prog_cc_c99=no
7485ac_save_CC=$CC
7486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h. */
7488#include <stdarg.h>
7489#include <stdbool.h>
7490#include <stdlib.h>
7491#include <wchar.h>
7492#include <stdio.h>
7493
7494// Check varargs macros. These examples are taken from C99 6.10.3.5.
7495#define debug(...) fprintf (stderr, __VA_ARGS__)
7496#define showlist(...) puts (#__VA_ARGS__)
7497#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7498static void
7499test_varargs_macros (void)
7500{
7501 int x = 1234;
7502 int y = 5678;
7503 debug ("Flag");
7504 debug ("X = %d\n", x);
7505 showlist (The first, second, and third items.);
7506 report (x>y, "x is %d but y is %d", x, y);
7507}
7508
7509// Check long long types.
7510#define BIG64 18446744073709551615ull
7511#define BIG32 4294967295ul
7512#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7513#if !BIG_OK
7514 your preprocessor is broken;
7515#endif
7516#if BIG_OK
7517#else
7518 your preprocessor is broken;
7519#endif
7520static long long int bignum = -9223372036854775807LL;
7521static unsigned long long int ubignum = BIG64;
7522
7523struct incomplete_array
7524{
7525 int datasize;
7526 double data[];
7527};
7528
7529struct named_init {
7530 int number;
7531 const wchar_t *name;
7532 double average;
7533};
7534
7535typedef const char *ccp;
7536
7537static inline int
7538test_restrict (ccp restrict text)
7539{
7540 // See if C++-style comments work.
7541 // Iterate through items via the restricted pointer.
7542 // Also check for declarations in for loops.
7543 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7544 continue;
7545 return 0;
7546}
7547
7548// Check varargs and va_copy.
7549static void
7550test_varargs (const char *format, ...)
7551{
7552 va_list args;
7553 va_start (args, format);
7554 va_list args_copy;
7555 va_copy (args_copy, args);
7556
7557 const char *str;
7558 int number;
7559 float fnumber;
7560
7561 while (*format)
7562 {
7563 switch (*format++)
7564 {
7565 case 's': // string
7566 str = va_arg (args_copy, const char *);
7567 break;
7568 case 'd': // int
7569 number = va_arg (args_copy, int);
7570 break;
7571 case 'f': // float
7572 fnumber = va_arg (args_copy, double);
7573 break;
7574 default:
7575 break;
7576 }
7577 }
7578 va_end (args_copy);
7579 va_end (args);
7580}
7581
7582int
7583main ()
7584{
7585
7586 // Check bool.
7587 _Bool success = false;
7588
7589 // Check restrict.
7590 if (test_restrict ("String literal") == 0)
7591 success = true;
7592 char *restrict newvar = "Another string";
7593
7594 // Check varargs.
7595 test_varargs ("s, d' f .", "string", 65, 34.234);
7596 test_varargs_macros ();
7597
7598 // Check flexible array members.
7599 struct incomplete_array *ia =
7600 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7601 ia->datasize = 10;
7602 for (int i = 0; i < ia->datasize; ++i)
7603 ia->data[i] = i * 1.234;
7604
7605 // Check named initializers.
7606 struct named_init ni = {
7607 .number = 34,
7608 .name = L"Test wide string",
7609 .average = 543.34343,
7610 };
7611
7612 ni.number = 58;
7613
7614 int dynamic_array[ni.number];
7615 dynamic_array[ni.number - 1] = 543;
7616
7617 // work around unused variable warnings
7618 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7619 || dynamic_array[ni.number - 1] != 543);
7620
7621 ;
7622 return 0;
7623}
7624_ACEOF
7625for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7626do
7627 CC="$ac_save_CC $ac_arg"
7628 if ac_fn_c_try_compile "$LINENO"; then :
7629 ac_cv_prog_cc_c99=$ac_arg
7630fi
7631rm -f core conftest.err conftest.$ac_objext
7632 test "x$ac_cv_prog_cc_c99" != "xno" && break
7633done
7634rm -f conftest.$ac_ext
7635CC=$ac_save_CC
7636
7637fi
7638# AC_CACHE_VAL
7639case "x$ac_cv_prog_cc_c99" in
7640 x)
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7642$as_echo "none needed" >&6; } ;;
7643 xno)
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7645$as_echo "unsupported" >&6; } ;;
7646 *)
7647 CC="$CC $ac_cv_prog_cc_c99"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7649$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7650esac
7651if test "x$ac_cv_prog_cc_c99" != xno; then :
7652
7653fi
7654
7655
cristy73bd4a52010-10-05 11:24:23 +00007656if test "x$CC" != xcc; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7658$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7659else
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7661$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7662fi
7663set dummy $CC; ac_cc=`$as_echo "$2" |
7664 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007665if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007666 $as_echo_n "(cached) " >&6
7667else
cristy73bd4a52010-10-05 11:24:23 +00007668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669/* end confdefs.h. */
7670
7671int
7672main ()
7673{
7674
7675 ;
7676 return 0;
7677}
7678_ACEOF
7679# Make sure it works both with $CC and with simple cc.
7680# We do the test twice because some compilers refuse to overwrite an
7681# existing .o file with -o, though they will create one.
7682ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7683rm -f conftest2.*
7684if { { case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687esac
7688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7689$as_echo "$ac_try_echo"; } >&5
7690 (eval "$ac_try") 2>&5
7691 ac_status=$?
7692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7693 test $ac_status = 0; } &&
7694 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696 *) ac_try_echo=$ac_try;;
7697esac
7698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7699$as_echo "$ac_try_echo"; } >&5
7700 (eval "$ac_try") 2>&5
7701 ac_status=$?
7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; };
7704then
7705 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7706 if test "x$CC" != xcc; then
7707 # Test first that cc exists at all.
7708 if { ac_try='cc -c conftest.$ac_ext >&5'
7709 { { 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; }; }; then
7719 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7720 rm -f conftest2.*
7721 if { { case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724esac
7725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7726$as_echo "$ac_try_echo"; } >&5
7727 (eval "$ac_try") 2>&5
7728 ac_status=$?
7729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; } &&
7731 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7734esac
7735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7736$as_echo "$ac_try_echo"; } >&5
7737 (eval "$ac_try") 2>&5
7738 ac_status=$?
7739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7740 test $ac_status = 0; };
7741 then
7742 # cc works too.
7743 :
7744 else
7745 # cc exists but doesn't like -o.
7746 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7747 fi
7748 fi
7749 fi
7750else
7751 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7752fi
7753rm -f core conftest*
7754
7755fi
7756if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7758$as_echo "yes" >&6; }
7759else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
7762
7763$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7764
7765fi
7766
7767# FIXME: we rely on the cache variable name because
7768# there is no other way.
7769set dummy $CC
7770am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7771eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7772if test "$am_t" != yes; then
7773 # Losing compiler, so override with the script.
7774 # FIXME: It is wrong to rewrite CC.
7775 # But if we don't then we get into trouble of one sort or another.
7776 # A longer-term fix would be to have automake use am__CC in this case,
7777 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7778 CC="$am_aux_dir/compile $CC"
7779fi
7780
7781
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7783$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007784if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007785 $as_echo_n "(cached) " >&6
7786else
7787 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007788 ac_ext=c
7789ac_cpp='$CPP $CPPFLAGS'
7790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7792ac_compiler_gnu=$ac_cv_c_compiler_gnu
7793
7794 ac_save_CFLAGS="$CFLAGS"
7795for 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" #
7796do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798/* end confdefs.h. */
7799
7800int
7801main ()
7802{
cristy24fc1fe2010-10-23 21:13:01 +00007803
cristy73bd4a52010-10-05 11:24:23 +00007804 ;
7805 return 0;
7806}
7807_ACEOF
7808if ac_fn_c_try_compile "$LINENO"; then :
7809 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7810fi
7811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812done
7813 CFLAGS="$ac_save_CFLAGS"
7814 ac_ext=c
7815ac_cpp='$CPP $CPPFLAGS'
7816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819
7820
7821fi
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7823$as_echo "$ac_cv_cflags_warn_all" >&6; }
7824case ".$ac_cv_cflags_warn_all" in
7825 .ok|.ok,*) ;;
7826 .|.no|.no,*)
7827 ;;
7828 *)
7829 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7830 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7831 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7832 ac_status=$?
7833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7834 test $ac_status = 0; }
7835 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7836 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7837 ac_status=$?
7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839 test $ac_status = 0; }
7840 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7841 fi
7842 ;;
nicolas6237c462010-10-05 06:11:49 +00007843esac
cristy3ed852e2009-09-05 21:47:34 +00007844
cristya0b81c32010-01-22 02:54:33 +00007845
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7847$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7848set x ${MAKE-make}
7849ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007850if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007851 $as_echo_n "(cached) " >&6
7852else
7853 cat >conftest.make <<\_ACEOF
7854SHELL = /bin/sh
7855all:
7856 @echo '@@@%%%=$(MAKE)=@@@%%%'
7857_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007858# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007859case `${MAKE-make} -f conftest.make 2>/dev/null` in
7860 *@@@%%%=?*=@@@%%%*)
7861 eval ac_cv_prog_make_${ac_make}_set=yes;;
7862 *)
7863 eval ac_cv_prog_make_${ac_make}_set=no;;
7864esac
7865rm -f conftest.make
7866fi
7867if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869$as_echo "yes" >&6; }
7870 SET_MAKE=
7871else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
7874 SET_MAKE="MAKE=${MAKE-make}"
7875fi
7876
cristy8b350f62009-11-15 23:12:43 +00007877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007878$as_echo_n "checking whether ln -s works... " >&6; }
7879LN_S=$as_ln_s
7880if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007882$as_echo "yes" >&6; }
7883else
cristy8b350f62009-11-15 23:12:43 +00007884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007885$as_echo "no, using $LN_S" >&6; }
7886fi
7887
cristy73bd4a52010-10-05 11:24:23 +00007888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7889$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7890
7891# Check whether --with-dmalloc was given.
7892if test "${with_dmalloc+set}" = set; then :
7893 withval=$with_dmalloc; if test "$withval" = yes; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895$as_echo "yes" >&6; }
7896
7897$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7898
7899 LIBS="$LIBS -ldmalloc"
7900 LDFLAGS="$LDFLAGS -g"
7901else
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903$as_echo "no" >&6; }
7904fi
7905else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
7908fi
7909
7910
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7913$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007914if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007915 $as_echo_n "(cached) " >&6
7916else
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918/* end confdefs.h. */
7919#include <stdlib.h>
7920 static void foo(void) __attribute__ ((unused));
7921 static void
7922 foo(void) {
7923 exit(1);
7924 }
7925
7926int
7927main ()
7928{
7929
7930 ;
7931 return 0;
7932}
7933_ACEOF
7934if ac_fn_c_try_compile "$LINENO"; then :
7935 ax_cv___attribute__=yes
7936else
7937 ax_cv___attribute__=no
7938
7939fi
7940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941
7942fi
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7944$as_echo "$ax_cv___attribute__" >&6; }
7945 if test "$ax_cv___attribute__" = "yes"; then
7946
7947$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7948
7949 fi
7950
7951
7952
7953if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7954 if test -n "$ac_tool_prefix"; then
7955 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7956set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007959if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007960 $as_echo_n "(cached) " >&6
7961else
7962 case $PKG_CONFIG in
7963 [\\/]* | ?:[\\/]*)
7964 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7965 ;;
7966 *)
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7974 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978done
7979 done
7980IFS=$as_save_IFS
7981
7982 ;;
7983esac
7984fi
7985PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7986if test -n "$PKG_CONFIG"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7988$as_echo "$PKG_CONFIG" >&6; }
7989else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991$as_echo "no" >&6; }
7992fi
7993
7994
7995fi
7996if test -z "$ac_cv_path_PKG_CONFIG"; then
7997 ac_pt_PKG_CONFIG=$PKG_CONFIG
7998 # Extract the first word of "pkg-config", so it can be a program name with args.
7999set dummy pkg-config; ac_word=$2
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008002if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008003 $as_echo_n "(cached) " >&6
8004else
8005 case $ac_pt_PKG_CONFIG in
8006 [\\/]* | ?:[\\/]*)
8007 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8008 ;;
8009 *)
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011for as_dir in $PATH
8012do
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8020 fi
8021done
8022 done
8023IFS=$as_save_IFS
8024
8025 ;;
8026esac
8027fi
8028ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8029if test -n "$ac_pt_PKG_CONFIG"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8031$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8032else
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034$as_echo "no" >&6; }
8035fi
8036
8037 if test "x$ac_pt_PKG_CONFIG" = x; then
8038 PKG_CONFIG=""
8039 else
8040 case $cross_compiling:$ac_tool_warned in
8041yes:)
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8044ac_tool_warned=yes ;;
8045esac
8046 PKG_CONFIG=$ac_pt_PKG_CONFIG
8047 fi
8048else
8049 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8050fi
8051
8052fi
8053if test -n "$PKG_CONFIG"; then
8054 _pkg_min_version=0.9.0
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8056$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8057 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8059$as_echo "yes" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062$as_echo "no" >&6; }
8063 PKG_CONFIG=""
8064 fi
8065
8066fi
cristy3ed852e2009-09-05 21:47:34 +00008067
8068#
cristy3ed852e2009-09-05 21:47:34 +00008069# Enable run-time checking.
8070#
8071# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008072if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008073 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8074else
8075 enable_bounds_checking='no'
8076fi
8077
8078
8079if test "$enable_bounds_checking" = yes; then
8080
cristy8b350f62009-11-15 23:12:43 +00008081$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008082
8083fi
8084
8085#
8086# Tests for Windows
8087#
8088
8089
cristy73bd4a52010-10-05 11:24:23 +00008090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8091$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008092if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008093 $as_echo_n "(cached) " >&6
8094else
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096/* end confdefs.h. */
8097
8098int
8099main ()
8100{
8101#ifndef _MSC_VER
8102 choke me
8103#endif
8104
8105 ;
8106 return 0;
8107}
8108_ACEOF
8109if ac_fn_c_try_compile "$LINENO"; then :
8110 ax_compiler_ms=yes
8111else
8112 ax_compiler_ms=no
8113fi
8114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115ax_cv_c_compiler_ms=$ax_compiler_ms
8116
8117fi
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8119$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008120
8121GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008122native_win32_build='no'
8123cygwin_build='no'
8124case "${host_os}" in
8125 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008126 cygwin_build='yes'
8127 GDI32_LIBS='-lgdi32'
8128 ;;
8129 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008130 native_win32_build='yes'
8131 GDI32_LIBS='-lgdi32'
8132 ;;
8133esac
8134if test "${GDI32_LIBS}x" != 'x'; then
8135
cristy8b350f62009-11-15 23:12:43 +00008136$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008137
8138fi
8139
cristy73bd4a52010-10-05 11:24:23 +00008140 if test "${GDI32_LIBS}x" != 'x' ; then
8141 WINGDI32_DELEGATE_TRUE=
8142 WINGDI32_DELEGATE_FALSE='#'
8143else
8144 WINGDI32_DELEGATE_TRUE='#'
8145 WINGDI32_DELEGATE_FALSE=
8146fi
8147
8148 if test "${native_win32_build}" = 'yes' ; then
8149 WIN32_NATIVE_BUILD_TRUE=
8150 WIN32_NATIVE_BUILD_FALSE='#'
8151else
8152 WIN32_NATIVE_BUILD_TRUE='#'
8153 WIN32_NATIVE_BUILD_FALSE=
8154fi
8155
8156 if test "${cygwin_build}" = 'yes' ; then
8157 CYGWIN_BUILD_TRUE=
8158 CYGWIN_BUILD_FALSE='#'
8159else
8160 CYGWIN_BUILD_TRUE='#'
8161 CYGWIN_BUILD_FALSE=
8162fi
8163
8164 if test "x${CC}" = 'xcl.exe' ; then
8165 USING_CL_TRUE=
8166 USING_CL_FALSE='#'
8167else
8168 USING_CL_TRUE='#'
8169 USING_CL_FALSE=
8170fi
8171
cristy3ed852e2009-09-05 21:47:34 +00008172
8173WinPathScript="${srcdirfull}/winpath.sh"
8174
8175
8176#
8177# Compiler flags tweaks
8178#
8179if test "${GCC}" != "yes"; then
8180 case "${host}" in
8181 *-*-hpux* )
8182 # aCC: HP ANSI C++ B3910B A.03.34
8183 CFLAGS="${CFLAGS} -Wp,-H30000"
8184 if test -n "${CXXFLAGS}"; then
8185 CXXFLAGS='-AA'
8186 else
8187 CXXFLAGS="${CXXFLAGS} -AA"
8188 fi
8189 ;;
8190 *-dec-osf5.* )
8191 # Compaq alphaev68-dec-osf5.1 compiler
8192 if test -n "${CXXFLAGS}"; then
8193 CXXFLAGS='-std strict_ansi -noimplicit_include'
8194 else
8195 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8196 fi
8197 esac
8198fi
8199
8200# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008202$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008203if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008204 $as_echo_n "(cached) " >&6
8205else
8206
8207im_cv_ld_lazyload='none'
8208case "${host}" in
8209 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8210 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8211 im_cv_ld_lazyload='-Wl,-zlazyload'
8212 fi
8213 ;;
8214esac
8215
8216fi
cristy8b350f62009-11-15 23:12:43 +00008217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008218$as_echo "$im_cv_ld_lazyload" >&6; }
8219if test "${im_cv_ld_lazyload}" != 'none' ; then
8220 if test -z "${LDFLAGS}" ; then
8221 LDFLAGS="${im_cv_ld_lazyload}"
8222 else
8223 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8224 fi
8225fi
8226
8227case "$host" in
8228*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008229 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008230if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008231 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8232else
8233 build_osxuniversal=no
8234fi
8235
8236
8237 if test "${build_osxuniversal}" != no ; then
8238 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008239 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008240Please re-run configure with these options:
8241 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008242 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008243 fi
8244 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8245 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8246 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8247 fi
8248 ;;
8249esac
8250
8251# Enable support for threads
8252
8253# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008254if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008255 withval=$with_threads; with_threads=$withval
8256else
8257 with_threads='yes'
8258fi
8259
8260
8261have_threads=no
8262if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008263
8264
8265
8266ac_ext=c
8267ac_cpp='$CPP $CPPFLAGS'
8268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8270ac_compiler_gnu=$ac_cv_c_compiler_gnu
8271
8272ax_pthread_ok=no
8273
8274# We used to check for pthread.h first, but this fails if pthread.h
8275# requires special compiler flags (e.g. on True64 or Sequent).
8276# It gets checked for in the link test anyway.
8277
8278# First of all, check if the user has set any of the PTHREAD_LIBS,
8279# etcetera environment variables, and if threads linking works using
8280# them:
8281if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8282 save_CFLAGS="$CFLAGS"
8283 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8284 save_LIBS="$LIBS"
8285 LIBS="$PTHREAD_LIBS $LIBS"
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8287$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h. */
8290
8291/* Override any GCC internal prototype to avoid an error.
8292 Use char because int might match the return type of a GCC
8293 builtin and then its argument prototype would still apply. */
8294#ifdef __cplusplus
8295extern "C"
8296#endif
8297char pthread_join ();
8298int
8299main ()
8300{
8301return pthread_join ();
8302 ;
8303 return 0;
8304}
8305_ACEOF
8306if ac_fn_c_try_link "$LINENO"; then :
8307 ax_pthread_ok=yes
8308fi
8309rm -f core conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8312$as_echo "$ax_pthread_ok" >&6; }
8313 if test x"$ax_pthread_ok" = xno; then
8314 PTHREAD_LIBS=""
8315 PTHREAD_CFLAGS=""
8316 fi
8317 LIBS="$save_LIBS"
8318 CFLAGS="$save_CFLAGS"
8319fi
8320
8321# We must check for the threads library under a number of different
8322# names; the ordering is very important because some systems
8323# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8324# libraries is broken (non-POSIX).
8325
8326# Create a list of thread flags to try. Items starting with a "-" are
8327# C compiler flags, and other items are library names, except for "none"
8328# which indicates that we try without any flags at all, and "pthread-config"
8329# which is a program returning the flags for the Pth emulation library.
8330
8331ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8332
8333# The ordering *is* (sometimes) important. Some notes on the
8334# individual items follow:
8335
8336# pthreads: AIX (must check this before -lpthread)
8337# none: in case threads are in libc; should be tried before -Kthread and
8338# other compiler flags to prevent continual compiler warnings
8339# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8340# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8341# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8342# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8343# -pthreads: Solaris/gcc
8344# -mthreads: Mingw32/gcc, Lynx/gcc
8345# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8346# doesn't hurt to check since this sometimes defines pthreads too;
8347# also defines -D_REENTRANT)
8348# ... -mt is also the pthreads flag for HP/aCC
8349# pthread: Linux, etcetera
8350# --thread-safe: KAI C++
8351# pthread-config: use pthread-config program (for GNU Pth library)
8352
8353case "${host_cpu}-${host_os}" in
8354 *solaris*)
8355
8356 # On Solaris (at least, for some versions), libc contains stubbed
8357 # (non-functional) versions of the pthreads routines, so link-based
8358 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8359 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8360 # a function called by this macro, so we could check for that, but
8361 # who knows whether they'll stub that too in a future libc.) So,
8362 # we'll just look for -pthreads and -lpthread first:
8363
8364 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8365 ;;
8366
8367 *-darwin*)
8368 ax_pthread_flags="-pthread $ax_pthread_flags"
8369 ;;
8370esac
8371
8372if test x"$ax_pthread_ok" = xno; then
8373for flag in $ax_pthread_flags; do
8374
8375 case $flag in
8376 none)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8378$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8379 ;;
8380
8381 -*)
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8383$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8384 PTHREAD_CFLAGS="$flag"
8385 ;;
8386
8387 pthread-config)
8388 # Extract the first word of "pthread-config", so it can be a program name with args.
8389set dummy pthread-config; ac_word=$2
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008392if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008393 $as_echo_n "(cached) " >&6
8394else
8395 if test -n "$ax_pthread_config"; then
8396 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8397else
8398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399for as_dir in $PATH
8400do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_ax_pthread_config="yes"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8408 fi
8409done
8410 done
8411IFS=$as_save_IFS
8412
8413 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8414fi
8415fi
8416ax_pthread_config=$ac_cv_prog_ax_pthread_config
8417if test -n "$ax_pthread_config"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8419$as_echo "$ax_pthread_config" >&6; }
8420else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422$as_echo "no" >&6; }
8423fi
8424
8425
8426 if test x"$ax_pthread_config" = xno; then continue; fi
8427 PTHREAD_CFLAGS="`pthread-config --cflags`"
8428 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8429 ;;
8430
8431 *)
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8433$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8434 PTHREAD_LIBS="-l$flag"
8435 ;;
8436 esac
8437
8438 save_LIBS="$LIBS"
8439 save_CFLAGS="$CFLAGS"
8440 LIBS="$PTHREAD_LIBS $LIBS"
8441 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8442
8443 # Check for various functions. We must include pthread.h,
8444 # since some functions may be macros. (On the Sequent, we
8445 # need a special flag -Kthread to make this header compile.)
8446 # We check for pthread_join because it is in -lpthread on IRIX
8447 # while pthread_create is in libc. We check for pthread_attr_init
8448 # due to DEC craziness with -lpthreads. We check for
8449 # pthread_cleanup_push because it is one of the few pthread
8450 # functions on Solaris that doesn't have a non-functional libc stub.
8451 # We try pthread_create on general principles.
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h. */
8454#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008455 static void routine(void* a) {a=0;}
8456 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008457int
8458main ()
8459{
8460pthread_t th; pthread_attr_t attr;
8461 pthread_create(&th,0,start_routine,0);
8462 pthread_join(th, 0);
8463 pthread_attr_init(&attr);
8464 pthread_cleanup_push(routine, 0);
8465 pthread_cleanup_pop(0);
8466 ;
8467 return 0;
8468}
8469_ACEOF
8470if ac_fn_c_try_link "$LINENO"; then :
8471 ax_pthread_ok=yes
8472fi
8473rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475
8476 LIBS="$save_LIBS"
8477 CFLAGS="$save_CFLAGS"
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8480$as_echo "$ax_pthread_ok" >&6; }
8481 if test "x$ax_pthread_ok" = xyes; then
8482 break;
8483 fi
8484
8485 PTHREAD_LIBS=""
8486 PTHREAD_CFLAGS=""
8487done
8488fi
8489
8490# Various other checks:
8491if test "x$ax_pthread_ok" = xyes; then
8492 save_LIBS="$LIBS"
8493 LIBS="$PTHREAD_LIBS $LIBS"
8494 save_CFLAGS="$CFLAGS"
8495 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8496
8497 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8499$as_echo_n "checking for joinable pthread attribute... " >&6; }
8500 attr_name=unknown
8501 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503/* end confdefs.h. */
8504#include <pthread.h>
8505int
8506main ()
8507{
8508int attr=$attr; return attr;
8509 ;
8510 return 0;
8511}
8512_ACEOF
8513if ac_fn_c_try_link "$LINENO"; then :
8514 attr_name=$attr; break
8515fi
8516rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 done
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8520$as_echo "$attr_name" >&6; }
8521 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8522
8523cat >>confdefs.h <<_ACEOF
8524#define PTHREAD_CREATE_JOINABLE $attr_name
8525_ACEOF
8526
8527 fi
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8530$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8531 flag=no
8532 case "${host_cpu}-${host_os}" in
8533 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8534 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8535 esac
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8537$as_echo "${flag}" >&6; }
8538 if test "x$flag" != xno; then
8539 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8540 fi
8541
8542 LIBS="$save_LIBS"
8543 CFLAGS="$save_CFLAGS"
8544
8545 # More AIX lossage: must compile with xlc_r or cc_r
8546 if test x"$GCC" != xyes; then
8547 for ac_prog in xlc_r cc_r
8548do
8549 # Extract the first word of "$ac_prog", so it can be a program name with args.
8550set dummy $ac_prog; ac_word=$2
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008553if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008554 $as_echo_n "(cached) " >&6
8555else
8556 if test -n "$PTHREAD_CC"; then
8557 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8558else
8559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560for as_dir in $PATH
8561do
8562 IFS=$as_save_IFS
8563 test -z "$as_dir" && as_dir=.
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566 ac_cv_prog_PTHREAD_CC="$ac_prog"
8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 break 2
8569 fi
8570done
8571 done
8572IFS=$as_save_IFS
8573
8574fi
8575fi
8576PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8577if test -n "$PTHREAD_CC"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8579$as_echo "$PTHREAD_CC" >&6; }
8580else
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582$as_echo "no" >&6; }
8583fi
8584
8585
8586 test -n "$PTHREAD_CC" && break
8587done
8588test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8589
8590 else
8591 PTHREAD_CC=$CC
8592 fi
8593else
8594 PTHREAD_CC="$CC"
8595fi
8596
8597
8598
8599
8600
8601# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8602if test x"$ax_pthread_ok" = xyes; then
8603
8604$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8605
8606 :
8607else
8608 ax_pthread_ok=no
8609
8610fi
8611ac_ext=c
8612ac_cpp='$CPP $CPPFLAGS'
8613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615ac_compiler_gnu=$ac_cv_c_compiler_gnu
8616
8617
cristy7acf8fb2010-09-23 19:58:53 +00008618 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008619 have_threads=yes
8620 DEF_THREAD="$PTHREAD_CFLAGS"
8621 CFLAGS="$CFLAGS $DEF_THREAD"
8622 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8623 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008624 { $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 +00008625$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8626 CC="$PTHREAD_CC"
8627 fi
cristy55bf91c2010-09-24 00:29:41 +00008628
8629$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8630
cristy3ed852e2009-09-05 21:47:34 +00008631 fi
8632fi
8633
8634# Enable support for OpenMP
8635if test "$have_threads" != 'yes'; then
8636 ac_cv_prog_c_openmp=unsupported
8637fi
8638
8639 OPENMP_CFLAGS=
8640 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008641if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008642 enableval=$enable_openmp;
8643fi
8644
8645 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008647$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008648if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008649 $as_echo_n "(cached) " >&6
8650else
cristy8b350f62009-11-15 23:12:43 +00008651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008653
8654#ifndef _OPENMP
8655 choke me
8656#endif
8657#include <omp.h>
8658int main () { return omp_get_num_threads (); }
8659
8660_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008662 ac_cv_prog_c_openmp='none needed'
8663else
cristy8b350f62009-11-15 23:12:43 +00008664 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008665 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8666 ac_save_CFLAGS=$CFLAGS
8667 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008670
8671#ifndef _OPENMP
8672 choke me
8673#endif
8674#include <omp.h>
8675int main () { return omp_get_num_threads (); }
8676
8677_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008678if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008679 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008680fi
cristy8b350f62009-11-15 23:12:43 +00008681rm -f core conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008683 CFLAGS=$ac_save_CFLAGS
8684 if test "$ac_cv_prog_c_openmp" != unsupported; then
8685 break
8686 fi
8687 done
8688fi
cristy8b350f62009-11-15 23:12:43 +00008689rm -f core conftest.err conftest.$ac_objext \
8690 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008691fi
cristy8b350f62009-11-15 23:12:43 +00008692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008693$as_echo "$ac_cv_prog_c_openmp" >&6; }
8694 case $ac_cv_prog_c_openmp in #(
8695 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008696 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008697 *)
cristy8b350f62009-11-15 23:12:43 +00008698 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008699 esac
8700 fi
8701
8702
8703CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8704MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8705
cristy391f1ce2010-09-09 17:23:28 +00008706if test "$enable_openmp" != no; then
8707 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8708 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8709 fi
8710fi
cristy3ed852e2009-09-05 21:47:34 +00008711
cristy736173a2009-09-20 21:18:22 +00008712# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008713
8714
8715
8716ac_ext=c
8717ac_cpp='$CPP $CPPFLAGS'
8718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8720ac_compiler_gnu=$ac_cv_c_compiler_gnu
8721
8722ax_pthread_ok=no
8723
8724# We used to check for pthread.h first, but this fails if pthread.h
8725# requires special compiler flags (e.g. on True64 or Sequent).
8726# It gets checked for in the link test anyway.
8727
8728# First of all, check if the user has set any of the PTHREAD_LIBS,
8729# etcetera environment variables, and if threads linking works using
8730# them:
8731if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8732 save_CFLAGS="$CFLAGS"
8733 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8734 save_LIBS="$LIBS"
8735 LIBS="$PTHREAD_LIBS $LIBS"
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8737$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739/* end confdefs.h. */
8740
8741/* Override any GCC internal prototype to avoid an error.
8742 Use char because int might match the return type of a GCC
8743 builtin and then its argument prototype would still apply. */
8744#ifdef __cplusplus
8745extern "C"
8746#endif
8747char pthread_join ();
8748int
8749main ()
8750{
8751return pthread_join ();
8752 ;
8753 return 0;
8754}
8755_ACEOF
8756if ac_fn_c_try_link "$LINENO"; then :
8757 ax_pthread_ok=yes
8758fi
8759rm -f core conftest.err conftest.$ac_objext \
8760 conftest$ac_exeext conftest.$ac_ext
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8762$as_echo "$ax_pthread_ok" >&6; }
8763 if test x"$ax_pthread_ok" = xno; then
8764 PTHREAD_LIBS=""
8765 PTHREAD_CFLAGS=""
8766 fi
8767 LIBS="$save_LIBS"
8768 CFLAGS="$save_CFLAGS"
8769fi
8770
8771# We must check for the threads library under a number of different
8772# names; the ordering is very important because some systems
8773# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8774# libraries is broken (non-POSIX).
8775
8776# Create a list of thread flags to try. Items starting with a "-" are
8777# C compiler flags, and other items are library names, except for "none"
8778# which indicates that we try without any flags at all, and "pthread-config"
8779# which is a program returning the flags for the Pth emulation library.
8780
8781ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8782
8783# The ordering *is* (sometimes) important. Some notes on the
8784# individual items follow:
8785
8786# pthreads: AIX (must check this before -lpthread)
8787# none: in case threads are in libc; should be tried before -Kthread and
8788# other compiler flags to prevent continual compiler warnings
8789# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8790# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8791# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8792# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8793# -pthreads: Solaris/gcc
8794# -mthreads: Mingw32/gcc, Lynx/gcc
8795# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8796# doesn't hurt to check since this sometimes defines pthreads too;
8797# also defines -D_REENTRANT)
8798# ... -mt is also the pthreads flag for HP/aCC
8799# pthread: Linux, etcetera
8800# --thread-safe: KAI C++
8801# pthread-config: use pthread-config program (for GNU Pth library)
8802
8803case "${host_cpu}-${host_os}" in
8804 *solaris*)
8805
8806 # On Solaris (at least, for some versions), libc contains stubbed
8807 # (non-functional) versions of the pthreads routines, so link-based
8808 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8809 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8810 # a function called by this macro, so we could check for that, but
8811 # who knows whether they'll stub that too in a future libc.) So,
8812 # we'll just look for -pthreads and -lpthread first:
8813
8814 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8815 ;;
8816
8817 *-darwin*)
8818 ax_pthread_flags="-pthread $ax_pthread_flags"
8819 ;;
8820esac
8821
8822if test x"$ax_pthread_ok" = xno; then
8823for flag in $ax_pthread_flags; do
8824
8825 case $flag in
8826 none)
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8828$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8829 ;;
8830
8831 -*)
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8833$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8834 PTHREAD_CFLAGS="$flag"
8835 ;;
8836
8837 pthread-config)
8838 # Extract the first word of "pthread-config", so it can be a program name with args.
8839set dummy pthread-config; ac_word=$2
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008842if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008843 $as_echo_n "(cached) " >&6
8844else
8845 if test -n "$ax_pthread_config"; then
8846 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8847else
8848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849for as_dir in $PATH
8850do
8851 IFS=$as_save_IFS
8852 test -z "$as_dir" && as_dir=.
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8855 ac_cv_prog_ax_pthread_config="yes"
8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857 break 2
8858 fi
8859done
8860 done
8861IFS=$as_save_IFS
8862
8863 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8864fi
8865fi
8866ax_pthread_config=$ac_cv_prog_ax_pthread_config
8867if test -n "$ax_pthread_config"; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8869$as_echo "$ax_pthread_config" >&6; }
8870else
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872$as_echo "no" >&6; }
8873fi
8874
8875
8876 if test x"$ax_pthread_config" = xno; then continue; fi
8877 PTHREAD_CFLAGS="`pthread-config --cflags`"
8878 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8879 ;;
8880
8881 *)
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8883$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8884 PTHREAD_LIBS="-l$flag"
8885 ;;
8886 esac
8887
8888 save_LIBS="$LIBS"
8889 save_CFLAGS="$CFLAGS"
8890 LIBS="$PTHREAD_LIBS $LIBS"
8891 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8892
8893 # Check for various functions. We must include pthread.h,
8894 # since some functions may be macros. (On the Sequent, we
8895 # need a special flag -Kthread to make this header compile.)
8896 # We check for pthread_join because it is in -lpthread on IRIX
8897 # while pthread_create is in libc. We check for pthread_attr_init
8898 # due to DEC craziness with -lpthreads. We check for
8899 # pthread_cleanup_push because it is one of the few pthread
8900 # functions on Solaris that doesn't have a non-functional libc stub.
8901 # We try pthread_create on general principles.
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903/* end confdefs.h. */
8904#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008905 static void routine(void* a) {a=0;}
8906 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008907int
8908main ()
8909{
8910pthread_t th; pthread_attr_t attr;
8911 pthread_create(&th,0,start_routine,0);
8912 pthread_join(th, 0);
8913 pthread_attr_init(&attr);
8914 pthread_cleanup_push(routine, 0);
8915 pthread_cleanup_pop(0);
8916 ;
8917 return 0;
8918}
8919_ACEOF
8920if ac_fn_c_try_link "$LINENO"; then :
8921 ax_pthread_ok=yes
8922fi
8923rm -f core conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8925
8926 LIBS="$save_LIBS"
8927 CFLAGS="$save_CFLAGS"
8928
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8930$as_echo "$ax_pthread_ok" >&6; }
8931 if test "x$ax_pthread_ok" = xyes; then
8932 break;
8933 fi
8934
8935 PTHREAD_LIBS=""
8936 PTHREAD_CFLAGS=""
8937done
8938fi
8939
8940# Various other checks:
8941if test "x$ax_pthread_ok" = xyes; then
8942 save_LIBS="$LIBS"
8943 LIBS="$PTHREAD_LIBS $LIBS"
8944 save_CFLAGS="$CFLAGS"
8945 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8946
8947 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8949$as_echo_n "checking for joinable pthread attribute... " >&6; }
8950 attr_name=unknown
8951 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953/* end confdefs.h. */
8954#include <pthread.h>
8955int
8956main ()
8957{
8958int attr=$attr; return attr;
8959 ;
8960 return 0;
8961}
8962_ACEOF
8963if ac_fn_c_try_link "$LINENO"; then :
8964 attr_name=$attr; break
8965fi
8966rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 done
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8970$as_echo "$attr_name" >&6; }
8971 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8972
8973cat >>confdefs.h <<_ACEOF
8974#define PTHREAD_CREATE_JOINABLE $attr_name
8975_ACEOF
8976
8977 fi
8978
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8980$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8981 flag=no
8982 case "${host_cpu}-${host_os}" in
8983 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8984 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8985 esac
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8987$as_echo "${flag}" >&6; }
8988 if test "x$flag" != xno; then
8989 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8990 fi
8991
8992 LIBS="$save_LIBS"
8993 CFLAGS="$save_CFLAGS"
8994
8995 # More AIX lossage: must compile with xlc_r or cc_r
8996 if test x"$GCC" != xyes; then
8997 for ac_prog in xlc_r cc_r
8998do
8999 # Extract the first word of "$ac_prog", so it can be a program name with args.
9000set dummy $ac_prog; ac_word=$2
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009003if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009004 $as_echo_n "(cached) " >&6
9005else
9006 if test -n "$PTHREAD_CC"; then
9007 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9008else
9009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010for as_dir in $PATH
9011do
9012 IFS=$as_save_IFS
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9016 ac_cv_prog_PTHREAD_CC="$ac_prog"
9017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9018 break 2
9019 fi
9020done
9021 done
9022IFS=$as_save_IFS
9023
9024fi
9025fi
9026PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9027if test -n "$PTHREAD_CC"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9029$as_echo "$PTHREAD_CC" >&6; }
9030else
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032$as_echo "no" >&6; }
9033fi
9034
9035
9036 test -n "$PTHREAD_CC" && break
9037done
9038test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9039
9040 else
9041 PTHREAD_CC=$CC
9042 fi
9043else
9044 PTHREAD_CC="$CC"
9045fi
9046
9047
9048
9049
9050
9051# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9052if test x"$ax_pthread_ok" = xyes; then
9053
9054$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9055
9056 :
9057else
9058 ax_pthread_ok=no
9059
9060fi
9061ac_ext=c
9062ac_cpp='$CPP $CPPFLAGS'
9063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9065ac_compiler_gnu=$ac_cv_c_compiler_gnu
9066
9067
9068
9069# Check whether --enable-opencl was given.
9070if test "${enable_opencl+set}" = set; then :
9071 enableval=$enable_opencl; disable_opencl=$enableval
9072else
9073 disable_opencl='yes'
9074fi
9075
9076
9077if test "$disable_opencl" = 'yes'; then
9078 ac_ext=c
9079ac_cpp='$CPP $CPPFLAGS'
9080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9082ac_compiler_gnu=$ac_cv_c_compiler_gnu
9083
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9085$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009086if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009087 $as_echo_n "(cached) " >&6
9088else
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090/* end confdefs.h. */
9091
9092int
9093main ()
9094{
9095#ifndef _MSC_VER
9096 choke me
9097#endif
9098
9099 ;
9100 return 0;
9101}
9102_ACEOF
9103if ac_fn_c_try_compile "$LINENO"; then :
9104 ax_compiler_ms=yes
9105else
9106 ax_compiler_ms=no
9107fi
9108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109ax_cv_c_compiler_ms=$ax_compiler_ms
9110
9111fi
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9113$as_echo "$ax_cv_c_compiler_ms" >&6; }
9114 if test X$ax_compiler_ms = Xno; then :
9115 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9116fi
9117
9118 ax_save_CPPFLAGS=$CPPFLAGS
9119 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9120 for ac_header in CL/cl.h OpenCL/cl.h
9121do :
9122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9123ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009124if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009125 cat >>confdefs.h <<_ACEOF
9126#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9127_ACEOF
9128
9129fi
9130
9131done
9132
9133 CPPFLAGS=$ax_save_CPPFLAGS
9134
9135 for ac_header in windows.h
9136do :
9137 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009138if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009139 cat >>confdefs.h <<_ACEOF
9140#define HAVE_WINDOWS_H 1
9141_ACEOF
9142
9143fi
9144
9145done
9146
9147
9148
9149
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9151$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009152if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009153 $as_echo_n "(cached) " >&6
9154else
9155 ax_cv_check_cl_libcl=no
9156 case $host_cpu in
9157 x86_64) ax_check_cl_libdir=lib64 ;;
9158 *) ax_check_cl_libdir=lib ;;
9159 esac
9160 ax_save_CPPFLAGS=$CPPFLAGS
9161 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9162 ax_save_LIBS=$LIBS
9163 LIBS=""
9164 ax_check_libs="-lOpenCL -lCL -lclparser"
9165 for ax_lib in $ax_check_libs; do
9166 if test X$ax_compiler_ms = Xyes; then :
9167 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9168else
9169 ax_try_lib=$ax_lib
9170fi
9171 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173/* end confdefs.h. */
9174
9175 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9176 # include <windows.h>
9177 # endif
9178 # ifdef HAVE_CL_CL_H
9179 # include <CL/cl.h>
9180 # elif defined(HAVE_OPENCL_CL_H)
9181 # include <OpenCL/cl.h>
9182 # else
9183 # error no CL.h
9184 # endif
9185int
9186main ()
9187{
9188clCreateContextFromType(0,0,0,0,0)
9189 ;
9190 return 0;
9191}
9192_ACEOF
9193if ac_fn_c_try_link "$LINENO"; then :
9194 ax_cv_check_cl_libcl=$ax_try_lib; break
9195else
9196 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"
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198/* end confdefs.h. */
9199
9200 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9201 # include <windows.h>
9202 # endif
9203 # ifdef HAVE_CL_CL_H
9204 # include <CL/cl.h>
9205 # elif defined(HAVE_OPENCL_CL_H)
9206 # include <OpenCL/cl.h>
9207 # else
9208 # error no CL.h
9209 # endif
9210int
9211main ()
9212{
9213clCreateContextFromType(0,0,0,0,0)
9214 ;
9215 return 0;
9216}
9217_ACEOF
9218if ac_fn_c_try_link "$LINENO"; then :
9219 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9220else
cristy78c5a0c2010-12-04 20:00:59 +00009221 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 +00009222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223/* end confdefs.h. */
9224
9225 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9226 # include <windows.h>
9227 # endif
9228 # ifdef HAVE_CL_CL_H
9229 # include <CL/cl.h>
9230 # elif defined(HAVE_OPENCL_CL_H)
9231 # include <OpenCL/cl.h>
9232 # else
9233 # error no CL.h
9234 # endif
9235int
9236main ()
9237{
9238clCreateContextFromType(0,0,0,0,0)
9239 ;
9240 return 0;
9241}
9242_ACEOF
9243if ac_fn_c_try_link "$LINENO"; then :
9244 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9245fi
9246rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248fi
9249rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251fi
9252rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254 done
9255
9256 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009257 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259/* end confdefs.h. */
9260
9261 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9262 # include <windows.h>
9263 # endif
9264 # ifdef HAVE_CL_CL_H
9265 # include <CL/cl.h>
9266 # elif defined(HAVE_OPENCL_CL_H)
9267 # include <OpenCL/cl.h>
9268 # else
9269 # error no CL.h
9270 # endif
9271int
9272main ()
9273{
9274clCreateContextFromType(0,0,0,0,0)
9275 ;
9276 return 0;
9277}
9278_ACEOF
9279if ac_fn_c_try_link "$LINENO"; then :
9280 ax_cv_check_cl_libcl=$LIBS
9281fi
9282rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284fi
9285
9286 LIBS=$ax_save_LIBS
9287 CPPFLAGS=$ax_save_CPPFLAGS
9288fi
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9290$as_echo "$ax_cv_check_cl_libcl" >&6; }
9291
9292 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9293 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9294else
9295 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9296$as_echo "#define _OPENCL 1" >>confdefs.h
9297
9298fi
9299 ac_ext=c
9300ac_cpp='$CPP $CPPFLAGS'
9301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9303ac_compiler_gnu=$ac_cv_c_compiler_gnu
9304
9305fi
9306
9307
9308
9309
cristyc7083c12009-10-14 03:16:55 +00009310CFLAGS="$CL_CFLAGS $CFLAGS"
9311LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009312
cristy391f1ce2010-09-09 17:23:28 +00009313if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009314 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009315 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9316 fi
cristyfd9dcd42010-08-08 18:07:02 +00009317fi
cristy2e8b51d2009-10-17 18:26:15 +00009318
cristy3ed852e2009-09-05 21:47:34 +00009319########
9320#
9321# Check for large file support
9322#
9323########
9324# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009325if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009326 enableval=$enable_largefile;
9327fi
9328
9329if test "$enable_largefile" != no; then
9330
cristy8b350f62009-11-15 23:12:43 +00009331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009332$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009333if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009334 $as_echo_n "(cached) " >&6
9335else
9336 ac_cv_sys_largefile_CC=no
9337 if test "$GCC" != yes; then
9338 ac_save_CC=$CC
9339 while :; do
9340 # IRIX 6.2 and later do not support large files by default,
9341 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009343/* end confdefs.h. */
9344#include <sys/types.h>
9345 /* Check that off_t can represent 2**63 - 1 correctly.
9346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9347 since some C++ compilers masquerading as C compilers
9348 incorrectly reject 9223372036854775807. */
9349#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9351 && LARGE_OFF_T % 2147483647 == 1)
9352 ? 1 : -1];
9353int
9354main ()
9355{
9356
9357 ;
9358 return 0;
9359}
9360_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009361 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009362 break
cristy3ed852e2009-09-05 21:47:34 +00009363fi
cristy3ed852e2009-09-05 21:47:34 +00009364rm -f core conftest.err conftest.$ac_objext
9365 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009366 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009367 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009368fi
cristy3ed852e2009-09-05 21:47:34 +00009369rm -f core conftest.err conftest.$ac_objext
9370 break
9371 done
9372 CC=$ac_save_CC
9373 rm -f conftest.$ac_ext
9374 fi
9375fi
cristy8b350f62009-11-15 23:12:43 +00009376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009377$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9378 if test "$ac_cv_sys_largefile_CC" != no; then
9379 CC=$CC$ac_cv_sys_largefile_CC
9380 fi
9381
cristy8b350f62009-11-15 23:12:43 +00009382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009383$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009384if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009385 $as_echo_n "(cached) " >&6
9386else
9387 while :; do
cristy8b350f62009-11-15 23:12:43 +00009388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009389/* end confdefs.h. */
9390#include <sys/types.h>
9391 /* Check that off_t can represent 2**63 - 1 correctly.
9392 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9393 since some C++ compilers masquerading as C compilers
9394 incorrectly reject 9223372036854775807. */
9395#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9396 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9397 && LARGE_OFF_T % 2147483647 == 1)
9398 ? 1 : -1];
9399int
9400main ()
9401{
9402
9403 ;
9404 return 0;
9405}
9406_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009407if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009408 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009409fi
cristy3ed852e2009-09-05 21:47:34 +00009410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009412/* end confdefs.h. */
9413#define _FILE_OFFSET_BITS 64
9414#include <sys/types.h>
9415 /* Check that off_t can represent 2**63 - 1 correctly.
9416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9417 since some C++ compilers masquerading as C compilers
9418 incorrectly reject 9223372036854775807. */
9419#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9421 && LARGE_OFF_T % 2147483647 == 1)
9422 ? 1 : -1];
9423int
9424main ()
9425{
9426
9427 ;
9428 return 0;
9429}
9430_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009431if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009432 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009433fi
cristy3ed852e2009-09-05 21:47:34 +00009434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 ac_cv_sys_file_offset_bits=unknown
9436 break
9437done
9438fi
cristy8b350f62009-11-15 23:12:43 +00009439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009440$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9441case $ac_cv_sys_file_offset_bits in #(
9442 no | unknown) ;;
9443 *)
9444cat >>confdefs.h <<_ACEOF
9445#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9446_ACEOF
9447;;
9448esac
9449rm -rf conftest*
9450 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009452$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009453if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009454 $as_echo_n "(cached) " >&6
9455else
9456 while :; do
cristy8b350f62009-11-15 23:12:43 +00009457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009458/* end confdefs.h. */
9459#include <sys/types.h>
9460 /* Check that off_t can represent 2**63 - 1 correctly.
9461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9462 since some C++ compilers masquerading as C compilers
9463 incorrectly reject 9223372036854775807. */
9464#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9466 && LARGE_OFF_T % 2147483647 == 1)
9467 ? 1 : -1];
9468int
9469main ()
9470{
9471
9472 ;
9473 return 0;
9474}
9475_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009476if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009477 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009478fi
cristy3ed852e2009-09-05 21:47:34 +00009479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009481/* end confdefs.h. */
9482#define _LARGE_FILES 1
9483#include <sys/types.h>
9484 /* Check that off_t can represent 2**63 - 1 correctly.
9485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9486 since some C++ compilers masquerading as C compilers
9487 incorrectly reject 9223372036854775807. */
9488#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9490 && LARGE_OFF_T % 2147483647 == 1)
9491 ? 1 : -1];
9492int
9493main ()
9494{
9495
9496 ;
9497 return 0;
9498}
9499_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009500if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009501 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009502fi
cristy3ed852e2009-09-05 21:47:34 +00009503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 ac_cv_sys_large_files=unknown
9505 break
9506done
9507fi
cristy8b350f62009-11-15 23:12:43 +00009508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009509$as_echo "$ac_cv_sys_large_files" >&6; }
9510case $ac_cv_sys_large_files in #(
9511 no | unknown) ;;
9512 *)
9513cat >>confdefs.h <<_ACEOF
9514#define _LARGE_FILES $ac_cv_sys_large_files
9515_ACEOF
9516;;
9517esac
9518rm -rf conftest*
9519 fi
9520fi
9521
cristy8b350f62009-11-15 23:12:43 +00009522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009523$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009524if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009525 $as_echo_n "(cached) " >&6
9526else
9527 while :; do
cristy8b350f62009-11-15 23:12:43 +00009528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009529/* end confdefs.h. */
9530#include <sys/types.h> /* for off_t */
9531 #include <stdio.h>
9532int
9533main ()
9534{
9535int (*fp) (FILE *, off_t, int) = fseeko;
9536 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9537 ;
9538 return 0;
9539}
9540_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009541if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009542 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009543fi
cristy8b350f62009-11-15 23:12:43 +00009544rm -f core conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009547/* end confdefs.h. */
9548#define _LARGEFILE_SOURCE 1
9549#include <sys/types.h> /* for off_t */
9550 #include <stdio.h>
9551int
9552main ()
9553{
9554int (*fp) (FILE *, off_t, int) = fseeko;
9555 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9556 ;
9557 return 0;
9558}
9559_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009560if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009561 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009562fi
cristy8b350f62009-11-15 23:12:43 +00009563rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009565 ac_cv_sys_largefile_source=unknown
9566 break
9567done
9568fi
cristy8b350f62009-11-15 23:12:43 +00009569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009570$as_echo "$ac_cv_sys_largefile_source" >&6; }
9571case $ac_cv_sys_largefile_source in #(
9572 no | unknown) ;;
9573 *)
9574cat >>confdefs.h <<_ACEOF
9575#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9576_ACEOF
9577;;
9578esac
9579rm -rf conftest*
9580
9581# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9582# in glibc 2.1.3, but that breaks too many other things.
9583# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9584if test $ac_cv_sys_largefile_source != unknown; then
9585
cristy8b350f62009-11-15 23:12:43 +00009586$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009587
9588fi
9589
9590LFS_CPPFLAGS=''
9591if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009592 case $ac_cv_sys_file_offset_bits in
9593 no)
9594 # nothing to do here as the host supports LFS fine
9595 ;;
9596 unknown)
cristy8b350f62009-11-15 23:12:43 +00009597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009598$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009599 if test "$cross_compiling" = yes; then :
9600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009602as_fn_error $? "cannot run test program while cross compiling
9603See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009604else
cristy8b350f62009-11-15 23:12:43 +00009605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009607#include <unistd.h>
9608 main () {
9609 exit(!(sizeof(off_t) == 8));
9610 }
cristyda16f162011-02-19 23:52:17 +00009611int
9612main ()
9613{
9614
9615 ;
9616 return 0;
9617}
cristy3ed852e2009-09-05 21:47:34 +00009618_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009619if ac_fn_c_try_run "$LINENO"; then :
9620 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009621
cristy8b350f62009-11-15 23:12:43 +00009622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009623$as_echo "yes" >&6; }
9624else
cristy8b350f62009-11-15 23:12:43 +00009625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009626$as_echo "no" >&6; }
9627fi
cristy8b350f62009-11-15 23:12:43 +00009628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9629 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009630fi
9631
cristyc1e0cc12011-09-21 16:41:16 +00009632 ;;
9633 *)
9634 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9635 ;;
9636 esac
cristy3ed852e2009-09-05 21:47:34 +00009637 if test "$ac_cv_sys_large_files" != 'no'; then
9638 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9639 fi
9640 if test "$ac_cv_sys_largefile_source" != 'no'; then
9641 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9642 fi
9643fi
9644
9645
9646#
9647# Configure libtool & libltdl
9648#
9649# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009650enable_dlopen=yes
9651
9652
9653
9654case `pwd` in
9655 *\ * | *\ *)
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9657$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9658esac
9659
9660
9661
cristyda16f162011-02-19 23:52:17 +00009662macro_version='2.4'
9663macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677ltmain="$ac_aux_dir/ltmain.sh"
9678
cristy0c60a692010-11-04 01:09:47 +00009679# Backslashify metacharacters that are still active within
9680# double-quoted strings.
9681sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9682
9683# Same as above, but do not quote variable references.
9684double_quote_subst='s/\(["`\\]\)/\\\1/g'
9685
9686# Sed substitution to delay expansion of an escaped shell variable in a
9687# double_quote_subst'ed string.
9688delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9689
9690# Sed substitution to delay expansion of an escaped single quote.
9691delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9692
9693# Sed substitution to avoid accidental globbing in evaled expressions
9694no_glob_subst='s/\*/\\\*/g'
9695
cristy73bd4a52010-10-05 11:24:23 +00009696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9697$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009698if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009699 $as_echo_n "(cached) " >&6
9700else
9701 if test -n "$NM"; then
9702 # Let the user override the test.
9703 lt_cv_path_NM="$NM"
9704else
9705 lt_nm_to_check="${ac_tool_prefix}nm"
9706 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9707 lt_nm_to_check="$lt_nm_to_check nm"
9708 fi
9709 for lt_tmp_nm in $lt_nm_to_check; do
9710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9711 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9712 IFS="$lt_save_ifs"
9713 test -z "$ac_dir" && ac_dir=.
9714 tmp_nm="$ac_dir/$lt_tmp_nm"
9715 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9716 # Check to see if the nm accepts a BSD-compat flag.
9717 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9718 # nm: unknown option "B" ignored
9719 # Tru64's nm complains that /dev/null is an invalid object file
9720 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9721 */dev/null* | *'Invalid file or object type'*)
9722 lt_cv_path_NM="$tmp_nm -B"
9723 break
9724 ;;
9725 *)
9726 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9727 */dev/null*)
9728 lt_cv_path_NM="$tmp_nm -p"
9729 break
9730 ;;
9731 *)
9732 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9733 continue # so that we can try to find one that supports BSD flags
9734 ;;
9735 esac
9736 ;;
9737 esac
9738 fi
9739 done
9740 IFS="$lt_save_ifs"
9741 done
9742 : ${lt_cv_path_NM=no}
9743fi
9744fi
9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9746$as_echo "$lt_cv_path_NM" >&6; }
9747if test "$lt_cv_path_NM" != "no"; then
9748 NM="$lt_cv_path_NM"
9749else
9750 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009751 if test -n "$DUMPBIN"; then :
9752 # Let the user override the test.
9753 else
9754 if test -n "$ac_tool_prefix"; then
9755 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009756 do
9757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9758set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009761if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009762 $as_echo_n "(cached) " >&6
9763else
9764 if test -n "$DUMPBIN"; then
9765 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9766else
9767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768for as_dir in $PATH
9769do
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9774 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 break 2
9777 fi
9778done
9779 done
9780IFS=$as_save_IFS
9781
9782fi
9783fi
9784DUMPBIN=$ac_cv_prog_DUMPBIN
9785if test -n "$DUMPBIN"; then
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9787$as_echo "$DUMPBIN" >&6; }
9788else
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790$as_echo "no" >&6; }
9791fi
9792
9793
9794 test -n "$DUMPBIN" && break
9795 done
9796fi
9797if test -z "$DUMPBIN"; then
9798 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009799 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009800do
9801 # Extract the first word of "$ac_prog", so it can be a program name with args.
9802set dummy $ac_prog; ac_word=$2
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009805if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009806 $as_echo_n "(cached) " >&6
9807else
9808 if test -n "$ac_ct_DUMPBIN"; then
9809 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9810else
9811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812for as_dir in $PATH
9813do
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9821 fi
9822done
9823 done
9824IFS=$as_save_IFS
9825
9826fi
9827fi
9828ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9829if test -n "$ac_ct_DUMPBIN"; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9831$as_echo "$ac_ct_DUMPBIN" >&6; }
9832else
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834$as_echo "no" >&6; }
9835fi
9836
9837
9838 test -n "$ac_ct_DUMPBIN" && break
9839done
9840
9841 if test "x$ac_ct_DUMPBIN" = x; then
9842 DUMPBIN=":"
9843 else
9844 case $cross_compiling:$ac_tool_warned in
9845yes:)
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9848ac_tool_warned=yes ;;
9849esac
9850 DUMPBIN=$ac_ct_DUMPBIN
9851 fi
9852fi
9853
cristy0c60a692010-11-04 01:09:47 +00009854 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9855 *COFF*)
9856 DUMPBIN="$DUMPBIN -symbols"
9857 ;;
9858 *)
9859 DUMPBIN=:
9860 ;;
9861 esac
9862 fi
cristy73bd4a52010-10-05 11:24:23 +00009863
9864 if test "$DUMPBIN" != ":"; then
9865 NM="$DUMPBIN"
9866 fi
9867fi
9868test -z "$NM" && NM=nm
9869
9870
9871
9872
9873
9874
9875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9876$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009877if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009878 $as_echo_n "(cached) " >&6
9879else
9880 lt_cv_nm_interface="BSD nm"
9881 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009882 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009883 (eval "$ac_compile" 2>conftest.err)
9884 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009885 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009886 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9887 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009888 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009889 cat conftest.out >&5
9890 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9891 lt_cv_nm_interface="MS dumpbin"
9892 fi
9893 rm -f conftest*
9894fi
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9896$as_echo "$lt_cv_nm_interface" >&6; }
9897
9898# find the maximum length of command line arguments
9899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9900$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009901if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009902 $as_echo_n "(cached) " >&6
9903else
9904 i=0
9905 teststring="ABCD"
9906
9907 case $build_os in
9908 msdosdjgpp*)
9909 # On DJGPP, this test can blow up pretty badly due to problems in libc
9910 # (any single argument exceeding 2000 bytes causes a buffer overrun
9911 # during glob expansion). Even if it were fixed, the result of this
9912 # check would be larger than it should be.
9913 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9914 ;;
9915
9916 gnu*)
9917 # Under GNU Hurd, this test is not required because there is
9918 # no limit to the length of command line arguments.
9919 # Libtool will interpret -1 as no limit whatsoever
9920 lt_cv_sys_max_cmd_len=-1;
9921 ;;
9922
9923 cygwin* | mingw* | cegcc*)
9924 # On Win9x/ME, this test blows up -- it succeeds, but takes
9925 # about 5 minutes as the teststring grows exponentially.
9926 # Worse, since 9x/ME are not pre-emptively multitasking,
9927 # you end up with a "frozen" computer, even though with patience
9928 # the test eventually succeeds (with a max line length of 256k).
9929 # Instead, let's just punt: use the minimum linelength reported by
9930 # all of the supported platforms: 8192 (on NT/2K/XP).
9931 lt_cv_sys_max_cmd_len=8192;
9932 ;;
9933
cristy0c60a692010-11-04 01:09:47 +00009934 mint*)
9935 # On MiNT this can take a long time and run out of memory.
9936 lt_cv_sys_max_cmd_len=8192;
9937 ;;
9938
cristy73bd4a52010-10-05 11:24:23 +00009939 amigaos*)
9940 # On AmigaOS with pdksh, this test takes hours, literally.
9941 # So we just punt and use a minimum line length of 8192.
9942 lt_cv_sys_max_cmd_len=8192;
9943 ;;
9944
9945 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9946 # This has been around since 386BSD, at least. Likely further.
9947 if test -x /sbin/sysctl; then
9948 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9949 elif test -x /usr/sbin/sysctl; then
9950 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9951 else
9952 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9953 fi
9954 # And add a safety zone
9955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9957 ;;
9958
9959 interix*)
9960 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9961 lt_cv_sys_max_cmd_len=196608
9962 ;;
9963
9964 osf*)
9965 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9966 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9967 # nice to cause kernel panics so lets avoid the loop below.
9968 # First set a reasonable default.
9969 lt_cv_sys_max_cmd_len=16384
9970 #
9971 if test -x /sbin/sysconfig; then
9972 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9973 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9974 esac
9975 fi
9976 ;;
9977 sco3.2v5*)
9978 lt_cv_sys_max_cmd_len=102400
9979 ;;
9980 sysv5* | sco5v6* | sysv4.2uw2*)
9981 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9982 if test -n "$kargmax"; then
9983 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9984 else
9985 lt_cv_sys_max_cmd_len=32768
9986 fi
9987 ;;
9988 *)
9989 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9990 if test -n "$lt_cv_sys_max_cmd_len"; then
9991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9993 else
9994 # Make teststring a little bigger before we do anything with it.
9995 # a 1K string should be a reasonable start.
9996 for i in 1 2 3 4 5 6 7 8 ; do
9997 teststring=$teststring$teststring
9998 done
9999 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10000 # If test is not a shell built-in, we'll probably end up computing a
10001 # maximum length that is only half of the actual maximum length, but
10002 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +000010003 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10004 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010005 test $i != 17 # 1/2 MB should be enough
10006 do
10007 i=`expr $i + 1`
10008 teststring=$teststring$teststring
10009 done
10010 # Only check the string length outside the loop.
10011 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10012 teststring=
10013 # Add a significant safety factor because C++ compilers can tack on
10014 # massive amounts of additional arguments before passing them to the
10015 # linker. It appears as though 1/2 is a usable value.
10016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10017 fi
10018 ;;
10019 esac
10020
10021fi
10022
10023if test -n $lt_cv_sys_max_cmd_len ; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10025$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10026else
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10028$as_echo "none" >&6; }
10029fi
10030max_cmd_len=$lt_cv_sys_max_cmd_len
10031
10032
10033
10034
10035
10036
10037: ${CP="cp -f"}
10038: ${MV="mv -f"}
10039: ${RM="rm -f"}
10040
10041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10042$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10043# Try some XSI features
10044xsi_shell=no
10045( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010046 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10047 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010048 && eval 'test $(( 1 + 1 )) -eq 2 \
10049 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10050 && xsi_shell=yes
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10052$as_echo "$xsi_shell" >&6; }
10053
10054
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10056$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10057lt_shell_append=no
10058( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10059 >/dev/null 2>&1 \
10060 && lt_shell_append=yes
10061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10062$as_echo "$lt_shell_append" >&6; }
10063
10064
10065if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10066 lt_unset=unset
10067else
10068 lt_unset=false
10069fi
10070
10071
10072
10073
10074
10075# test EBCDIC or ASCII
10076case `echo X|tr X '\101'` in
10077 A) # ASCII based system
10078 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10079 lt_SP2NL='tr \040 \012'
10080 lt_NL2SP='tr \015\012 \040\040'
10081 ;;
10082 *) # EBCDIC based system
10083 lt_SP2NL='tr \100 \n'
10084 lt_NL2SP='tr \r\n \100\100'
10085 ;;
10086esac
10087
10088
10089
10090
10091
10092
10093
10094
10095
cristyda16f162011-02-19 23:52:17 +000010096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10097$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10098if ${lt_cv_to_host_file_cmd+:} false; then :
10099 $as_echo_n "(cached) " >&6
10100else
10101 case $host in
10102 *-*-mingw* )
10103 case $build in
10104 *-*-mingw* ) # actually msys
10105 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10106 ;;
10107 *-*-cygwin* )
10108 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10109 ;;
10110 * ) # otherwise, assume *nix
10111 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10112 ;;
10113 esac
10114 ;;
10115 *-*-cygwin* )
10116 case $build in
10117 *-*-mingw* ) # actually msys
10118 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10119 ;;
10120 *-*-cygwin* )
10121 lt_cv_to_host_file_cmd=func_convert_file_noop
10122 ;;
10123 * ) # otherwise, assume *nix
10124 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10125 ;;
10126 esac
10127 ;;
10128 * ) # unhandled hosts (and "normal" native builds)
10129 lt_cv_to_host_file_cmd=func_convert_file_noop
10130 ;;
10131esac
10132
10133fi
10134
10135to_host_file_cmd=$lt_cv_to_host_file_cmd
10136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10137$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10138
10139
10140
10141
10142
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10144$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10145if ${lt_cv_to_tool_file_cmd+:} false; then :
10146 $as_echo_n "(cached) " >&6
10147else
10148 #assume ordinary cross tools, or native build.
10149lt_cv_to_tool_file_cmd=func_convert_file_noop
10150case $host in
10151 *-*-mingw* )
10152 case $build in
10153 *-*-mingw* ) # actually msys
10154 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10155 ;;
10156 esac
10157 ;;
10158esac
10159
10160fi
10161
10162to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10164$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10165
10166
10167
10168
10169
cristy73bd4a52010-10-05 11:24:23 +000010170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10171$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010172if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010173 $as_echo_n "(cached) " >&6
10174else
10175 lt_cv_ld_reload_flag='-r'
10176fi
10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10178$as_echo "$lt_cv_ld_reload_flag" >&6; }
10179reload_flag=$lt_cv_ld_reload_flag
10180case $reload_flag in
10181"" | " "*) ;;
10182*) reload_flag=" $reload_flag" ;;
10183esac
10184reload_cmds='$LD$reload_flag -o $output$reload_objs'
10185case $host_os in
cristyda16f162011-02-19 23:52:17 +000010186 cygwin* | mingw* | pw32* | cegcc*)
10187 if test "$GCC" != yes; then
10188 reload_cmds=false
10189 fi
10190 ;;
cristy73bd4a52010-10-05 11:24:23 +000010191 darwin*)
10192 if test "$GCC" = yes; then
10193 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10194 else
10195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10196 fi
10197 ;;
10198esac
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208if test -n "$ac_tool_prefix"; then
10209 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10210set dummy ${ac_tool_prefix}objdump; ac_word=$2
10211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010213if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010214 $as_echo_n "(cached) " >&6
10215else
10216 if test -n "$OBJDUMP"; then
10217 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10218else
10219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220for as_dir in $PATH
10221do
10222 IFS=$as_save_IFS
10223 test -z "$as_dir" && as_dir=.
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10226 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10228 break 2
10229 fi
10230done
10231 done
10232IFS=$as_save_IFS
10233
10234fi
10235fi
10236OBJDUMP=$ac_cv_prog_OBJDUMP
10237if test -n "$OBJDUMP"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10239$as_echo "$OBJDUMP" >&6; }
10240else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242$as_echo "no" >&6; }
10243fi
10244
10245
10246fi
10247if test -z "$ac_cv_prog_OBJDUMP"; then
10248 ac_ct_OBJDUMP=$OBJDUMP
10249 # Extract the first word of "objdump", so it can be a program name with args.
10250set dummy objdump; ac_word=$2
10251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010253if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010254 $as_echo_n "(cached) " >&6
10255else
10256 if test -n "$ac_ct_OBJDUMP"; then
10257 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10258else
10259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260for as_dir in $PATH
10261do
10262 IFS=$as_save_IFS
10263 test -z "$as_dir" && as_dir=.
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10266 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268 break 2
10269 fi
10270done
10271 done
10272IFS=$as_save_IFS
10273
10274fi
10275fi
10276ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10277if test -n "$ac_ct_OBJDUMP"; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10279$as_echo "$ac_ct_OBJDUMP" >&6; }
10280else
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282$as_echo "no" >&6; }
10283fi
10284
10285 if test "x$ac_ct_OBJDUMP" = x; then
10286 OBJDUMP="false"
10287 else
10288 case $cross_compiling:$ac_tool_warned in
10289yes:)
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10292ac_tool_warned=yes ;;
10293esac
10294 OBJDUMP=$ac_ct_OBJDUMP
10295 fi
10296else
10297 OBJDUMP="$ac_cv_prog_OBJDUMP"
10298fi
10299
10300test -z "$OBJDUMP" && OBJDUMP=objdump
10301
10302
10303
10304
10305
10306
10307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10308$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010309if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010310 $as_echo_n "(cached) " >&6
10311else
10312 lt_cv_file_magic_cmd='$MAGIC_CMD'
10313lt_cv_file_magic_test_file=
10314lt_cv_deplibs_check_method='unknown'
10315# Need to set the preceding variable on all platforms that support
10316# interlibrary dependencies.
10317# 'none' -- dependencies not supported.
10318# `unknown' -- same as none, but documents that we really don't know.
10319# 'pass_all' -- all dependencies passed with no checks.
10320# 'test_compile' -- check by making test program.
10321# 'file_magic [[regex]]' -- check by looking for files in library path
10322# which responds to the $file_magic_cmd with a given extended regex.
10323# If you have `file' or equivalent on your system and you're not sure
10324# whether `pass_all' will *always* work, you probably want this one.
10325
10326case $host_os in
10327aix[4-9]*)
10328 lt_cv_deplibs_check_method=pass_all
10329 ;;
10330
10331beos*)
10332 lt_cv_deplibs_check_method=pass_all
10333 ;;
10334
10335bsdi[45]*)
10336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10337 lt_cv_file_magic_cmd='/usr/bin/file -L'
10338 lt_cv_file_magic_test_file=/shlib/libc.so
10339 ;;
10340
10341cygwin*)
10342 # func_win32_libid is a shell function defined in ltmain.sh
10343 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10344 lt_cv_file_magic_cmd='func_win32_libid'
10345 ;;
10346
10347mingw* | pw32*)
10348 # Base MSYS/MinGW do not provide the 'file' command needed by
10349 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10350 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010351 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10352 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010353 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10354 lt_cv_file_magic_cmd='func_win32_libid'
10355 else
cristy0c60a692010-11-04 01:09:47 +000010356 # Keep this pattern in sync with the one in func_win32_libid.
10357 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 +000010358 lt_cv_file_magic_cmd='$OBJDUMP -f'
10359 fi
10360 ;;
10361
cristy0c60a692010-11-04 01:09:47 +000010362cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010363 # use the weaker test based on 'objdump'. See mingw*.
10364 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10365 lt_cv_file_magic_cmd='$OBJDUMP -f'
10366 ;;
10367
10368darwin* | rhapsody*)
10369 lt_cv_deplibs_check_method=pass_all
10370 ;;
10371
10372freebsd* | dragonfly*)
10373 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10374 case $host_cpu in
10375 i*86 )
10376 # Not sure whether the presence of OpenBSD here was a mistake.
10377 # Let's accept both of them until this is cleared up.
10378 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10379 lt_cv_file_magic_cmd=/usr/bin/file
10380 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10381 ;;
10382 esac
10383 else
10384 lt_cv_deplibs_check_method=pass_all
10385 fi
10386 ;;
10387
10388gnu*)
10389 lt_cv_deplibs_check_method=pass_all
10390 ;;
10391
cristy0c60a692010-11-04 01:09:47 +000010392haiku*)
10393 lt_cv_deplibs_check_method=pass_all
10394 ;;
10395
cristy73bd4a52010-10-05 11:24:23 +000010396hpux10.20* | hpux11*)
10397 lt_cv_file_magic_cmd=/usr/bin/file
10398 case $host_cpu in
10399 ia64*)
10400 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10401 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10402 ;;
10403 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010404 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 +000010405 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10406 ;;
10407 *)
cristy0c60a692010-11-04 01:09:47 +000010408 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 +000010409 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10410 ;;
10411 esac
10412 ;;
10413
10414interix[3-9]*)
10415 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10417 ;;
10418
10419irix5* | irix6* | nonstopux*)
10420 case $LD in
10421 *-32|*"-32 ") libmagic=32-bit;;
10422 *-n32|*"-n32 ") libmagic=N32;;
10423 *-64|*"-64 ") libmagic=64-bit;;
10424 *) libmagic=never-match;;
10425 esac
10426 lt_cv_deplibs_check_method=pass_all
10427 ;;
10428
10429# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010430linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010431 lt_cv_deplibs_check_method=pass_all
10432 ;;
10433
10434netbsd*)
10435 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10437 else
10438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10439 fi
10440 ;;
10441
10442newos6*)
10443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10444 lt_cv_file_magic_cmd=/usr/bin/file
10445 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10446 ;;
10447
10448*nto* | *qnx*)
10449 lt_cv_deplibs_check_method=pass_all
10450 ;;
10451
10452openbsd*)
10453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10455 else
10456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10457 fi
10458 ;;
10459
10460osf3* | osf4* | osf5*)
10461 lt_cv_deplibs_check_method=pass_all
10462 ;;
10463
10464rdos*)
10465 lt_cv_deplibs_check_method=pass_all
10466 ;;
10467
10468solaris*)
10469 lt_cv_deplibs_check_method=pass_all
10470 ;;
10471
10472sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10473 lt_cv_deplibs_check_method=pass_all
10474 ;;
10475
10476sysv4 | sysv4.3*)
10477 case $host_vendor in
10478 motorola)
10479 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]'
10480 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10481 ;;
10482 ncr)
10483 lt_cv_deplibs_check_method=pass_all
10484 ;;
10485 sequent)
10486 lt_cv_file_magic_cmd='/bin/file'
10487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10488 ;;
10489 sni)
10490 lt_cv_file_magic_cmd='/bin/file'
10491 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10492 lt_cv_file_magic_test_file=/lib/libc.so
10493 ;;
10494 siemens)
10495 lt_cv_deplibs_check_method=pass_all
10496 ;;
10497 pc)
10498 lt_cv_deplibs_check_method=pass_all
10499 ;;
10500 esac
10501 ;;
10502
10503tpf*)
10504 lt_cv_deplibs_check_method=pass_all
10505 ;;
10506esac
10507
10508fi
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10510$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010511
10512file_magic_glob=
10513want_nocaseglob=no
10514if test "$build" = "$host"; then
10515 case $host_os in
10516 mingw* | pw32*)
10517 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10518 want_nocaseglob=yes
10519 else
10520 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10521 fi
10522 ;;
10523 esac
10524fi
10525
cristy73bd4a52010-10-05 11:24:23 +000010526file_magic_cmd=$lt_cv_file_magic_cmd
10527deplibs_check_method=$lt_cv_deplibs_check_method
10528test -z "$deplibs_check_method" && deplibs_check_method=unknown
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
cristyda16f162011-02-19 23:52:17 +000010541
10542
10543
10544
10545
10546
10547
10548
10549
10550
cristy73bd4a52010-10-05 11:24:23 +000010551if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010552 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10553set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010556if ${ac_cv_prog_DLLTOOL+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558else
10559 if test -n "$DLLTOOL"; then
10560 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10561else
10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563for as_dir in $PATH
10564do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10572 fi
10573done
10574 done
10575IFS=$as_save_IFS
10576
10577fi
10578fi
10579DLLTOOL=$ac_cv_prog_DLLTOOL
10580if test -n "$DLLTOOL"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10582$as_echo "$DLLTOOL" >&6; }
10583else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585$as_echo "no" >&6; }
10586fi
10587
10588
10589fi
10590if test -z "$ac_cv_prog_DLLTOOL"; then
10591 ac_ct_DLLTOOL=$DLLTOOL
10592 # Extract the first word of "dlltool", so it can be a program name with args.
10593set dummy dlltool; ac_word=$2
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595$as_echo_n "checking for $ac_word... " >&6; }
10596if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10597 $as_echo_n "(cached) " >&6
10598else
10599 if test -n "$ac_ct_DLLTOOL"; then
10600 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10601else
10602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603for as_dir in $PATH
10604do
10605 IFS=$as_save_IFS
10606 test -z "$as_dir" && as_dir=.
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10609 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10611 break 2
10612 fi
10613done
10614 done
10615IFS=$as_save_IFS
10616
10617fi
10618fi
10619ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10620if test -n "$ac_ct_DLLTOOL"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10622$as_echo "$ac_ct_DLLTOOL" >&6; }
10623else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625$as_echo "no" >&6; }
10626fi
10627
10628 if test "x$ac_ct_DLLTOOL" = x; then
10629 DLLTOOL="false"
10630 else
10631 case $cross_compiling:$ac_tool_warned in
10632yes:)
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10635ac_tool_warned=yes ;;
10636esac
10637 DLLTOOL=$ac_ct_DLLTOOL
10638 fi
10639else
10640 DLLTOOL="$ac_cv_prog_DLLTOOL"
10641fi
10642
10643test -z "$DLLTOOL" && DLLTOOL=dlltool
10644
10645
10646
10647
10648
10649
10650
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10652$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10653if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10654 $as_echo_n "(cached) " >&6
10655else
10656 lt_cv_sharedlib_from_linklib_cmd='unknown'
10657
10658case $host_os in
10659cygwin* | mingw* | pw32* | cegcc*)
10660 # two different shell functions defined in ltmain.sh
10661 # decide which to use based on capabilities of $DLLTOOL
10662 case `$DLLTOOL --help 2>&1` in
10663 *--identify-strict*)
10664 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10665 ;;
10666 *)
10667 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10668 ;;
10669 esac
10670 ;;
10671*)
10672 # fallback: assume linklib IS sharedlib
10673 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10674 ;;
10675esac
10676
10677fi
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10679$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10680sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10681test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10682
10683
10684
10685
10686
10687
10688
10689if test -n "$ac_tool_prefix"; then
10690 for ac_prog in ar
10691 do
10692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695$as_echo_n "checking for $ac_word... " >&6; }
10696if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010697 $as_echo_n "(cached) " >&6
10698else
10699 if test -n "$AR"; then
10700 ac_cv_prog_AR="$AR" # Let the user override the test.
10701else
10702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703for as_dir in $PATH
10704do
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 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 +000010709 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10712 fi
10713done
10714 done
10715IFS=$as_save_IFS
10716
10717fi
10718fi
10719AR=$ac_cv_prog_AR
10720if test -n "$AR"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10722$as_echo "$AR" >&6; }
10723else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725$as_echo "no" >&6; }
10726fi
10727
10728
cristyda16f162011-02-19 23:52:17 +000010729 test -n "$AR" && break
10730 done
cristy73bd4a52010-10-05 11:24:23 +000010731fi
cristyda16f162011-02-19 23:52:17 +000010732if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010733 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010734 for ac_prog in ar
10735do
10736 # Extract the first word of "$ac_prog", so it can be a program name with args.
10737set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010740if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010741 $as_echo_n "(cached) " >&6
10742else
10743 if test -n "$ac_ct_AR"; then
10744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10745else
10746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747for as_dir in $PATH
10748do
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 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 +000010753 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 break 2
10756 fi
10757done
10758 done
10759IFS=$as_save_IFS
10760
10761fi
10762fi
10763ac_ct_AR=$ac_cv_prog_ac_ct_AR
10764if test -n "$ac_ct_AR"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10766$as_echo "$ac_ct_AR" >&6; }
10767else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769$as_echo "no" >&6; }
10770fi
10771
cristyda16f162011-02-19 23:52:17 +000010772
10773 test -n "$ac_ct_AR" && break
10774done
10775
cristy73bd4a52010-10-05 11:24:23 +000010776 if test "x$ac_ct_AR" = x; then
10777 AR="false"
10778 else
10779 case $cross_compiling:$ac_tool_warned in
10780yes:)
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10783ac_tool_warned=yes ;;
10784esac
10785 AR=$ac_ct_AR
10786 fi
cristy73bd4a52010-10-05 11:24:23 +000010787fi
10788
cristyda16f162011-02-19 23:52:17 +000010789: ${AR=ar}
10790: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
cristyda16f162011-02-19 23:52:17 +000010802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10803$as_echo_n "checking for archiver @FILE support... " >&6; }
10804if ${lt_cv_ar_at_file+:} false; then :
10805 $as_echo_n "(cached) " >&6
10806else
10807 lt_cv_ar_at_file=no
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809/* end confdefs.h. */
10810
10811int
10812main ()
10813{
10814
10815 ;
10816 return 0;
10817}
10818_ACEOF
10819if ac_fn_c_try_compile "$LINENO"; then :
10820 echo conftest.$ac_objext > conftest.lst
10821 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10823 (eval $lt_ar_try) 2>&5
10824 ac_status=$?
10825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10826 test $ac_status = 0; }
10827 if test "$ac_status" -eq 0; then
10828 # Ensure the archiver fails upon bogus file names.
10829 rm -f conftest.$ac_objext libconftest.a
10830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10831 (eval $lt_ar_try) 2>&5
10832 ac_status=$?
10833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10834 test $ac_status = 0; }
10835 if test "$ac_status" -ne 0; then
10836 lt_cv_ar_at_file=@
10837 fi
10838 fi
10839 rm -f conftest.* libconftest.a
10840
10841fi
10842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843
10844fi
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10846$as_echo "$lt_cv_ar_at_file" >&6; }
10847
10848if test "x$lt_cv_ar_at_file" = xno; then
10849 archiver_list_spec=
10850else
10851 archiver_list_spec=$lt_cv_ar_at_file
10852fi
10853
10854
10855
10856
10857
10858
10859
cristy73bd4a52010-10-05 11:24:23 +000010860if test -n "$ac_tool_prefix"; then
10861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10862set dummy ${ac_tool_prefix}strip; ac_word=$2
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010865if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010866 $as_echo_n "(cached) " >&6
10867else
10868 if test -n "$STRIP"; then
10869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10870else
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880 break 2
10881 fi
10882done
10883 done
10884IFS=$as_save_IFS
10885
10886fi
10887fi
10888STRIP=$ac_cv_prog_STRIP
10889if test -n "$STRIP"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10891$as_echo "$STRIP" >&6; }
10892else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
10895fi
10896
10897
10898fi
10899if test -z "$ac_cv_prog_STRIP"; then
10900 ac_ct_STRIP=$STRIP
10901 # Extract the first word of "strip", so it can be a program name with args.
10902set dummy strip; ac_word=$2
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010905if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010906 $as_echo_n "(cached) " >&6
10907else
10908 if test -n "$ac_ct_STRIP"; then
10909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10910else
10911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912for as_dir in $PATH
10913do
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10918 ac_cv_prog_ac_ct_STRIP="strip"
10919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 break 2
10921 fi
10922done
10923 done
10924IFS=$as_save_IFS
10925
10926fi
10927fi
10928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10929if test -n "$ac_ct_STRIP"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10931$as_echo "$ac_ct_STRIP" >&6; }
10932else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934$as_echo "no" >&6; }
10935fi
10936
10937 if test "x$ac_ct_STRIP" = x; then
10938 STRIP=":"
10939 else
10940 case $cross_compiling:$ac_tool_warned in
10941yes:)
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10944ac_tool_warned=yes ;;
10945esac
10946 STRIP=$ac_ct_STRIP
10947 fi
10948else
10949 STRIP="$ac_cv_prog_STRIP"
10950fi
10951
10952test -z "$STRIP" && STRIP=:
10953
10954
10955
10956
10957
10958
10959if test -n "$ac_tool_prefix"; then
10960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10961set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010964if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010965 $as_echo_n "(cached) " >&6
10966else
10967 if test -n "$RANLIB"; then
10968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10969else
10970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971for as_dir in $PATH
10972do
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 break 2
10980 fi
10981done
10982 done
10983IFS=$as_save_IFS
10984
10985fi
10986fi
10987RANLIB=$ac_cv_prog_RANLIB
10988if test -n "$RANLIB"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10990$as_echo "$RANLIB" >&6; }
10991else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
10994fi
10995
10996
10997fi
10998if test -z "$ac_cv_prog_RANLIB"; then
10999 ac_ct_RANLIB=$RANLIB
11000 # Extract the first word of "ranlib", so it can be a program name with args.
11001set dummy ranlib; ac_word=$2
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011004if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011005 $as_echo_n "(cached) " >&6
11006else
11007 if test -n "$ac_ct_RANLIB"; then
11008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11009else
11010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011for as_dir in $PATH
11012do
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11017 ac_cv_prog_ac_ct_RANLIB="ranlib"
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 break 2
11020 fi
11021done
11022 done
11023IFS=$as_save_IFS
11024
11025fi
11026fi
11027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11028if test -n "$ac_ct_RANLIB"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11030$as_echo "$ac_ct_RANLIB" >&6; }
11031else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
11034fi
11035
11036 if test "x$ac_ct_RANLIB" = x; then
11037 RANLIB=":"
11038 else
11039 case $cross_compiling:$ac_tool_warned in
11040yes:)
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11043ac_tool_warned=yes ;;
11044esac
11045 RANLIB=$ac_ct_RANLIB
11046 fi
11047else
11048 RANLIB="$ac_cv_prog_RANLIB"
11049fi
11050
11051test -z "$RANLIB" && RANLIB=:
11052
11053
11054
11055
11056
11057
11058# Determine commands to create old-style static archives.
11059old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11060old_postinstall_cmds='chmod 644 $oldlib'
11061old_postuninstall_cmds=
11062
11063if test -n "$RANLIB"; then
11064 case $host_os in
11065 openbsd*)
11066 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11067 ;;
11068 *)
11069 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11070 ;;
11071 esac
11072 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11073fi
11074
cristy0c60a692010-11-04 01:09:47 +000011075case $host_os in
11076 darwin*)
11077 lock_old_archive_extraction=yes ;;
11078 *)
11079 lock_old_archive_extraction=no ;;
11080esac
11081
11082
11083
11084
11085
11086
cristy73bd4a52010-10-05 11:24:23 +000011087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120# If no C compiler was specified, use CC.
11121LTCC=${LTCC-"$CC"}
11122
11123# If no C compiler flags were specified, use CFLAGS.
11124LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11125
11126# Allow CC to be a program name with arguments.
11127compiler=$CC
11128
11129
11130# Check for command to grab the raw symbol name followed by C symbol from nm.
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11132$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011133if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011134 $as_echo_n "(cached) " >&6
11135else
11136
11137# These are sane defaults that work on at least a few old systems.
11138# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11139
11140# Character class describing NM global symbol codes.
11141symcode='[BCDEGRST]'
11142
11143# Regexp to match symbols that can be accessed directly from C.
11144sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11145
11146# Define system-specific variables.
11147case $host_os in
11148aix*)
11149 symcode='[BCDT]'
11150 ;;
11151cygwin* | mingw* | pw32* | cegcc*)
11152 symcode='[ABCDGISTW]'
11153 ;;
11154hpux*)
11155 if test "$host_cpu" = ia64; then
11156 symcode='[ABCDEGRST]'
11157 fi
11158 ;;
11159irix* | nonstopux*)
11160 symcode='[BCDEGRST]'
11161 ;;
11162osf*)
11163 symcode='[BCDEGQRST]'
11164 ;;
11165solaris*)
11166 symcode='[BDRT]'
11167 ;;
11168sco3.2v5*)
11169 symcode='[DT]'
11170 ;;
11171sysv4.2uw2*)
11172 symcode='[DT]'
11173 ;;
11174sysv5* | sco5v6* | unixware* | OpenUNIX*)
11175 symcode='[ABDT]'
11176 ;;
11177sysv4)
11178 symcode='[DFNSTU]'
11179 ;;
11180esac
11181
11182# If we're using GNU nm, then use its standard symbol codes.
11183case `$NM -V 2>&1` in
11184*GNU* | *'with BFD'*)
11185 symcode='[ABCDGIRSTW]' ;;
11186esac
11187
11188# Transform an extracted symbol line into a proper C declaration.
11189# Some systems (esp. on ia64) link data and code symbols differently,
11190# so use this general approach.
11191lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11192
11193# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011194lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11195lt_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 +000011196
11197# Handle CRLF in mingw tool chain
11198opt_cr=
11199case $build_os in
11200mingw*)
11201 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11202 ;;
11203esac
11204
11205# Try without a prefix underscore, then with it.
11206for ac_symprfx in "" "_"; do
11207
11208 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11209 symxfrm="\\1 $ac_symprfx\\2 \\2"
11210
11211 # Write the raw and C identifiers.
11212 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11213 # Fake it for dumpbin and say T for any non-static function
11214 # and D for any global variable.
11215 # Also find C++ and __fastcall symbols from MSVC++,
11216 # which start with @ or ?.
11217 lt_cv_sys_global_symbol_pipe="$AWK '"\
11218" {last_section=section; section=\$ 3};"\
11219" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11220" \$ 0!~/External *\|/{next};"\
11221" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11222" {if(hide[section]) next};"\
11223" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11224" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11225" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11226" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11227" ' prfx=^$ac_symprfx"
11228 else
11229 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11230 fi
cristyda16f162011-02-19 23:52:17 +000011231 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011232
11233 # Check to see that the pipe works correctly.
11234 pipe_works=no
11235
11236 rm -f conftest*
11237 cat > conftest.$ac_ext <<_LT_EOF
11238#ifdef __cplusplus
11239extern "C" {
11240#endif
11241char nm_test_var;
11242void nm_test_func(void);
11243void nm_test_func(void){}
11244#ifdef __cplusplus
11245}
11246#endif
11247int main(){nm_test_var='a';nm_test_func();return(0);}
11248_LT_EOF
11249
11250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11251 (eval $ac_compile) 2>&5
11252 ac_status=$?
11253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11254 test $ac_status = 0; }; then
11255 # Now try to grab the symbols.
11256 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11258 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011259 ac_status=$?
11260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11261 test $ac_status = 0; } && test -s "$nlist"; then
11262 # Try sorting and uniquifying the output.
11263 if sort "$nlist" | uniq > "$nlist"T; then
11264 mv -f "$nlist"T "$nlist"
11265 else
11266 rm -f "$nlist"T
11267 fi
11268
11269 # Make sure that we snagged all the symbols we need.
11270 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11271 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11272 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011273/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11274#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11275/* DATA imports from DLLs on WIN32 con't be const, because runtime
11276 relocations are performed -- see ld's documentation on pseudo-relocs. */
11277# define LT_DLSYM_CONST
11278#elif defined(__osf__)
11279/* This system does not cope well with relocations in const data. */
11280# define LT_DLSYM_CONST
11281#else
11282# define LT_DLSYM_CONST const
11283#endif
11284
cristy73bd4a52010-10-05 11:24:23 +000011285#ifdef __cplusplus
11286extern "C" {
11287#endif
11288
11289_LT_EOF
11290 # Now generate the symbol file.
11291 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11292
11293 cat <<_LT_EOF >> conftest.$ac_ext
11294
11295/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011296LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011297 const char *name;
11298 void *address;
11299}
11300lt__PROGRAM__LTX_preloaded_symbols[] =
11301{
11302 { "@PROGRAM@", (void *) 0 },
11303_LT_EOF
11304 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11305 cat <<\_LT_EOF >> conftest.$ac_ext
11306 {0, (void *) 0}
11307};
11308
11309/* This works around a problem in FreeBSD linker */
11310#ifdef FREEBSD_WORKAROUND
11311static const void *lt_preloaded_setup() {
11312 return lt__PROGRAM__LTX_preloaded_symbols;
11313}
11314#endif
11315
11316#ifdef __cplusplus
11317}
11318#endif
11319_LT_EOF
11320 # Now try linking the two files.
11321 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011322 lt_globsym_save_LIBS=$LIBS
11323 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011324 LIBS="conftstm.$ac_objext"
11325 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11327 (eval $ac_link) 2>&5
11328 ac_status=$?
11329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11330 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11331 pipe_works=yes
11332 fi
cristyda16f162011-02-19 23:52:17 +000011333 LIBS=$lt_globsym_save_LIBS
11334 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011335 else
11336 echo "cannot find nm_test_func in $nlist" >&5
11337 fi
11338 else
11339 echo "cannot find nm_test_var in $nlist" >&5
11340 fi
11341 else
11342 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11343 fi
11344 else
11345 echo "$progname: failed program was:" >&5
11346 cat conftest.$ac_ext >&5
11347 fi
11348 rm -rf conftest* conftst*
11349
11350 # Do not use the global_symbol_pipe unless it works.
11351 if test "$pipe_works" = yes; then
11352 break
11353 else
11354 lt_cv_sys_global_symbol_pipe=
11355 fi
11356done
11357
11358fi
11359
11360if test -z "$lt_cv_sys_global_symbol_pipe"; then
11361 lt_cv_sys_global_symbol_to_cdecl=
11362fi
11363if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11365$as_echo "failed" >&6; }
11366else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11368$as_echo "ok" >&6; }
11369fi
11370
cristyda16f162011-02-19 23:52:17 +000011371# Response file support.
11372if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11373 nm_file_list_spec='@'
11374elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11375 nm_file_list_spec='@'
11376fi
cristy73bd4a52010-10-05 11:24:23 +000011377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
cristyda16f162011-02-19 23:52:17 +000011398
11399
11400
11401
11402
11403
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11405$as_echo_n "checking for sysroot... " >&6; }
11406
11407# Check whether --with-sysroot was given.
11408if test "${with_sysroot+set}" = set; then :
11409 withval=$with_sysroot;
11410else
11411 with_sysroot=no
11412fi
11413
11414
11415lt_sysroot=
11416case ${with_sysroot} in #(
11417 yes)
11418 if test "$GCC" = yes; then
11419 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11420 fi
11421 ;; #(
11422 /*)
11423 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11424 ;; #(
11425 no|'')
11426 ;; #(
11427 *)
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11429$as_echo "${with_sysroot}" >&6; }
11430 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11431 ;;
11432esac
11433
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11435$as_echo "${lt_sysroot:-no}" >&6; }
11436
11437
11438
11439
11440
cristy73bd4a52010-10-05 11:24:23 +000011441# Check whether --enable-libtool-lock was given.
11442if test "${enable_libtool_lock+set}" = set; then :
11443 enableval=$enable_libtool_lock;
11444fi
11445
11446test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11447
11448# Some flags need to be propagated to the compiler or linker for good
11449# libtool support.
11450case $host in
11451ia64-*-hpux*)
11452 # Find out which ABI we are using.
11453 echo 'int i;' > conftest.$ac_ext
11454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11455 (eval $ac_compile) 2>&5
11456 ac_status=$?
11457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11458 test $ac_status = 0; }; then
11459 case `/usr/bin/file conftest.$ac_objext` in
11460 *ELF-32*)
11461 HPUX_IA64_MODE="32"
11462 ;;
11463 *ELF-64*)
11464 HPUX_IA64_MODE="64"
11465 ;;
11466 esac
11467 fi
11468 rm -rf conftest*
11469 ;;
11470*-*-irix6*)
11471 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011472 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11474 (eval $ac_compile) 2>&5
11475 ac_status=$?
11476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11477 test $ac_status = 0; }; then
11478 if test "$lt_cv_prog_gnu_ld" = yes; then
11479 case `/usr/bin/file conftest.$ac_objext` in
11480 *32-bit*)
11481 LD="${LD-ld} -melf32bsmip"
11482 ;;
11483 *N32*)
11484 LD="${LD-ld} -melf32bmipn32"
11485 ;;
11486 *64-bit*)
11487 LD="${LD-ld} -melf64bmip"
11488 ;;
11489 esac
11490 else
11491 case `/usr/bin/file conftest.$ac_objext` in
11492 *32-bit*)
11493 LD="${LD-ld} -32"
11494 ;;
11495 *N32*)
11496 LD="${LD-ld} -n32"
11497 ;;
11498 *64-bit*)
11499 LD="${LD-ld} -64"
11500 ;;
11501 esac
11502 fi
11503 fi
11504 rm -rf conftest*
11505 ;;
11506
11507x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11508s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11509 # Find out which ABI we are using.
11510 echo 'int i;' > conftest.$ac_ext
11511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11512 (eval $ac_compile) 2>&5
11513 ac_status=$?
11514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11515 test $ac_status = 0; }; then
11516 case `/usr/bin/file conftest.o` in
11517 *32-bit*)
11518 case $host in
11519 x86_64-*kfreebsd*-gnu)
11520 LD="${LD-ld} -m elf_i386_fbsd"
11521 ;;
11522 x86_64-*linux*)
11523 LD="${LD-ld} -m elf_i386"
11524 ;;
11525 ppc64-*linux*|powerpc64-*linux*)
11526 LD="${LD-ld} -m elf32ppclinux"
11527 ;;
11528 s390x-*linux*)
11529 LD="${LD-ld} -m elf_s390"
11530 ;;
11531 sparc64-*linux*)
11532 LD="${LD-ld} -m elf32_sparc"
11533 ;;
11534 esac
11535 ;;
11536 *64-bit*)
11537 case $host in
11538 x86_64-*kfreebsd*-gnu)
11539 LD="${LD-ld} -m elf_x86_64_fbsd"
11540 ;;
11541 x86_64-*linux*)
11542 LD="${LD-ld} -m elf_x86_64"
11543 ;;
11544 ppc*-*linux*|powerpc*-*linux*)
11545 LD="${LD-ld} -m elf64ppc"
11546 ;;
11547 s390*-*linux*|s390*-*tpf*)
11548 LD="${LD-ld} -m elf64_s390"
11549 ;;
11550 sparc*-*linux*)
11551 LD="${LD-ld} -m elf64_sparc"
11552 ;;
11553 esac
11554 ;;
11555 esac
11556 fi
11557 rm -rf conftest*
11558 ;;
11559
11560*-*-sco3.2v5*)
11561 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11562 SAVE_CFLAGS="$CFLAGS"
11563 CFLAGS="$CFLAGS -belf"
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11565$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011566if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011567 $as_echo_n "(cached) " >&6
11568else
11569 ac_ext=c
11570ac_cpp='$CPP $CPPFLAGS'
11571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11573ac_compiler_gnu=$ac_cv_c_compiler_gnu
11574
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576/* end confdefs.h. */
11577
11578int
11579main ()
11580{
11581
11582 ;
11583 return 0;
11584}
11585_ACEOF
11586if ac_fn_c_try_link "$LINENO"; then :
11587 lt_cv_cc_needs_belf=yes
11588else
11589 lt_cv_cc_needs_belf=no
11590fi
11591rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593 ac_ext=c
11594ac_cpp='$CPP $CPPFLAGS'
11595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11597ac_compiler_gnu=$ac_cv_c_compiler_gnu
11598
11599fi
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11601$as_echo "$lt_cv_cc_needs_belf" >&6; }
11602 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11603 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11604 CFLAGS="$SAVE_CFLAGS"
11605 fi
11606 ;;
11607sparc*-*solaris*)
11608 # Find out which ABI we are using.
11609 echo 'int i;' > conftest.$ac_ext
11610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11611 (eval $ac_compile) 2>&5
11612 ac_status=$?
11613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614 test $ac_status = 0; }; then
11615 case `/usr/bin/file conftest.o` in
11616 *64-bit*)
11617 case $lt_cv_prog_gnu_ld in
11618 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11619 *)
11620 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11621 LD="${LD-ld} -64"
11622 fi
11623 ;;
11624 esac
11625 ;;
11626 esac
11627 fi
11628 rm -rf conftest*
11629 ;;
11630esac
11631
11632need_locks="$enable_libtool_lock"
11633
cristyda16f162011-02-19 23:52:17 +000011634if test -n "$ac_tool_prefix"; then
11635 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11636set dummy ${ac_tool_prefix}mt; ac_word=$2
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638$as_echo_n "checking for $ac_word... " >&6; }
11639if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641else
11642 if test -n "$MANIFEST_TOOL"; then
11643 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11644else
11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646for as_dir in $PATH
11647do
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11652 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 break 2
11655 fi
11656done
11657 done
11658IFS=$as_save_IFS
11659
11660fi
11661fi
11662MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11663if test -n "$MANIFEST_TOOL"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11665$as_echo "$MANIFEST_TOOL" >&6; }
11666else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668$as_echo "no" >&6; }
11669fi
11670
11671
11672fi
11673if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11674 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11675 # Extract the first word of "mt", so it can be a program name with args.
11676set dummy mt; ac_word=$2
11677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678$as_echo_n "checking for $ac_word... " >&6; }
11679if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681else
11682 if test -n "$ac_ct_MANIFEST_TOOL"; then
11683 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11684else
11685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696done
11697 done
11698IFS=$as_save_IFS
11699
11700fi
11701fi
11702ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11703if test -n "$ac_ct_MANIFEST_TOOL"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11705$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11706else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
11709fi
11710
11711 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11712 MANIFEST_TOOL=":"
11713 else
11714 case $cross_compiling:$ac_tool_warned in
11715yes:)
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11718ac_tool_warned=yes ;;
11719esac
11720 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11721 fi
11722else
11723 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11724fi
11725
11726test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11728$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11729if ${lt_cv_path_mainfest_tool+:} false; then :
11730 $as_echo_n "(cached) " >&6
11731else
11732 lt_cv_path_mainfest_tool=no
11733 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11734 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11735 cat conftest.err >&5
11736 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11737 lt_cv_path_mainfest_tool=yes
11738 fi
11739 rm -f conftest*
11740fi
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11742$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11743if test "x$lt_cv_path_mainfest_tool" != xyes; then
11744 MANIFEST_TOOL=:
11745fi
11746
11747
11748
11749
11750
cristy73bd4a52010-10-05 11:24:23 +000011751
11752 case $host_os in
11753 rhapsody* | darwin*)
11754 if test -n "$ac_tool_prefix"; then
11755 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11756set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011759if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011760 $as_echo_n "(cached) " >&6
11761else
11762 if test -n "$DSYMUTIL"; then
11763 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11764else
11765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766for as_dir in $PATH
11767do
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11772 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11775 fi
11776done
11777 done
11778IFS=$as_save_IFS
11779
11780fi
11781fi
11782DSYMUTIL=$ac_cv_prog_DSYMUTIL
11783if test -n "$DSYMUTIL"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11785$as_echo "$DSYMUTIL" >&6; }
11786else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788$as_echo "no" >&6; }
11789fi
11790
11791
11792fi
11793if test -z "$ac_cv_prog_DSYMUTIL"; then
11794 ac_ct_DSYMUTIL=$DSYMUTIL
11795 # Extract the first word of "dsymutil", so it can be a program name with args.
11796set dummy dsymutil; ac_word=$2
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011799if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011800 $as_echo_n "(cached) " >&6
11801else
11802 if test -n "$ac_ct_DSYMUTIL"; then
11803 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11804else
11805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806for as_dir in $PATH
11807do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11815 fi
11816done
11817 done
11818IFS=$as_save_IFS
11819
11820fi
11821fi
11822ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11823if test -n "$ac_ct_DSYMUTIL"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11825$as_echo "$ac_ct_DSYMUTIL" >&6; }
11826else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828$as_echo "no" >&6; }
11829fi
11830
11831 if test "x$ac_ct_DSYMUTIL" = x; then
11832 DSYMUTIL=":"
11833 else
11834 case $cross_compiling:$ac_tool_warned in
11835yes:)
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11838ac_tool_warned=yes ;;
11839esac
11840 DSYMUTIL=$ac_ct_DSYMUTIL
11841 fi
11842else
11843 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11844fi
11845
11846 if test -n "$ac_tool_prefix"; then
11847 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11848set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011851if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011852 $as_echo_n "(cached) " >&6
11853else
11854 if test -n "$NMEDIT"; then
11855 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11856else
11857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858for as_dir in $PATH
11859do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11864 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 break 2
11867 fi
11868done
11869 done
11870IFS=$as_save_IFS
11871
11872fi
11873fi
11874NMEDIT=$ac_cv_prog_NMEDIT
11875if test -n "$NMEDIT"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11877$as_echo "$NMEDIT" >&6; }
11878else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880$as_echo "no" >&6; }
11881fi
11882
11883
11884fi
11885if test -z "$ac_cv_prog_NMEDIT"; then
11886 ac_ct_NMEDIT=$NMEDIT
11887 # Extract the first word of "nmedit", so it can be a program name with args.
11888set dummy nmedit; ac_word=$2
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011891if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011892 $as_echo_n "(cached) " >&6
11893else
11894 if test -n "$ac_ct_NMEDIT"; then
11895 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11896else
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
11899do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11904 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11907 fi
11908done
11909 done
11910IFS=$as_save_IFS
11911
11912fi
11913fi
11914ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11915if test -n "$ac_ct_NMEDIT"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11917$as_echo "$ac_ct_NMEDIT" >&6; }
11918else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
11921fi
11922
11923 if test "x$ac_ct_NMEDIT" = x; then
11924 NMEDIT=":"
11925 else
11926 case $cross_compiling:$ac_tool_warned in
11927yes:)
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11930ac_tool_warned=yes ;;
11931esac
11932 NMEDIT=$ac_ct_NMEDIT
11933 fi
11934else
11935 NMEDIT="$ac_cv_prog_NMEDIT"
11936fi
11937
11938 if test -n "$ac_tool_prefix"; then
11939 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11940set dummy ${ac_tool_prefix}lipo; ac_word=$2
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011943if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011944 $as_echo_n "(cached) " >&6
11945else
11946 if test -n "$LIPO"; then
11947 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11948else
11949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $PATH
11951do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11959 fi
11960done
11961 done
11962IFS=$as_save_IFS
11963
11964fi
11965fi
11966LIPO=$ac_cv_prog_LIPO
11967if test -n "$LIPO"; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11969$as_echo "$LIPO" >&6; }
11970else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972$as_echo "no" >&6; }
11973fi
11974
11975
11976fi
11977if test -z "$ac_cv_prog_LIPO"; then
11978 ac_ct_LIPO=$LIPO
11979 # Extract the first word of "lipo", so it can be a program name with args.
11980set dummy lipo; ac_word=$2
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011983if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011984 $as_echo_n "(cached) " >&6
11985else
11986 if test -n "$ac_ct_LIPO"; then
11987 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11988else
11989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990for as_dir in $PATH
11991do
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11996 ac_cv_prog_ac_ct_LIPO="lipo"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
11999 fi
12000done
12001 done
12002IFS=$as_save_IFS
12003
12004fi
12005fi
12006ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12007if test -n "$ac_ct_LIPO"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12009$as_echo "$ac_ct_LIPO" >&6; }
12010else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012$as_echo "no" >&6; }
12013fi
12014
12015 if test "x$ac_ct_LIPO" = x; then
12016 LIPO=":"
12017 else
12018 case $cross_compiling:$ac_tool_warned in
12019yes:)
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12022ac_tool_warned=yes ;;
12023esac
12024 LIPO=$ac_ct_LIPO
12025 fi
12026else
12027 LIPO="$ac_cv_prog_LIPO"
12028fi
12029
12030 if test -n "$ac_tool_prefix"; then
12031 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12032set dummy ${ac_tool_prefix}otool; ac_word=$2
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012035if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012036 $as_echo_n "(cached) " >&6
12037else
12038 if test -n "$OTOOL"; then
12039 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12040else
12041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042for as_dir in $PATH
12043do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12048 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052done
12053 done
12054IFS=$as_save_IFS
12055
12056fi
12057fi
12058OTOOL=$ac_cv_prog_OTOOL
12059if test -n "$OTOOL"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12061$as_echo "$OTOOL" >&6; }
12062else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064$as_echo "no" >&6; }
12065fi
12066
12067
12068fi
12069if test -z "$ac_cv_prog_OTOOL"; then
12070 ac_ct_OTOOL=$OTOOL
12071 # Extract the first word of "otool", so it can be a program name with args.
12072set dummy otool; ac_word=$2
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012075if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012076 $as_echo_n "(cached) " >&6
12077else
12078 if test -n "$ac_ct_OTOOL"; then
12079 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12080else
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12088 ac_cv_prog_ac_ct_OTOOL="otool"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12091 fi
12092done
12093 done
12094IFS=$as_save_IFS
12095
12096fi
12097fi
12098ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12099if test -n "$ac_ct_OTOOL"; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12101$as_echo "$ac_ct_OTOOL" >&6; }
12102else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104$as_echo "no" >&6; }
12105fi
12106
12107 if test "x$ac_ct_OTOOL" = x; then
12108 OTOOL=":"
12109 else
12110 case $cross_compiling:$ac_tool_warned in
12111yes:)
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12114ac_tool_warned=yes ;;
12115esac
12116 OTOOL=$ac_ct_OTOOL
12117 fi
12118else
12119 OTOOL="$ac_cv_prog_OTOOL"
12120fi
12121
12122 if test -n "$ac_tool_prefix"; then
12123 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12124set dummy ${ac_tool_prefix}otool64; ac_word=$2
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012127if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012128 $as_echo_n "(cached) " >&6
12129else
12130 if test -n "$OTOOL64"; then
12131 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12132else
12133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134for as_dir in $PATH
12135do
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 break 2
12143 fi
12144done
12145 done
12146IFS=$as_save_IFS
12147
12148fi
12149fi
12150OTOOL64=$ac_cv_prog_OTOOL64
12151if test -n "$OTOOL64"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12153$as_echo "$OTOOL64" >&6; }
12154else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156$as_echo "no" >&6; }
12157fi
12158
12159
12160fi
12161if test -z "$ac_cv_prog_OTOOL64"; then
12162 ac_ct_OTOOL64=$OTOOL64
12163 # Extract the first word of "otool64", so it can be a program name with args.
12164set dummy otool64; ac_word=$2
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12166$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012167if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012168 $as_echo_n "(cached) " >&6
12169else
12170 if test -n "$ac_ct_OTOOL64"; then
12171 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12172else
12173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174for as_dir in $PATH
12175do
12176 IFS=$as_save_IFS
12177 test -z "$as_dir" && as_dir=.
12178 for ac_exec_ext in '' $ac_executable_extensions; do
12179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12180 ac_cv_prog_ac_ct_OTOOL64="otool64"
12181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12182 break 2
12183 fi
12184done
12185 done
12186IFS=$as_save_IFS
12187
12188fi
12189fi
12190ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12191if test -n "$ac_ct_OTOOL64"; then
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12193$as_echo "$ac_ct_OTOOL64" >&6; }
12194else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196$as_echo "no" >&6; }
12197fi
12198
12199 if test "x$ac_ct_OTOOL64" = x; then
12200 OTOOL64=":"
12201 else
12202 case $cross_compiling:$ac_tool_warned in
12203yes:)
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12206ac_tool_warned=yes ;;
12207esac
12208 OTOOL64=$ac_ct_OTOOL64
12209 fi
12210else
12211 OTOOL64="$ac_cv_prog_OTOOL64"
12212fi
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12241$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012242if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012243 $as_echo_n "(cached) " >&6
12244else
12245 lt_cv_apple_cc_single_mod=no
12246 if test -z "${LT_MULTI_MODULE}"; then
12247 # By default we will add the -single_module flag. You can override
12248 # by either setting the environment variable LT_MULTI_MODULE
12249 # non-empty at configure time, or by adding -multi_module to the
12250 # link flags.
12251 rm -rf libconftest.dylib*
12252 echo "int foo(void){return 1;}" > conftest.c
12253 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12254-dynamiclib -Wl,-single_module conftest.c" >&5
12255 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12256 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12257 _lt_result=$?
12258 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12259 lt_cv_apple_cc_single_mod=yes
12260 else
12261 cat conftest.err >&5
12262 fi
12263 rm -rf libconftest.dylib*
12264 rm -f conftest.*
12265 fi
12266fi
12267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12268$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12270$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012271if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012272 $as_echo_n "(cached) " >&6
12273else
12274 lt_cv_ld_exported_symbols_list=no
12275 save_LDFLAGS=$LDFLAGS
12276 echo "_main" > conftest.sym
12277 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279/* end confdefs.h. */
12280
12281int
12282main ()
12283{
12284
12285 ;
12286 return 0;
12287}
12288_ACEOF
12289if ac_fn_c_try_link "$LINENO"; then :
12290 lt_cv_ld_exported_symbols_list=yes
12291else
12292 lt_cv_ld_exported_symbols_list=no
12293fi
12294rm -f core conftest.err conftest.$ac_objext \
12295 conftest$ac_exeext conftest.$ac_ext
12296 LDFLAGS="$save_LDFLAGS"
12297
12298fi
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12300$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12302$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012303if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012304 $as_echo_n "(cached) " >&6
12305else
12306 lt_cv_ld_force_load=no
12307 cat > conftest.c << _LT_EOF
12308int forced_loaded() { return 2;}
12309_LT_EOF
12310 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12311 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12312 echo "$AR cru libconftest.a conftest.o" >&5
12313 $AR cru libconftest.a conftest.o 2>&5
12314 echo "$RANLIB libconftest.a" >&5
12315 $RANLIB libconftest.a 2>&5
12316 cat > conftest.c << _LT_EOF
12317int main() { return 0;}
12318_LT_EOF
12319 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12320 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12321 _lt_result=$?
12322 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12323 lt_cv_ld_force_load=yes
12324 else
12325 cat conftest.err >&5
12326 fi
12327 rm -f conftest.err libconftest.a conftest conftest.c
12328 rm -rf conftest.dSYM
12329
12330fi
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12332$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012333 case $host_os in
12334 rhapsody* | darwin1.[012])
12335 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12336 darwin1.*)
12337 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12338 darwin*) # darwin 5.x on
12339 # if running on 10.5 or later, the deployment target defaults
12340 # to the OS version, if on x86, and 10.4, the deployment
12341 # target defaults to 10.4. Don't you love it?
12342 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12343 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12344 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12345 10.[012]*)
12346 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12347 10.*)
12348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12349 esac
12350 ;;
12351 esac
12352 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12353 _lt_dar_single_mod='$single_module'
12354 fi
12355 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12356 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12357 else
12358 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12359 fi
cristy0c60a692010-11-04 01:09:47 +000012360 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012361 _lt_dsymutil='~$DSYMUTIL $lib || :'
12362 else
12363 _lt_dsymutil=
12364 fi
12365 ;;
12366 esac
12367
12368for ac_header in dlfcn.h
12369do :
12370 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12371"
cristyda16f162011-02-19 23:52:17 +000012372if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012373 cat >>confdefs.h <<_ACEOF
12374#define HAVE_DLFCN_H 1
12375_ACEOF
12376
12377fi
12378
12379done
12380
12381
12382
cristy73bd4a52010-10-05 11:24:23 +000012383
cristyda16f162011-02-19 23:52:17 +000012384func_stripname_cnf ()
12385{
12386 case ${2} in
12387 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12388 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12389 esac
12390} # func_stripname_cnf
12391
12392
12393
cristy73bd4a52010-10-05 11:24:23 +000012394
12395
12396# Set options
12397enable_win32_dll=yes
12398
12399case $host in
cristy0c60a692010-11-04 01:09:47 +000012400*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012401 if test -n "$ac_tool_prefix"; then
12402 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12403set dummy ${ac_tool_prefix}as; ac_word=$2
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012406if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012407 $as_echo_n "(cached) " >&6
12408else
12409 if test -n "$AS"; then
12410 ac_cv_prog_AS="$AS" # Let the user override the test.
12411else
12412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413for as_dir in $PATH
12414do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419 ac_cv_prog_AS="${ac_tool_prefix}as"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12422 fi
12423done
12424 done
12425IFS=$as_save_IFS
12426
12427fi
12428fi
12429AS=$ac_cv_prog_AS
12430if test -n "$AS"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12432$as_echo "$AS" >&6; }
12433else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
12436fi
12437
12438
12439fi
12440if test -z "$ac_cv_prog_AS"; then
12441 ac_ct_AS=$AS
12442 # Extract the first word of "as", so it can be a program name with args.
12443set dummy as; ac_word=$2
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012446if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012447 $as_echo_n "(cached) " >&6
12448else
12449 if test -n "$ac_ct_AS"; then
12450 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12451else
12452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453for as_dir in $PATH
12454do
12455 IFS=$as_save_IFS
12456 test -z "$as_dir" && as_dir=.
12457 for ac_exec_ext in '' $ac_executable_extensions; do
12458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12459 ac_cv_prog_ac_ct_AS="as"
12460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461 break 2
12462 fi
12463done
12464 done
12465IFS=$as_save_IFS
12466
12467fi
12468fi
12469ac_ct_AS=$ac_cv_prog_ac_ct_AS
12470if test -n "$ac_ct_AS"; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12472$as_echo "$ac_ct_AS" >&6; }
12473else
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475$as_echo "no" >&6; }
12476fi
12477
12478 if test "x$ac_ct_AS" = x; then
12479 AS="false"
12480 else
12481 case $cross_compiling:$ac_tool_warned in
12482yes:)
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12485ac_tool_warned=yes ;;
12486esac
12487 AS=$ac_ct_AS
12488 fi
12489else
12490 AS="$ac_cv_prog_AS"
12491fi
12492
12493 if test -n "$ac_tool_prefix"; then
12494 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12495set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012498if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012499 $as_echo_n "(cached) " >&6
12500else
12501 if test -n "$DLLTOOL"; then
12502 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516 done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521DLLTOOL=$ac_cv_prog_DLLTOOL
12522if test -n "$DLLTOOL"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12524$as_echo "$DLLTOOL" >&6; }
12525else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530
12531fi
12532if test -z "$ac_cv_prog_DLLTOOL"; then
12533 ac_ct_DLLTOOL=$DLLTOOL
12534 # Extract the first word of "dlltool", so it can be a program name with args.
12535set dummy dlltool; ac_word=$2
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012538if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012539 $as_echo_n "(cached) " >&6
12540else
12541 if test -n "$ac_ct_DLLTOOL"; then
12542 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12543else
12544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545for as_dir in $PATH
12546do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12551 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12554 fi
12555done
12556 done
12557IFS=$as_save_IFS
12558
12559fi
12560fi
12561ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12562if test -n "$ac_ct_DLLTOOL"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12564$as_echo "$ac_ct_DLLTOOL" >&6; }
12565else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
12568fi
12569
12570 if test "x$ac_ct_DLLTOOL" = x; then
12571 DLLTOOL="false"
12572 else
12573 case $cross_compiling:$ac_tool_warned in
12574yes:)
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12577ac_tool_warned=yes ;;
12578esac
12579 DLLTOOL=$ac_ct_DLLTOOL
12580 fi
12581else
12582 DLLTOOL="$ac_cv_prog_DLLTOOL"
12583fi
12584
12585 if test -n "$ac_tool_prefix"; then
12586 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12587set dummy ${ac_tool_prefix}objdump; ac_word=$2
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012590if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012591 $as_echo_n "(cached) " >&6
12592else
12593 if test -n "$OBJDUMP"; then
12594 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12595else
12596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597for as_dir in $PATH
12598do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607done
12608 done
12609IFS=$as_save_IFS
12610
12611fi
12612fi
12613OBJDUMP=$ac_cv_prog_OBJDUMP
12614if test -n "$OBJDUMP"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12616$as_echo "$OBJDUMP" >&6; }
12617else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
12620fi
12621
12622
12623fi
12624if test -z "$ac_cv_prog_OBJDUMP"; then
12625 ac_ct_OBJDUMP=$OBJDUMP
12626 # Extract the first word of "objdump", so it can be a program name with args.
12627set dummy objdump; ac_word=$2
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012630if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012631 $as_echo_n "(cached) " >&6
12632else
12633 if test -n "$ac_ct_OBJDUMP"; then
12634 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12635else
12636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637for as_dir in $PATH
12638do
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12643 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12646 fi
12647done
12648 done
12649IFS=$as_save_IFS
12650
12651fi
12652fi
12653ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12654if test -n "$ac_ct_OBJDUMP"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12656$as_echo "$ac_ct_OBJDUMP" >&6; }
12657else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659$as_echo "no" >&6; }
12660fi
12661
12662 if test "x$ac_ct_OBJDUMP" = x; then
12663 OBJDUMP="false"
12664 else
12665 case $cross_compiling:$ac_tool_warned in
12666yes:)
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12669ac_tool_warned=yes ;;
12670esac
12671 OBJDUMP=$ac_ct_OBJDUMP
12672 fi
12673else
12674 OBJDUMP="$ac_cv_prog_OBJDUMP"
12675fi
12676
12677 ;;
12678esac
12679
12680test -z "$AS" && AS=as
12681
12682
12683
12684
12685
12686test -z "$DLLTOOL" && DLLTOOL=dlltool
12687
12688
12689
12690
12691
12692test -z "$OBJDUMP" && OBJDUMP=objdump
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702 # Check whether --enable-shared was given.
12703if test "${enable_shared+set}" = set; then :
12704 enableval=$enable_shared; p=${PACKAGE-default}
12705 case $enableval in
12706 yes) enable_shared=yes ;;
12707 no) enable_shared=no ;;
12708 *)
12709 enable_shared=no
12710 # Look at the argument we got. We use all the common list separators.
12711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12712 for pkg in $enableval; do
12713 IFS="$lt_save_ifs"
12714 if test "X$pkg" = "X$p"; then
12715 enable_shared=yes
12716 fi
12717 done
12718 IFS="$lt_save_ifs"
12719 ;;
12720 esac
12721else
12722 enable_shared=yes
12723fi
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733 # Check whether --enable-static was given.
12734if test "${enable_static+set}" = set; then :
12735 enableval=$enable_static; p=${PACKAGE-default}
12736 case $enableval in
12737 yes) enable_static=yes ;;
12738 no) enable_static=no ;;
12739 *)
12740 enable_static=no
12741 # Look at the argument we got. We use all the common list separators.
12742 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12743 for pkg in $enableval; do
12744 IFS="$lt_save_ifs"
12745 if test "X$pkg" = "X$p"; then
12746 enable_static=yes
12747 fi
12748 done
12749 IFS="$lt_save_ifs"
12750 ;;
12751 esac
12752else
12753 enable_static=yes
12754fi
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765# Check whether --with-pic was given.
12766if test "${with_pic+set}" = set; then :
12767 withval=$with_pic; pic_mode="$withval"
12768else
12769 pic_mode=default
12770fi
12771
12772
12773test -z "$pic_mode" && pic_mode=default
12774
12775
12776
12777
12778
12779
12780
12781 # Check whether --enable-fast-install was given.
12782if test "${enable_fast_install+set}" = set; then :
12783 enableval=$enable_fast_install; p=${PACKAGE-default}
12784 case $enableval in
12785 yes) enable_fast_install=yes ;;
12786 no) enable_fast_install=no ;;
12787 *)
12788 enable_fast_install=no
12789 # Look at the argument we got. We use all the common list separators.
12790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12791 for pkg in $enableval; do
12792 IFS="$lt_save_ifs"
12793 if test "X$pkg" = "X$p"; then
12794 enable_fast_install=yes
12795 fi
12796 done
12797 IFS="$lt_save_ifs"
12798 ;;
12799 esac
12800else
12801 enable_fast_install=yes
12802fi
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814# This can be used to rebuild libtool when needed
12815LIBTOOL_DEPS="$ltmain"
12816
12817# Always use our own libtool.
12818LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
cristy0c60a692010-11-04 01:09:47 +000012844
cristy73bd4a52010-10-05 11:24:23 +000012845test -z "$LN_S" && LN_S="ln -s"
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860if test -n "${ZSH_VERSION+set}" ; then
12861 setopt NO_GLOB_SUBST
12862fi
12863
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12865$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012866if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012867 $as_echo_n "(cached) " >&6
12868else
12869 rm -f .libs 2>/dev/null
12870mkdir .libs 2>/dev/null
12871if test -d .libs; then
12872 lt_cv_objdir=.libs
12873else
12874 # MS-DOS does not allow filenames that begin with a dot.
12875 lt_cv_objdir=_libs
12876fi
12877rmdir .libs 2>/dev/null
12878fi
12879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12880$as_echo "$lt_cv_objdir" >&6; }
12881objdir=$lt_cv_objdir
12882
12883
12884
12885
12886
12887cat >>confdefs.h <<_ACEOF
12888#define LT_OBJDIR "$lt_cv_objdir/"
12889_ACEOF
12890
12891
12892
12893
cristy73bd4a52010-10-05 11:24:23 +000012894case $host_os in
12895aix3*)
12896 # AIX sometimes has problems with the GCC collect2 program. For some
12897 # reason, if we set the COLLECT_NAMES environment variable, the problems
12898 # vanish in a puff of smoke.
12899 if test "X${COLLECT_NAMES+set}" != Xset; then
12900 COLLECT_NAMES=
12901 export COLLECT_NAMES
12902 fi
12903 ;;
12904esac
12905
cristy73bd4a52010-10-05 11:24:23 +000012906# Global variables:
12907ofile=libtool
12908can_build_shared=yes
12909
12910# All known linkers require a `.a' archive for static linking (except MSVC,
12911# which needs '.lib').
12912libext=a
12913
12914with_gnu_ld="$lt_cv_prog_gnu_ld"
12915
12916old_CC="$CC"
12917old_CFLAGS="$CFLAGS"
12918
12919# Set sane defaults for various variables
12920test -z "$CC" && CC=cc
12921test -z "$LTCC" && LTCC=$CC
12922test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12923test -z "$LD" && LD=ld
12924test -z "$ac_objext" && ac_objext=o
12925
12926for cc_temp in $compiler""; do
12927 case $cc_temp in
12928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12930 \-*) ;;
12931 *) break;;
12932 esac
12933done
cristy0c60a692010-11-04 01:09:47 +000012934cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012935
12936
12937# Only perform the check for file, if the check method requires it
12938test -z "$MAGIC_CMD" && MAGIC_CMD=file
12939case $deplibs_check_method in
12940file_magic*)
12941 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12943$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012944if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012945 $as_echo_n "(cached) " >&6
12946else
12947 case $MAGIC_CMD in
12948[\\/*] | ?:[\\/]*)
12949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12950 ;;
12951*)
12952 lt_save_MAGIC_CMD="$MAGIC_CMD"
12953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12955 for ac_dir in $ac_dummy; do
12956 IFS="$lt_save_ifs"
12957 test -z "$ac_dir" && ac_dir=.
12958 if test -f $ac_dir/${ac_tool_prefix}file; then
12959 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12960 if test -n "$file_magic_test_file"; then
12961 case $deplibs_check_method in
12962 "file_magic "*)
12963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12966 $EGREP "$file_magic_regex" > /dev/null; then
12967 :
12968 else
12969 cat <<_LT_EOF 1>&2
12970
12971*** Warning: the command libtool uses to detect shared libraries,
12972*** $file_magic_cmd, produces output that libtool cannot recognize.
12973*** The result is that libtool may fail to recognize shared libraries
12974*** as such. This will affect the creation of libtool libraries that
12975*** depend on shared libraries, but programs linked with such libtool
12976*** libraries will work regardless of this problem. Nevertheless, you
12977*** may want to report the problem to your system manager and/or to
12978*** bug-libtool@gnu.org
12979
12980_LT_EOF
12981 fi ;;
12982 esac
12983 fi
12984 break
12985 fi
12986 done
12987 IFS="$lt_save_ifs"
12988 MAGIC_CMD="$lt_save_MAGIC_CMD"
12989 ;;
12990esac
12991fi
12992
12993MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12994if test -n "$MAGIC_CMD"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12996$as_echo "$MAGIC_CMD" >&6; }
12997else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999$as_echo "no" >&6; }
13000fi
13001
13002
13003
13004
13005
13006if test -z "$lt_cv_path_MAGIC_CMD"; then
13007 if test -n "$ac_tool_prefix"; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13009$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013010if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013011 $as_echo_n "(cached) " >&6
13012else
13013 case $MAGIC_CMD in
13014[\\/*] | ?:[\\/]*)
13015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13016 ;;
13017*)
13018 lt_save_MAGIC_CMD="$MAGIC_CMD"
13019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13021 for ac_dir in $ac_dummy; do
13022 IFS="$lt_save_ifs"
13023 test -z "$ac_dir" && ac_dir=.
13024 if test -f $ac_dir/file; then
13025 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13026 if test -n "$file_magic_test_file"; then
13027 case $deplibs_check_method in
13028 "file_magic "*)
13029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13032 $EGREP "$file_magic_regex" > /dev/null; then
13033 :
13034 else
13035 cat <<_LT_EOF 1>&2
13036
13037*** Warning: the command libtool uses to detect shared libraries,
13038*** $file_magic_cmd, produces output that libtool cannot recognize.
13039*** The result is that libtool may fail to recognize shared libraries
13040*** as such. This will affect the creation of libtool libraries that
13041*** depend on shared libraries, but programs linked with such libtool
13042*** libraries will work regardless of this problem. Nevertheless, you
13043*** may want to report the problem to your system manager and/or to
13044*** bug-libtool@gnu.org
13045
13046_LT_EOF
13047 fi ;;
13048 esac
13049 fi
13050 break
13051 fi
13052 done
13053 IFS="$lt_save_ifs"
13054 MAGIC_CMD="$lt_save_MAGIC_CMD"
13055 ;;
13056esac
13057fi
13058
13059MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13060if test -n "$MAGIC_CMD"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13062$as_echo "$MAGIC_CMD" >&6; }
13063else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065$as_echo "no" >&6; }
13066fi
13067
13068
13069 else
13070 MAGIC_CMD=:
13071 fi
13072fi
13073
13074 fi
13075 ;;
13076esac
13077
13078# Use C for the default configuration in the libtool script
13079
13080lt_save_CC="$CC"
13081ac_ext=c
13082ac_cpp='$CPP $CPPFLAGS'
13083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13085ac_compiler_gnu=$ac_cv_c_compiler_gnu
13086
13087
13088# Source file extension for C test sources.
13089ac_ext=c
13090
13091# Object file extension for compiled C test sources.
13092objext=o
13093objext=$objext
13094
13095# Code to be used in simple compile tests
13096lt_simple_compile_test_code="int some_variable = 0;"
13097
13098# Code to be used in simple link tests
13099lt_simple_link_test_code='int main(){return(0);}'
13100
13101
13102
13103
13104
13105
13106
13107# If no C compiler was specified, use CC.
13108LTCC=${LTCC-"$CC"}
13109
13110# If no C compiler flags were specified, use CFLAGS.
13111LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13112
13113# Allow CC to be a program name with arguments.
13114compiler=$CC
13115
13116# Save the default compiler, since it gets overwritten when the other
13117# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13118compiler_DEFAULT=$CC
13119
13120# save warnings/boilerplate of simple test code
13121ac_outfile=conftest.$ac_objext
13122echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13123eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13124_lt_compiler_boilerplate=`cat conftest.err`
13125$RM conftest*
13126
13127ac_outfile=conftest.$ac_objext
13128echo "$lt_simple_link_test_code" >conftest.$ac_ext
13129eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13130_lt_linker_boilerplate=`cat conftest.err`
13131$RM -r conftest*
13132
13133
13134## CAVEAT EMPTOR:
13135## There is no encapsulation within the following macros, do not change
13136## the running order or otherwise move them around unless you know exactly
13137## what you are doing...
13138if test -n "$compiler"; then
13139
13140lt_prog_compiler_no_builtin_flag=
13141
13142if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013143 case $cc_basename in
13144 nvcc*)
13145 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13146 *)
13147 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13148 esac
cristy73bd4a52010-10-05 11:24:23 +000013149
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13151$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013152if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013153 $as_echo_n "(cached) " >&6
13154else
13155 lt_cv_prog_compiler_rtti_exceptions=no
13156 ac_outfile=conftest.$ac_objext
13157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13158 lt_compiler_flag="-fno-rtti -fno-exceptions"
13159 # Insert the option either (1) after the last *FLAGS variable, or
13160 # (2) before a word containing "conftest.", or (3) at the end.
13161 # Note that $ac_compile itself does not contain backslashes and begins
13162 # with a dollar sign (not a hyphen), so the echo should work correctly.
13163 # The option is referenced via a variable to avoid confusing sed.
13164 lt_compile=`echo "$ac_compile" | $SED \
13165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13167 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013169 (eval "$lt_compile" 2>conftest.err)
13170 ac_status=$?
13171 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013173 if (exit $ac_status) && test -s "$ac_outfile"; then
13174 # The compiler can only warn and ignore the option if not recognized
13175 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13179 lt_cv_prog_compiler_rtti_exceptions=yes
13180 fi
13181 fi
13182 $RM conftest*
13183
13184fi
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13186$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13187
13188if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13189 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13190else
13191 :
13192fi
13193
13194fi
13195
13196
13197
13198
13199
13200
13201 lt_prog_compiler_wl=
13202lt_prog_compiler_pic=
13203lt_prog_compiler_static=
13204
cristy73bd4a52010-10-05 11:24:23 +000013205
13206 if test "$GCC" = yes; then
13207 lt_prog_compiler_wl='-Wl,'
13208 lt_prog_compiler_static='-static'
13209
13210 case $host_os in
13211 aix*)
13212 # All AIX code is PIC.
13213 if test "$host_cpu" = ia64; then
13214 # AIX 5 now supports IA64 processor
13215 lt_prog_compiler_static='-Bstatic'
13216 fi
13217 ;;
13218
13219 amigaos*)
13220 case $host_cpu in
13221 powerpc)
13222 # see comment about AmigaOS4 .so support
13223 lt_prog_compiler_pic='-fPIC'
13224 ;;
13225 m68k)
13226 # FIXME: we need at least 68020 code to build shared libraries, but
13227 # adding the `-m68020' flag to GCC prevents building anything better,
13228 # like `-m68040'.
13229 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13230 ;;
13231 esac
13232 ;;
13233
13234 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13235 # PIC is the default for these OSes.
13236 ;;
13237
13238 mingw* | cygwin* | pw32* | os2* | cegcc*)
13239 # This hack is so that the source file can tell whether it is being
13240 # built for inclusion in a dll (and should export symbols for example).
13241 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13242 # (--disable-auto-import) libraries
13243 lt_prog_compiler_pic='-DDLL_EXPORT'
13244 ;;
13245
13246 darwin* | rhapsody*)
13247 # PIC is the default on this platform
13248 # Common symbols not allowed in MH_DYLIB files
13249 lt_prog_compiler_pic='-fno-common'
13250 ;;
13251
cristy0c60a692010-11-04 01:09:47 +000013252 haiku*)
13253 # PIC is the default for Haiku.
13254 # The "-static" flag exists, but is broken.
13255 lt_prog_compiler_static=
13256 ;;
13257
cristy73bd4a52010-10-05 11:24:23 +000013258 hpux*)
13259 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13260 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13261 # sets the default TLS model and affects inlining.
13262 case $host_cpu in
13263 hppa*64*)
13264 # +Z the default
13265 ;;
13266 *)
13267 lt_prog_compiler_pic='-fPIC'
13268 ;;
13269 esac
13270 ;;
13271
13272 interix[3-9]*)
13273 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13274 # Instead, we relocate shared libraries at runtime.
13275 ;;
13276
13277 msdosdjgpp*)
13278 # Just because we use GCC doesn't mean we suddenly get shared libraries
13279 # on systems that don't support them.
13280 lt_prog_compiler_can_build_shared=no
13281 enable_shared=no
13282 ;;
13283
13284 *nto* | *qnx*)
13285 # QNX uses GNU C++, but need to define -shared option too, otherwise
13286 # it will coredump.
13287 lt_prog_compiler_pic='-fPIC -shared'
13288 ;;
13289
13290 sysv4*MP*)
13291 if test -d /usr/nec; then
13292 lt_prog_compiler_pic=-Kconform_pic
13293 fi
13294 ;;
13295
13296 *)
13297 lt_prog_compiler_pic='-fPIC'
13298 ;;
13299 esac
cristy0c60a692010-11-04 01:09:47 +000013300
13301 case $cc_basename in
13302 nvcc*) # Cuda Compiler Driver 2.2
13303 lt_prog_compiler_wl='-Xlinker '
13304 lt_prog_compiler_pic='-Xcompiler -fPIC'
13305 ;;
13306 esac
cristy73bd4a52010-10-05 11:24:23 +000013307 else
13308 # PORTME Check for flag to pass linker flags through the system compiler.
13309 case $host_os in
13310 aix*)
13311 lt_prog_compiler_wl='-Wl,'
13312 if test "$host_cpu" = ia64; then
13313 # AIX 5 now supports IA64 processor
13314 lt_prog_compiler_static='-Bstatic'
13315 else
13316 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13317 fi
13318 ;;
13319
13320 mingw* | cygwin* | pw32* | os2* | cegcc*)
13321 # This hack is so that the source file can tell whether it is being
13322 # built for inclusion in a dll (and should export symbols for example).
13323 lt_prog_compiler_pic='-DDLL_EXPORT'
13324 ;;
13325
13326 hpux9* | hpux10* | hpux11*)
13327 lt_prog_compiler_wl='-Wl,'
13328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13329 # not for PA HP-UX.
13330 case $host_cpu in
13331 hppa*64*|ia64*)
13332 # +Z the default
13333 ;;
13334 *)
13335 lt_prog_compiler_pic='+Z'
13336 ;;
13337 esac
13338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13339 lt_prog_compiler_static='${wl}-a ${wl}archive'
13340 ;;
13341
13342 irix5* | irix6* | nonstopux*)
13343 lt_prog_compiler_wl='-Wl,'
13344 # PIC (with -KPIC) is the default.
13345 lt_prog_compiler_static='-non_shared'
13346 ;;
13347
cristy0c60a692010-11-04 01:09:47 +000013348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013349 case $cc_basename in
13350 # old Intel for x86_64 which still supported -KPIC.
13351 ecc*)
13352 lt_prog_compiler_wl='-Wl,'
13353 lt_prog_compiler_pic='-KPIC'
13354 lt_prog_compiler_static='-static'
13355 ;;
13356 # icc used to be incompatible with GCC.
13357 # ICC 10 doesn't accept -KPIC any more.
13358 icc* | ifort*)
13359 lt_prog_compiler_wl='-Wl,'
13360 lt_prog_compiler_pic='-fPIC'
13361 lt_prog_compiler_static='-static'
13362 ;;
13363 # Lahey Fortran 8.1.
13364 lf95*)
13365 lt_prog_compiler_wl='-Wl,'
13366 lt_prog_compiler_pic='--shared'
13367 lt_prog_compiler_static='--static'
13368 ;;
cristyda16f162011-02-19 23:52:17 +000013369 nagfor*)
13370 # NAG Fortran compiler
13371 lt_prog_compiler_wl='-Wl,-Wl,,'
13372 lt_prog_compiler_pic='-PIC'
13373 lt_prog_compiler_static='-Bstatic'
13374 ;;
cristy0c60a692010-11-04 01:09:47 +000013375 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013376 # Portland Group compilers (*not* the Pentium gcc compiler,
13377 # which looks to be a dead project)
13378 lt_prog_compiler_wl='-Wl,'
13379 lt_prog_compiler_pic='-fpic'
13380 lt_prog_compiler_static='-Bstatic'
13381 ;;
13382 ccc*)
13383 lt_prog_compiler_wl='-Wl,'
13384 # All Alpha code is PIC.
13385 lt_prog_compiler_static='-non_shared'
13386 ;;
cristy0c60a692010-11-04 01:09:47 +000013387 xl* | bgxl* | bgf* | mpixl*)
13388 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013389 lt_prog_compiler_wl='-Wl,'
13390 lt_prog_compiler_pic='-qpic'
13391 lt_prog_compiler_static='-qstaticlink'
13392 ;;
13393 *)
13394 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013395 *Sun\ F* | *Sun*Fortran*)
13396 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13397 lt_prog_compiler_pic='-KPIC'
13398 lt_prog_compiler_static='-Bstatic'
13399 lt_prog_compiler_wl=''
13400 ;;
cristy73bd4a52010-10-05 11:24:23 +000013401 *Sun\ C*)
13402 # Sun C 5.9
13403 lt_prog_compiler_pic='-KPIC'
13404 lt_prog_compiler_static='-Bstatic'
13405 lt_prog_compiler_wl='-Wl,'
13406 ;;
cristy73bd4a52010-10-05 11:24:23 +000013407 esac
13408 ;;
13409 esac
13410 ;;
13411
13412 newsos6)
13413 lt_prog_compiler_pic='-KPIC'
13414 lt_prog_compiler_static='-Bstatic'
13415 ;;
13416
13417 *nto* | *qnx*)
13418 # QNX uses GNU C++, but need to define -shared option too, otherwise
13419 # it will coredump.
13420 lt_prog_compiler_pic='-fPIC -shared'
13421 ;;
13422
13423 osf3* | osf4* | osf5*)
13424 lt_prog_compiler_wl='-Wl,'
13425 # All OSF/1 code is PIC.
13426 lt_prog_compiler_static='-non_shared'
13427 ;;
13428
13429 rdos*)
13430 lt_prog_compiler_static='-non_shared'
13431 ;;
13432
13433 solaris*)
13434 lt_prog_compiler_pic='-KPIC'
13435 lt_prog_compiler_static='-Bstatic'
13436 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013437 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013438 lt_prog_compiler_wl='-Qoption ld ';;
13439 *)
13440 lt_prog_compiler_wl='-Wl,';;
13441 esac
13442 ;;
13443
13444 sunos4*)
13445 lt_prog_compiler_wl='-Qoption ld '
13446 lt_prog_compiler_pic='-PIC'
13447 lt_prog_compiler_static='-Bstatic'
13448 ;;
13449
13450 sysv4 | sysv4.2uw2* | sysv4.3*)
13451 lt_prog_compiler_wl='-Wl,'
13452 lt_prog_compiler_pic='-KPIC'
13453 lt_prog_compiler_static='-Bstatic'
13454 ;;
13455
13456 sysv4*MP*)
13457 if test -d /usr/nec ;then
13458 lt_prog_compiler_pic='-Kconform_pic'
13459 lt_prog_compiler_static='-Bstatic'
13460 fi
13461 ;;
13462
13463 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13464 lt_prog_compiler_wl='-Wl,'
13465 lt_prog_compiler_pic='-KPIC'
13466 lt_prog_compiler_static='-Bstatic'
13467 ;;
13468
13469 unicos*)
13470 lt_prog_compiler_wl='-Wl,'
13471 lt_prog_compiler_can_build_shared=no
13472 ;;
13473
13474 uts4*)
13475 lt_prog_compiler_pic='-pic'
13476 lt_prog_compiler_static='-Bstatic'
13477 ;;
13478
13479 *)
13480 lt_prog_compiler_can_build_shared=no
13481 ;;
13482 esac
13483 fi
13484
13485case $host_os in
13486 # For platforms which do not support PIC, -DPIC is meaningless:
13487 *djgpp*)
13488 lt_prog_compiler_pic=
13489 ;;
13490 *)
13491 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13492 ;;
13493esac
cristy73bd4a52010-10-05 11:24:23 +000013494
cristyda16f162011-02-19 23:52:17 +000013495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13496$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13497if ${lt_cv_prog_compiler_pic+:} false; then :
13498 $as_echo_n "(cached) " >&6
13499else
13500 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13501fi
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13503$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13504lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013505
13506#
13507# Check to make sure the PIC flag actually works.
13508#
13509if test -n "$lt_prog_compiler_pic"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13511$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013512if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013513 $as_echo_n "(cached) " >&6
13514else
13515 lt_cv_prog_compiler_pic_works=no
13516 ac_outfile=conftest.$ac_objext
13517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13518 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13519 # Insert the option either (1) after the last *FLAGS variable, or
13520 # (2) before a word containing "conftest.", or (3) at the end.
13521 # Note that $ac_compile itself does not contain backslashes and begins
13522 # with a dollar sign (not a hyphen), so the echo should work correctly.
13523 # The option is referenced via a variable to avoid confusing sed.
13524 lt_compile=`echo "$ac_compile" | $SED \
13525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13527 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013529 (eval "$lt_compile" 2>conftest.err)
13530 ac_status=$?
13531 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013533 if (exit $ac_status) && test -s "$ac_outfile"; then
13534 # The compiler can only warn and ignore the option if not recognized
13535 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13538 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13539 lt_cv_prog_compiler_pic_works=yes
13540 fi
13541 fi
13542 $RM conftest*
13543
13544fi
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13546$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13547
13548if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13549 case $lt_prog_compiler_pic in
13550 "" | " "*) ;;
13551 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13552 esac
13553else
13554 lt_prog_compiler_pic=
13555 lt_prog_compiler_can_build_shared=no
13556fi
13557
13558fi
13559
13560
13561
13562
13563
13564
cristyda16f162011-02-19 23:52:17 +000013565
13566
13567
13568
13569
cristy73bd4a52010-10-05 11:24:23 +000013570#
13571# Check to make sure the static flag actually works.
13572#
13573wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13575$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013576if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013577 $as_echo_n "(cached) " >&6
13578else
13579 lt_cv_prog_compiler_static_works=no
13580 save_LDFLAGS="$LDFLAGS"
13581 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13582 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13583 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13584 # The linker can only warn and ignore the option if not recognized
13585 # So say no if there are warnings
13586 if test -s conftest.err; then
13587 # Append any errors to the config.log.
13588 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013589 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13591 if diff conftest.exp conftest.er2 >/dev/null; then
13592 lt_cv_prog_compiler_static_works=yes
13593 fi
13594 else
13595 lt_cv_prog_compiler_static_works=yes
13596 fi
13597 fi
13598 $RM -r conftest*
13599 LDFLAGS="$save_LDFLAGS"
13600
13601fi
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13603$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13604
13605if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13606 :
13607else
13608 lt_prog_compiler_static=
13609fi
13610
13611
13612
13613
13614
13615
13616
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13618$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013619if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013620 $as_echo_n "(cached) " >&6
13621else
13622 lt_cv_prog_compiler_c_o=no
13623 $RM -r conftest 2>/dev/null
13624 mkdir conftest
13625 cd conftest
13626 mkdir out
13627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13628
13629 lt_compiler_flag="-o out/conftest2.$ac_objext"
13630 # Insert the option either (1) after the last *FLAGS variable, or
13631 # (2) before a word containing "conftest.", or (3) at the end.
13632 # Note that $ac_compile itself does not contain backslashes and begins
13633 # with a dollar sign (not a hyphen), so the echo should work correctly.
13634 lt_compile=`echo "$ac_compile" | $SED \
13635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13637 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013639 (eval "$lt_compile" 2>out/conftest.err)
13640 ac_status=$?
13641 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13644 then
13645 # The compiler can only warn and ignore the option if not recognized
13646 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13650 lt_cv_prog_compiler_c_o=yes
13651 fi
13652 fi
13653 chmod u+w . 2>&5
13654 $RM conftest*
13655 # SGI C++ compiler will create directory out/ii_files/ for
13656 # template instantiation
13657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13658 $RM out/* && rmdir out
13659 cd ..
13660 $RM -r conftest
13661 $RM conftest*
13662
13663fi
13664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13665$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13666
13667
13668
13669
13670
13671
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13673$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013674if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013675 $as_echo_n "(cached) " >&6
13676else
13677 lt_cv_prog_compiler_c_o=no
13678 $RM -r conftest 2>/dev/null
13679 mkdir conftest
13680 cd conftest
13681 mkdir out
13682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13683
13684 lt_compiler_flag="-o out/conftest2.$ac_objext"
13685 # Insert the option either (1) after the last *FLAGS variable, or
13686 # (2) before a word containing "conftest.", or (3) at the end.
13687 # Note that $ac_compile itself does not contain backslashes and begins
13688 # with a dollar sign (not a hyphen), so the echo should work correctly.
13689 lt_compile=`echo "$ac_compile" | $SED \
13690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13692 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013694 (eval "$lt_compile" 2>out/conftest.err)
13695 ac_status=$?
13696 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13699 then
13700 # The compiler can only warn and ignore the option if not recognized
13701 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13705 lt_cv_prog_compiler_c_o=yes
13706 fi
13707 fi
13708 chmod u+w . 2>&5
13709 $RM conftest*
13710 # SGI C++ compiler will create directory out/ii_files/ for
13711 # template instantiation
13712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13713 $RM out/* && rmdir out
13714 cd ..
13715 $RM -r conftest
13716 $RM conftest*
13717
13718fi
13719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13720$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13721
13722
13723
13724
13725hard_links="nottested"
13726if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13727 # do not overwrite the value of need_locks provided by the user
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13729$as_echo_n "checking if we can lock with hard links... " >&6; }
13730 hard_links=yes
13731 $RM conftest*
13732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13733 touch conftest.a
13734 ln conftest.a conftest.b 2>&5 || hard_links=no
13735 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13737$as_echo "$hard_links" >&6; }
13738 if test "$hard_links" = no; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13740$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13741 need_locks=warn
13742 fi
13743else
13744 need_locks=no
13745fi
13746
13747
13748
13749
13750
13751
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13753$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13754
13755 runpath_var=
13756 allow_undefined_flag=
13757 always_export_symbols=no
13758 archive_cmds=
13759 archive_expsym_cmds=
13760 compiler_needs_object=no
13761 enable_shared_with_static_runtimes=no
13762 export_dynamic_flag_spec=
13763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13764 hardcode_automatic=no
13765 hardcode_direct=no
13766 hardcode_direct_absolute=no
13767 hardcode_libdir_flag_spec=
13768 hardcode_libdir_flag_spec_ld=
13769 hardcode_libdir_separator=
13770 hardcode_minus_L=no
13771 hardcode_shlibpath_var=unsupported
13772 inherit_rpath=no
13773 link_all_deplibs=unknown
13774 module_cmds=
13775 module_expsym_cmds=
13776 old_archive_from_new_cmds=
13777 old_archive_from_expsyms_cmds=
13778 thread_safe_flag_spec=
13779 whole_archive_flag_spec=
13780 # include_expsyms should be a list of space-separated symbols to be *always*
13781 # included in the symbol list
13782 include_expsyms=
13783 # exclude_expsyms can be an extended regexp of symbols to exclude
13784 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13785 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13786 # as well as any symbol that contains `d'.
13787 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13788 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13789 # platforms (ab)use it in PIC code, but their linkers get confused if
13790 # the symbol is explicitly referenced. Since portable code cannot
13791 # rely on this symbol name, it's probably fine to never include it in
13792 # preloaded symbol tables.
13793 # Exclude shared library initialization/finalization symbols.
13794 extract_expsyms_cmds=
13795
13796 case $host_os in
13797 cygwin* | mingw* | pw32* | cegcc*)
13798 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13799 # When not using gcc, we currently assume that we are using
13800 # Microsoft Visual C++.
13801 if test "$GCC" != yes; then
13802 with_gnu_ld=no
13803 fi
13804 ;;
13805 interix*)
13806 # we just hope/assume this is gcc and not c89 (= MSVC++)
13807 with_gnu_ld=yes
13808 ;;
13809 openbsd*)
13810 with_gnu_ld=no
13811 ;;
13812 esac
13813
13814 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013815
13816 # On some targets, GNU ld is compatible enough with the native linker
13817 # that we're better off using the native interface for both.
13818 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013819 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013820 case $host_os in
13821 aix*)
13822 # The AIX port of GNU ld has always aspired to compatibility
13823 # with the native linker. However, as the warning in the GNU ld
13824 # block says, versions before 2.19.5* couldn't really create working
13825 # shared libraries, regardless of the interface used.
13826 case `$LD -v 2>&1` in
13827 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13828 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13829 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13830 *)
13831 lt_use_gnu_ld_interface=yes
13832 ;;
13833 esac
13834 ;;
13835 *)
13836 lt_use_gnu_ld_interface=yes
13837 ;;
13838 esac
13839 fi
13840
13841 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013842 # If archive_cmds runs LD, not CC, wlarc should be empty
13843 wlarc='${wl}'
13844
13845 # Set some defaults for GNU ld with shared library support. These
13846 # are reset later if shared libraries are not supported. Putting them
13847 # here allows them to be overridden if necessary.
13848 runpath_var=LD_RUN_PATH
13849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13850 export_dynamic_flag_spec='${wl}--export-dynamic'
13851 # ancient GNU ld didn't support --whole-archive et. al.
13852 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13853 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13854 else
13855 whole_archive_flag_spec=
13856 fi
13857 supports_anon_versioning=no
13858 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013859 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013860 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13861 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13862 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13863 *\ 2.11.*) ;; # other 2.11 versions
13864 *) supports_anon_versioning=yes ;;
13865 esac
13866
13867 # See if GNU ld supports shared libraries.
13868 case $host_os in
13869 aix[3-9]*)
13870 # On AIX/PPC, the GNU linker is very broken
13871 if test "$host_cpu" != ia64; then
13872 ld_shlibs=no
13873 cat <<_LT_EOF 1>&2
13874
cristy0c60a692010-11-04 01:09:47 +000013875*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013876*** to be unable to reliably create shared libraries on AIX.
13877*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013878*** really care for shared libraries, you may want to install binutils
13879*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13880*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013881
13882_LT_EOF
13883 fi
13884 ;;
13885
13886 amigaos*)
13887 case $host_cpu in
13888 powerpc)
13889 # see comment about AmigaOS4 .so support
13890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891 archive_expsym_cmds=''
13892 ;;
13893 m68k)
13894 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)'
13895 hardcode_libdir_flag_spec='-L$libdir'
13896 hardcode_minus_L=yes
13897 ;;
13898 esac
13899 ;;
13900
13901 beos*)
13902 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13903 allow_undefined_flag=unsupported
13904 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13905 # support --undefined. This deserves some investigation. FIXME
13906 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13907 else
13908 ld_shlibs=no
13909 fi
13910 ;;
13911
13912 cygwin* | mingw* | pw32* | cegcc*)
13913 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13914 # as there is no search path for DLLs.
13915 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013916 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013917 allow_undefined_flag=unsupported
13918 always_export_symbols=no
13919 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013920 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'
13921 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 +000013922
13923 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13925 # If the export-symbols file already is a .def file (1st line
13926 # is EXPORTS), use it as is; otherwise, prepend...
13927 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13928 cp $export_symbols $output_objdir/$soname.def;
13929 else
13930 echo EXPORTS > $output_objdir/$soname.def;
13931 cat $export_symbols >> $output_objdir/$soname.def;
13932 fi~
13933 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13934 else
13935 ld_shlibs=no
13936 fi
13937 ;;
13938
cristy0c60a692010-11-04 01:09:47 +000013939 haiku*)
13940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13941 link_all_deplibs=yes
13942 ;;
13943
cristy73bd4a52010-10-05 11:24:23 +000013944 interix[3-9]*)
13945 hardcode_direct=no
13946 hardcode_shlibpath_var=no
13947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13948 export_dynamic_flag_spec='${wl}-E'
13949 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13950 # Instead, shared libraries are loaded at an image base (0x10000000 by
13951 # default) and relocated if they conflict, which is a slow very memory
13952 # consuming and fragmenting process. To avoid this, we pick a random,
13953 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13954 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13955 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13956 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'
13957 ;;
13958
cristy0c60a692010-11-04 01:09:47 +000013959 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013960 tmp_diet=no
13961 if test "$host_os" = linux-dietlibc; then
13962 case $cc_basename in
13963 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13964 esac
13965 fi
13966 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13967 && test "$tmp_diet" = no
13968 then
cristyda16f162011-02-19 23:52:17 +000013969 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013970 tmp_sharedflag='-shared'
13971 case $cc_basename,$host_cpu in
13972 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013973 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 +000013974 tmp_addflag=' $pic_flag'
13975 ;;
cristy0c60a692010-11-04 01:09:47 +000013976 pgf77* | pgf90* | pgf95* | pgfortran*)
13977 # Portland Group f77 and f90 compilers
13978 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 +000013979 tmp_addflag=' $pic_flag -Mnomain' ;;
13980 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13981 tmp_addflag=' -i_dynamic' ;;
13982 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13983 tmp_addflag=' -i_dynamic -nofor_main' ;;
13984 ifc* | ifort*) # Intel Fortran compiler
13985 tmp_addflag=' -nofor_main' ;;
13986 lf95*) # Lahey Fortran 8.1
13987 whole_archive_flag_spec=
13988 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013989 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013990 tmp_sharedflag='-qmkshrobj'
13991 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013992 nvcc*) # Cuda Compiler Driver 2.2
13993 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'
13994 compiler_needs_object=yes
13995 ;;
cristy73bd4a52010-10-05 11:24:23 +000013996 esac
13997 case `$CC -V 2>&1 | sed 5q` in
13998 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013999 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 +000014000 compiler_needs_object=yes
14001 tmp_sharedflag='-G' ;;
14002 *Sun\ F*) # Sun Fortran 8.3
14003 tmp_sharedflag='-G' ;;
14004 esac
14005 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006
14007 if test "x$supports_anon_versioning" = xyes; then
14008 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14010 echo "local: *; };" >> $output_objdir/$libname.ver~
14011 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14012 fi
14013
14014 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014015 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014016 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14017 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14018 hardcode_libdir_flag_spec=
14019 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014020 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014021 if test "x$supports_anon_versioning" = xyes; then
14022 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14024 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014025 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014026 fi
14027 ;;
14028 esac
14029 else
14030 ld_shlibs=no
14031 fi
14032 ;;
14033
14034 netbsd*)
14035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14036 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14037 wlarc=
14038 else
cristyda16f162011-02-19 23:52:17 +000014039 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14040 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 +000014041 fi
14042 ;;
14043
14044 solaris*)
14045 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14046 ld_shlibs=no
14047 cat <<_LT_EOF 1>&2
14048
14049*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14050*** create shared libraries on Solaris systems. Therefore, libtool
14051*** is disabling shared libraries support. We urge you to upgrade GNU
14052*** binutils to release 2.9.1 or newer. Another option is to modify
14053*** your PATH or compiler configuration so that the native linker is
14054*** used, and then restart.
14055
14056_LT_EOF
14057 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14059 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 +000014060 else
14061 ld_shlibs=no
14062 fi
14063 ;;
14064
14065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14066 case `$LD -v 2>&1` in
14067 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14068 ld_shlibs=no
14069 cat <<_LT_EOF 1>&2
14070
14071*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14072*** reliably create shared libraries on SCO systems. Therefore, libtool
14073*** is disabling shared libraries support. We urge you to upgrade GNU
14074*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14075*** your PATH or compiler configuration so that the native linker is
14076*** used, and then restart.
14077
14078_LT_EOF
14079 ;;
14080 *)
14081 # For security reasons, it is highly recommended that you always
14082 # use absolute paths for naming shared libraries, and exclude the
14083 # DT_RUNPATH tag from executables and libraries. But doing so
14084 # requires that you compile everything twice, which is a pain.
14085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14089 else
14090 ld_shlibs=no
14091 fi
14092 ;;
14093 esac
14094 ;;
14095
14096 sunos4*)
14097 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14098 wlarc=
14099 hardcode_direct=yes
14100 hardcode_shlibpath_var=no
14101 ;;
14102
14103 *)
14104 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014105 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14106 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 +000014107 else
14108 ld_shlibs=no
14109 fi
14110 ;;
14111 esac
14112
14113 if test "$ld_shlibs" = no; then
14114 runpath_var=
14115 hardcode_libdir_flag_spec=
14116 export_dynamic_flag_spec=
14117 whole_archive_flag_spec=
14118 fi
14119 else
14120 # PORTME fill in a description of your system's linker (not GNU ld)
14121 case $host_os in
14122 aix3*)
14123 allow_undefined_flag=unsupported
14124 always_export_symbols=yes
14125 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'
14126 # Note: this linker hardcodes the directories in LIBPATH if there
14127 # are no directories specified by -L.
14128 hardcode_minus_L=yes
14129 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14130 # Neither direct hardcoding nor static linking is supported with a
14131 # broken collect2.
14132 hardcode_direct=unsupported
14133 fi
14134 ;;
14135
14136 aix[4-9]*)
14137 if test "$host_cpu" = ia64; then
14138 # On IA64, the linker does run time linking by default, so we don't
14139 # have to do anything special.
14140 aix_use_runtimelinking=no
14141 exp_sym_flag='-Bexport'
14142 no_entry_flag=""
14143 else
14144 # If we're using GNU nm, then we don't want the "-C" option.
14145 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014146 # Also, AIX nm treats weak defined symbols like other global
14147 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014148 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014149 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 +000014150 else
14151 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'
14152 fi
14153 aix_use_runtimelinking=no
14154
14155 # Test if we are trying to use run time linking or normal
14156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14157 # need to do runtime linking.
14158 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14159 for ld_flag in $LDFLAGS; do
14160 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14161 aix_use_runtimelinking=yes
14162 break
14163 fi
14164 done
14165 ;;
14166 esac
14167
14168 exp_sym_flag='-bexport'
14169 no_entry_flag='-bnoentry'
14170 fi
14171
14172 # When large executables or shared objects are built, AIX ld can
14173 # have problems creating the table of contents. If linking a library
14174 # or program results in "error TOC overflow" add -mminimal-toc to
14175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14177
14178 archive_cmds=''
14179 hardcode_direct=yes
14180 hardcode_direct_absolute=yes
14181 hardcode_libdir_separator=':'
14182 link_all_deplibs=yes
14183 file_list_spec='${wl}-f,'
14184
14185 if test "$GCC" = yes; then
14186 case $host_os in aix4.[012]|aix4.[012].*)
14187 # We only want to do this on AIX 4.2 and lower, the check
14188 # below for broken collect2 doesn't work under 4.3+
14189 collect2name=`${CC} -print-prog-name=collect2`
14190 if test -f "$collect2name" &&
14191 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14192 then
14193 # We have reworked collect2
14194 :
14195 else
14196 # We have old collect2
14197 hardcode_direct=unsupported
14198 # It fails to find uninstalled libraries when the uninstalled
14199 # path is not listed in the libpath. Setting hardcode_minus_L
14200 # to unsupported forces relinking
14201 hardcode_minus_L=yes
14202 hardcode_libdir_flag_spec='-L$libdir'
14203 hardcode_libdir_separator=
14204 fi
14205 ;;
14206 esac
14207 shared_flag='-shared'
14208 if test "$aix_use_runtimelinking" = yes; then
14209 shared_flag="$shared_flag "'${wl}-G'
14210 fi
14211 else
14212 # not using gcc
14213 if test "$host_cpu" = ia64; then
14214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14215 # chokes on -Wl,-G. The following line is correct:
14216 shared_flag='-G'
14217 else
14218 if test "$aix_use_runtimelinking" = yes; then
14219 shared_flag='${wl}-G'
14220 else
14221 shared_flag='${wl}-bM:SRE'
14222 fi
14223 fi
14224 fi
14225
14226 export_dynamic_flag_spec='${wl}-bexpall'
14227 # It seems that -bexpall does not export symbols beginning with
14228 # underscore (_), so it is better to generate a list of symbols to export.
14229 always_export_symbols=yes
14230 if test "$aix_use_runtimelinking" = yes; then
14231 # Warning - without using the other runtime loading flags (-brtl),
14232 # -berok will link without error, but may produce a broken library.
14233 allow_undefined_flag='-berok'
14234 # Determine the default libpath from the value encoded in an
14235 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014236 if test "${lt_cv_aix_libpath+set}" = set; then
14237 aix_libpath=$lt_cv_aix_libpath
14238else
14239 if ${lt_cv_aix_libpath_+:} false; then :
14240 $as_echo_n "(cached) " >&6
14241else
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014243/* end confdefs.h. */
14244
14245int
14246main ()
14247{
14248
14249 ;
14250 return 0;
14251}
14252_ACEOF
14253if ac_fn_c_try_link "$LINENO"; then :
14254
cristyda16f162011-02-19 23:52:17 +000014255 lt_aix_libpath_sed='
14256 /Import File Strings/,/^$/ {
14257 /^0/ {
14258 s/^0 *\([^ ]*\) *$/\1/
14259 p
14260 }
14261 }'
14262 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14263 # Check for a 64-bit object if we didn't find anything.
14264 if test -z "$lt_cv_aix_libpath_"; then
14265 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14266 fi
cristy73bd4a52010-10-05 11:24:23 +000014267fi
14268rm -f core conftest.err conftest.$ac_objext \
14269 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014270 if test -z "$lt_cv_aix_libpath_"; then
14271 lt_cv_aix_libpath_="/usr/lib:/lib"
14272 fi
14273
14274fi
14275
14276 aix_libpath=$lt_cv_aix_libpath_
14277fi
cristy73bd4a52010-10-05 11:24:23 +000014278
14279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014280 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 +000014281 else
14282 if test "$host_cpu" = ia64; then
14283 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14284 allow_undefined_flag="-z nodefs"
14285 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"
14286 else
14287 # Determine the default libpath from the value encoded in an
14288 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014289 if test "${lt_cv_aix_libpath+set}" = set; then
14290 aix_libpath=$lt_cv_aix_libpath
14291else
14292 if ${lt_cv_aix_libpath_+:} false; then :
14293 $as_echo_n "(cached) " >&6
14294else
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014296/* end confdefs.h. */
14297
14298int
14299main ()
14300{
14301
14302 ;
14303 return 0;
14304}
14305_ACEOF
14306if ac_fn_c_try_link "$LINENO"; then :
14307
cristyda16f162011-02-19 23:52:17 +000014308 lt_aix_libpath_sed='
14309 /Import File Strings/,/^$/ {
14310 /^0/ {
14311 s/^0 *\([^ ]*\) *$/\1/
14312 p
14313 }
14314 }'
14315 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14316 # Check for a 64-bit object if we didn't find anything.
14317 if test -z "$lt_cv_aix_libpath_"; then
14318 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14319 fi
cristy73bd4a52010-10-05 11:24:23 +000014320fi
14321rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014323 if test -z "$lt_cv_aix_libpath_"; then
14324 lt_cv_aix_libpath_="/usr/lib:/lib"
14325 fi
14326
14327fi
14328
14329 aix_libpath=$lt_cv_aix_libpath_
14330fi
cristy73bd4a52010-10-05 11:24:23 +000014331
14332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14333 # Warning - without using the other run time loading flags,
14334 # -berok will link without error, but may produce a broken library.
14335 no_undefined_flag=' ${wl}-bernotok'
14336 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014337 if test "$with_gnu_ld" = yes; then
14338 # We only use this code for GNU lds that support --whole-archive.
14339 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14340 else
14341 # Exported symbols can be pulled into shared objects from archives
14342 whole_archive_flag_spec='$convenience'
14343 fi
cristy73bd4a52010-10-05 11:24:23 +000014344 archive_cmds_need_lc=yes
14345 # This is similar to how AIX traditionally builds its shared libraries.
14346 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'
14347 fi
14348 fi
14349 ;;
14350
14351 amigaos*)
14352 case $host_cpu in
14353 powerpc)
14354 # see comment about AmigaOS4 .so support
14355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356 archive_expsym_cmds=''
14357 ;;
14358 m68k)
14359 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)'
14360 hardcode_libdir_flag_spec='-L$libdir'
14361 hardcode_minus_L=yes
14362 ;;
14363 esac
14364 ;;
14365
14366 bsdi[45]*)
14367 export_dynamic_flag_spec=-rdynamic
14368 ;;
14369
14370 cygwin* | mingw* | pw32* | cegcc*)
14371 # When not using gcc, we currently assume that we are using
14372 # Microsoft Visual C++.
14373 # hardcode_libdir_flag_spec is actually meaningless, as there is
14374 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014375 case $cc_basename in
14376 cl*)
14377 # Native MSVC
14378 hardcode_libdir_flag_spec=' '
14379 allow_undefined_flag=unsupported
14380 always_export_symbols=yes
14381 file_list_spec='@'
14382 # Tell ltmain to make .lib files, not .a files.
14383 libext=lib
14384 # Tell ltmain to make .dll files, not .so files.
14385 shrext_cmds=".dll"
14386 # FIXME: Setting linknames here is a bad hack.
14387 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14388 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14389 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14390 else
14391 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14392 fi~
14393 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14394 linknames='
14395 # The linker will not automatically build a static lib if we build a DLL.
14396 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14397 enable_shared_with_static_runtimes=yes
14398 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14399 # Don't use ranlib
14400 old_postinstall_cmds='chmod 644 $oldlib'
14401 postlink_cmds='lt_outputfile="@OUTPUT@"~
14402 lt_tool_outputfile="@TOOL_OUTPUT@"~
14403 case $lt_outputfile in
14404 *.exe|*.EXE) ;;
14405 *)
14406 lt_outputfile="$lt_outputfile.exe"
14407 lt_tool_outputfile="$lt_tool_outputfile.exe"
14408 ;;
14409 esac~
14410 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14411 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14412 $RM "$lt_outputfile.manifest";
14413 fi'
14414 ;;
14415 *)
14416 # Assume MSVC wrapper
14417 hardcode_libdir_flag_spec=' '
14418 allow_undefined_flag=unsupported
14419 # Tell ltmain to make .lib files, not .a files.
14420 libext=lib
14421 # Tell ltmain to make .dll files, not .so files.
14422 shrext_cmds=".dll"
14423 # FIXME: Setting linknames here is a bad hack.
14424 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14425 # The linker will automatically build a .lib file if we build a DLL.
14426 old_archive_from_new_cmds='true'
14427 # FIXME: Should let the user specify the lib program.
14428 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14429 enable_shared_with_static_runtimes=yes
14430 ;;
14431 esac
cristy73bd4a52010-10-05 11:24:23 +000014432 ;;
14433
14434 darwin* | rhapsody*)
14435
14436
14437 archive_cmds_need_lc=no
14438 hardcode_direct=no
14439 hardcode_automatic=yes
14440 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014441 if test "$lt_cv_ld_force_load" = "yes"; then
14442 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\"`'
14443 else
14444 whole_archive_flag_spec=''
14445 fi
cristy73bd4a52010-10-05 11:24:23 +000014446 link_all_deplibs=yes
14447 allow_undefined_flag="$_lt_dar_allow_undefined"
14448 case $cc_basename in
14449 ifort*) _lt_dar_can_shared=yes ;;
14450 *) _lt_dar_can_shared=$GCC ;;
14451 esac
14452 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014453 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014454 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14455 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14456 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}"
14457 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}"
14458
14459 else
14460 ld_shlibs=no
14461 fi
14462
14463 ;;
14464
14465 dgux*)
14466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14467 hardcode_libdir_flag_spec='-L$libdir'
14468 hardcode_shlibpath_var=no
14469 ;;
14470
14471 freebsd1*)
14472 ld_shlibs=no
14473 ;;
14474
14475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14476 # support. Future versions do this automatically, but an explicit c++rt0.o
14477 # does not break anything, and helps significantly (at the cost of a little
14478 # extra space).
14479 freebsd2.2*)
14480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14481 hardcode_libdir_flag_spec='-R$libdir'
14482 hardcode_direct=yes
14483 hardcode_shlibpath_var=no
14484 ;;
14485
14486 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14487 freebsd2*)
14488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14489 hardcode_direct=yes
14490 hardcode_minus_L=yes
14491 hardcode_shlibpath_var=no
14492 ;;
14493
14494 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14495 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014497 hardcode_libdir_flag_spec='-R$libdir'
14498 hardcode_direct=yes
14499 hardcode_shlibpath_var=no
14500 ;;
14501
14502 hpux9*)
14503 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014504 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 +000014505 else
14506 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'
14507 fi
14508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14509 hardcode_libdir_separator=:
14510 hardcode_direct=yes
14511
14512 # hardcode_minus_L: Not really in the search PATH,
14513 # but as the default location of the library.
14514 hardcode_minus_L=yes
14515 export_dynamic_flag_spec='${wl}-E'
14516 ;;
14517
14518 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014519 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014520 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 +000014521 else
14522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14523 fi
14524 if test "$with_gnu_ld" = no; then
14525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14526 hardcode_libdir_flag_spec_ld='+b $libdir'
14527 hardcode_libdir_separator=:
14528 hardcode_direct=yes
14529 hardcode_direct_absolute=yes
14530 export_dynamic_flag_spec='${wl}-E'
14531 # hardcode_minus_L: Not really in the search PATH,
14532 # but as the default location of the library.
14533 hardcode_minus_L=yes
14534 fi
14535 ;;
14536
14537 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014538 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014539 case $host_cpu in
14540 hppa*64*)
14541 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14542 ;;
14543 ia64*)
cristyda16f162011-02-19 23:52:17 +000014544 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014545 ;;
14546 *)
cristyda16f162011-02-19 23:52:17 +000014547 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 +000014548 ;;
14549 esac
14550 else
14551 case $host_cpu in
14552 hppa*64*)
14553 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14554 ;;
14555 ia64*)
14556 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14557 ;;
14558 *)
cristy0c60a692010-11-04 01:09:47 +000014559
14560 # Older versions of the 11.00 compiler do not understand -b yet
14561 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14563$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014564if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014565 $as_echo_n "(cached) " >&6
14566else
14567 lt_cv_prog_compiler__b=no
14568 save_LDFLAGS="$LDFLAGS"
14569 LDFLAGS="$LDFLAGS -b"
14570 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14572 # The linker can only warn and ignore the option if not recognized
14573 # So say no if there are warnings
14574 if test -s conftest.err; then
14575 # Append any errors to the config.log.
14576 cat conftest.err 1>&5
14577 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14579 if diff conftest.exp conftest.er2 >/dev/null; then
14580 lt_cv_prog_compiler__b=yes
14581 fi
14582 else
14583 lt_cv_prog_compiler__b=yes
14584 fi
14585 fi
14586 $RM -r conftest*
14587 LDFLAGS="$save_LDFLAGS"
14588
14589fi
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14591$as_echo "$lt_cv_prog_compiler__b" >&6; }
14592
14593if test x"$lt_cv_prog_compiler__b" = xyes; then
14594 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14595else
14596 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14597fi
14598
cristy73bd4a52010-10-05 11:24:23 +000014599 ;;
14600 esac
14601 fi
14602 if test "$with_gnu_ld" = no; then
14603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14604 hardcode_libdir_separator=:
14605
14606 case $host_cpu in
14607 hppa*64*|ia64*)
14608 hardcode_direct=no
14609 hardcode_shlibpath_var=no
14610 ;;
14611 *)
14612 hardcode_direct=yes
14613 hardcode_direct_absolute=yes
14614 export_dynamic_flag_spec='${wl}-E'
14615
14616 # hardcode_minus_L: Not really in the search PATH,
14617 # but as the default location of the library.
14618 hardcode_minus_L=yes
14619 ;;
14620 esac
14621 fi
14622 ;;
14623
14624 irix5* | irix6* | nonstopux*)
14625 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014626 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 +000014627 # Try to use the -exported_symbol ld option, if it does not
14628 # work, assume that -exports_file does not work either and
14629 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014630 # This should be the same for all languages, so no per-tag cache variable.
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14632$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14633if ${lt_cv_irix_exported_symbol+:} false; then :
14634 $as_echo_n "(cached) " >&6
14635else
14636 save_LDFLAGS="$LDFLAGS"
14637 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014639/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014640int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014641_ACEOF
14642if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014643 lt_cv_irix_exported_symbol=yes
14644else
14645 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014646fi
14647rm -f core conftest.err conftest.$ac_objext \
14648 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014649 LDFLAGS="$save_LDFLAGS"
14650fi
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14652$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14653 if test "$lt_cv_irix_exported_symbol" = yes; then
14654 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'
14655 fi
cristy73bd4a52010-10-05 11:24:23 +000014656 else
cristy0c60a692010-11-04 01:09:47 +000014657 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'
14658 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 +000014659 fi
14660 archive_cmds_need_lc='no'
14661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14662 hardcode_libdir_separator=:
14663 inherit_rpath=yes
14664 link_all_deplibs=yes
14665 ;;
14666
14667 netbsd*)
14668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14670 else
14671 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14672 fi
14673 hardcode_libdir_flag_spec='-R$libdir'
14674 hardcode_direct=yes
14675 hardcode_shlibpath_var=no
14676 ;;
14677
14678 newsos6)
14679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14680 hardcode_direct=yes
14681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14682 hardcode_libdir_separator=:
14683 hardcode_shlibpath_var=no
14684 ;;
14685
14686 *nto* | *qnx*)
14687 ;;
14688
14689 openbsd*)
14690 if test -f /usr/libexec/ld.so; then
14691 hardcode_direct=yes
14692 hardcode_shlibpath_var=no
14693 hardcode_direct_absolute=yes
14694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14696 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14697 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14698 export_dynamic_flag_spec='${wl}-E'
14699 else
14700 case $host_os in
14701 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14703 hardcode_libdir_flag_spec='-R$libdir'
14704 ;;
14705 *)
14706 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14707 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14708 ;;
14709 esac
14710 fi
14711 else
14712 ld_shlibs=no
14713 fi
14714 ;;
14715
14716 os2*)
14717 hardcode_libdir_flag_spec='-L$libdir'
14718 hardcode_minus_L=yes
14719 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014720 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 +000014721 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14722 ;;
14723
14724 osf3*)
14725 if test "$GCC" = yes; then
14726 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014727 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 +000014728 else
14729 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014730 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 +000014731 fi
14732 archive_cmds_need_lc='no'
14733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14734 hardcode_libdir_separator=:
14735 ;;
14736
14737 osf4* | osf5*) # as osf3* with the addition of -msym flag
14738 if test "$GCC" = yes; then
14739 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014740 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 +000014741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14742 else
14743 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014744 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 +000014745 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 +000014746 $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 +000014747
14748 # Both c and cxx compiler support -rpath directly
14749 hardcode_libdir_flag_spec='-rpath $libdir'
14750 fi
14751 archive_cmds_need_lc='no'
14752 hardcode_libdir_separator=:
14753 ;;
14754
14755 solaris*)
14756 no_undefined_flag=' -z defs'
14757 if test "$GCC" = yes; then
14758 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014759 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 +000014760 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 +000014761 $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 +000014762 else
14763 case `$CC -V 2>&1` in
14764 *"Compilers 5.0"*)
14765 wlarc=''
14766 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14767 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14768 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14769 ;;
14770 *)
14771 wlarc='${wl}'
14772 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14773 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14774 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14775 ;;
14776 esac
14777 fi
14778 hardcode_libdir_flag_spec='-R$libdir'
14779 hardcode_shlibpath_var=no
14780 case $host_os in
14781 solaris2.[0-5] | solaris2.[0-5].*) ;;
14782 *)
14783 # The compiler driver will combine and reorder linker options,
14784 # but understands `-z linker_flag'. GCC discards it without `$wl',
14785 # but is careful enough not to reorder.
14786 # Supported since Solaris 2.6 (maybe 2.5.1?)
14787 if test "$GCC" = yes; then
14788 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14789 else
14790 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14791 fi
14792 ;;
14793 esac
14794 link_all_deplibs=yes
14795 ;;
14796
14797 sunos4*)
14798 if test "x$host_vendor" = xsequent; then
14799 # Use $CC to link under sequent, because it throws in some extra .o
14800 # files that make .init and .fini sections work.
14801 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14802 else
14803 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14804 fi
14805 hardcode_libdir_flag_spec='-L$libdir'
14806 hardcode_direct=yes
14807 hardcode_minus_L=yes
14808 hardcode_shlibpath_var=no
14809 ;;
14810
14811 sysv4)
14812 case $host_vendor in
14813 sni)
14814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14815 hardcode_direct=yes # is this really true???
14816 ;;
14817 siemens)
14818 ## LD is ld it makes a PLAMLIB
14819 ## CC just makes a GrossModule.
14820 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14821 reload_cmds='$CC -r -o $output$reload_objs'
14822 hardcode_direct=no
14823 ;;
14824 motorola)
14825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14826 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14827 ;;
14828 esac
14829 runpath_var='LD_RUN_PATH'
14830 hardcode_shlibpath_var=no
14831 ;;
14832
14833 sysv4.3*)
14834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14835 hardcode_shlibpath_var=no
14836 export_dynamic_flag_spec='-Bexport'
14837 ;;
14838
14839 sysv4*MP*)
14840 if test -d /usr/nec; then
14841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14842 hardcode_shlibpath_var=no
14843 runpath_var=LD_RUN_PATH
14844 hardcode_runpath_var=yes
14845 ld_shlibs=yes
14846 fi
14847 ;;
14848
14849 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14850 no_undefined_flag='${wl}-z,text'
14851 archive_cmds_need_lc=no
14852 hardcode_shlibpath_var=no
14853 runpath_var='LD_RUN_PATH'
14854
14855 if test "$GCC" = yes; then
14856 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14857 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14858 else
14859 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14860 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14861 fi
14862 ;;
14863
14864 sysv5* | sco3.2v5* | sco5v6*)
14865 # Note: We can NOT use -z defs as we might desire, because we do not
14866 # link with -lc, and that would cause any symbols used from libc to
14867 # always be unresolved, which means just about no library would
14868 # ever link correctly. If we're not using GNU ld we use -z text
14869 # though, which does catch some bad symbols but isn't as heavy-handed
14870 # as -z defs.
14871 no_undefined_flag='${wl}-z,text'
14872 allow_undefined_flag='${wl}-z,nodefs'
14873 archive_cmds_need_lc=no
14874 hardcode_shlibpath_var=no
14875 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14876 hardcode_libdir_separator=':'
14877 link_all_deplibs=yes
14878 export_dynamic_flag_spec='${wl}-Bexport'
14879 runpath_var='LD_RUN_PATH'
14880
14881 if test "$GCC" = yes; then
14882 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14883 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14884 else
14885 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14886 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14887 fi
14888 ;;
14889
14890 uts4*)
14891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892 hardcode_libdir_flag_spec='-L$libdir'
14893 hardcode_shlibpath_var=no
14894 ;;
14895
14896 *)
14897 ld_shlibs=no
14898 ;;
14899 esac
14900
14901 if test x$host_vendor = xsni; then
14902 case $host in
14903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14904 export_dynamic_flag_spec='${wl}-Blargedynsym'
14905 ;;
14906 esac
14907 fi
14908 fi
14909
14910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14911$as_echo "$ld_shlibs" >&6; }
14912test "$ld_shlibs" = no && can_build_shared=no
14913
14914with_gnu_ld=$with_gnu_ld
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930#
14931# Do we need to explicitly link libc?
14932#
14933case "x$archive_cmds_need_lc" in
14934x|xyes)
14935 # Assume -lc should be added
14936 archive_cmds_need_lc=yes
14937
14938 if test "$enable_shared" = yes && test "$GCC" = yes; then
14939 case $archive_cmds in
14940 *'~'*)
14941 # FIXME: we may have to deal with multi-command sequences.
14942 ;;
14943 '$CC '*)
14944 # Test whether the compiler implicitly links with -lc since on some
14945 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14946 # to ld, don't add -lc before -lgcc.
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14948$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014949if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014950 $as_echo_n "(cached) " >&6
14951else
14952 $RM conftest*
14953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014954
cristy0c60a692010-11-04 01:09:47 +000014955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014956 (eval $ac_compile) 2>&5
14957 ac_status=$?
14958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14959 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014960 soname=conftest
14961 lib=conftest
14962 libobjs=conftest.$ac_objext
14963 deplibs=
14964 wl=$lt_prog_compiler_wl
14965 pic_flag=$lt_prog_compiler_pic
14966 compiler_flags=-v
14967 linker_flags=-v
14968 verstring=
14969 output_objdir=.
14970 libname=conftest
14971 lt_save_allow_undefined_flag=$allow_undefined_flag
14972 allow_undefined_flag=
14973 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 +000014974 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14975 ac_status=$?
14976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14977 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014978 then
14979 lt_cv_archive_cmds_need_lc=no
14980 else
14981 lt_cv_archive_cmds_need_lc=yes
14982 fi
14983 allow_undefined_flag=$lt_save_allow_undefined_flag
14984 else
14985 cat conftest.err 1>&5
14986 fi
14987 $RM conftest*
14988
14989fi
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14991$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14992 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014993 ;;
14994 esac
14995 fi
14996 ;;
14997esac
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15156$as_echo_n "checking dynamic linker characteristics... " >&6; }
15157
15158if test "$GCC" = yes; then
15159 case $host_os in
15160 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15161 *) lt_awk_arg="/^libraries:/" ;;
15162 esac
cristy0c60a692010-11-04 01:09:47 +000015163 case $host_os in
15164 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15165 *) lt_sed_strip_eq="s,=/,/,g" ;;
15166 esac
15167 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15168 case $lt_search_path_spec in
15169 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015170 # if the path contains ";" then we assume it to be the separator
15171 # otherwise default to the standard path separator (i.e. ":") - it is
15172 # assumed that no part of a normal pathname contains ";" but that should
15173 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015174 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15175 ;;
15176 *)
15177 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15178 ;;
15179 esac
cristy73bd4a52010-10-05 11:24:23 +000015180 # Ok, now we have the path, separated by spaces, we can step through it
15181 # and add multilib dir if necessary.
15182 lt_tmp_lt_search_path_spec=
15183 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15184 for lt_sys_path in $lt_search_path_spec; do
15185 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15186 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15187 else
15188 test -d "$lt_sys_path" && \
15189 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15190 fi
15191 done
cristy0c60a692010-11-04 01:09:47 +000015192 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015193BEGIN {RS=" "; FS="/|\n";} {
15194 lt_foo="";
15195 lt_count=0;
15196 for (lt_i = NF; lt_i > 0; lt_i--) {
15197 if ($lt_i != "" && $lt_i != ".") {
15198 if ($lt_i == "..") {
15199 lt_count++;
15200 } else {
15201 if (lt_count == 0) {
15202 lt_foo="/" $lt_i lt_foo;
15203 } else {
15204 lt_count--;
15205 }
15206 }
15207 }
15208 }
15209 if (lt_foo != "") { lt_freq[lt_foo]++; }
15210 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15211}'`
cristy0c60a692010-11-04 01:09:47 +000015212 # AWK program above erroneously prepends '/' to C:/dos/paths
15213 # for these hosts.
15214 case $host_os in
15215 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15216 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15217 esac
15218 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015219else
15220 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15221fi
15222library_names_spec=
15223libname_spec='lib$name'
15224soname_spec=
15225shrext_cmds=".so"
15226postinstall_cmds=
15227postuninstall_cmds=
15228finish_cmds=
15229finish_eval=
15230shlibpath_var=
15231shlibpath_overrides_runpath=unknown
15232version_type=none
15233dynamic_linker="$host_os ld.so"
15234sys_lib_dlsearch_path_spec="/lib /usr/lib"
15235need_lib_prefix=unknown
15236hardcode_into_libs=no
15237
15238# when you set need_version to no, make sure it does not cause -set_version
15239# flags to be left without arguments
15240need_version=unknown
15241
15242case $host_os in
15243aix3*)
15244 version_type=linux
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15246 shlibpath_var=LIBPATH
15247
15248 # AIX 3 has no versioning support, so we append a major version to the name.
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 ;;
15251
15252aix[4-9]*)
15253 version_type=linux
15254 need_lib_prefix=no
15255 need_version=no
15256 hardcode_into_libs=yes
15257 if test "$host_cpu" = ia64; then
15258 # AIX 5 supports IA64
15259 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 else
15262 # With GCC up to 2.95.x, collect2 would create an import file
15263 # for dependence libraries. The import file would start with
15264 # the line `#! .'. This would cause the generated library to
15265 # depend on `.', always an invalid library. This was fixed in
15266 # development snapshots of GCC prior to 3.0.
15267 case $host_os in
15268 aix4 | aix4.[01] | aix4.[01].*)
15269 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15270 echo ' yes '
15271 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15272 :
15273 else
15274 can_build_shared=no
15275 fi
15276 ;;
15277 esac
15278 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15279 # soname into executable. Probably we can add versioning support to
15280 # collect2, so additional links can be useful in future.
15281 if test "$aix_use_runtimelinking" = yes; then
15282 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15283 # instead of lib<name>.a to let people know that these are not
15284 # typical AIX shared libraries.
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15286 else
15287 # We preserve .a as extension for shared libraries through AIX4.2
15288 # and later when we are not doing run time linking.
15289 library_names_spec='${libname}${release}.a $libname.a'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 fi
15292 shlibpath_var=LIBPATH
15293 fi
15294 ;;
15295
15296amigaos*)
15297 case $host_cpu in
15298 powerpc)
15299 # Since July 2007 AmigaOS4 officially supports .so libraries.
15300 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15302 ;;
15303 m68k)
15304 library_names_spec='$libname.ixlibrary $libname.a'
15305 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015306 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 +000015307 ;;
15308 esac
15309 ;;
15310
15311beos*)
15312 library_names_spec='${libname}${shared_ext}'
15313 dynamic_linker="$host_os ld.so"
15314 shlibpath_var=LIBRARY_PATH
15315 ;;
15316
15317bsdi[45]*)
15318 version_type=linux
15319 need_version=no
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15325 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15326 # the default ld.so.conf also contains /usr/contrib/lib and
15327 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15328 # libtool to hard-code these into programs
15329 ;;
15330
15331cygwin* | mingw* | pw32* | cegcc*)
15332 version_type=windows
15333 shrext_cmds=".dll"
15334 need_version=no
15335 need_lib_prefix=no
15336
cristyda16f162011-02-19 23:52:17 +000015337 case $GCC,$cc_basename in
15338 yes,*)
15339 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015340 library_names_spec='$libname.dll.a'
15341 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15342 postinstall_cmds='base_file=`basename \${file}`~
15343 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15344 dldir=$destdir/`dirname \$dlpath`~
15345 test -d \$dldir || mkdir -p \$dldir~
15346 $install_prog $dir/$dlname \$dldir/$dlname~
15347 chmod a+x \$dldir/$dlname~
15348 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15349 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15350 fi'
15351 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15352 dlpath=$dir/\$dldll~
15353 $RM \$dlpath'
15354 shlibpath_overrides_runpath=yes
15355
15356 case $host_os in
15357 cygwin*)
15358 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15359 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015360
15361 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015362 ;;
15363 mingw* | cegcc*)
15364 # MinGW DLLs use traditional 'lib' prefix
15365 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015366 ;;
15367 pw32*)
15368 # pw32 DLLs use 'pw' prefix rather than 'lib'
15369 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15370 ;;
15371 esac
cristyda16f162011-02-19 23:52:17 +000015372 dynamic_linker='Win32 ld.exe'
15373 ;;
15374
15375 *,cl*)
15376 # Native MSVC
15377 libname_spec='$name'
15378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15379 library_names_spec='${libname}.dll.lib'
15380
15381 case $build_os in
15382 mingw*)
15383 sys_lib_search_path_spec=
15384 lt_save_ifs=$IFS
15385 IFS=';'
15386 for lt_path in $LIB
15387 do
15388 IFS=$lt_save_ifs
15389 # Let DOS variable expansion print the short 8.3 style file name.
15390 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15391 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15392 done
15393 IFS=$lt_save_ifs
15394 # Convert to MSYS style.
15395 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15396 ;;
15397 cygwin*)
15398 # Convert to unix form, then to dos form, then back to unix form
15399 # but this time dos style (no spaces!) so that the unix form looks
15400 # like /cygdrive/c/PROGRA~1:/cygdr...
15401 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15402 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15403 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15404 ;;
15405 *)
15406 sys_lib_search_path_spec="$LIB"
15407 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15408 # It is most probably a Windows format PATH.
15409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15410 else
15411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15412 fi
15413 # FIXME: find the short name or the path components, as spaces are
15414 # common. (e.g. "Program Files" -> "PROGRA~1")
15415 ;;
15416 esac
15417
15418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15419 postinstall_cmds='base_file=`basename \${file}`~
15420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15421 dldir=$destdir/`dirname \$dlpath`~
15422 test -d \$dldir || mkdir -p \$dldir~
15423 $install_prog $dir/$dlname \$dldir/$dlname'
15424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15425 dlpath=$dir/\$dldll~
15426 $RM \$dlpath'
15427 shlibpath_overrides_runpath=yes
15428 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015429 ;;
15430
15431 *)
cristyda16f162011-02-19 23:52:17 +000015432 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015433 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015434 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015435 ;;
15436 esac
cristy73bd4a52010-10-05 11:24:23 +000015437 # FIXME: first we should search . and the directory the executable is in
15438 shlibpath_var=PATH
15439 ;;
15440
15441darwin* | rhapsody*)
15442 dynamic_linker="$host_os dyld"
15443 version_type=darwin
15444 need_lib_prefix=no
15445 need_version=no
15446 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15447 soname_spec='${libname}${release}${major}$shared_ext'
15448 shlibpath_overrides_runpath=yes
15449 shlibpath_var=DYLD_LIBRARY_PATH
15450 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15451
15452 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15453 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15454 ;;
15455
15456dgux*)
15457 version_type=linux
15458 need_lib_prefix=no
15459 need_version=no
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 shlibpath_var=LD_LIBRARY_PATH
15463 ;;
15464
15465freebsd1*)
15466 dynamic_linker=no
15467 ;;
15468
15469freebsd* | dragonfly*)
15470 # DragonFly does not have aout. When/if they implement a new
15471 # versioning mechanism, adjust this.
15472 if test -x /usr/bin/objformat; then
15473 objformat=`/usr/bin/objformat`
15474 else
15475 case $host_os in
15476 freebsd[123]*) objformat=aout ;;
15477 *) objformat=elf ;;
15478 esac
15479 fi
15480 version_type=freebsd-$objformat
15481 case $version_type in
15482 freebsd-elf*)
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15484 need_version=no
15485 need_lib_prefix=no
15486 ;;
15487 freebsd-*)
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15489 need_version=yes
15490 ;;
15491 esac
15492 shlibpath_var=LD_LIBRARY_PATH
15493 case $host_os in
15494 freebsd2*)
15495 shlibpath_overrides_runpath=yes
15496 ;;
15497 freebsd3.[01]* | freebsdelf3.[01]*)
15498 shlibpath_overrides_runpath=yes
15499 hardcode_into_libs=yes
15500 ;;
15501 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15502 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15503 shlibpath_overrides_runpath=no
15504 hardcode_into_libs=yes
15505 ;;
15506 *) # from 4.6 on, and DragonFly
15507 shlibpath_overrides_runpath=yes
15508 hardcode_into_libs=yes
15509 ;;
15510 esac
15511 ;;
15512
15513gnu*)
15514 version_type=linux
15515 need_lib_prefix=no
15516 need_version=no
15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15518 soname_spec='${libname}${release}${shared_ext}$major'
15519 shlibpath_var=LD_LIBRARY_PATH
15520 hardcode_into_libs=yes
15521 ;;
15522
cristy0c60a692010-11-04 01:09:47 +000015523haiku*)
15524 version_type=linux
15525 need_lib_prefix=no
15526 need_version=no
15527 dynamic_linker="$host_os runtime_loader"
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15530 shlibpath_var=LIBRARY_PATH
15531 shlibpath_overrides_runpath=yes
15532 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15533 hardcode_into_libs=yes
15534 ;;
15535
cristy73bd4a52010-10-05 11:24:23 +000015536hpux9* | hpux10* | hpux11*)
15537 # Give a soname corresponding to the major version so that dld.sl refuses to
15538 # link against other versions.
15539 version_type=sunos
15540 need_lib_prefix=no
15541 need_version=no
15542 case $host_cpu in
15543 ia64*)
15544 shrext_cmds='.so'
15545 hardcode_into_libs=yes
15546 dynamic_linker="$host_os dld.so"
15547 shlibpath_var=LD_LIBRARY_PATH
15548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550 soname_spec='${libname}${release}${shared_ext}$major'
15551 if test "X$HPUX_IA64_MODE" = X32; then
15552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15553 else
15554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15555 fi
15556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15557 ;;
15558 hppa*64*)
15559 shrext_cmds='.sl'
15560 hardcode_into_libs=yes
15561 dynamic_linker="$host_os dld.sl"
15562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15568 ;;
15569 *)
15570 shrext_cmds='.sl'
15571 dynamic_linker="$host_os dld.sl"
15572 shlibpath_var=SHLIB_PATH
15573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575 soname_spec='${libname}${release}${shared_ext}$major'
15576 ;;
15577 esac
cristy0c60a692010-11-04 01:09:47 +000015578 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015579 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015580 # or fails outright, so override atomically:
15581 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015582 ;;
15583
15584interix[3-9]*)
15585 version_type=linux
15586 need_lib_prefix=no
15587 need_version=no
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15590 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 shlibpath_overrides_runpath=no
15593 hardcode_into_libs=yes
15594 ;;
15595
15596irix5* | irix6* | nonstopux*)
15597 case $host_os in
15598 nonstopux*) version_type=nonstopux ;;
15599 *)
15600 if test "$lt_cv_prog_gnu_ld" = yes; then
15601 version_type=linux
15602 else
15603 version_type=irix
15604 fi ;;
15605 esac
15606 need_lib_prefix=no
15607 need_version=no
15608 soname_spec='${libname}${release}${shared_ext}$major'
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15610 case $host_os in
15611 irix5* | nonstopux*)
15612 libsuff= shlibsuff=
15613 ;;
15614 *)
15615 case $LD in # libtool.m4 will add one of these switches to LD
15616 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15617 libsuff= shlibsuff= libmagic=32-bit;;
15618 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15619 libsuff=32 shlibsuff=N32 libmagic=N32;;
15620 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15621 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15622 *) libsuff= shlibsuff= libmagic=never-match;;
15623 esac
15624 ;;
15625 esac
15626 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15627 shlibpath_overrides_runpath=no
15628 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15629 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15630 hardcode_into_libs=yes
15631 ;;
15632
15633# No shared lib support for Linux oldld, aout, or coff.
15634linux*oldld* | linux*aout* | linux*coff*)
15635 dynamic_linker=no
15636 ;;
15637
15638# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015639linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015640 version_type=linux
15641 need_lib_prefix=no
15642 need_version=no
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015648
cristy73bd4a52010-10-05 11:24:23 +000015649 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015650 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015651 $as_echo_n "(cached) " >&6
15652else
15653 lt_cv_shlibpath_overrides_runpath=no
15654 save_LDFLAGS=$LDFLAGS
15655 save_libdir=$libdir
15656 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15657 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015659/* end confdefs.h. */
15660
15661int
15662main ()
15663{
15664
15665 ;
15666 return 0;
15667}
15668_ACEOF
15669if ac_fn_c_try_link "$LINENO"; then :
15670 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015671 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015672fi
15673fi
15674rm -f core conftest.err conftest.$ac_objext \
15675 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015676 LDFLAGS=$save_LDFLAGS
15677 libdir=$save_libdir
15678
15679fi
15680
15681 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015682
15683 # This implies no fast_install, which is unacceptable.
15684 # Some rework will be needed to allow for fast_install
15685 # before this can be enabled.
15686 hardcode_into_libs=yes
15687
15688 # Add ABI-specific directories to the system library path.
15689 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15690
15691 # Append ld.so.conf contents to the search path
15692 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015693 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 +000015694 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015695
cristy73bd4a52010-10-05 11:24:23 +000015696 fi
15697
15698 # We used to test for /lib/ld.so.1 and disable shared libraries on
15699 # powerpc, because MkLinux only supported shared libraries with the
15700 # GNU dynamic linker. Since this was broken with cross compilers,
15701 # most powerpc-linux boxes support dynamic linking these days and
15702 # people can always --disable-shared, the test was removed, and we
15703 # assume the GNU/Linux dynamic linker is in use.
15704 dynamic_linker='GNU/Linux ld.so'
15705 ;;
15706
15707netbsd*)
15708 version_type=sunos
15709 need_lib_prefix=no
15710 need_version=no
15711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15714 dynamic_linker='NetBSD (a.out) ld.so'
15715 else
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 dynamic_linker='NetBSD ld.elf_so'
15719 fi
15720 shlibpath_var=LD_LIBRARY_PATH
15721 shlibpath_overrides_runpath=yes
15722 hardcode_into_libs=yes
15723 ;;
15724
15725newsos6)
15726 version_type=linux
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 shlibpath_overrides_runpath=yes
15730 ;;
15731
15732*nto* | *qnx*)
15733 version_type=qnx
15734 need_lib_prefix=no
15735 need_version=no
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15737 soname_spec='${libname}${release}${shared_ext}$major'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 shlibpath_overrides_runpath=no
15740 hardcode_into_libs=yes
15741 dynamic_linker='ldqnx.so'
15742 ;;
15743
15744openbsd*)
15745 version_type=sunos
15746 sys_lib_dlsearch_path_spec="/usr/lib"
15747 need_lib_prefix=no
15748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15749 case $host_os in
15750 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15751 *) need_version=no ;;
15752 esac
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15757 case $host_os in
15758 openbsd2.[89] | openbsd2.[89].*)
15759 shlibpath_overrides_runpath=no
15760 ;;
15761 *)
15762 shlibpath_overrides_runpath=yes
15763 ;;
15764 esac
15765 else
15766 shlibpath_overrides_runpath=yes
15767 fi
15768 ;;
15769
15770os2*)
15771 libname_spec='$name'
15772 shrext_cmds=".dll"
15773 need_lib_prefix=no
15774 library_names_spec='$libname${shared_ext} $libname.a'
15775 dynamic_linker='OS/2 ld.exe'
15776 shlibpath_var=LIBPATH
15777 ;;
15778
15779osf3* | osf4* | osf5*)
15780 version_type=osf
15781 need_lib_prefix=no
15782 need_version=no
15783 soname_spec='${libname}${release}${shared_ext}$major'
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 shlibpath_var=LD_LIBRARY_PATH
15786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15788 ;;
15789
15790rdos*)
15791 dynamic_linker=no
15792 ;;
15793
15794solaris*)
15795 version_type=linux
15796 need_lib_prefix=no
15797 need_version=no
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 shlibpath_overrides_runpath=yes
15802 hardcode_into_libs=yes
15803 # ldd complains unless libraries are executable
15804 postinstall_cmds='chmod +x $lib'
15805 ;;
15806
15807sunos4*)
15808 version_type=sunos
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15810 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15811 shlibpath_var=LD_LIBRARY_PATH
15812 shlibpath_overrides_runpath=yes
15813 if test "$with_gnu_ld" = yes; then
15814 need_lib_prefix=no
15815 fi
15816 need_version=yes
15817 ;;
15818
15819sysv4 | sysv4.3*)
15820 version_type=linux
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 shlibpath_var=LD_LIBRARY_PATH
15824 case $host_vendor in
15825 sni)
15826 shlibpath_overrides_runpath=no
15827 need_lib_prefix=no
15828 runpath_var=LD_RUN_PATH
15829 ;;
15830 siemens)
15831 need_lib_prefix=no
15832 ;;
15833 motorola)
15834 need_lib_prefix=no
15835 need_version=no
15836 shlibpath_overrides_runpath=no
15837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15838 ;;
15839 esac
15840 ;;
15841
15842sysv4*MP*)
15843 if test -d /usr/nec ;then
15844 version_type=linux
15845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15846 soname_spec='$libname${shared_ext}.$major'
15847 shlibpath_var=LD_LIBRARY_PATH
15848 fi
15849 ;;
15850
15851sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15852 version_type=freebsd-elf
15853 need_lib_prefix=no
15854 need_version=no
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15856 soname_spec='${libname}${release}${shared_ext}$major'
15857 shlibpath_var=LD_LIBRARY_PATH
15858 shlibpath_overrides_runpath=yes
15859 hardcode_into_libs=yes
15860 if test "$with_gnu_ld" = yes; then
15861 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15862 else
15863 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15864 case $host_os in
15865 sco3.2v5*)
15866 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15867 ;;
15868 esac
15869 fi
15870 sys_lib_dlsearch_path_spec='/usr/lib'
15871 ;;
15872
15873tpf*)
15874 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15875 version_type=linux
15876 need_lib_prefix=no
15877 need_version=no
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879 shlibpath_var=LD_LIBRARY_PATH
15880 shlibpath_overrides_runpath=no
15881 hardcode_into_libs=yes
15882 ;;
15883
15884uts4*)
15885 version_type=linux
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15887 soname_spec='${libname}${release}${shared_ext}$major'
15888 shlibpath_var=LD_LIBRARY_PATH
15889 ;;
15890
15891*)
15892 dynamic_linker=no
15893 ;;
15894esac
15895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15896$as_echo "$dynamic_linker" >&6; }
15897test "$dynamic_linker" = no && can_build_shared=no
15898
15899variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15900if test "$GCC" = yes; then
15901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15902fi
15903
15904if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15905 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15906fi
15907if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15908 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15909fi
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
cristy0c60a692010-11-04 01:09:47 +000015997
15998
15999
16000
16001
cristy73bd4a52010-10-05 11:24:23 +000016002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16003$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16004hardcode_action=
16005if test -n "$hardcode_libdir_flag_spec" ||
16006 test -n "$runpath_var" ||
16007 test "X$hardcode_automatic" = "Xyes" ; then
16008
16009 # We can hardcode non-existent directories.
16010 if test "$hardcode_direct" != no &&
16011 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16012 # have to relink, otherwise we might link with an installed library
16013 # when we should be linking with a yet-to-be-installed one
16014 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16015 test "$hardcode_minus_L" != no; then
16016 # Linking always hardcodes the temporary library directory.
16017 hardcode_action=relink
16018 else
16019 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16020 hardcode_action=immediate
16021 fi
16022else
16023 # We cannot hardcode anything, or else we can only hardcode existing
16024 # directories.
16025 hardcode_action=unsupported
16026fi
16027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16028$as_echo "$hardcode_action" >&6; }
16029
16030if test "$hardcode_action" = relink ||
16031 test "$inherit_rpath" = yes; then
16032 # Fast installation is not supported
16033 enable_fast_install=no
16034elif test "$shlibpath_overrides_runpath" = yes ||
16035 test "$enable_shared" = no; then
16036 # Fast installation is not necessary
16037 enable_fast_install=needless
16038fi
16039
16040
16041
16042
16043
16044
16045 if test "x$enable_dlopen" != xyes; then
16046 enable_dlopen=unknown
16047 enable_dlopen_self=unknown
16048 enable_dlopen_self_static=unknown
16049else
16050 lt_cv_dlopen=no
16051 lt_cv_dlopen_libs=
16052
16053 case $host_os in
16054 beos*)
16055 lt_cv_dlopen="load_add_on"
16056 lt_cv_dlopen_libs=
16057 lt_cv_dlopen_self=yes
16058 ;;
16059
16060 mingw* | pw32* | cegcc*)
16061 lt_cv_dlopen="LoadLibrary"
16062 lt_cv_dlopen_libs=
16063 ;;
16064
16065 cygwin*)
16066 lt_cv_dlopen="dlopen"
16067 lt_cv_dlopen_libs=
16068 ;;
16069
16070 darwin*)
16071 # if libdl is installed we need to link against it
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16073$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016074if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016075 $as_echo_n "(cached) " >&6
16076else
16077 ac_check_lib_save_LIBS=$LIBS
16078LIBS="-ldl $LIBS"
16079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16080/* end confdefs.h. */
16081
16082/* Override any GCC internal prototype to avoid an error.
16083 Use char because int might match the return type of a GCC
16084 builtin and then its argument prototype would still apply. */
16085#ifdef __cplusplus
16086extern "C"
16087#endif
16088char dlopen ();
16089int
16090main ()
16091{
16092return dlopen ();
16093 ;
16094 return 0;
16095}
16096_ACEOF
16097if ac_fn_c_try_link "$LINENO"; then :
16098 ac_cv_lib_dl_dlopen=yes
16099else
16100 ac_cv_lib_dl_dlopen=no
16101fi
16102rm -f core conftest.err conftest.$ac_objext \
16103 conftest$ac_exeext conftest.$ac_ext
16104LIBS=$ac_check_lib_save_LIBS
16105fi
16106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16107$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016108if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16110else
16111
16112 lt_cv_dlopen="dyld"
16113 lt_cv_dlopen_libs=
16114 lt_cv_dlopen_self=yes
16115
16116fi
16117
16118 ;;
16119
16120 *)
16121 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016122if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016123 lt_cv_dlopen="shl_load"
16124else
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16126$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016127if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016128 $as_echo_n "(cached) " >&6
16129else
16130 ac_check_lib_save_LIBS=$LIBS
16131LIBS="-ldld $LIBS"
16132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133/* end confdefs.h. */
16134
16135/* Override any GCC internal prototype to avoid an error.
16136 Use char because int might match the return type of a GCC
16137 builtin and then its argument prototype would still apply. */
16138#ifdef __cplusplus
16139extern "C"
16140#endif
16141char shl_load ();
16142int
16143main ()
16144{
16145return shl_load ();
16146 ;
16147 return 0;
16148}
16149_ACEOF
16150if ac_fn_c_try_link "$LINENO"; then :
16151 ac_cv_lib_dld_shl_load=yes
16152else
16153 ac_cv_lib_dld_shl_load=no
16154fi
16155rm -f core conftest.err conftest.$ac_objext \
16156 conftest$ac_exeext conftest.$ac_ext
16157LIBS=$ac_check_lib_save_LIBS
16158fi
16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16160$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016161if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016162 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16163else
16164 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016165if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016166 lt_cv_dlopen="dlopen"
16167else
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16169$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016170if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016171 $as_echo_n "(cached) " >&6
16172else
16173 ac_check_lib_save_LIBS=$LIBS
16174LIBS="-ldl $LIBS"
16175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h. */
16177
16178/* Override any GCC internal prototype to avoid an error.
16179 Use char because int might match the return type of a GCC
16180 builtin and then its argument prototype would still apply. */
16181#ifdef __cplusplus
16182extern "C"
16183#endif
16184char dlopen ();
16185int
16186main ()
16187{
16188return dlopen ();
16189 ;
16190 return 0;
16191}
16192_ACEOF
16193if ac_fn_c_try_link "$LINENO"; then :
16194 ac_cv_lib_dl_dlopen=yes
16195else
16196 ac_cv_lib_dl_dlopen=no
16197fi
16198rm -f core conftest.err conftest.$ac_objext \
16199 conftest$ac_exeext conftest.$ac_ext
16200LIBS=$ac_check_lib_save_LIBS
16201fi
16202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16203$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016204if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16206else
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16208$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016209if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016210 $as_echo_n "(cached) " >&6
16211else
16212 ac_check_lib_save_LIBS=$LIBS
16213LIBS="-lsvld $LIBS"
16214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215/* end confdefs.h. */
16216
16217/* Override any GCC internal prototype to avoid an error.
16218 Use char because int might match the return type of a GCC
16219 builtin and then its argument prototype would still apply. */
16220#ifdef __cplusplus
16221extern "C"
16222#endif
16223char dlopen ();
16224int
16225main ()
16226{
16227return dlopen ();
16228 ;
16229 return 0;
16230}
16231_ACEOF
16232if ac_fn_c_try_link "$LINENO"; then :
16233 ac_cv_lib_svld_dlopen=yes
16234else
16235 ac_cv_lib_svld_dlopen=no
16236fi
16237rm -f core conftest.err conftest.$ac_objext \
16238 conftest$ac_exeext conftest.$ac_ext
16239LIBS=$ac_check_lib_save_LIBS
16240fi
16241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16242$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016243if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16245else
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16247$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016248if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016249 $as_echo_n "(cached) " >&6
16250else
16251 ac_check_lib_save_LIBS=$LIBS
16252LIBS="-ldld $LIBS"
16253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254/* end confdefs.h. */
16255
16256/* Override any GCC internal prototype to avoid an error.
16257 Use char because int might match the return type of a GCC
16258 builtin and then its argument prototype would still apply. */
16259#ifdef __cplusplus
16260extern "C"
16261#endif
16262char dld_link ();
16263int
16264main ()
16265{
16266return dld_link ();
16267 ;
16268 return 0;
16269}
16270_ACEOF
16271if ac_fn_c_try_link "$LINENO"; then :
16272 ac_cv_lib_dld_dld_link=yes
16273else
16274 ac_cv_lib_dld_dld_link=no
16275fi
16276rm -f core conftest.err conftest.$ac_objext \
16277 conftest$ac_exeext conftest.$ac_ext
16278LIBS=$ac_check_lib_save_LIBS
16279fi
16280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16281$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016282if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016283 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16284fi
16285
16286
16287fi
16288
16289
16290fi
16291
16292
16293fi
16294
16295
16296fi
16297
16298
16299fi
16300
16301 ;;
16302 esac
16303
16304 if test "x$lt_cv_dlopen" != xno; then
16305 enable_dlopen=yes
16306 else
16307 enable_dlopen=no
16308 fi
16309
16310 case $lt_cv_dlopen in
16311 dlopen)
16312 save_CPPFLAGS="$CPPFLAGS"
16313 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16314
16315 save_LDFLAGS="$LDFLAGS"
16316 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16317
16318 save_LIBS="$LIBS"
16319 LIBS="$lt_cv_dlopen_libs $LIBS"
16320
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16322$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016323if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016324 $as_echo_n "(cached) " >&6
16325else
16326 if test "$cross_compiling" = yes; then :
16327 lt_cv_dlopen_self=cross
16328else
16329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16330 lt_status=$lt_dlunknown
16331 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016332#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016333#include "confdefs.h"
16334
16335#if HAVE_DLFCN_H
16336#include <dlfcn.h>
16337#endif
16338
16339#include <stdio.h>
16340
16341#ifdef RTLD_GLOBAL
16342# define LT_DLGLOBAL RTLD_GLOBAL
16343#else
16344# ifdef DL_GLOBAL
16345# define LT_DLGLOBAL DL_GLOBAL
16346# else
16347# define LT_DLGLOBAL 0
16348# endif
16349#endif
16350
16351/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16352 find out it does not work in some platform. */
16353#ifndef LT_DLLAZY_OR_NOW
16354# ifdef RTLD_LAZY
16355# define LT_DLLAZY_OR_NOW RTLD_LAZY
16356# else
16357# ifdef DL_LAZY
16358# define LT_DLLAZY_OR_NOW DL_LAZY
16359# else
16360# ifdef RTLD_NOW
16361# define LT_DLLAZY_OR_NOW RTLD_NOW
16362# else
16363# ifdef DL_NOW
16364# define LT_DLLAZY_OR_NOW DL_NOW
16365# else
16366# define LT_DLLAZY_OR_NOW 0
16367# endif
16368# endif
16369# endif
16370# endif
16371#endif
16372
cristy0c60a692010-11-04 01:09:47 +000016373/* When -fvisbility=hidden is used, assume the code has been annotated
16374 correspondingly for the symbols needed. */
16375#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016376int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016377#endif
16378
cristyda16f162011-02-19 23:52:17 +000016379int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016380int main ()
16381{
16382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16383 int status = $lt_dlunknown;
16384
16385 if (self)
16386 {
16387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016388 else
16389 {
16390 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16391 else puts (dlerror ());
16392 }
cristy73bd4a52010-10-05 11:24:23 +000016393 /* dlclose (self); */
16394 }
16395 else
16396 puts (dlerror ());
16397
16398 return status;
16399}
16400_LT_EOF
16401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16402 (eval $ac_link) 2>&5
16403 ac_status=$?
16404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16405 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16406 (./conftest; exit; ) >&5 2>/dev/null
16407 lt_status=$?
16408 case x$lt_status in
16409 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16410 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16411 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16412 esac
16413 else :
16414 # compilation failed
16415 lt_cv_dlopen_self=no
16416 fi
16417fi
16418rm -fr conftest*
16419
16420
16421fi
16422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16423$as_echo "$lt_cv_dlopen_self" >&6; }
16424
16425 if test "x$lt_cv_dlopen_self" = xyes; then
16426 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16428$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016429if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016430 $as_echo_n "(cached) " >&6
16431else
16432 if test "$cross_compiling" = yes; then :
16433 lt_cv_dlopen_self_static=cross
16434else
16435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16436 lt_status=$lt_dlunknown
16437 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016438#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016439#include "confdefs.h"
16440
16441#if HAVE_DLFCN_H
16442#include <dlfcn.h>
16443#endif
16444
16445#include <stdio.h>
16446
16447#ifdef RTLD_GLOBAL
16448# define LT_DLGLOBAL RTLD_GLOBAL
16449#else
16450# ifdef DL_GLOBAL
16451# define LT_DLGLOBAL DL_GLOBAL
16452# else
16453# define LT_DLGLOBAL 0
16454# endif
16455#endif
16456
16457/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16458 find out it does not work in some platform. */
16459#ifndef LT_DLLAZY_OR_NOW
16460# ifdef RTLD_LAZY
16461# define LT_DLLAZY_OR_NOW RTLD_LAZY
16462# else
16463# ifdef DL_LAZY
16464# define LT_DLLAZY_OR_NOW DL_LAZY
16465# else
16466# ifdef RTLD_NOW
16467# define LT_DLLAZY_OR_NOW RTLD_NOW
16468# else
16469# ifdef DL_NOW
16470# define LT_DLLAZY_OR_NOW DL_NOW
16471# else
16472# define LT_DLLAZY_OR_NOW 0
16473# endif
16474# endif
16475# endif
16476# endif
16477#endif
16478
cristy0c60a692010-11-04 01:09:47 +000016479/* When -fvisbility=hidden is used, assume the code has been annotated
16480 correspondingly for the symbols needed. */
16481#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016482int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016483#endif
16484
cristyda16f162011-02-19 23:52:17 +000016485int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016486int main ()
16487{
16488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16489 int status = $lt_dlunknown;
16490
16491 if (self)
16492 {
16493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016494 else
16495 {
16496 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16497 else puts (dlerror ());
16498 }
cristy73bd4a52010-10-05 11:24:23 +000016499 /* dlclose (self); */
16500 }
16501 else
16502 puts (dlerror ());
16503
16504 return status;
16505}
16506_LT_EOF
16507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16508 (eval $ac_link) 2>&5
16509 ac_status=$?
16510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16511 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16512 (./conftest; exit; ) >&5 2>/dev/null
16513 lt_status=$?
16514 case x$lt_status in
16515 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16516 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16517 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16518 esac
16519 else :
16520 # compilation failed
16521 lt_cv_dlopen_self_static=no
16522 fi
16523fi
16524rm -fr conftest*
16525
16526
16527fi
16528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16529$as_echo "$lt_cv_dlopen_self_static" >&6; }
16530 fi
16531
16532 CPPFLAGS="$save_CPPFLAGS"
16533 LDFLAGS="$save_LDFLAGS"
16534 LIBS="$save_LIBS"
16535 ;;
16536 esac
16537
16538 case $lt_cv_dlopen_self in
16539 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16540 *) enable_dlopen_self=unknown ;;
16541 esac
16542
16543 case $lt_cv_dlopen_self_static in
16544 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16545 *) enable_dlopen_self_static=unknown ;;
16546 esac
16547fi
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565striplib=
16566old_striplib=
16567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16568$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16569if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16570 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16571 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16573$as_echo "yes" >&6; }
16574else
16575# FIXME - insert some real tests, host_os isn't really good enough
16576 case $host_os in
16577 darwin*)
16578 if test -n "$STRIP" ; then
16579 striplib="$STRIP -x"
16580 old_striplib="$STRIP -S"
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16582$as_echo "yes" >&6; }
16583 else
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16585$as_echo "no" >&6; }
16586 fi
16587 ;;
16588 *)
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16590$as_echo "no" >&6; }
16591 ;;
16592 esac
16593fi
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606 # Report which library types will actually be built
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16608$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16610$as_echo "$can_build_shared" >&6; }
16611
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16613$as_echo_n "checking whether to build shared libraries... " >&6; }
16614 test "$can_build_shared" = "no" && enable_shared=no
16615
16616 # On AIX, shared libraries and static libraries use the same namespace, and
16617 # are all built from PIC.
16618 case $host_os in
16619 aix3*)
16620 test "$enable_shared" = yes && enable_static=no
16621 if test -n "$RANLIB"; then
16622 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16623 postinstall_cmds='$RANLIB $lib'
16624 fi
16625 ;;
16626
16627 aix[4-9]*)
16628 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16629 test "$enable_shared" = yes && enable_static=no
16630 fi
16631 ;;
16632 esac
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16634$as_echo "$enable_shared" >&6; }
16635
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16637$as_echo_n "checking whether to build static libraries... " >&6; }
16638 # Make sure either enable_shared or enable_static is yes.
16639 test "$enable_shared" = yes || enable_static=yes
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16641$as_echo "$enable_static" >&6; }
16642
16643
16644
16645
16646fi
16647ac_ext=c
16648ac_cpp='$CPP $CPPFLAGS'
16649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16651ac_compiler_gnu=$ac_cv_c_compiler_gnu
16652
16653CC="$lt_save_CC"
16654
cristy0c60a692010-11-04 01:09:47 +000016655 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16656 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16657 (test "X$CXX" != "Xg++"))) ; then
16658 ac_ext=cpp
16659ac_cpp='$CXXCPP $CPPFLAGS'
16660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16664$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16665if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016666 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016667 $as_echo_n "(cached) " >&6
16668else
16669 # Double quotes because CXXCPP needs to be expanded
16670 for CXXCPP in "$CXX -E" "/lib/cpp"
16671 do
16672 ac_preproc_ok=false
16673for ac_cxx_preproc_warn_flag in '' yes
16674do
16675 # Use a header file that comes with gcc, so configuring glibc
16676 # with a fresh cross-compiler works.
16677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16678 # <limits.h> exists even on freestanding compilers.
16679 # On the NeXT, cc -E runs the code through the compiler's parser,
16680 # not just through cpp. "Syntax error" is here to catch this case.
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682/* end confdefs.h. */
16683#ifdef __STDC__
16684# include <limits.h>
16685#else
16686# include <assert.h>
16687#endif
16688 Syntax error
16689_ACEOF
16690if ac_fn_cxx_try_cpp "$LINENO"; then :
16691
16692else
16693 # Broken: fails on valid input.
16694continue
16695fi
cristyda16f162011-02-19 23:52:17 +000016696rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016697
16698 # OK, works on sane cases. Now check whether nonexistent headers
16699 # can be detected and how.
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701/* end confdefs.h. */
16702#include <ac_nonexistent.h>
16703_ACEOF
16704if ac_fn_cxx_try_cpp "$LINENO"; then :
16705 # Broken: success on invalid input.
16706continue
16707else
16708 # Passes both tests.
16709ac_preproc_ok=:
16710break
16711fi
cristyda16f162011-02-19 23:52:17 +000016712rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016713
16714done
16715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016716rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016717if $ac_preproc_ok; then :
16718 break
16719fi
16720
16721 done
16722 ac_cv_prog_CXXCPP=$CXXCPP
16723
16724fi
16725 CXXCPP=$ac_cv_prog_CXXCPP
16726else
16727 ac_cv_prog_CXXCPP=$CXXCPP
16728fi
16729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16730$as_echo "$CXXCPP" >&6; }
16731ac_preproc_ok=false
16732for ac_cxx_preproc_warn_flag in '' yes
16733do
16734 # Use a header file that comes with gcc, so configuring glibc
16735 # with a fresh cross-compiler works.
16736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16737 # <limits.h> exists even on freestanding compilers.
16738 # On the NeXT, cc -E runs the code through the compiler's parser,
16739 # not just through cpp. "Syntax error" is here to catch this case.
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741/* end confdefs.h. */
16742#ifdef __STDC__
16743# include <limits.h>
16744#else
16745# include <assert.h>
16746#endif
16747 Syntax error
16748_ACEOF
16749if ac_fn_cxx_try_cpp "$LINENO"; then :
16750
16751else
16752 # Broken: fails on valid input.
16753continue
16754fi
cristyda16f162011-02-19 23:52:17 +000016755rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016756
16757 # OK, works on sane cases. Now check whether nonexistent headers
16758 # can be detected and how.
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760/* end confdefs.h. */
16761#include <ac_nonexistent.h>
16762_ACEOF
16763if ac_fn_cxx_try_cpp "$LINENO"; then :
16764 # Broken: success on invalid input.
16765continue
16766else
16767 # Passes both tests.
16768ac_preproc_ok=:
16769break
16770fi
cristyda16f162011-02-19 23:52:17 +000016771rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016772
16773done
16774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016775rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016776if $ac_preproc_ok; then :
16777
16778else
16779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16781as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16782See \`config.log' for more details" "$LINENO" 5; }
16783fi
16784
16785ac_ext=c
16786ac_cpp='$CPP $CPPFLAGS'
16787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16789ac_compiler_gnu=$ac_cv_c_compiler_gnu
16790
16791else
16792 _lt_caught_CXX_error=yes
16793fi
cristy73bd4a52010-10-05 11:24:23 +000016794
16795ac_ext=cpp
16796ac_cpp='$CXXCPP $CPPFLAGS'
16797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16800
16801archive_cmds_need_lc_CXX=no
16802allow_undefined_flag_CXX=
16803always_export_symbols_CXX=no
16804archive_expsym_cmds_CXX=
16805compiler_needs_object_CXX=no
16806export_dynamic_flag_spec_CXX=
16807hardcode_direct_CXX=no
16808hardcode_direct_absolute_CXX=no
16809hardcode_libdir_flag_spec_CXX=
16810hardcode_libdir_flag_spec_ld_CXX=
16811hardcode_libdir_separator_CXX=
16812hardcode_minus_L_CXX=no
16813hardcode_shlibpath_var_CXX=unsupported
16814hardcode_automatic_CXX=no
16815inherit_rpath_CXX=no
16816module_cmds_CXX=
16817module_expsym_cmds_CXX=
16818link_all_deplibs_CXX=unknown
16819old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016820reload_flag_CXX=$reload_flag
16821reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016822no_undefined_flag_CXX=
16823whole_archive_flag_spec_CXX=
16824enable_shared_with_static_runtimes_CXX=no
16825
16826# Source file extension for C++ test sources.
16827ac_ext=cpp
16828
16829# Object file extension for compiled C++ test sources.
16830objext=o
16831objext_CXX=$objext
16832
16833# No sense in running all these tests if we already determined that
16834# the CXX compiler isn't working. Some variables (like enable_shared)
16835# are currently assumed to apply to all compilers on this platform,
16836# and will be corrupted by setting them based on a non-working compiler.
16837if test "$_lt_caught_CXX_error" != yes; then
16838 # Code to be used in simple compile tests
16839 lt_simple_compile_test_code="int some_variable = 0;"
16840
16841 # Code to be used in simple link tests
16842 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16843
16844 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16845
16846
16847
16848
16849
16850
16851# If no C compiler was specified, use CC.
16852LTCC=${LTCC-"$CC"}
16853
16854# If no C compiler flags were specified, use CFLAGS.
16855LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16856
16857# Allow CC to be a program name with arguments.
16858compiler=$CC
16859
16860
16861 # save warnings/boilerplate of simple test code
16862 ac_outfile=conftest.$ac_objext
16863echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16864eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16865_lt_compiler_boilerplate=`cat conftest.err`
16866$RM conftest*
16867
16868 ac_outfile=conftest.$ac_objext
16869echo "$lt_simple_link_test_code" >conftest.$ac_ext
16870eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16871_lt_linker_boilerplate=`cat conftest.err`
16872$RM -r conftest*
16873
16874
16875 # Allow CC to be a program name with arguments.
16876 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016877 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016878 lt_save_LD=$LD
16879 lt_save_GCC=$GCC
16880 GCC=$GXX
16881 lt_save_with_gnu_ld=$with_gnu_ld
16882 lt_save_path_LD=$lt_cv_path_LD
16883 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16884 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16885 else
16886 $as_unset lt_cv_prog_gnu_ld
16887 fi
16888 if test -n "${lt_cv_path_LDCXX+set}"; then
16889 lt_cv_path_LD=$lt_cv_path_LDCXX
16890 else
16891 $as_unset lt_cv_path_LD
16892 fi
16893 test -z "${LDCXX+set}" || LD=$LDCXX
16894 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016895 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016896 compiler=$CC
16897 compiler_CXX=$CC
16898 for cc_temp in $compiler""; do
16899 case $cc_temp in
16900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16902 \-*) ;;
16903 *) break;;
16904 esac
16905done
cristy0c60a692010-11-04 01:09:47 +000016906cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016907
16908
16909 if test -n "$compiler"; then
16910 # We don't want -fno-exception when compiling C++ code, so set the
16911 # no_builtin_flag separately
16912 if test "$GXX" = yes; then
16913 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16914 else
16915 lt_prog_compiler_no_builtin_flag_CXX=
16916 fi
16917
16918 if test "$GXX" = yes; then
16919 # Set up default GNU C++ configuration
16920
16921
16922
16923# Check whether --with-gnu-ld was given.
16924if test "${with_gnu_ld+set}" = set; then :
16925 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16926else
16927 with_gnu_ld=no
16928fi
16929
16930ac_prog=ld
16931if test "$GCC" = yes; then
16932 # Check if gcc -print-prog-name=ld gives a path.
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16934$as_echo_n "checking for ld used by $CC... " >&6; }
16935 case $host in
16936 *-*-mingw*)
16937 # gcc leaves a trailing carriage return which upsets mingw
16938 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16939 *)
16940 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16941 esac
16942 case $ac_prog in
16943 # Accept absolute paths.
16944 [\\/]* | ?:[\\/]*)
16945 re_direlt='/[^/][^/]*/\.\./'
16946 # Canonicalize the pathname of ld
16947 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16948 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16949 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16950 done
16951 test -z "$LD" && LD="$ac_prog"
16952 ;;
16953 "")
16954 # If it fails, then pretend we aren't using GCC.
16955 ac_prog=ld
16956 ;;
16957 *)
16958 # If it is relative, then search for the first ld in PATH.
16959 with_gnu_ld=unknown
16960 ;;
16961 esac
16962elif test "$with_gnu_ld" = yes; then
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16964$as_echo_n "checking for GNU ld... " >&6; }
16965else
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16967$as_echo_n "checking for non-GNU ld... " >&6; }
16968fi
cristyda16f162011-02-19 23:52:17 +000016969if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016970 $as_echo_n "(cached) " >&6
16971else
16972 if test -z "$LD"; then
16973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16974 for ac_dir in $PATH; do
16975 IFS="$lt_save_ifs"
16976 test -z "$ac_dir" && ac_dir=.
16977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16978 lt_cv_path_LD="$ac_dir/$ac_prog"
16979 # Check to see if the program is GNU ld. I'd rather use --version,
16980 # but apparently some variants of GNU ld only accept -v.
16981 # Break only if it was the GNU/non-GNU ld that we prefer.
16982 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16983 *GNU* | *'with BFD'*)
16984 test "$with_gnu_ld" != no && break
16985 ;;
16986 *)
16987 test "$with_gnu_ld" != yes && break
16988 ;;
16989 esac
16990 fi
16991 done
16992 IFS="$lt_save_ifs"
16993else
16994 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16995fi
16996fi
16997
16998LD="$lt_cv_path_LD"
16999if test -n "$LD"; then
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17001$as_echo "$LD" >&6; }
17002else
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17004$as_echo "no" >&6; }
17005fi
cristy98dddb52010-11-04 00:30:15 +000017006test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17008$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017009if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017010 $as_echo_n "(cached) " >&6
17011else
17012 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17013case `$LD -v 2>&1 </dev/null` in
17014*GNU* | *'with BFD'*)
17015 lt_cv_prog_gnu_ld=yes
17016 ;;
17017*)
17018 lt_cv_prog_gnu_ld=no
17019 ;;
17020esac
17021fi
17022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17023$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17024with_gnu_ld=$lt_cv_prog_gnu_ld
17025
17026
17027
17028
17029
17030
17031
17032 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17033 # archiving commands below assume that GNU ld is being used.
17034 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017035 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17036 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 +000017037
17038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17039 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17040
17041 # If archive_cmds runs LD, not CC, wlarc should be empty
17042 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17043 # investigate it a little bit more. (MM)
17044 wlarc='${wl}'
17045
17046 # ancient GNU ld didn't support --whole-archive et. al.
17047 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17048 $GREP 'no-whole-archive' > /dev/null; then
17049 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17050 else
17051 whole_archive_flag_spec_CXX=
17052 fi
17053 else
17054 with_gnu_ld=no
17055 wlarc=
17056
17057 # A generic and very simple default shared library creation
17058 # command for GNU C++ for the case where it uses the native
17059 # linker, instead of GNU ld. If possible, this setting should
17060 # overridden to take advantage of the native linker features on
17061 # the platform it is being used on.
17062 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17063 fi
17064
17065 # Commands to make compiler produce verbose output that lists
17066 # what "hidden" libraries, object files and flags are used when
17067 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017068 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017069
17070 else
17071 GXX=no
17072 with_gnu_ld=no
17073 wlarc=
17074 fi
17075
17076 # PORTME: fill in a description of your system's C++ link characteristics
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17078$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17079 ld_shlibs_CXX=yes
17080 case $host_os in
17081 aix3*)
17082 # FIXME: insert proper C++ library support
17083 ld_shlibs_CXX=no
17084 ;;
17085 aix[4-9]*)
17086 if test "$host_cpu" = ia64; then
17087 # On IA64, the linker does run time linking by default, so we don't
17088 # have to do anything special.
17089 aix_use_runtimelinking=no
17090 exp_sym_flag='-Bexport'
17091 no_entry_flag=""
17092 else
17093 aix_use_runtimelinking=no
17094
17095 # Test if we are trying to use run time linking or normal
17096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17097 # need to do runtime linking.
17098 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17099 for ld_flag in $LDFLAGS; do
17100 case $ld_flag in
17101 *-brtl*)
17102 aix_use_runtimelinking=yes
17103 break
17104 ;;
17105 esac
17106 done
17107 ;;
17108 esac
17109
17110 exp_sym_flag='-bexport'
17111 no_entry_flag='-bnoentry'
17112 fi
17113
17114 # When large executables or shared objects are built, AIX ld can
17115 # have problems creating the table of contents. If linking a library
17116 # or program results in "error TOC overflow" add -mminimal-toc to
17117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17119
17120 archive_cmds_CXX=''
17121 hardcode_direct_CXX=yes
17122 hardcode_direct_absolute_CXX=yes
17123 hardcode_libdir_separator_CXX=':'
17124 link_all_deplibs_CXX=yes
17125 file_list_spec_CXX='${wl}-f,'
17126
17127 if test "$GXX" = yes; then
17128 case $host_os in aix4.[012]|aix4.[012].*)
17129 # We only want to do this on AIX 4.2 and lower, the check
17130 # below for broken collect2 doesn't work under 4.3+
17131 collect2name=`${CC} -print-prog-name=collect2`
17132 if test -f "$collect2name" &&
17133 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17134 then
17135 # We have reworked collect2
17136 :
17137 else
17138 # We have old collect2
17139 hardcode_direct_CXX=unsupported
17140 # It fails to find uninstalled libraries when the uninstalled
17141 # path is not listed in the libpath. Setting hardcode_minus_L
17142 # to unsupported forces relinking
17143 hardcode_minus_L_CXX=yes
17144 hardcode_libdir_flag_spec_CXX='-L$libdir'
17145 hardcode_libdir_separator_CXX=
17146 fi
17147 esac
17148 shared_flag='-shared'
17149 if test "$aix_use_runtimelinking" = yes; then
17150 shared_flag="$shared_flag "'${wl}-G'
17151 fi
17152 else
17153 # not using gcc
17154 if test "$host_cpu" = ia64; then
17155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17156 # chokes on -Wl,-G. The following line is correct:
17157 shared_flag='-G'
17158 else
17159 if test "$aix_use_runtimelinking" = yes; then
17160 shared_flag='${wl}-G'
17161 else
17162 shared_flag='${wl}-bM:SRE'
17163 fi
17164 fi
17165 fi
17166
17167 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17168 # It seems that -bexpall does not export symbols beginning with
17169 # underscore (_), so it is better to generate a list of symbols to
17170 # export.
17171 always_export_symbols_CXX=yes
17172 if test "$aix_use_runtimelinking" = yes; then
17173 # Warning - without using the other runtime loading flags (-brtl),
17174 # -berok will link without error, but may produce a broken library.
17175 allow_undefined_flag_CXX='-berok'
17176 # Determine the default libpath from the value encoded in an empty
17177 # executable.
cristyda16f162011-02-19 23:52:17 +000017178 if test "${lt_cv_aix_libpath+set}" = set; then
17179 aix_libpath=$lt_cv_aix_libpath
17180else
17181 if ${lt_cv_aix_libpath__CXX+:} false; then :
17182 $as_echo_n "(cached) " >&6
17183else
17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017185/* end confdefs.h. */
17186
17187int
17188main ()
17189{
17190
17191 ;
17192 return 0;
17193}
17194_ACEOF
17195if ac_fn_cxx_try_link "$LINENO"; then :
17196
cristyda16f162011-02-19 23:52:17 +000017197 lt_aix_libpath_sed='
17198 /Import File Strings/,/^$/ {
17199 /^0/ {
17200 s/^0 *\([^ ]*\) *$/\1/
17201 p
17202 }
17203 }'
17204 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17205 # Check for a 64-bit object if we didn't find anything.
17206 if test -z "$lt_cv_aix_libpath__CXX"; then
17207 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17208 fi
cristy73bd4a52010-10-05 11:24:23 +000017209fi
17210rm -f core conftest.err conftest.$ac_objext \
17211 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017212 if test -z "$lt_cv_aix_libpath__CXX"; then
17213 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17214 fi
17215
17216fi
17217
17218 aix_libpath=$lt_cv_aix_libpath__CXX
17219fi
cristy73bd4a52010-10-05 11:24:23 +000017220
17221 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17222
cristy0c60a692010-11-04 01:09:47 +000017223 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 +000017224 else
17225 if test "$host_cpu" = ia64; then
17226 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17227 allow_undefined_flag_CXX="-z nodefs"
17228 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"
17229 else
17230 # Determine the default libpath from the value encoded in an
17231 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017232 if test "${lt_cv_aix_libpath+set}" = set; then
17233 aix_libpath=$lt_cv_aix_libpath
17234else
17235 if ${lt_cv_aix_libpath__CXX+:} false; then :
17236 $as_echo_n "(cached) " >&6
17237else
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017239/* end confdefs.h. */
17240
17241int
17242main ()
17243{
17244
17245 ;
17246 return 0;
17247}
17248_ACEOF
17249if ac_fn_cxx_try_link "$LINENO"; then :
17250
cristyda16f162011-02-19 23:52:17 +000017251 lt_aix_libpath_sed='
17252 /Import File Strings/,/^$/ {
17253 /^0/ {
17254 s/^0 *\([^ ]*\) *$/\1/
17255 p
17256 }
17257 }'
17258 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17259 # Check for a 64-bit object if we didn't find anything.
17260 if test -z "$lt_cv_aix_libpath__CXX"; then
17261 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17262 fi
cristy73bd4a52010-10-05 11:24:23 +000017263fi
17264rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017266 if test -z "$lt_cv_aix_libpath__CXX"; then
17267 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17268 fi
17269
17270fi
17271
17272 aix_libpath=$lt_cv_aix_libpath__CXX
17273fi
cristy73bd4a52010-10-05 11:24:23 +000017274
17275 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17276 # Warning - without using the other run time loading flags,
17277 # -berok will link without error, but may produce a broken library.
17278 no_undefined_flag_CXX=' ${wl}-bernotok'
17279 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017280 if test "$with_gnu_ld" = yes; then
17281 # We only use this code for GNU lds that support --whole-archive.
17282 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17283 else
17284 # Exported symbols can be pulled into shared objects from archives
17285 whole_archive_flag_spec_CXX='$convenience'
17286 fi
cristy73bd4a52010-10-05 11:24:23 +000017287 archive_cmds_need_lc_CXX=yes
17288 # This is similar to how AIX traditionally builds its shared
17289 # libraries.
17290 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'
17291 fi
17292 fi
17293 ;;
17294
17295 beos*)
17296 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17297 allow_undefined_flag_CXX=unsupported
17298 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17299 # support --undefined. This deserves some investigation. FIXME
17300 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17301 else
17302 ld_shlibs_CXX=no
17303 fi
17304 ;;
17305
17306 chorus*)
17307 case $cc_basename in
17308 *)
17309 # FIXME: insert proper C++ library support
17310 ld_shlibs_CXX=no
17311 ;;
17312 esac
17313 ;;
17314
17315 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017316 case $GXX,$cc_basename in
17317 ,cl* | no,cl*)
17318 # Native MSVC
17319 # hardcode_libdir_flag_spec is actually meaningless, as there is
17320 # no search path for DLLs.
17321 hardcode_libdir_flag_spec_CXX=' '
17322 allow_undefined_flag_CXX=unsupported
17323 always_export_symbols_CXX=yes
17324 file_list_spec_CXX='@'
17325 # Tell ltmain to make .lib files, not .a files.
17326 libext=lib
17327 # Tell ltmain to make .dll files, not .so files.
17328 shrext_cmds=".dll"
17329 # FIXME: Setting linknames here is a bad hack.
17330 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17331 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17332 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17333 else
17334 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17335 fi~
17336 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17337 linknames='
17338 # The linker will not automatically build a static lib if we build a DLL.
17339 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17340 enable_shared_with_static_runtimes_CXX=yes
17341 # Don't use ranlib
17342 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17343 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17344 lt_tool_outputfile="@TOOL_OUTPUT@"~
17345 case $lt_outputfile in
17346 *.exe|*.EXE) ;;
17347 *)
17348 lt_outputfile="$lt_outputfile.exe"
17349 lt_tool_outputfile="$lt_tool_outputfile.exe"
17350 ;;
17351 esac~
17352 func_to_tool_file "$lt_outputfile"~
17353 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17354 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17355 $RM "$lt_outputfile.manifest";
17356 fi'
17357 ;;
17358 *)
17359 # g++
17360 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17361 # as there is no search path for DLLs.
17362 hardcode_libdir_flag_spec_CXX='-L$libdir'
17363 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17364 allow_undefined_flag_CXX=unsupported
17365 always_export_symbols_CXX=no
17366 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017367
cristyda16f162011-02-19 23:52:17 +000017368 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17369 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'
17370 # If the export-symbols file already is a .def file (1st line
17371 # is EXPORTS), use it as is; otherwise, prepend...
17372 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17373 cp $export_symbols $output_objdir/$soname.def;
17374 else
17375 echo EXPORTS > $output_objdir/$soname.def;
17376 cat $export_symbols >> $output_objdir/$soname.def;
17377 fi~
17378 $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'
17379 else
17380 ld_shlibs_CXX=no
17381 fi
17382 ;;
17383 esac
17384 ;;
cristy73bd4a52010-10-05 11:24:23 +000017385 darwin* | rhapsody*)
17386
17387
17388 archive_cmds_need_lc_CXX=no
17389 hardcode_direct_CXX=no
17390 hardcode_automatic_CXX=yes
17391 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017392 if test "$lt_cv_ld_force_load" = "yes"; then
17393 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\"`'
17394 else
17395 whole_archive_flag_spec_CXX=''
17396 fi
cristy73bd4a52010-10-05 11:24:23 +000017397 link_all_deplibs_CXX=yes
17398 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17399 case $cc_basename in
17400 ifort*) _lt_dar_can_shared=yes ;;
17401 *) _lt_dar_can_shared=$GCC ;;
17402 esac
17403 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017404 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017405 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}"
17406 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17407 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}"
17408 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}"
17409 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17410 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}"
17411 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}"
17412 fi
17413
17414 else
17415 ld_shlibs_CXX=no
17416 fi
17417
17418 ;;
17419
17420 dgux*)
17421 case $cc_basename in
17422 ec++*)
17423 # FIXME: insert proper C++ library support
17424 ld_shlibs_CXX=no
17425 ;;
17426 ghcx*)
17427 # Green Hills C++ Compiler
17428 # FIXME: insert proper C++ library support
17429 ld_shlibs_CXX=no
17430 ;;
17431 *)
17432 # FIXME: insert proper C++ library support
17433 ld_shlibs_CXX=no
17434 ;;
17435 esac
17436 ;;
17437
17438 freebsd[12]*)
17439 # C++ shared libraries reported to be fairly broken before
17440 # switch to ELF
17441 ld_shlibs_CXX=no
17442 ;;
17443
17444 freebsd-elf*)
17445 archive_cmds_need_lc_CXX=no
17446 ;;
17447
17448 freebsd* | dragonfly*)
17449 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17450 # conventions
17451 ld_shlibs_CXX=yes
17452 ;;
17453
17454 gnu*)
17455 ;;
17456
cristy0c60a692010-11-04 01:09:47 +000017457 haiku*)
17458 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17459 link_all_deplibs_CXX=yes
17460 ;;
17461
cristy73bd4a52010-10-05 11:24:23 +000017462 hpux9*)
17463 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17464 hardcode_libdir_separator_CXX=:
17465 export_dynamic_flag_spec_CXX='${wl}-E'
17466 hardcode_direct_CXX=yes
17467 hardcode_minus_L_CXX=yes # Not in the search PATH,
17468 # but as the default
17469 # location of the library.
17470
17471 case $cc_basename in
17472 CC*)
17473 # FIXME: insert proper C++ library support
17474 ld_shlibs_CXX=no
17475 ;;
17476 aCC*)
17477 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'
17478 # Commands to make compiler produce verbose output that lists
17479 # what "hidden" libraries, object files and flags are used when
17480 # linking a shared library.
17481 #
17482 # There doesn't appear to be a way to prevent this compiler from
17483 # explicitly linking system object files so we need to strip them
17484 # from the output so that they don't get included in the library
17485 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017486 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 +000017487 ;;
17488 *)
17489 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017490 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 +000017491 else
17492 # FIXME: insert proper C++ library support
17493 ld_shlibs_CXX=no
17494 fi
17495 ;;
17496 esac
17497 ;;
17498
17499 hpux10*|hpux11*)
17500 if test $with_gnu_ld = no; then
17501 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17502 hardcode_libdir_separator_CXX=:
17503
17504 case $host_cpu in
17505 hppa*64*|ia64*)
17506 ;;
17507 *)
17508 export_dynamic_flag_spec_CXX='${wl}-E'
17509 ;;
17510 esac
17511 fi
17512 case $host_cpu in
17513 hppa*64*|ia64*)
17514 hardcode_direct_CXX=no
17515 hardcode_shlibpath_var_CXX=no
17516 ;;
17517 *)
17518 hardcode_direct_CXX=yes
17519 hardcode_direct_absolute_CXX=yes
17520 hardcode_minus_L_CXX=yes # Not in the search PATH,
17521 # but as the default
17522 # location of the library.
17523 ;;
17524 esac
17525
17526 case $cc_basename in
17527 CC*)
17528 # FIXME: insert proper C++ library support
17529 ld_shlibs_CXX=no
17530 ;;
17531 aCC*)
17532 case $host_cpu in
17533 hppa*64*)
17534 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17535 ;;
17536 ia64*)
17537 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17538 ;;
17539 *)
17540 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17541 ;;
17542 esac
17543 # Commands to make compiler produce verbose output that lists
17544 # what "hidden" libraries, object files and flags are used when
17545 # linking a shared library.
17546 #
17547 # There doesn't appear to be a way to prevent this compiler from
17548 # explicitly linking system object files so we need to strip them
17549 # from the output so that they don't get included in the library
17550 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017551 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 +000017552 ;;
17553 *)
17554 if test "$GXX" = yes; then
17555 if test $with_gnu_ld = no; then
17556 case $host_cpu in
17557 hppa*64*)
17558 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17559 ;;
17560 ia64*)
cristyda16f162011-02-19 23:52:17 +000017561 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 +000017562 ;;
17563 *)
cristyda16f162011-02-19 23:52:17 +000017564 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 +000017565 ;;
17566 esac
17567 fi
17568 else
17569 # FIXME: insert proper C++ library support
17570 ld_shlibs_CXX=no
17571 fi
17572 ;;
17573 esac
17574 ;;
17575
17576 interix[3-9]*)
17577 hardcode_direct_CXX=no
17578 hardcode_shlibpath_var_CXX=no
17579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17580 export_dynamic_flag_spec_CXX='${wl}-E'
17581 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17582 # Instead, shared libraries are loaded at an image base (0x10000000 by
17583 # default) and relocated if they conflict, which is a slow very memory
17584 # consuming and fragmenting process. To avoid this, we pick a random,
17585 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17586 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17587 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'
17588 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'
17589 ;;
17590 irix5* | irix6*)
17591 case $cc_basename in
17592 CC*)
17593 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017594 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 +000017595
17596 # Archives containing C++ object files must be created using
17597 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17598 # necessary to make sure instantiated templates are included
17599 # in the archive.
17600 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17601 ;;
17602 *)
17603 if test "$GXX" = yes; then
17604 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017605 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 +000017606 else
cristyda16f162011-02-19 23:52:17 +000017607 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 +000017608 fi
17609 fi
17610 link_all_deplibs_CXX=yes
17611 ;;
17612 esac
17613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17614 hardcode_libdir_separator_CXX=:
17615 inherit_rpath_CXX=yes
17616 ;;
17617
cristy0c60a692010-11-04 01:09:47 +000017618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017619 case $cc_basename in
17620 KCC*)
17621 # Kuck and Associates, Inc. (KAI) C++ Compiler
17622
17623 # KCC will only create a shared library if the output file
17624 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17625 # to its proper name (with version) after linking.
17626 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'
17627 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'
17628 # Commands to make compiler produce verbose output that lists
17629 # what "hidden" libraries, object files and flags are used when
17630 # linking a shared library.
17631 #
17632 # There doesn't appear to be a way to prevent this compiler from
17633 # explicitly linking system object files so we need to strip them
17634 # from the output so that they don't get included in the library
17635 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017636 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 +000017637
17638 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17639 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17640
17641 # Archives containing C++ object files must be created using
17642 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17643 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17644 ;;
17645 icpc* | ecpc* )
17646 # Intel C++
17647 with_gnu_ld=yes
17648 # version 8.0 and above of icpc choke on multiply defined symbols
17649 # if we add $predep_objects and $postdep_objects, however 7.1 and
17650 # earlier do not add the objects themselves.
17651 case `$CC -V 2>&1` in
17652 *"Version 7."*)
17653 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17654 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'
17655 ;;
17656 *) # Version 8.0 or newer
17657 tmp_idyn=
17658 case $host_cpu in
17659 ia64*) tmp_idyn=' -i_dynamic';;
17660 esac
17661 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17662 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'
17663 ;;
17664 esac
17665 archive_cmds_need_lc_CXX=no
17666 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17667 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17668 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17669 ;;
17670 pgCC* | pgcpp*)
17671 # Portland Group C++ compiler
17672 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017673 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017674 prelink_cmds_CXX='tpldir=Template.dir~
17675 rm -rf $tpldir~
17676 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017677 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017678 old_archive_cmds_CXX='tpldir=Template.dir~
17679 rm -rf $tpldir~
17680 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017681 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017682 $RANLIB $oldlib'
17683 archive_cmds_CXX='tpldir=Template.dir~
17684 rm -rf $tpldir~
17685 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017686 $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 +000017687 archive_expsym_cmds_CXX='tpldir=Template.dir~
17688 rm -rf $tpldir~
17689 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017690 $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 +000017691 ;;
cristy0c60a692010-11-04 01:09:47 +000017692 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017693 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17694 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'
17695 ;;
17696 esac
17697
17698 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17699 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017700 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 +000017701 ;;
17702 cxx*)
17703 # Compaq C++
17704 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17705 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'
17706
17707 runpath_var=LD_RUN_PATH
17708 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17709 hardcode_libdir_separator_CXX=:
17710
17711 # Commands to make compiler produce verbose output that lists
17712 # what "hidden" libraries, object files and flags are used when
17713 # linking a shared library.
17714 #
17715 # There doesn't appear to be a way to prevent this compiler from
17716 # explicitly linking system object files so we need to strip them
17717 # from the output so that they don't get included in the library
17718 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017719 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 +000017720 ;;
cristy0c60a692010-11-04 01:09:47 +000017721 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017722 # IBM XL 8.0 on PPC, with GNU ld
17723 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17725 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17726 if test "x$supports_anon_versioning" = xyes; then
17727 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17728 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17729 echo "local: *; };" >> $output_objdir/$libname.ver~
17730 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17731 fi
17732 ;;
17733 *)
17734 case `$CC -V 2>&1 | sed 5q` in
17735 *Sun\ C*)
17736 # Sun C++ 5.9
17737 no_undefined_flag_CXX=' -zdefs'
17738 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17739 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'
17740 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017741 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 +000017742 compiler_needs_object_CXX=yes
17743
17744 # Not sure whether something based on
17745 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17746 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017747 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017748
17749 # Archives containing C++ object files must be created using
17750 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17751 # necessary to make sure instantiated templates are included
17752 # in the archive.
17753 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17754 ;;
17755 esac
17756 ;;
17757 esac
17758 ;;
17759
17760 lynxos*)
17761 # FIXME: insert proper C++ library support
17762 ld_shlibs_CXX=no
17763 ;;
17764
17765 m88k*)
17766 # FIXME: insert proper C++ library support
17767 ld_shlibs_CXX=no
17768 ;;
17769
17770 mvs*)
17771 case $cc_basename in
17772 cxx*)
17773 # FIXME: insert proper C++ library support
17774 ld_shlibs_CXX=no
17775 ;;
17776 *)
17777 # FIXME: insert proper C++ library support
17778 ld_shlibs_CXX=no
17779 ;;
17780 esac
17781 ;;
17782
17783 netbsd*)
17784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17785 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17786 wlarc=
17787 hardcode_libdir_flag_spec_CXX='-R$libdir'
17788 hardcode_direct_CXX=yes
17789 hardcode_shlibpath_var_CXX=no
17790 fi
17791 # Workaround some broken pre-1.5 toolchains
17792 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17793 ;;
17794
17795 *nto* | *qnx*)
17796 ld_shlibs_CXX=yes
17797 ;;
17798
17799 openbsd2*)
17800 # C++ shared libraries are fairly broken
17801 ld_shlibs_CXX=no
17802 ;;
17803
17804 openbsd*)
17805 if test -f /usr/libexec/ld.so; then
17806 hardcode_direct_CXX=yes
17807 hardcode_shlibpath_var_CXX=no
17808 hardcode_direct_absolute_CXX=yes
17809 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17810 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17812 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17813 export_dynamic_flag_spec_CXX='${wl}-E'
17814 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17815 fi
cristy0c60a692010-11-04 01:09:47 +000017816 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017817 else
17818 ld_shlibs_CXX=no
17819 fi
17820 ;;
17821
17822 osf3* | osf4* | osf5*)
17823 case $cc_basename in
17824 KCC*)
17825 # Kuck and Associates, Inc. (KAI) C++ Compiler
17826
17827 # KCC will only create a shared library if the output file
17828 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17829 # to its proper name (with version) after linking.
17830 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'
17831
17832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17833 hardcode_libdir_separator_CXX=:
17834
17835 # Archives containing C++ object files must be created using
17836 # the KAI C++ compiler.
17837 case $host in
17838 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17839 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17840 esac
17841 ;;
17842 RCC*)
17843 # Rational C++ 2.4.1
17844 # FIXME: insert proper C++ library support
17845 ld_shlibs_CXX=no
17846 ;;
17847 cxx*)
17848 case $host in
17849 osf3*)
17850 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017851 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 +000017852 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17853 ;;
17854 *)
17855 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017856 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 +000017857 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17858 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017859 $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 +000017860 $RM $lib.exp'
17861 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17862 ;;
17863 esac
17864
17865 hardcode_libdir_separator_CXX=:
17866
17867 # Commands to make compiler produce verbose output that lists
17868 # what "hidden" libraries, object files and flags are used when
17869 # linking a shared library.
17870 #
17871 # There doesn't appear to be a way to prevent this compiler from
17872 # explicitly linking system object files so we need to strip them
17873 # from the output so that they don't get included in the library
17874 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017875 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 +000017876 ;;
17877 *)
17878 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17879 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17880 case $host in
17881 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017882 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 +000017883 ;;
17884 *)
cristyda16f162011-02-19 23:52:17 +000017885 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 +000017886 ;;
17887 esac
17888
17889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17890 hardcode_libdir_separator_CXX=:
17891
17892 # Commands to make compiler produce verbose output that lists
17893 # what "hidden" libraries, object files and flags are used when
17894 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017896
17897 else
17898 # FIXME: insert proper C++ library support
17899 ld_shlibs_CXX=no
17900 fi
17901 ;;
17902 esac
17903 ;;
17904
17905 psos*)
17906 # FIXME: insert proper C++ library support
17907 ld_shlibs_CXX=no
17908 ;;
17909
17910 sunos4*)
17911 case $cc_basename in
17912 CC*)
17913 # Sun C++ 4.x
17914 # FIXME: insert proper C++ library support
17915 ld_shlibs_CXX=no
17916 ;;
17917 lcc*)
17918 # Lucid
17919 # FIXME: insert proper C++ library support
17920 ld_shlibs_CXX=no
17921 ;;
17922 *)
17923 # FIXME: insert proper C++ library support
17924 ld_shlibs_CXX=no
17925 ;;
17926 esac
17927 ;;
17928
17929 solaris*)
17930 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017931 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017932 # Sun C++ 4.2, 5.x and Centerline C++
17933 archive_cmds_need_lc_CXX=yes
17934 no_undefined_flag_CXX=' -zdefs'
17935 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17936 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17937 $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'
17938
17939 hardcode_libdir_flag_spec_CXX='-R$libdir'
17940 hardcode_shlibpath_var_CXX=no
17941 case $host_os in
17942 solaris2.[0-5] | solaris2.[0-5].*) ;;
17943 *)
17944 # The compiler driver will combine and reorder linker options,
17945 # but understands `-z linker_flag'.
17946 # Supported since Solaris 2.6 (maybe 2.5.1?)
17947 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17948 ;;
17949 esac
17950 link_all_deplibs_CXX=yes
17951
cristy0c60a692010-11-04 01:09:47 +000017952 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017953
17954 # Archives containing C++ object files must be created using
17955 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17956 # necessary to make sure instantiated templates are included
17957 # in the archive.
17958 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17959 ;;
17960 gcx*)
17961 # Green Hills C++ Compiler
17962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17963
17964 # The C++ compiler must be used to create the archive.
17965 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17966 ;;
17967 *)
17968 # GNU C++ compiler with Solaris linker
17969 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17970 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17971 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017972 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 +000017973 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 +000017974 $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 +000017975
17976 # Commands to make compiler produce verbose output that lists
17977 # what "hidden" libraries, object files and flags are used when
17978 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017979 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017980 else
17981 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17982 # platform.
17983 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17984 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17985 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17986
17987 # Commands to make compiler produce verbose output that lists
17988 # what "hidden" libraries, object files and flags are used when
17989 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017990 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017991 fi
17992
17993 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17994 case $host_os in
17995 solaris2.[0-5] | solaris2.[0-5].*) ;;
17996 *)
17997 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17998 ;;
17999 esac
18000 fi
18001 ;;
18002 esac
18003 ;;
18004
18005 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18006 no_undefined_flag_CXX='${wl}-z,text'
18007 archive_cmds_need_lc_CXX=no
18008 hardcode_shlibpath_var_CXX=no
18009 runpath_var='LD_RUN_PATH'
18010
18011 case $cc_basename in
18012 CC*)
18013 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18014 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18015 ;;
18016 *)
18017 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18018 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18019 ;;
18020 esac
18021 ;;
18022
18023 sysv5* | sco3.2v5* | sco5v6*)
18024 # Note: We can NOT use -z defs as we might desire, because we do not
18025 # link with -lc, and that would cause any symbols used from libc to
18026 # always be unresolved, which means just about no library would
18027 # ever link correctly. If we're not using GNU ld we use -z text
18028 # though, which does catch some bad symbols but isn't as heavy-handed
18029 # as -z defs.
18030 no_undefined_flag_CXX='${wl}-z,text'
18031 allow_undefined_flag_CXX='${wl}-z,nodefs'
18032 archive_cmds_need_lc_CXX=no
18033 hardcode_shlibpath_var_CXX=no
18034 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18035 hardcode_libdir_separator_CXX=':'
18036 link_all_deplibs_CXX=yes
18037 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18038 runpath_var='LD_RUN_PATH'
18039
18040 case $cc_basename in
18041 CC*)
18042 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18043 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 +000018044 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18045 '"$old_archive_cmds_CXX"
18046 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18047 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018048 ;;
18049 *)
18050 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18051 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18052 ;;
18053 esac
18054 ;;
18055
18056 tandem*)
18057 case $cc_basename in
18058 NCC*)
18059 # NonStop-UX NCC 3.20
18060 # FIXME: insert proper C++ library support
18061 ld_shlibs_CXX=no
18062 ;;
18063 *)
18064 # FIXME: insert proper C++ library support
18065 ld_shlibs_CXX=no
18066 ;;
18067 esac
18068 ;;
18069
18070 vxworks*)
18071 # FIXME: insert proper C++ library support
18072 ld_shlibs_CXX=no
18073 ;;
18074
18075 *)
18076 # FIXME: insert proper C++ library support
18077 ld_shlibs_CXX=no
18078 ;;
18079 esac
18080
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18082$as_echo "$ld_shlibs_CXX" >&6; }
18083 test "$ld_shlibs_CXX" = no && can_build_shared=no
18084
18085 GCC_CXX="$GXX"
18086 LD_CXX="$LD"
18087
18088 ## CAVEAT EMPTOR:
18089 ## There is no encapsulation within the following macros, do not change
18090 ## the running order or otherwise move them around unless you know exactly
18091 ## what you are doing...
18092 # Dependencies to place before and after the object being linked:
18093predep_objects_CXX=
18094postdep_objects_CXX=
18095predeps_CXX=
18096postdeps_CXX=
18097compiler_lib_search_path_CXX=
18098
18099cat > conftest.$ac_ext <<_LT_EOF
18100class Foo
18101{
18102public:
18103 Foo (void) { a = 0; }
18104private:
18105 int a;
18106};
18107_LT_EOF
18108
cristyda16f162011-02-19 23:52:17 +000018109
18110_lt_libdeps_save_CFLAGS=$CFLAGS
18111case "$CC $CFLAGS " in #(
18112*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18113*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18114esac
18115
cristy73bd4a52010-10-05 11:24:23 +000018116if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18117 (eval $ac_compile) 2>&5
18118 ac_status=$?
18119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18120 test $ac_status = 0; }; then
18121 # Parse the compiler output and extract the necessary
18122 # objects, libraries and library flags.
18123
18124 # Sentinel used to keep track of whether or not we are before
18125 # the conftest object file.
18126 pre_test_object_deps_done=no
18127
18128 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018129 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018130
18131 -L* | -R* | -l*)
18132 # Some compilers place space between "-{L,R}" and the path.
18133 # Remove the space.
18134 if test $p = "-L" ||
18135 test $p = "-R"; then
18136 prev=$p
18137 continue
cristy73bd4a52010-10-05 11:24:23 +000018138 fi
18139
cristyda16f162011-02-19 23:52:17 +000018140 # Expand the sysroot to ease extracting the directories later.
18141 if test -z "$prev"; then
18142 case $p in
18143 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18144 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18145 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18146 esac
18147 fi
18148 case $p in
18149 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18150 esac
cristy73bd4a52010-10-05 11:24:23 +000018151 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018152 case ${prev} in
18153 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018154 # Internal compiler library paths should come after those
18155 # provided the user. The postdeps already come after the
18156 # user supplied libs so there is no need to process them.
18157 if test -z "$compiler_lib_search_path_CXX"; then
18158 compiler_lib_search_path_CXX="${prev}${p}"
18159 else
18160 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18161 fi
18162 ;;
18163 # The "-l" case would never come before the object being
18164 # linked, so don't bother handling this case.
18165 esac
18166 else
18167 if test -z "$postdeps_CXX"; then
18168 postdeps_CXX="${prev}${p}"
18169 else
18170 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18171 fi
18172 fi
cristyda16f162011-02-19 23:52:17 +000018173 prev=
cristy73bd4a52010-10-05 11:24:23 +000018174 ;;
18175
cristyda16f162011-02-19 23:52:17 +000018176 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018177 *.$objext)
18178 # This assumes that the test object file only shows up
18179 # once in the compiler output.
18180 if test "$p" = "conftest.$objext"; then
18181 pre_test_object_deps_done=yes
18182 continue
18183 fi
18184
18185 if test "$pre_test_object_deps_done" = no; then
18186 if test -z "$predep_objects_CXX"; then
18187 predep_objects_CXX="$p"
18188 else
18189 predep_objects_CXX="$predep_objects_CXX $p"
18190 fi
18191 else
18192 if test -z "$postdep_objects_CXX"; then
18193 postdep_objects_CXX="$p"
18194 else
18195 postdep_objects_CXX="$postdep_objects_CXX $p"
18196 fi
18197 fi
18198 ;;
18199
18200 *) ;; # Ignore the rest.
18201
18202 esac
18203 done
18204
18205 # Clean up.
18206 rm -f a.out a.exe
18207else
18208 echo "libtool.m4: error: problem compiling CXX test program"
18209fi
18210
18211$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018212CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018213
18214# PORTME: override above test on systems where it is broken
18215case $host_os in
18216interix[3-9]*)
18217 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18218 # hack all around it, let's just trust "g++" to DTRT.
18219 predep_objects_CXX=
18220 postdep_objects_CXX=
18221 postdeps_CXX=
18222 ;;
18223
18224linux*)
18225 case `$CC -V 2>&1 | sed 5q` in
18226 *Sun\ C*)
18227 # Sun C++ 5.9
18228
18229 # The more standards-conforming stlport4 library is
18230 # incompatible with the Cstd library. Avoid specifying
18231 # it if it's in CXXFLAGS. Ignore libCrun as
18232 # -library=stlport4 depends on it.
18233 case " $CXX $CXXFLAGS " in
18234 *" -library=stlport4 "*)
18235 solaris_use_stlport4=yes
18236 ;;
18237 esac
18238
18239 if test "$solaris_use_stlport4" != yes; then
18240 postdeps_CXX='-library=Cstd -library=Crun'
18241 fi
18242 ;;
18243 esac
18244 ;;
18245
18246solaris*)
18247 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018248 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018249 # The more standards-conforming stlport4 library is
18250 # incompatible with the Cstd library. Avoid specifying
18251 # it if it's in CXXFLAGS. Ignore libCrun as
18252 # -library=stlport4 depends on it.
18253 case " $CXX $CXXFLAGS " in
18254 *" -library=stlport4 "*)
18255 solaris_use_stlport4=yes
18256 ;;
18257 esac
18258
18259 # Adding this requires a known-good setup of shared libraries for
18260 # Sun compiler versions before 5.6, else PIC objects from an old
18261 # archive will be linked into the output, leading to subtle bugs.
18262 if test "$solaris_use_stlport4" != yes; then
18263 postdeps_CXX='-library=Cstd -library=Crun'
18264 fi
18265 ;;
18266 esac
18267 ;;
18268esac
18269
18270
18271case " $postdeps_CXX " in
18272*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18273esac
18274 compiler_lib_search_dirs_CXX=
18275if test -n "${compiler_lib_search_path_CXX}"; then
18276 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18277fi
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309 lt_prog_compiler_wl_CXX=
18310lt_prog_compiler_pic_CXX=
18311lt_prog_compiler_static_CXX=
18312
cristy73bd4a52010-10-05 11:24:23 +000018313
18314 # C++ specific cases for pic, static, wl, etc.
18315 if test "$GXX" = yes; then
18316 lt_prog_compiler_wl_CXX='-Wl,'
18317 lt_prog_compiler_static_CXX='-static'
18318
18319 case $host_os in
18320 aix*)
18321 # All AIX code is PIC.
18322 if test "$host_cpu" = ia64; then
18323 # AIX 5 now supports IA64 processor
18324 lt_prog_compiler_static_CXX='-Bstatic'
18325 fi
18326 ;;
18327
18328 amigaos*)
18329 case $host_cpu in
18330 powerpc)
18331 # see comment about AmigaOS4 .so support
18332 lt_prog_compiler_pic_CXX='-fPIC'
18333 ;;
18334 m68k)
18335 # FIXME: we need at least 68020 code to build shared libraries, but
18336 # adding the `-m68020' flag to GCC prevents building anything better,
18337 # like `-m68040'.
18338 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18339 ;;
18340 esac
18341 ;;
18342
18343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18344 # PIC is the default for these OSes.
18345 ;;
18346 mingw* | cygwin* | os2* | pw32* | cegcc*)
18347 # This hack is so that the source file can tell whether it is being
18348 # built for inclusion in a dll (and should export symbols for example).
18349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18350 # (--disable-auto-import) libraries
18351 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18352 ;;
18353 darwin* | rhapsody*)
18354 # PIC is the default on this platform
18355 # Common symbols not allowed in MH_DYLIB files
18356 lt_prog_compiler_pic_CXX='-fno-common'
18357 ;;
18358 *djgpp*)
18359 # DJGPP does not support shared libraries at all
18360 lt_prog_compiler_pic_CXX=
18361 ;;
cristy0c60a692010-11-04 01:09:47 +000018362 haiku*)
18363 # PIC is the default for Haiku.
18364 # The "-static" flag exists, but is broken.
18365 lt_prog_compiler_static_CXX=
18366 ;;
cristy73bd4a52010-10-05 11:24:23 +000018367 interix[3-9]*)
18368 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18369 # Instead, we relocate shared libraries at runtime.
18370 ;;
18371 sysv4*MP*)
18372 if test -d /usr/nec; then
18373 lt_prog_compiler_pic_CXX=-Kconform_pic
18374 fi
18375 ;;
18376 hpux*)
18377 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18378 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18379 # sets the default TLS model and affects inlining.
18380 case $host_cpu in
18381 hppa*64*)
18382 ;;
18383 *)
18384 lt_prog_compiler_pic_CXX='-fPIC'
18385 ;;
18386 esac
18387 ;;
18388 *qnx* | *nto*)
18389 # QNX uses GNU C++, but need to define -shared option too, otherwise
18390 # it will coredump.
18391 lt_prog_compiler_pic_CXX='-fPIC -shared'
18392 ;;
18393 *)
18394 lt_prog_compiler_pic_CXX='-fPIC'
18395 ;;
18396 esac
18397 else
18398 case $host_os in
18399 aix[4-9]*)
18400 # All AIX code is PIC.
18401 if test "$host_cpu" = ia64; then
18402 # AIX 5 now supports IA64 processor
18403 lt_prog_compiler_static_CXX='-Bstatic'
18404 else
18405 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18406 fi
18407 ;;
18408 chorus*)
18409 case $cc_basename in
18410 cxch68*)
18411 # Green Hills C++ Compiler
18412 # _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"
18413 ;;
18414 esac
18415 ;;
cristyda16f162011-02-19 23:52:17 +000018416 mingw* | cygwin* | os2* | pw32* | cegcc*)
18417 # This hack is so that the source file can tell whether it is being
18418 # built for inclusion in a dll (and should export symbols for example).
18419 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18420 ;;
cristy73bd4a52010-10-05 11:24:23 +000018421 dgux*)
18422 case $cc_basename in
18423 ec++*)
18424 lt_prog_compiler_pic_CXX='-KPIC'
18425 ;;
18426 ghcx*)
18427 # Green Hills C++ Compiler
18428 lt_prog_compiler_pic_CXX='-pic'
18429 ;;
18430 *)
18431 ;;
18432 esac
18433 ;;
18434 freebsd* | dragonfly*)
18435 # FreeBSD uses GNU C++
18436 ;;
18437 hpux9* | hpux10* | hpux11*)
18438 case $cc_basename in
18439 CC*)
18440 lt_prog_compiler_wl_CXX='-Wl,'
18441 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18442 if test "$host_cpu" != ia64; then
18443 lt_prog_compiler_pic_CXX='+Z'
18444 fi
18445 ;;
18446 aCC*)
18447 lt_prog_compiler_wl_CXX='-Wl,'
18448 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18449 case $host_cpu in
18450 hppa*64*|ia64*)
18451 # +Z the default
18452 ;;
18453 *)
18454 lt_prog_compiler_pic_CXX='+Z'
18455 ;;
18456 esac
18457 ;;
18458 *)
18459 ;;
18460 esac
18461 ;;
18462 interix*)
18463 # This is c89, which is MS Visual C++ (no shared libs)
18464 # Anyone wants to do a port?
18465 ;;
18466 irix5* | irix6* | nonstopux*)
18467 case $cc_basename in
18468 CC*)
18469 lt_prog_compiler_wl_CXX='-Wl,'
18470 lt_prog_compiler_static_CXX='-non_shared'
18471 # CC pic flag -KPIC is the default.
18472 ;;
18473 *)
18474 ;;
18475 esac
18476 ;;
cristy0c60a692010-11-04 01:09:47 +000018477 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018478 case $cc_basename in
18479 KCC*)
18480 # KAI C++ Compiler
18481 lt_prog_compiler_wl_CXX='--backend -Wl,'
18482 lt_prog_compiler_pic_CXX='-fPIC'
18483 ;;
18484 ecpc* )
18485 # old Intel C++ for x86_64 which still supported -KPIC.
18486 lt_prog_compiler_wl_CXX='-Wl,'
18487 lt_prog_compiler_pic_CXX='-KPIC'
18488 lt_prog_compiler_static_CXX='-static'
18489 ;;
18490 icpc* )
18491 # Intel C++, used to be incompatible with GCC.
18492 # ICC 10 doesn't accept -KPIC any more.
18493 lt_prog_compiler_wl_CXX='-Wl,'
18494 lt_prog_compiler_pic_CXX='-fPIC'
18495 lt_prog_compiler_static_CXX='-static'
18496 ;;
18497 pgCC* | pgcpp*)
18498 # Portland Group C++ compiler
18499 lt_prog_compiler_wl_CXX='-Wl,'
18500 lt_prog_compiler_pic_CXX='-fpic'
18501 lt_prog_compiler_static_CXX='-Bstatic'
18502 ;;
18503 cxx*)
18504 # Compaq C++
18505 # Make sure the PIC flag is empty. It appears that all Alpha
18506 # Linux and Compaq Tru64 Unix objects are PIC.
18507 lt_prog_compiler_pic_CXX=
18508 lt_prog_compiler_static_CXX='-non_shared'
18509 ;;
cristy0c60a692010-11-04 01:09:47 +000018510 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18511 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018512 lt_prog_compiler_wl_CXX='-Wl,'
18513 lt_prog_compiler_pic_CXX='-qpic'
18514 lt_prog_compiler_static_CXX='-qstaticlink'
18515 ;;
18516 *)
18517 case `$CC -V 2>&1 | sed 5q` in
18518 *Sun\ C*)
18519 # Sun C++ 5.9
18520 lt_prog_compiler_pic_CXX='-KPIC'
18521 lt_prog_compiler_static_CXX='-Bstatic'
18522 lt_prog_compiler_wl_CXX='-Qoption ld '
18523 ;;
18524 esac
18525 ;;
18526 esac
18527 ;;
18528 lynxos*)
18529 ;;
18530 m88k*)
18531 ;;
18532 mvs*)
18533 case $cc_basename in
18534 cxx*)
18535 lt_prog_compiler_pic_CXX='-W c,exportall'
18536 ;;
18537 *)
18538 ;;
18539 esac
18540 ;;
18541 netbsd*)
18542 ;;
18543 *qnx* | *nto*)
18544 # QNX uses GNU C++, but need to define -shared option too, otherwise
18545 # it will coredump.
18546 lt_prog_compiler_pic_CXX='-fPIC -shared'
18547 ;;
18548 osf3* | osf4* | osf5*)
18549 case $cc_basename in
18550 KCC*)
18551 lt_prog_compiler_wl_CXX='--backend -Wl,'
18552 ;;
18553 RCC*)
18554 # Rational C++ 2.4.1
18555 lt_prog_compiler_pic_CXX='-pic'
18556 ;;
18557 cxx*)
18558 # Digital/Compaq C++
18559 lt_prog_compiler_wl_CXX='-Wl,'
18560 # Make sure the PIC flag is empty. It appears that all Alpha
18561 # Linux and Compaq Tru64 Unix objects are PIC.
18562 lt_prog_compiler_pic_CXX=
18563 lt_prog_compiler_static_CXX='-non_shared'
18564 ;;
18565 *)
18566 ;;
18567 esac
18568 ;;
18569 psos*)
18570 ;;
18571 solaris*)
18572 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018573 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018574 # Sun C++ 4.2, 5.x and Centerline C++
18575 lt_prog_compiler_pic_CXX='-KPIC'
18576 lt_prog_compiler_static_CXX='-Bstatic'
18577 lt_prog_compiler_wl_CXX='-Qoption ld '
18578 ;;
18579 gcx*)
18580 # Green Hills C++ Compiler
18581 lt_prog_compiler_pic_CXX='-PIC'
18582 ;;
18583 *)
18584 ;;
18585 esac
18586 ;;
18587 sunos4*)
18588 case $cc_basename in
18589 CC*)
18590 # Sun C++ 4.x
18591 lt_prog_compiler_pic_CXX='-pic'
18592 lt_prog_compiler_static_CXX='-Bstatic'
18593 ;;
18594 lcc*)
18595 # Lucid
18596 lt_prog_compiler_pic_CXX='-pic'
18597 ;;
18598 *)
18599 ;;
18600 esac
18601 ;;
18602 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18603 case $cc_basename in
18604 CC*)
18605 lt_prog_compiler_wl_CXX='-Wl,'
18606 lt_prog_compiler_pic_CXX='-KPIC'
18607 lt_prog_compiler_static_CXX='-Bstatic'
18608 ;;
18609 esac
18610 ;;
18611 tandem*)
18612 case $cc_basename in
18613 NCC*)
18614 # NonStop-UX NCC 3.20
18615 lt_prog_compiler_pic_CXX='-KPIC'
18616 ;;
18617 *)
18618 ;;
18619 esac
18620 ;;
18621 vxworks*)
18622 ;;
18623 *)
18624 lt_prog_compiler_can_build_shared_CXX=no
18625 ;;
18626 esac
18627 fi
18628
18629case $host_os in
18630 # For platforms which do not support PIC, -DPIC is meaningless:
18631 *djgpp*)
18632 lt_prog_compiler_pic_CXX=
18633 ;;
18634 *)
18635 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18636 ;;
18637esac
cristy73bd4a52010-10-05 11:24:23 +000018638
cristyda16f162011-02-19 23:52:17 +000018639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18640$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18641if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18642 $as_echo_n "(cached) " >&6
18643else
18644 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18645fi
18646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18647$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18648lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018649
18650#
18651# Check to make sure the PIC flag actually works.
18652#
18653if test -n "$lt_prog_compiler_pic_CXX"; then
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18655$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018656if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018657 $as_echo_n "(cached) " >&6
18658else
18659 lt_cv_prog_compiler_pic_works_CXX=no
18660 ac_outfile=conftest.$ac_objext
18661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18662 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18663 # Insert the option either (1) after the last *FLAGS variable, or
18664 # (2) before a word containing "conftest.", or (3) at the end.
18665 # Note that $ac_compile itself does not contain backslashes and begins
18666 # with a dollar sign (not a hyphen), so the echo should work correctly.
18667 # The option is referenced via a variable to avoid confusing sed.
18668 lt_compile=`echo "$ac_compile" | $SED \
18669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18671 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018673 (eval "$lt_compile" 2>conftest.err)
18674 ac_status=$?
18675 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018677 if (exit $ac_status) && test -s "$ac_outfile"; then
18678 # The compiler can only warn and ignore the option if not recognized
18679 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18683 lt_cv_prog_compiler_pic_works_CXX=yes
18684 fi
18685 fi
18686 $RM conftest*
18687
18688fi
18689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18690$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18691
18692if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18693 case $lt_prog_compiler_pic_CXX in
18694 "" | " "*) ;;
18695 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18696 esac
18697else
18698 lt_prog_compiler_pic_CXX=
18699 lt_prog_compiler_can_build_shared_CXX=no
18700fi
18701
18702fi
18703
18704
18705
cristyda16f162011-02-19 23:52:17 +000018706
18707
cristy73bd4a52010-10-05 11:24:23 +000018708#
18709# Check to make sure the static flag actually works.
18710#
18711wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18713$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018714if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018715 $as_echo_n "(cached) " >&6
18716else
18717 lt_cv_prog_compiler_static_works_CXX=no
18718 save_LDFLAGS="$LDFLAGS"
18719 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18720 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18722 # The linker can only warn and ignore the option if not recognized
18723 # So say no if there are warnings
18724 if test -s conftest.err; then
18725 # Append any errors to the config.log.
18726 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018727 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18729 if diff conftest.exp conftest.er2 >/dev/null; then
18730 lt_cv_prog_compiler_static_works_CXX=yes
18731 fi
18732 else
18733 lt_cv_prog_compiler_static_works_CXX=yes
18734 fi
18735 fi
18736 $RM -r conftest*
18737 LDFLAGS="$save_LDFLAGS"
18738
18739fi
18740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18741$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18742
18743if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18744 :
18745else
18746 lt_prog_compiler_static_CXX=
18747fi
18748
18749
18750
18751
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18753$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018754if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018755 $as_echo_n "(cached) " >&6
18756else
18757 lt_cv_prog_compiler_c_o_CXX=no
18758 $RM -r conftest 2>/dev/null
18759 mkdir conftest
18760 cd conftest
18761 mkdir out
18762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18763
18764 lt_compiler_flag="-o out/conftest2.$ac_objext"
18765 # Insert the option either (1) after the last *FLAGS variable, or
18766 # (2) before a word containing "conftest.", or (3) at the end.
18767 # Note that $ac_compile itself does not contain backslashes and begins
18768 # with a dollar sign (not a hyphen), so the echo should work correctly.
18769 lt_compile=`echo "$ac_compile" | $SED \
18770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18772 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018773 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018774 (eval "$lt_compile" 2>out/conftest.err)
18775 ac_status=$?
18776 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18779 then
18780 # The compiler can only warn and ignore the option if not recognized
18781 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18785 lt_cv_prog_compiler_c_o_CXX=yes
18786 fi
18787 fi
18788 chmod u+w . 2>&5
18789 $RM conftest*
18790 # SGI C++ compiler will create directory out/ii_files/ for
18791 # template instantiation
18792 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18793 $RM out/* && rmdir out
18794 cd ..
18795 $RM -r conftest
18796 $RM conftest*
18797
18798fi
18799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18800$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18801
18802
18803
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18805$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018806if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018807 $as_echo_n "(cached) " >&6
18808else
18809 lt_cv_prog_compiler_c_o_CXX=no
18810 $RM -r conftest 2>/dev/null
18811 mkdir conftest
18812 cd conftest
18813 mkdir out
18814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18815
18816 lt_compiler_flag="-o out/conftest2.$ac_objext"
18817 # Insert the option either (1) after the last *FLAGS variable, or
18818 # (2) before a word containing "conftest.", or (3) at the end.
18819 # Note that $ac_compile itself does not contain backslashes and begins
18820 # with a dollar sign (not a hyphen), so the echo should work correctly.
18821 lt_compile=`echo "$ac_compile" | $SED \
18822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18824 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018826 (eval "$lt_compile" 2>out/conftest.err)
18827 ac_status=$?
18828 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18831 then
18832 # The compiler can only warn and ignore the option if not recognized
18833 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18837 lt_cv_prog_compiler_c_o_CXX=yes
18838 fi
18839 fi
18840 chmod u+w . 2>&5
18841 $RM conftest*
18842 # SGI C++ compiler will create directory out/ii_files/ for
18843 # template instantiation
18844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18845 $RM out/* && rmdir out
18846 cd ..
18847 $RM -r conftest
18848 $RM conftest*
18849
18850fi
18851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18852$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18853
18854
18855
18856
18857hard_links="nottested"
18858if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18859 # do not overwrite the value of need_locks provided by the user
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18861$as_echo_n "checking if we can lock with hard links... " >&6; }
18862 hard_links=yes
18863 $RM conftest*
18864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18865 touch conftest.a
18866 ln conftest.a conftest.b 2>&5 || hard_links=no
18867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18869$as_echo "$hard_links" >&6; }
18870 if test "$hard_links" = no; then
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18872$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18873 need_locks=warn
18874 fi
18875else
18876 need_locks=no
18877fi
18878
18879
18880
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18882$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18883
18884 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018885 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018886 case $host_os in
18887 aix[4-9]*)
18888 # If we're using GNU nm, then we don't want the "-C" option.
18889 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018890 # Also, AIX nm treats weak defined symbols like other global defined
18891 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018892 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018893 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 +000018894 else
18895 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'
18896 fi
18897 ;;
18898 pw32*)
18899 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018900 ;;
cristy73bd4a52010-10-05 11:24:23 +000018901 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018902 case $cc_basename in
18903 cl*) ;;
18904 *)
18905 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'
18906 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18907 ;;
18908 esac
18909 ;;
cristy73bd4a52010-10-05 11:24:23 +000018910 *)
18911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018912 ;;
cristy73bd4a52010-10-05 11:24:23 +000018913 esac
cristy73bd4a52010-10-05 11:24:23 +000018914
18915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18916$as_echo "$ld_shlibs_CXX" >&6; }
18917test "$ld_shlibs_CXX" = no && can_build_shared=no
18918
18919with_gnu_ld_CXX=$with_gnu_ld
18920
18921
18922
18923
18924
18925
18926#
18927# Do we need to explicitly link libc?
18928#
18929case "x$archive_cmds_need_lc_CXX" in
18930x|xyes)
18931 # Assume -lc should be added
18932 archive_cmds_need_lc_CXX=yes
18933
18934 if test "$enable_shared" = yes && test "$GCC" = yes; then
18935 case $archive_cmds_CXX in
18936 *'~'*)
18937 # FIXME: we may have to deal with multi-command sequences.
18938 ;;
18939 '$CC '*)
18940 # Test whether the compiler implicitly links with -lc since on some
18941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18942 # to ld, don't add -lc before -lgcc.
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18944$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018945if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018946 $as_echo_n "(cached) " >&6
18947else
18948 $RM conftest*
18949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018950
cristy0c60a692010-11-04 01:09:47 +000018951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018952 (eval $ac_compile) 2>&5
18953 ac_status=$?
18954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18955 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018956 soname=conftest
18957 lib=conftest
18958 libobjs=conftest.$ac_objext
18959 deplibs=
18960 wl=$lt_prog_compiler_wl_CXX
18961 pic_flag=$lt_prog_compiler_pic_CXX
18962 compiler_flags=-v
18963 linker_flags=-v
18964 verstring=
18965 output_objdir=.
18966 libname=conftest
18967 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18968 allow_undefined_flag_CXX=
18969 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 +000018970 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18971 ac_status=$?
18972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18973 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018974 then
18975 lt_cv_archive_cmds_need_lc_CXX=no
18976 else
18977 lt_cv_archive_cmds_need_lc_CXX=yes
18978 fi
18979 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18980 else
18981 cat conftest.err 1>&5
18982 fi
18983 $RM conftest*
18984
18985fi
18986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18987$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18988 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018989 ;;
18990 esac
18991 fi
18992 ;;
18993esac
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19059$as_echo_n "checking dynamic linker characteristics... " >&6; }
19060
19061library_names_spec=
19062libname_spec='lib$name'
19063soname_spec=
19064shrext_cmds=".so"
19065postinstall_cmds=
19066postuninstall_cmds=
19067finish_cmds=
19068finish_eval=
19069shlibpath_var=
19070shlibpath_overrides_runpath=unknown
19071version_type=none
19072dynamic_linker="$host_os ld.so"
19073sys_lib_dlsearch_path_spec="/lib /usr/lib"
19074need_lib_prefix=unknown
19075hardcode_into_libs=no
19076
19077# when you set need_version to no, make sure it does not cause -set_version
19078# flags to be left without arguments
19079need_version=unknown
19080
19081case $host_os in
19082aix3*)
19083 version_type=linux
19084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19085 shlibpath_var=LIBPATH
19086
19087 # AIX 3 has no versioning support, so we append a major version to the name.
19088 soname_spec='${libname}${release}${shared_ext}$major'
19089 ;;
19090
19091aix[4-9]*)
19092 version_type=linux
19093 need_lib_prefix=no
19094 need_version=no
19095 hardcode_into_libs=yes
19096 if test "$host_cpu" = ia64; then
19097 # AIX 5 supports IA64
19098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19099 shlibpath_var=LD_LIBRARY_PATH
19100 else
19101 # With GCC up to 2.95.x, collect2 would create an import file
19102 # for dependence libraries. The import file would start with
19103 # the line `#! .'. This would cause the generated library to
19104 # depend on `.', always an invalid library. This was fixed in
19105 # development snapshots of GCC prior to 3.0.
19106 case $host_os in
19107 aix4 | aix4.[01] | aix4.[01].*)
19108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19109 echo ' yes '
19110 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19111 :
19112 else
19113 can_build_shared=no
19114 fi
19115 ;;
19116 esac
19117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19118 # soname into executable. Probably we can add versioning support to
19119 # collect2, so additional links can be useful in future.
19120 if test "$aix_use_runtimelinking" = yes; then
19121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19122 # instead of lib<name>.a to let people know that these are not
19123 # typical AIX shared libraries.
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125 else
19126 # We preserve .a as extension for shared libraries through AIX4.2
19127 # and later when we are not doing run time linking.
19128 library_names_spec='${libname}${release}.a $libname.a'
19129 soname_spec='${libname}${release}${shared_ext}$major'
19130 fi
19131 shlibpath_var=LIBPATH
19132 fi
19133 ;;
19134
19135amigaos*)
19136 case $host_cpu in
19137 powerpc)
19138 # Since July 2007 AmigaOS4 officially supports .so libraries.
19139 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19141 ;;
19142 m68k)
19143 library_names_spec='$libname.ixlibrary $libname.a'
19144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019145 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 +000019146 ;;
19147 esac
19148 ;;
19149
19150beos*)
19151 library_names_spec='${libname}${shared_ext}'
19152 dynamic_linker="$host_os ld.so"
19153 shlibpath_var=LIBRARY_PATH
19154 ;;
19155
19156bsdi[45]*)
19157 version_type=linux
19158 need_version=no
19159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19160 soname_spec='${libname}${release}${shared_ext}$major'
19161 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19162 shlibpath_var=LD_LIBRARY_PATH
19163 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19164 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19165 # the default ld.so.conf also contains /usr/contrib/lib and
19166 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19167 # libtool to hard-code these into programs
19168 ;;
19169
19170cygwin* | mingw* | pw32* | cegcc*)
19171 version_type=windows
19172 shrext_cmds=".dll"
19173 need_version=no
19174 need_lib_prefix=no
19175
cristyda16f162011-02-19 23:52:17 +000019176 case $GCC,$cc_basename in
19177 yes,*)
19178 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019179 library_names_spec='$libname.dll.a'
19180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19181 postinstall_cmds='base_file=`basename \${file}`~
19182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19183 dldir=$destdir/`dirname \$dlpath`~
19184 test -d \$dldir || mkdir -p \$dldir~
19185 $install_prog $dir/$dlname \$dldir/$dlname~
19186 chmod a+x \$dldir/$dlname~
19187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19189 fi'
19190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19191 dlpath=$dir/\$dldll~
19192 $RM \$dlpath'
19193 shlibpath_overrides_runpath=yes
19194
19195 case $host_os in
19196 cygwin*)
19197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19198 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019199
cristy73bd4a52010-10-05 11:24:23 +000019200 ;;
19201 mingw* | cegcc*)
19202 # MinGW DLLs use traditional 'lib' prefix
19203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019204 ;;
19205 pw32*)
19206 # pw32 DLLs use 'pw' prefix rather than 'lib'
19207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19208 ;;
19209 esac
cristyda16f162011-02-19 23:52:17 +000019210 dynamic_linker='Win32 ld.exe'
19211 ;;
19212
19213 *,cl*)
19214 # Native MSVC
19215 libname_spec='$name'
19216 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19217 library_names_spec='${libname}.dll.lib'
19218
19219 case $build_os in
19220 mingw*)
19221 sys_lib_search_path_spec=
19222 lt_save_ifs=$IFS
19223 IFS=';'
19224 for lt_path in $LIB
19225 do
19226 IFS=$lt_save_ifs
19227 # Let DOS variable expansion print the short 8.3 style file name.
19228 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19229 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19230 done
19231 IFS=$lt_save_ifs
19232 # Convert to MSYS style.
19233 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19234 ;;
19235 cygwin*)
19236 # Convert to unix form, then to dos form, then back to unix form
19237 # but this time dos style (no spaces!) so that the unix form looks
19238 # like /cygdrive/c/PROGRA~1:/cygdr...
19239 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19240 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19241 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19242 ;;
19243 *)
19244 sys_lib_search_path_spec="$LIB"
19245 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19246 # It is most probably a Windows format PATH.
19247 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19248 else
19249 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19250 fi
19251 # FIXME: find the short name or the path components, as spaces are
19252 # common. (e.g. "Program Files" -> "PROGRA~1")
19253 ;;
19254 esac
19255
19256 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19257 postinstall_cmds='base_file=`basename \${file}`~
19258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19259 dldir=$destdir/`dirname \$dlpath`~
19260 test -d \$dldir || mkdir -p \$dldir~
19261 $install_prog $dir/$dlname \$dldir/$dlname'
19262 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19263 dlpath=$dir/\$dldll~
19264 $RM \$dlpath'
19265 shlibpath_overrides_runpath=yes
19266 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019267 ;;
19268
19269 *)
cristyda16f162011-02-19 23:52:17 +000019270 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019271 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019272 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019273 ;;
19274 esac
cristy73bd4a52010-10-05 11:24:23 +000019275 # FIXME: first we should search . and the directory the executable is in
19276 shlibpath_var=PATH
19277 ;;
19278
19279darwin* | rhapsody*)
19280 dynamic_linker="$host_os dyld"
19281 version_type=darwin
19282 need_lib_prefix=no
19283 need_version=no
19284 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19285 soname_spec='${libname}${release}${major}$shared_ext'
19286 shlibpath_overrides_runpath=yes
19287 shlibpath_var=DYLD_LIBRARY_PATH
19288 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19289
19290 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19291 ;;
19292
19293dgux*)
19294 version_type=linux
19295 need_lib_prefix=no
19296 need_version=no
19297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19298 soname_spec='${libname}${release}${shared_ext}$major'
19299 shlibpath_var=LD_LIBRARY_PATH
19300 ;;
19301
19302freebsd1*)
19303 dynamic_linker=no
19304 ;;
19305
19306freebsd* | dragonfly*)
19307 # DragonFly does not have aout. When/if they implement a new
19308 # versioning mechanism, adjust this.
19309 if test -x /usr/bin/objformat; then
19310 objformat=`/usr/bin/objformat`
19311 else
19312 case $host_os in
19313 freebsd[123]*) objformat=aout ;;
19314 *) objformat=elf ;;
19315 esac
19316 fi
19317 version_type=freebsd-$objformat
19318 case $version_type in
19319 freebsd-elf*)
19320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19321 need_version=no
19322 need_lib_prefix=no
19323 ;;
19324 freebsd-*)
19325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19326 need_version=yes
19327 ;;
19328 esac
19329 shlibpath_var=LD_LIBRARY_PATH
19330 case $host_os in
19331 freebsd2*)
19332 shlibpath_overrides_runpath=yes
19333 ;;
19334 freebsd3.[01]* | freebsdelf3.[01]*)
19335 shlibpath_overrides_runpath=yes
19336 hardcode_into_libs=yes
19337 ;;
19338 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19339 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19340 shlibpath_overrides_runpath=no
19341 hardcode_into_libs=yes
19342 ;;
19343 *) # from 4.6 on, and DragonFly
19344 shlibpath_overrides_runpath=yes
19345 hardcode_into_libs=yes
19346 ;;
19347 esac
19348 ;;
19349
19350gnu*)
19351 version_type=linux
19352 need_lib_prefix=no
19353 need_version=no
19354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19355 soname_spec='${libname}${release}${shared_ext}$major'
19356 shlibpath_var=LD_LIBRARY_PATH
19357 hardcode_into_libs=yes
19358 ;;
19359
cristy0c60a692010-11-04 01:09:47 +000019360haiku*)
19361 version_type=linux
19362 need_lib_prefix=no
19363 need_version=no
19364 dynamic_linker="$host_os runtime_loader"
19365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19366 soname_spec='${libname}${release}${shared_ext}$major'
19367 shlibpath_var=LIBRARY_PATH
19368 shlibpath_overrides_runpath=yes
19369 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19370 hardcode_into_libs=yes
19371 ;;
19372
cristy73bd4a52010-10-05 11:24:23 +000019373hpux9* | hpux10* | hpux11*)
19374 # Give a soname corresponding to the major version so that dld.sl refuses to
19375 # link against other versions.
19376 version_type=sunos
19377 need_lib_prefix=no
19378 need_version=no
19379 case $host_cpu in
19380 ia64*)
19381 shrext_cmds='.so'
19382 hardcode_into_libs=yes
19383 dynamic_linker="$host_os dld.so"
19384 shlibpath_var=LD_LIBRARY_PATH
19385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19387 soname_spec='${libname}${release}${shared_ext}$major'
19388 if test "X$HPUX_IA64_MODE" = X32; then
19389 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19390 else
19391 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19392 fi
19393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19394 ;;
19395 hppa*64*)
19396 shrext_cmds='.sl'
19397 hardcode_into_libs=yes
19398 dynamic_linker="$host_os dld.sl"
19399 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19402 soname_spec='${libname}${release}${shared_ext}$major'
19403 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19405 ;;
19406 *)
19407 shrext_cmds='.sl'
19408 dynamic_linker="$host_os dld.sl"
19409 shlibpath_var=SHLIB_PATH
19410 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19412 soname_spec='${libname}${release}${shared_ext}$major'
19413 ;;
19414 esac
cristy0c60a692010-11-04 01:09:47 +000019415 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019416 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019417 # or fails outright, so override atomically:
19418 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019419 ;;
19420
19421interix[3-9]*)
19422 version_type=linux
19423 need_lib_prefix=no
19424 need_version=no
19425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19426 soname_spec='${libname}${release}${shared_ext}$major'
19427 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19428 shlibpath_var=LD_LIBRARY_PATH
19429 shlibpath_overrides_runpath=no
19430 hardcode_into_libs=yes
19431 ;;
19432
19433irix5* | irix6* | nonstopux*)
19434 case $host_os in
19435 nonstopux*) version_type=nonstopux ;;
19436 *)
19437 if test "$lt_cv_prog_gnu_ld" = yes; then
19438 version_type=linux
19439 else
19440 version_type=irix
19441 fi ;;
19442 esac
19443 need_lib_prefix=no
19444 need_version=no
19445 soname_spec='${libname}${release}${shared_ext}$major'
19446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19447 case $host_os in
19448 irix5* | nonstopux*)
19449 libsuff= shlibsuff=
19450 ;;
19451 *)
19452 case $LD in # libtool.m4 will add one of these switches to LD
19453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19454 libsuff= shlibsuff= libmagic=32-bit;;
19455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19456 libsuff=32 shlibsuff=N32 libmagic=N32;;
19457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19458 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19459 *) libsuff= shlibsuff= libmagic=never-match;;
19460 esac
19461 ;;
19462 esac
19463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19464 shlibpath_overrides_runpath=no
19465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19467 hardcode_into_libs=yes
19468 ;;
19469
19470# No shared lib support for Linux oldld, aout, or coff.
19471linux*oldld* | linux*aout* | linux*coff*)
19472 dynamic_linker=no
19473 ;;
19474
19475# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019476linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019477 version_type=linux
19478 need_lib_prefix=no
19479 need_version=no
19480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19481 soname_spec='${libname}${release}${shared_ext}$major'
19482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19483 shlibpath_var=LD_LIBRARY_PATH
19484 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019485
cristy73bd4a52010-10-05 11:24:23 +000019486 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019487 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019488 $as_echo_n "(cached) " >&6
19489else
19490 lt_cv_shlibpath_overrides_runpath=no
19491 save_LDFLAGS=$LDFLAGS
19492 save_libdir=$libdir
19493 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19494 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019496/* end confdefs.h. */
19497
19498int
19499main ()
19500{
19501
19502 ;
19503 return 0;
19504}
19505_ACEOF
19506if ac_fn_cxx_try_link "$LINENO"; then :
19507 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019508 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019509fi
19510fi
19511rm -f core conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019513 LDFLAGS=$save_LDFLAGS
19514 libdir=$save_libdir
19515
19516fi
19517
19518 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019519
19520 # This implies no fast_install, which is unacceptable.
19521 # Some rework will be needed to allow for fast_install
19522 # before this can be enabled.
19523 hardcode_into_libs=yes
19524
19525 # Add ABI-specific directories to the system library path.
19526 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19527
19528 # Append ld.so.conf contents to the search path
19529 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019530 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 +000019531 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019532
cristy73bd4a52010-10-05 11:24:23 +000019533 fi
19534
19535 # We used to test for /lib/ld.so.1 and disable shared libraries on
19536 # powerpc, because MkLinux only supported shared libraries with the
19537 # GNU dynamic linker. Since this was broken with cross compilers,
19538 # most powerpc-linux boxes support dynamic linking these days and
19539 # people can always --disable-shared, the test was removed, and we
19540 # assume the GNU/Linux dynamic linker is in use.
19541 dynamic_linker='GNU/Linux ld.so'
19542 ;;
19543
19544netbsd*)
19545 version_type=sunos
19546 need_lib_prefix=no
19547 need_version=no
19548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19551 dynamic_linker='NetBSD (a.out) ld.so'
19552 else
19553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19554 soname_spec='${libname}${release}${shared_ext}$major'
19555 dynamic_linker='NetBSD ld.elf_so'
19556 fi
19557 shlibpath_var=LD_LIBRARY_PATH
19558 shlibpath_overrides_runpath=yes
19559 hardcode_into_libs=yes
19560 ;;
19561
19562newsos6)
19563 version_type=linux
19564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19565 shlibpath_var=LD_LIBRARY_PATH
19566 shlibpath_overrides_runpath=yes
19567 ;;
19568
19569*nto* | *qnx*)
19570 version_type=qnx
19571 need_lib_prefix=no
19572 need_version=no
19573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19574 soname_spec='${libname}${release}${shared_ext}$major'
19575 shlibpath_var=LD_LIBRARY_PATH
19576 shlibpath_overrides_runpath=no
19577 hardcode_into_libs=yes
19578 dynamic_linker='ldqnx.so'
19579 ;;
19580
19581openbsd*)
19582 version_type=sunos
19583 sys_lib_dlsearch_path_spec="/usr/lib"
19584 need_lib_prefix=no
19585 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19586 case $host_os in
19587 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19588 *) need_version=no ;;
19589 esac
19590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19592 shlibpath_var=LD_LIBRARY_PATH
19593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19594 case $host_os in
19595 openbsd2.[89] | openbsd2.[89].*)
19596 shlibpath_overrides_runpath=no
19597 ;;
19598 *)
19599 shlibpath_overrides_runpath=yes
19600 ;;
19601 esac
19602 else
19603 shlibpath_overrides_runpath=yes
19604 fi
19605 ;;
19606
19607os2*)
19608 libname_spec='$name'
19609 shrext_cmds=".dll"
19610 need_lib_prefix=no
19611 library_names_spec='$libname${shared_ext} $libname.a'
19612 dynamic_linker='OS/2 ld.exe'
19613 shlibpath_var=LIBPATH
19614 ;;
19615
19616osf3* | osf4* | osf5*)
19617 version_type=osf
19618 need_lib_prefix=no
19619 need_version=no
19620 soname_spec='${libname}${release}${shared_ext}$major'
19621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19622 shlibpath_var=LD_LIBRARY_PATH
19623 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19624 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19625 ;;
19626
19627rdos*)
19628 dynamic_linker=no
19629 ;;
19630
19631solaris*)
19632 version_type=linux
19633 need_lib_prefix=no
19634 need_version=no
19635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19636 soname_spec='${libname}${release}${shared_ext}$major'
19637 shlibpath_var=LD_LIBRARY_PATH
19638 shlibpath_overrides_runpath=yes
19639 hardcode_into_libs=yes
19640 # ldd complains unless libraries are executable
19641 postinstall_cmds='chmod +x $lib'
19642 ;;
19643
19644sunos4*)
19645 version_type=sunos
19646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19647 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19648 shlibpath_var=LD_LIBRARY_PATH
19649 shlibpath_overrides_runpath=yes
19650 if test "$with_gnu_ld" = yes; then
19651 need_lib_prefix=no
19652 fi
19653 need_version=yes
19654 ;;
19655
19656sysv4 | sysv4.3*)
19657 version_type=linux
19658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19659 soname_spec='${libname}${release}${shared_ext}$major'
19660 shlibpath_var=LD_LIBRARY_PATH
19661 case $host_vendor in
19662 sni)
19663 shlibpath_overrides_runpath=no
19664 need_lib_prefix=no
19665 runpath_var=LD_RUN_PATH
19666 ;;
19667 siemens)
19668 need_lib_prefix=no
19669 ;;
19670 motorola)
19671 need_lib_prefix=no
19672 need_version=no
19673 shlibpath_overrides_runpath=no
19674 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19675 ;;
19676 esac
19677 ;;
19678
19679sysv4*MP*)
19680 if test -d /usr/nec ;then
19681 version_type=linux
19682 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19683 soname_spec='$libname${shared_ext}.$major'
19684 shlibpath_var=LD_LIBRARY_PATH
19685 fi
19686 ;;
19687
19688sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19689 version_type=freebsd-elf
19690 need_lib_prefix=no
19691 need_version=no
19692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19693 soname_spec='${libname}${release}${shared_ext}$major'
19694 shlibpath_var=LD_LIBRARY_PATH
19695 shlibpath_overrides_runpath=yes
19696 hardcode_into_libs=yes
19697 if test "$with_gnu_ld" = yes; then
19698 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19699 else
19700 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19701 case $host_os in
19702 sco3.2v5*)
19703 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19704 ;;
19705 esac
19706 fi
19707 sys_lib_dlsearch_path_spec='/usr/lib'
19708 ;;
19709
19710tpf*)
19711 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19712 version_type=linux
19713 need_lib_prefix=no
19714 need_version=no
19715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19716 shlibpath_var=LD_LIBRARY_PATH
19717 shlibpath_overrides_runpath=no
19718 hardcode_into_libs=yes
19719 ;;
19720
19721uts4*)
19722 version_type=linux
19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724 soname_spec='${libname}${release}${shared_ext}$major'
19725 shlibpath_var=LD_LIBRARY_PATH
19726 ;;
19727
19728*)
19729 dynamic_linker=no
19730 ;;
19731esac
19732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19733$as_echo "$dynamic_linker" >&6; }
19734test "$dynamic_linker" = no && can_build_shared=no
19735
19736variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19737if test "$GCC" = yes; then
19738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19739fi
19740
19741if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19742 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19743fi
19744if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19745 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19746fi
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
cristy0c60a692010-11-04 01:09:47 +000019783
19784
cristy73bd4a52010-10-05 11:24:23 +000019785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19786$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19787hardcode_action_CXX=
19788if test -n "$hardcode_libdir_flag_spec_CXX" ||
19789 test -n "$runpath_var_CXX" ||
19790 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19791
19792 # We can hardcode non-existent directories.
19793 if test "$hardcode_direct_CXX" != no &&
19794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19795 # have to relink, otherwise we might link with an installed library
19796 # when we should be linking with a yet-to-be-installed one
19797 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19798 test "$hardcode_minus_L_CXX" != no; then
19799 # Linking always hardcodes the temporary library directory.
19800 hardcode_action_CXX=relink
19801 else
19802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19803 hardcode_action_CXX=immediate
19804 fi
19805else
19806 # We cannot hardcode anything, or else we can only hardcode existing
19807 # directories.
19808 hardcode_action_CXX=unsupported
19809fi
19810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19811$as_echo "$hardcode_action_CXX" >&6; }
19812
19813if test "$hardcode_action_CXX" = relink ||
19814 test "$inherit_rpath_CXX" = yes; then
19815 # Fast installation is not supported
19816 enable_fast_install=no
19817elif test "$shlibpath_overrides_runpath" = yes ||
19818 test "$enable_shared" = no; then
19819 # Fast installation is not necessary
19820 enable_fast_install=needless
19821fi
19822
19823
19824
19825
19826
19827
19828
19829 fi # test -n "$compiler"
19830
19831 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019832 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019833 LDCXX=$LD
19834 LD=$lt_save_LD
19835 GCC=$lt_save_GCC
19836 with_gnu_ld=$lt_save_with_gnu_ld
19837 lt_cv_path_LDCXX=$lt_cv_path_LD
19838 lt_cv_path_LD=$lt_save_path_LD
19839 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19840 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19841fi # test "$_lt_caught_CXX_error" != yes
19842
19843ac_ext=c
19844ac_cpp='$CPP $CPPFLAGS'
19845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847ac_compiler_gnu=$ac_cv_c_compiler_gnu
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861 ac_config_commands="$ac_config_commands libtool"
19862
19863
19864
19865
19866# Only expand once:
19867
19868
19869
cristy3ed852e2009-09-05 21:47:34 +000019870
19871
19872# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019873
19874
19875
19876
19877
19878
19879
cristy73bd4a52010-10-05 11:24:23 +000019880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19881$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019882if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019883 $as_echo_n "(cached) " >&6
19884else
19885
19886module=yes
19887eval libltdl_cv_shlibext=$shrext_cmds
19888
19889fi
19890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19891$as_echo "$libltdl_cv_shlibext" >&6; }
19892if test -n "$libltdl_cv_shlibext"; then
19893
19894cat >>confdefs.h <<_ACEOF
19895#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19896_ACEOF
19897
19898fi
19899
19900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19901$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019902if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019903 $as_echo_n "(cached) " >&6
19904else
19905 lt_cv_module_path_var="$shlibpath_var"
19906fi
19907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19908$as_echo "$lt_cv_module_path_var" >&6; }
19909if test -n "$lt_cv_module_path_var"; then
19910
19911cat >>confdefs.h <<_ACEOF
19912#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19913_ACEOF
19914
19915fi
19916
19917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19918$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019919if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019920 $as_echo_n "(cached) " >&6
19921else
19922 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19923fi
19924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19925$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19926if test -n "$lt_cv_sys_dlsearch_path"; then
19927 sys_dlsearch_path=
19928 for dir in $lt_cv_sys_dlsearch_path; do
19929 if test -z "$sys_dlsearch_path"; then
19930 sys_dlsearch_path="$dir"
19931 else
19932 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19933 fi
19934 done
19935
19936cat >>confdefs.h <<_ACEOF
19937#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19938_ACEOF
19939
19940fi
19941
19942
19943LT_DLLOADERS=
19944
19945
19946ac_ext=c
19947ac_cpp='$CPP $CPPFLAGS'
19948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19950ac_compiler_gnu=$ac_cv_c_compiler_gnu
19951
19952
19953LIBADD_DLOPEN=
19954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19955$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019956if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019957 $as_echo_n "(cached) " >&6
19958else
19959 ac_func_search_save_LIBS=$LIBS
19960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961/* end confdefs.h. */
19962
19963/* Override any GCC internal prototype to avoid an error.
19964 Use char because int might match the return type of a GCC
19965 builtin and then its argument prototype would still apply. */
19966#ifdef __cplusplus
19967extern "C"
19968#endif
19969char dlopen ();
19970int
19971main ()
19972{
19973return dlopen ();
19974 ;
19975 return 0;
19976}
19977_ACEOF
19978for ac_lib in '' dl; do
19979 if test -z "$ac_lib"; then
19980 ac_res="none required"
19981 else
19982 ac_res=-l$ac_lib
19983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19984 fi
19985 if ac_fn_c_try_link "$LINENO"; then :
19986 ac_cv_search_dlopen=$ac_res
19987fi
19988rm -f core conftest.err conftest.$ac_objext \
19989 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019990 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019991 break
19992fi
19993done
cristyda16f162011-02-19 23:52:17 +000019994if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019995
19996else
19997 ac_cv_search_dlopen=no
19998fi
19999rm conftest.$ac_ext
20000LIBS=$ac_func_search_save_LIBS
20001fi
20002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20003$as_echo "$ac_cv_search_dlopen" >&6; }
20004ac_res=$ac_cv_search_dlopen
20005if test "$ac_res" != no; then :
20006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20007
20008$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20009
20010 if test "$ac_cv_search_dlopen" != "none required" ; then
20011 LIBADD_DLOPEN="-ldl"
20012 fi
20013 libltdl_cv_lib_dl_dlopen="yes"
20014 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20015else
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017/* end confdefs.h. */
20018#if HAVE_DLFCN_H
20019# include <dlfcn.h>
20020#endif
20021
20022int
20023main ()
20024{
20025dlopen(0, 0);
20026 ;
20027 return 0;
20028}
20029_ACEOF
20030if ac_fn_c_try_link "$LINENO"; then :
20031
20032$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20033
20034 libltdl_cv_func_dlopen="yes"
20035 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20036else
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20038$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020039if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020040 $as_echo_n "(cached) " >&6
20041else
20042 ac_check_lib_save_LIBS=$LIBS
20043LIBS="-lsvld $LIBS"
20044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20045/* end confdefs.h. */
20046
20047/* Override any GCC internal prototype to avoid an error.
20048 Use char because int might match the return type of a GCC
20049 builtin and then its argument prototype would still apply. */
20050#ifdef __cplusplus
20051extern "C"
20052#endif
20053char dlopen ();
20054int
20055main ()
20056{
20057return dlopen ();
20058 ;
20059 return 0;
20060}
20061_ACEOF
20062if ac_fn_c_try_link "$LINENO"; then :
20063 ac_cv_lib_svld_dlopen=yes
20064else
20065 ac_cv_lib_svld_dlopen=no
20066fi
20067rm -f core conftest.err conftest.$ac_objext \
20068 conftest$ac_exeext conftest.$ac_ext
20069LIBS=$ac_check_lib_save_LIBS
20070fi
20071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20072$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020073if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020074
20075$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20076
20077 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20078 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20079fi
20080
20081fi
20082rm -f core conftest.err conftest.$ac_objext \
20083 conftest$ac_exeext conftest.$ac_ext
20084fi
20085
20086if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20087then
20088 lt_save_LIBS="$LIBS"
20089 LIBS="$LIBS $LIBADD_DLOPEN"
20090 for ac_func in dlerror
20091do :
20092 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020093if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020094 cat >>confdefs.h <<_ACEOF
20095#define HAVE_DLERROR 1
20096_ACEOF
20097
20098fi
20099done
20100
20101 LIBS="$lt_save_LIBS"
20102fi
20103
20104
20105LIBADD_SHL_LOAD=
20106ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020107if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020108
20109$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20110
20111 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20112else
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20114$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020115if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020116 $as_echo_n "(cached) " >&6
20117else
20118 ac_check_lib_save_LIBS=$LIBS
20119LIBS="-ldld $LIBS"
20120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20121/* end confdefs.h. */
20122
20123/* Override any GCC internal prototype to avoid an error.
20124 Use char because int might match the return type of a GCC
20125 builtin and then its argument prototype would still apply. */
20126#ifdef __cplusplus
20127extern "C"
20128#endif
20129char shl_load ();
20130int
20131main ()
20132{
20133return shl_load ();
20134 ;
20135 return 0;
20136}
20137_ACEOF
20138if ac_fn_c_try_link "$LINENO"; then :
20139 ac_cv_lib_dld_shl_load=yes
20140else
20141 ac_cv_lib_dld_shl_load=no
20142fi
20143rm -f core conftest.err conftest.$ac_objext \
20144 conftest$ac_exeext conftest.$ac_ext
20145LIBS=$ac_check_lib_save_LIBS
20146fi
20147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20148$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020149if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020150
20151$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20152
20153 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20154 LIBADD_SHL_LOAD="-ldld"
20155fi
20156
20157fi
20158
20159
20160
20161case $host_os in
20162darwin[1567].*)
20163# We only want this for pre-Mac OS X 10.4.
20164 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020165if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020166
20167$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20168
20169 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20170fi
20171
20172 ;;
20173beos*)
20174 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20175 ;;
20176cygwin* | mingw* | os2* | pw32*)
20177 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20178"
cristyda16f162011-02-19 23:52:17 +000020179if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020180 ac_have_decl=1
20181else
20182 ac_have_decl=0
20183fi
20184
20185cat >>confdefs.h <<_ACEOF
20186#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20187_ACEOF
20188
20189 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20190 ;;
20191esac
20192
20193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20194$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020195if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020196 $as_echo_n "(cached) " >&6
20197else
20198 ac_check_lib_save_LIBS=$LIBS
20199LIBS="-ldld $LIBS"
20200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201/* end confdefs.h. */
20202
20203/* Override any GCC internal prototype to avoid an error.
20204 Use char because int might match the return type of a GCC
20205 builtin and then its argument prototype would still apply. */
20206#ifdef __cplusplus
20207extern "C"
20208#endif
20209char dld_link ();
20210int
20211main ()
20212{
20213return dld_link ();
20214 ;
20215 return 0;
20216}
20217_ACEOF
20218if ac_fn_c_try_link "$LINENO"; then :
20219 ac_cv_lib_dld_dld_link=yes
20220else
20221 ac_cv_lib_dld_dld_link=no
20222fi
20223rm -f core conftest.err conftest.$ac_objext \
20224 conftest$ac_exeext conftest.$ac_ext
20225LIBS=$ac_check_lib_save_LIBS
20226fi
20227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20228$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020229if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020230
20231$as_echo "#define HAVE_DLD 1" >>confdefs.h
20232
20233 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20234fi
20235
20236
20237
20238
20239LT_DLPREOPEN=
20240if test -n "$LT_DLLOADERS"
20241then
20242 for lt_loader in $LT_DLLOADERS; do
20243 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20244 done
20245
20246$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20247
20248fi
20249
20250
20251LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20252
20253
20254ac_ext=c
20255ac_cpp='$CPP $CPPFLAGS'
20256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20258ac_compiler_gnu=$ac_cv_c_compiler_gnu
20259
20260
20261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20262$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020263if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020264 $as_echo_n "(cached) " >&6
20265else
20266 lt_cv_sys_symbol_underscore=no
20267 cat > conftest.$ac_ext <<_LT_EOF
20268void nm_test_func(){}
20269int main(){nm_test_func;return 0;}
20270_LT_EOF
20271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20272 (eval $ac_compile) 2>&5
20273 ac_status=$?
20274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20275 test $ac_status = 0; }; then
20276 # Now try to grab the symbols.
20277 ac_nlist=conftest.nm
20278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20279 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20280 ac_status=$?
20281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20282 test $ac_status = 0; } && test -s "$ac_nlist"; then
20283 # See whether the symbols have a leading underscore.
20284 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20285 lt_cv_sys_symbol_underscore=yes
20286 else
20287 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20288 :
20289 else
20290 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20291 fi
20292 fi
20293 else
20294 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20295 fi
20296 else
20297 echo "configure: failed program was:" >&5
20298 cat conftest.c >&5
20299 fi
20300 rm -rf conftest*
20301
20302fi
20303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20304$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20305 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20306
20307
20308if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20309 if test x"$libltdl_cv_func_dlopen" = xyes ||
20310 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20312$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020313if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020314 $as_echo_n "(cached) " >&6
20315else
20316 libltdl_cv_need_uscore=unknown
20317 save_LIBS="$LIBS"
20318 LIBS="$LIBS $LIBADD_DLOPEN"
20319 if test "$cross_compiling" = yes; then :
20320 libltdl_cv_need_uscore=cross
20321else
20322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20323 lt_status=$lt_dlunknown
20324 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020325#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020326#include "confdefs.h"
20327
20328#if HAVE_DLFCN_H
20329#include <dlfcn.h>
20330#endif
20331
20332#include <stdio.h>
20333
20334#ifdef RTLD_GLOBAL
20335# define LT_DLGLOBAL RTLD_GLOBAL
20336#else
20337# ifdef DL_GLOBAL
20338# define LT_DLGLOBAL DL_GLOBAL
20339# else
20340# define LT_DLGLOBAL 0
20341# endif
20342#endif
20343
20344/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20345 find out it does not work in some platform. */
20346#ifndef LT_DLLAZY_OR_NOW
20347# ifdef RTLD_LAZY
20348# define LT_DLLAZY_OR_NOW RTLD_LAZY
20349# else
20350# ifdef DL_LAZY
20351# define LT_DLLAZY_OR_NOW DL_LAZY
20352# else
20353# ifdef RTLD_NOW
20354# define LT_DLLAZY_OR_NOW RTLD_NOW
20355# else
20356# ifdef DL_NOW
20357# define LT_DLLAZY_OR_NOW DL_NOW
20358# else
20359# define LT_DLLAZY_OR_NOW 0
20360# endif
20361# endif
20362# endif
20363# endif
20364#endif
20365
cristy0c60a692010-11-04 01:09:47 +000020366/* When -fvisbility=hidden is used, assume the code has been annotated
20367 correspondingly for the symbols needed. */
20368#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020369int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020370#endif
20371
cristyda16f162011-02-19 23:52:17 +000020372int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020373int main ()
20374{
20375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20376 int status = $lt_dlunknown;
20377
20378 if (self)
20379 {
20380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020381 else
20382 {
20383 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20384 else puts (dlerror ());
20385 }
cristy73bd4a52010-10-05 11:24:23 +000020386 /* dlclose (self); */
20387 }
20388 else
20389 puts (dlerror ());
20390
20391 return status;
20392}
20393_LT_EOF
20394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20395 (eval $ac_link) 2>&5
20396 ac_status=$?
20397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20398 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20399 (./conftest; exit; ) >&5 2>/dev/null
20400 lt_status=$?
20401 case x$lt_status in
20402 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20403 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20404 x$lt_dlunknown|x*) ;;
20405 esac
20406 else :
20407 # compilation failed
20408
20409 fi
20410fi
20411rm -fr conftest*
20412
20413 LIBS="$save_LIBS"
20414
20415fi
20416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20417$as_echo "$libltdl_cv_need_uscore" >&6; }
20418 fi
20419fi
20420
20421if test x"$libltdl_cv_need_uscore" = xyes; then
20422
20423$as_echo "#define NEED_USCORE 1" >>confdefs.h
20424
20425fi
20426
20427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20428$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020429if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020430 $as_echo_n "(cached) " >&6
20431else
20432 # PORTME does your system automatically load deplibs for dlopen?
20433 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20434 # For now, we just catch OSes we know something about -- in the
20435 # future, we'll try test this programmatically.
20436 lt_cv_sys_dlopen_deplibs=unknown
20437 case $host_os in
20438 aix3*|aix4.1.*|aix4.2.*)
20439 # Unknown whether this is true for these versions of AIX, but
20440 # we want this `case' here to explicitly catch those versions.
20441 lt_cv_sys_dlopen_deplibs=unknown
20442 ;;
20443 aix[4-9]*)
20444 lt_cv_sys_dlopen_deplibs=yes
20445 ;;
20446 amigaos*)
20447 case $host_cpu in
20448 powerpc)
20449 lt_cv_sys_dlopen_deplibs=no
20450 ;;
20451 esac
20452 ;;
20453 darwin*)
20454 # Assuming the user has installed a libdl from somewhere, this is true
20455 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20456 lt_cv_sys_dlopen_deplibs=yes
20457 ;;
20458 freebsd* | dragonfly*)
20459 lt_cv_sys_dlopen_deplibs=yes
20460 ;;
cristy0c60a692010-11-04 01:09:47 +000020461 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020462 # GNU and its variants, using gnu ld.so (Glibc)
20463 lt_cv_sys_dlopen_deplibs=yes
20464 ;;
20465 hpux10*|hpux11*)
20466 lt_cv_sys_dlopen_deplibs=yes
20467 ;;
20468 interix*)
20469 lt_cv_sys_dlopen_deplibs=yes
20470 ;;
20471 irix[12345]*|irix6.[01]*)
20472 # Catch all versions of IRIX before 6.2, and indicate that we don't
20473 # know how it worked for any of those versions.
20474 lt_cv_sys_dlopen_deplibs=unknown
20475 ;;
20476 irix*)
20477 # The case above catches anything before 6.2, and it's known that
20478 # at 6.2 and later dlopen does load deplibs.
20479 lt_cv_sys_dlopen_deplibs=yes
20480 ;;
20481 netbsd*)
20482 lt_cv_sys_dlopen_deplibs=yes
20483 ;;
20484 openbsd*)
20485 lt_cv_sys_dlopen_deplibs=yes
20486 ;;
20487 osf[1234]*)
20488 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20489 # it did *not* use an RPATH in a shared library to find objects the
20490 # library depends on, so we explicitly say `no'.
20491 lt_cv_sys_dlopen_deplibs=no
20492 ;;
20493 osf5.0|osf5.0a|osf5.1)
20494 # dlopen *does* load deplibs and with the right loader patch applied
20495 # it even uses RPATH in a shared library to search for shared objects
20496 # that the library depends on, but there's no easy way to know if that
20497 # patch is installed. Since this is the case, all we can really
20498 # say is unknown -- it depends on the patch being installed. If
20499 # it is, this changes to `yes'. Without it, it would be `no'.
20500 lt_cv_sys_dlopen_deplibs=unknown
20501 ;;
20502 osf*)
20503 # the two cases above should catch all versions of osf <= 5.1. Read
20504 # the comments above for what we know about them.
20505 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20506 # is used to find them so we can finally say `yes'.
20507 lt_cv_sys_dlopen_deplibs=yes
20508 ;;
20509 qnx*)
20510 lt_cv_sys_dlopen_deplibs=yes
20511 ;;
20512 solaris*)
20513 lt_cv_sys_dlopen_deplibs=yes
20514 ;;
20515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20516 libltdl_cv_sys_dlopen_deplibs=yes
20517 ;;
20518 esac
20519
20520fi
20521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20522$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20523if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20524
20525$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20526
20527fi
20528
20529:
20530
20531for ac_header in argz.h
20532do :
20533 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20534"
cristyda16f162011-02-19 23:52:17 +000020535if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020536 cat >>confdefs.h <<_ACEOF
20537#define HAVE_ARGZ_H 1
20538_ACEOF
20539
20540fi
20541
20542done
20543
20544
20545ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20546# include <argz.h>
20547#endif
20548"
cristyda16f162011-02-19 23:52:17 +000020549if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020550
20551cat >>confdefs.h <<_ACEOF
20552#define HAVE_ERROR_T 1
20553_ACEOF
20554
20555
20556else
20557
20558$as_echo "#define error_t int" >>confdefs.h
20559
20560
20561$as_echo "#define __error_t_defined 1" >>confdefs.h
20562
20563fi
20564
20565
20566ARGZ_H=
20567for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20568 argz_next argz_stringify
20569do :
20570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20571ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020572if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020573 cat >>confdefs.h <<_ACEOF
20574#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20575_ACEOF
20576
20577else
20578 ARGZ_H=argz.h;
20579
20580 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20581
20582fi
20583done
20584
20585
20586if test -z "$ARGZ_H"; then :
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20588$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020589if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020590 $as_echo_n "(cached) " >&6
20591else
20592 case $host_os in #(
20593 *cygwin*)
20594 lt_cv_sys_argz_works=no
20595 if test "$cross_compiling" != no; then
20596 lt_cv_sys_argz_works="guessing no"
20597 else
20598 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20599 save_IFS=$IFS
20600 IFS=-.
20601 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20602 IFS=$save_IFS
20603 lt_os_major=${2-0}
20604 lt_os_minor=${3-0}
20605 lt_os_micro=${4-0}
20606 if test "$lt_os_major" -gt 1 \
20607 || { test "$lt_os_major" -eq 1 \
20608 && { test "$lt_os_minor" -gt 5 \
20609 || { test "$lt_os_minor" -eq 5 \
20610 && test "$lt_os_micro" -gt 24; }; }; }; then
20611 lt_cv_sys_argz_works=yes
20612 fi
20613 fi
20614 ;; #(
20615 *) lt_cv_sys_argz_works=yes ;;
20616 esac
20617fi
20618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20619$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020620 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020621
20622$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20623
20624else
20625 ARGZ_H=argz.h
20626
20627
20628 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20629
20630fi
20631fi
20632
20633
20634
20635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20636$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020637if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020638 $as_echo_n "(cached) " >&6
20639else
20640 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20641 libltdl_cv_preloaded_symbols=yes
20642 else
20643 libltdl_cv_preloaded_symbols=no
20644 fi
20645
20646fi
20647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20648$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20649if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20650
20651$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20652
20653fi
20654
20655# Set options
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667# Check whether --with-included_ltdl was given.
20668if test "${with_included_ltdl+set}" = set; then :
20669 withval=$with_included_ltdl;
20670fi
20671
20672
20673if test "x$with_included_ltdl" != xyes; then
20674 # We are not being forced to use the included libltdl sources, so
20675 # decide whether there is a useful installed version we can use.
20676 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20677
20678"
cristyda16f162011-02-19 23:52:17 +000020679if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020680 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20681 #include <ltdl.h>
20682"
cristyda16f162011-02-19 23:52:17 +000020683if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20685$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020686if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020687 $as_echo_n "(cached) " >&6
20688else
20689 ac_check_lib_save_LIBS=$LIBS
20690LIBS="-lltdl $LIBS"
20691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20692/* end confdefs.h. */
20693
20694/* Override any GCC internal prototype to avoid an error.
20695 Use char because int might match the return type of a GCC
20696 builtin and then its argument prototype would still apply. */
20697#ifdef __cplusplus
20698extern "C"
20699#endif
20700char lt_dladvise_preload ();
20701int
20702main ()
20703{
20704return lt_dladvise_preload ();
20705 ;
20706 return 0;
20707}
20708_ACEOF
20709if ac_fn_c_try_link "$LINENO"; then :
20710 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20711else
20712 ac_cv_lib_ltdl_lt_dladvise_preload=no
20713fi
20714rm -f core conftest.err conftest.$ac_objext \
20715 conftest$ac_exeext conftest.$ac_ext
20716LIBS=$ac_check_lib_save_LIBS
20717fi
20718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20719$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020720if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020721 with_included_ltdl=no
20722else
20723 with_included_ltdl=yes
20724fi
20725
20726else
20727 with_included_ltdl=yes
20728fi
20729
20730else
20731 with_included_ltdl=yes
20732fi
20733
20734
20735fi
20736
20737
20738
20739
20740# Check whether --with-ltdl_include was given.
20741if test "${with_ltdl_include+set}" = set; then :
20742 withval=$with_ltdl_include;
20743fi
20744
20745
20746if test -n "$with_ltdl_include"; then
20747 if test -f "$with_ltdl_include/ltdl.h"; then :
20748 else
cristy98dddb52010-11-04 00:30:15 +000020749 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020750 fi
20751else
20752 with_ltdl_include=no
20753fi
20754
20755
20756# Check whether --with-ltdl_lib was given.
20757if test "${with_ltdl_lib+set}" = set; then :
20758 withval=$with_ltdl_lib;
20759fi
20760
20761
20762if test -n "$with_ltdl_lib"; then
20763 if test -f "$with_ltdl_lib/libltdl.la"; then :
20764 else
cristy98dddb52010-11-04 00:30:15 +000020765 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020766 fi
20767else
20768 with_ltdl_lib=no
20769fi
20770
20771case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20772 ,yes,no,no,)
20773 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020774 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020775 "") enable_ltdl_convenience=yes
20776 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20777esac
20778LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20779LTDLDEPS=$LIBLTDL
20780LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20781
20782
20783
20784
20785
20786# For backwards non-gettext consistent compatibility...
20787INCLTDL="$LTDLINCL"
20788
20789
20790 ;;
20791 ,no,no,no,)
20792 # If the included ltdl is not to be used, then use the
20793 # preinstalled libltdl we found.
20794
20795$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20796
20797 LIBLTDL=-lltdl
20798 LTDLDEPS=
20799 LTDLINCL=
20800 ;;
20801 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020802 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020803 ;;
20804 *) with_included_ltdl=no
20805 LIBLTDL="-L$with_ltdl_lib -lltdl"
20806 LTDLDEPS=
20807 LTDLINCL="-I$with_ltdl_include"
20808 ;;
20809esac
20810INCLTDL="$LTDLINCL"
20811
20812# Report our decision...
20813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20814$as_echo_n "checking where to find libltdl headers... " >&6; }
20815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20816$as_echo "$LTDLINCL" >&6; }
20817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20818$as_echo_n "checking where to find libltdl library... " >&6; }
20819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20820$as_echo "$LIBLTDL" >&6; }
20821
20822
20823
20824# Check whether --enable-ltdl-install was given.
20825if test "${enable_ltdl_install+set}" = set; then :
20826 enableval=$enable_ltdl_install;
20827fi
20828
20829
20830case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20831 *yes*) ;;
20832 *) enable_ltdl_convenience=yes ;;
20833esac
20834
20835 if test x"${enable_ltdl_install-no}" != xno; then
20836 INSTALL_LTDL_TRUE=
20837 INSTALL_LTDL_FALSE='#'
20838else
20839 INSTALL_LTDL_TRUE='#'
20840 INSTALL_LTDL_FALSE=
20841fi
20842
20843 if test x"${enable_ltdl_convenience-no}" != xno; then
20844 CONVENIENCE_LTDL_TRUE=
20845 CONVENIENCE_LTDL_FALSE='#'
20846else
20847 CONVENIENCE_LTDL_TRUE='#'
20848 CONVENIENCE_LTDL_FALSE=
20849fi
20850
20851
20852
20853
20854
20855
cristy73bd4a52010-10-05 11:24:23 +000020856# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20857# the user used. This is so that ltdl.h can pick up the parent projects
20858# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20859# definitions required by ltdl.c.
20860# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20861
20862
20863
20864for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20865do :
20866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20867ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20868"
cristy98dddb52010-11-04 00:30:15 +000020869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020870 cat >>confdefs.h <<_ACEOF
20871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20872_ACEOF
20873
20874fi
20875
20876done
20877
20878
20879for ac_func in closedir opendir readdir
20880do :
20881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20882ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020883if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020884 cat >>confdefs.h <<_ACEOF
20885#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20886_ACEOF
20887
20888else
20889
20890
20891 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20892
20893fi
20894done
20895
20896for ac_func in strlcat strlcpy
20897do :
20898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20899ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020900if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020901 cat >>confdefs.h <<_ACEOF
20902#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20903_ACEOF
20904
20905else
20906
20907
20908 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20909
20910fi
20911done
20912
20913
20914
20915cat >>confdefs.h <<_ACEOF
20916#define LT_LIBEXT "$libext"
20917_ACEOF
20918
20919
cristyda16f162011-02-19 23:52:17 +000020920name=
20921eval "lt_libprefix=\"$libname_spec\""
20922
20923cat >>confdefs.h <<_ACEOF
20924#define LT_LIBPREFIX "$lt_libprefix"
20925_ACEOF
20926
20927
cristy73bd4a52010-10-05 11:24:23 +000020928name=ltdl
cristyda16f162011-02-19 23:52:17 +000020929eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020930
20931
20932
20933
20934
20935
20936
20937
20938# Only expand once:
20939
20940
cristy3ed852e2009-09-05 21:47:34 +000020941
20942# Check to see if building shared libraries
20943libtool_build_shared_libs='no'
20944if test "$enable_shared" = 'yes'; then
20945 libtool_build_shared_libs='yes'
20946fi
20947
20948# Check to see if building static libraries
20949libtool_build_static_libs='no'
20950if test "$enable_static" = 'yes'; then
20951 libtool_build_static_libs='yes'
20952fi
20953
cristy73bd4a52010-10-05 11:24:23 +000020954 if test "${libtool_build_shared_libs}" = 'yes'; then
20955 WITH_SHARED_LIBS_TRUE=
20956 WITH_SHARED_LIBS_FALSE='#'
20957else
20958 WITH_SHARED_LIBS_TRUE='#'
20959 WITH_SHARED_LIBS_FALSE=
20960fi
20961
cristy3ed852e2009-09-05 21:47:34 +000020962#
20963# Enable support for building loadable modules
20964#
20965
20966# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020967if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020968 withval=$with_modules; with_modules=$withval
20969else
cristy5a1cefd2010-01-06 20:42:35 +000020970 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020971fi
20972
20973
20974# Only allow building loadable modules if we are building shared libraries
20975if test "$with_modules" != 'no' ; then
20976 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020977 { $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 +000020978$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20979 with_modules='no'
20980 fi
20981fi
20982if test "$with_modules" != 'no'; then
20983
cristy8b350f62009-11-15 23:12:43 +000020984$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020985
20986fi
cristy73bd4a52010-10-05 11:24:23 +000020987 if test "$with_modules" != 'no'; then
20988 WITH_MODULES_TRUE=
20989 WITH_MODULES_FALSE='#'
20990else
20991 WITH_MODULES_TRUE='#'
20992 WITH_MODULES_FALSE=
20993fi
20994
cristy3ed852e2009-09-05 21:47:34 +000020995
20996# Enable building/use of libltdl if we are building shared libraries regardless
20997# of whether modules are built or not.
20998with_ltdl='no'
20999if test "$libtool_build_shared_libs" != 'no'; then
21000 with_ltdl='yes'
21001fi
21002
cristy73bd4a52010-10-05 11:24:23 +000021003 if test "$with_ltdl" != 'no'; then
21004 WITH_LTDL_TRUE=
21005 WITH_LTDL_FALSE='#'
21006else
21007 WITH_LTDL_TRUE='#'
21008 WITH_LTDL_FALSE=
21009fi
21010
cristy3ed852e2009-09-05 21:47:34 +000021011if test "$with_ltdl" != 'no'; then
21012
cristy8b350f62009-11-15 23:12:43 +000021013$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021014
21015
21016 # Set DLLDFLAGS
21017 if test X"$enable_shared" = Xyes; then
21018 DLLDFLAGS=-export-dynamic
21019
21020 fi
21021fi
21022
21023# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021024# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021025# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021026if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021027 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21028else
21029 enable_delegate_build='no'
21030fi
21031
21032
21033# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021034if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021035 enableval=$enable_deprecated; enable_deprecated=$enableval
21036else
21037 enable_deprecated='no'
21038fi
21039
21040
21041if test "$enable_deprecated" = 'yes'; then
21042
cristy8b350f62009-11-15 23:12:43 +000021043$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021044
21045else
21046 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21047fi
21048
21049# Build a version of ImageMagick which operates uninstalled.
21050# Used to build distributions located via MAGICK_HOME / executable path
21051# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021052if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021053 enableval=$enable_installed; enable_installed=$enableval
21054else
21055 enable_installed='yes'
21056fi
21057
21058
21059if test "$enable_installed" = 'yes'; then
21060
cristy8b350f62009-11-15 23:12:43 +000021061$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021062
21063else
21064 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21065fi
21066
21067# Permit enciphering and deciphering image pixels.
21068# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021069if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021070 enableval=$enable_cipher; enable_cipher=$enableval
21071else
21072 enable_cipher='yes'
21073fi
21074
21075
21076if test "$enable_cipher" = 'yes'; then
21077
cristy8b350f62009-11-15 23:12:43 +000021078$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021079
21080fi
21081
cristy6e3607c2011-09-13 13:59:17 +000021082# Build a zero-configuration version of ImageMagick.
21083# Check whether --enable-zero-configuration was given.
21084if test "${enable_zero_configuration+set}" = set; then :
21085 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021086else
cristy6e3607c2011-09-13 13:59:17 +000021087 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021088fi
21089
21090
cristy6e3607c2011-09-13 13:59:17 +000021091if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021092
cristy6e3607c2011-09-13 13:59:17 +000021093$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021094
cristy81af5702011-09-13 14:20:58 +000021095 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021096fi
21097
21098# Build a high dynamic range version of ImageMagick.
21099# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021100if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021101 enableval=$enable_hdri; enable_hdri=$enableval
21102else
21103 enable_hdri='no'
21104fi
21105
21106
21107MAGICK_HDRI=""
21108if test "$enable_hdri" = 'yes'; then
21109 MAGICK_HDRI="HDRI"
21110
cristy8b350f62009-11-15 23:12:43 +000021111$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021112
cristyfd9dcd42010-08-08 18:07:02 +000021113 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021114fi
21115
cristy3ed852e2009-09-05 21:47:34 +000021116# Build a version of ImageMagick with assert statements.
21117# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021118if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021119 enableval=$enable_assert; enable_assert=$enableval
21120else
21121 enable_assert='yes'
21122fi
21123
21124
21125if test "$enable_assert" = 'no'; then
21126
cristy8b350f62009-11-15 23:12:43 +000021127$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021128
21129fi
21130
21131# Add configure option --enable-maintainer-mode which enables dependency
21132# checking and generation useful to package maintainers. This is made an
21133# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000021134
21135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21136$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21137 # Check whether --enable-maintainer-mode was given.
21138if test "${enable_maintainer_mode+set}" = set; then :
21139 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21140else
21141 USE_MAINTAINER_MODE=no
21142fi
21143
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21145$as_echo "$USE_MAINTAINER_MODE" >&6; }
21146 if test $USE_MAINTAINER_MODE = yes; then
21147 MAINTAINER_MODE_TRUE=
21148 MAINTAINER_MODE_FALSE='#'
21149else
21150 MAINTAINER_MODE_TRUE='#'
21151 MAINTAINER_MODE_FALSE=
21152fi
21153
21154 MAINT=$MAINTAINER_MODE_TRUE
21155
21156
cristy3ed852e2009-09-05 21:47:34 +000021157
21158
21159# Enable ccmalloc memory debugging support
21160# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021161if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021162 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21163else
21164 enable_ccmalloc='no'
21165fi
21166
21167
21168# Enable Electric Fence memory debugging support
21169# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021170if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021171 enableval=$enable_efence; enable_efence=$enableval
21172else
21173 enable_efence='no'
21174fi
21175
21176
21177# Enable prof-based profiling support
21178# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021179if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021180 enableval=$enable_prof; enable_prof=$enableval
21181else
21182 enable_prof='no'
21183fi
21184
21185
21186# Enable gprof-based profiling support
21187# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021188if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021189 enableval=$enable_gprof; enable_gprof=$enableval
21190else
21191 enable_gprof='no'
21192fi
21193
21194
21195# Enable gcov-based profiling support
21196# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021197if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021198 enableval=$enable_gcov; enable_gcov=$enableval
21199else
21200 enable_gcov='no'
21201fi
21202
21203
21204enable_profiling='no'
21205if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21206 enable_profiling='yes'
21207 if test "$libtool_build_shared_libs" = 'yes'; then
21208 echo "Warning: Can not profile code using shared libraries"
21209 fi
21210fi
21211
21212# Magick API method prefix
21213
21214# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021215if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021216 withval=$with_method_prefix; with_method_prefix=$enableval
21217else
21218 with_method_prefix=''
21219fi
21220
21221
21222if test "$with_method_prefix" != ''; then
21223
21224cat >>confdefs.h <<_ACEOF
21225#define NAMESPACE_PREFIX $with_method_prefix
21226_ACEOF
21227
21228fi
21229
21230# Number of bits in a Quantum
21231
21232# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021233if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021234 withval=$with_quantum_depth; with_quantum_depth=$withval
21235else
21236 with_quantum_depth=16
21237fi
21238
21239
21240if test "$with_quantum_depth" != '8'; then
21241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21242fi
21243
21244case "${with_quantum_depth}" in
21245 8 ) ;;
21246 16 ) ;;
21247 32 ) ;;
21248 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021249 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021250esac
21251QUANTUM_DEPTH="$with_quantum_depth"
21252
21253cat >>confdefs.h <<_ACEOF
21254#define QUANTUM_DEPTH $QUANTUM_DEPTH
21255_ACEOF
21256
21257
21258# Set pixel cache threshold
21259
21260# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021261if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021262 withval=$with_cache; with_cache=$withval
21263else
21264 with_cache=''
21265fi
21266
21267
21268if test "$with_cache" != ''; then
21269
21270cat >>confdefs.h <<_ACEOF
21271#define PixelCacheThreshold $with_cache
21272_ACEOF
21273
21274 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21275fi
21276
21277# Disable/Enable support for full delegate paths
21278
21279# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021280if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021281 withval=$with_frozenpaths; with_frozenpaths=$withval
21282else
21283 with_frozenpaths='no'
21284fi
21285
21286
21287# Enable build/install of Magick++
21288
21289# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021290if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021291 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21292else
21293 with_magick_plus_plus='yes'
21294fi
21295
21296
21297# Disable build/install of PerlMagick.
21298
21299# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021300if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021301 withval=$with_perl; with_perl=$withval
21302else
cristyb5f4e2f2010-04-25 00:49:11 +000021303 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021304fi
21305
21306
21307# Options to pass when configuring PerlMagick
21308
21309# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021310if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021311 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021312fi
21313
21314
cristy3ed852e2009-09-05 21:47:34 +000021315
21316# Enable umem, object-caching memory allocation library.
21317
21318# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021319if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021320 withval=$with_umem; with_umem=$withval
21321else
21322 with_umem='no'
21323fi
21324
21325if test "$with_umem" != 'yes' ; then
21326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21327fi
21328
21329#
21330# Specify path to shared libstdc++ if not in normal location
21331#
21332
21333# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021334if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021335 withval=$with_libstdc; with_libstdc=$withval
21336else
21337 with_libstdc=''
21338fi
21339
21340
21341if test "$with_libstdc" != ''; then
21342 if test -d "$with_libstdc"; then
21343 LIBSTDCLDFLAGS="-L$with_libstdc"
21344 fi
21345fi
21346
21347
21348# Does gcc required -traditional?
21349if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021351$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021352if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021353 $as_echo_n "(cached) " >&6
21354else
21355 ac_pattern="Autoconf.*'x'"
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 <sgtty.h>
21359Autoconf TIOCGETP
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
21364else
21365 ac_cv_prog_gcc_traditional=no
21366fi
21367rm -f conftest*
21368
21369
21370 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021372/* end confdefs.h. */
21373#include <termio.h>
21374Autoconf TCGETA
21375_ACEOF
21376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021377 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021378 ac_cv_prog_gcc_traditional=yes
21379fi
21380rm -f conftest*
21381
21382 fi
21383fi
cristy8b350f62009-11-15 23:12:43 +000021384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021385$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21386 if test $ac_cv_prog_gcc_traditional = yes; then
21387 CC="$CC -traditional"
21388 fi
21389fi
21390
21391
21392########
21393#
21394# Set defines required to build DLLs and modules using MinGW
21395#
21396########
21397# These options are set for multi-thread DLL module build
21398# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21399# module: _DLL
21400# executable/Magick++: _DLL _MAGICKMOD_
21401MODULE_EXTRA_CPPFLAGS=''
21402LIBRARY_EXTRA_CPPFLAGS=''
21403if test "${native_win32_build}" = 'yes'; then
21404 if test "${libtool_build_shared_libs}" = 'yes'; then
21405 CPPFLAGS="$CPPFLAGS -D_DLL"
21406 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21407 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21408 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21409 if test "$with_modules" = 'yes'; then
21410 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21411 else
21412 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21413 fi
21414 else
21415 CPPFLAGS="$CPPFLAGS -D_LIB"
21416 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21417 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21418 fi
21419 if test "$with_threads" = 'yes'; then
21420 CPPFLAGS="$CPPFLAGS -D_MT"
21421 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21422 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21423 fi
21424fi
21425
21426
21427
21428# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021430$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021431if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021432 $as_echo_n "(cached) " >&6
21433else
cristy8b350f62009-11-15 23:12:43 +000021434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021435/* end confdefs.h. */
21436#include <stdlib.h>
21437#include <stdarg.h>
21438#include <string.h>
21439#include <float.h>
21440
21441int
21442main ()
21443{
21444
21445 ;
21446 return 0;
21447}
21448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021449if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021450 ac_cv_header_stdc=yes
21451else
cristy8b350f62009-11-15 23:12:43 +000021452 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021453fi
cristy3ed852e2009-09-05 21:47:34 +000021454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455
21456if test $ac_cv_header_stdc = yes; then
21457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021459/* end confdefs.h. */
21460#include <string.h>
21461
21462_ACEOF
21463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021464 $EGREP "memchr" >/dev/null 2>&1; then :
21465
cristy3ed852e2009-09-05 21:47:34 +000021466else
21467 ac_cv_header_stdc=no
21468fi
21469rm -f conftest*
21470
21471fi
21472
21473if test $ac_cv_header_stdc = yes; then
21474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021476/* end confdefs.h. */
21477#include <stdlib.h>
21478
21479_ACEOF
21480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021481 $EGREP "free" >/dev/null 2>&1; then :
21482
cristy3ed852e2009-09-05 21:47:34 +000021483else
21484 ac_cv_header_stdc=no
21485fi
21486rm -f conftest*
21487
21488fi
21489
21490if test $ac_cv_header_stdc = yes; then
21491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021492 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021493 :
21494else
cristy8b350f62009-11-15 23:12:43 +000021495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021496/* end confdefs.h. */
21497#include <ctype.h>
21498#include <stdlib.h>
21499#if ((' ' & 0x0FF) == 0x020)
21500# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21501# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21502#else
21503# define ISLOWER(c) \
21504 (('a' <= (c) && (c) <= 'i') \
21505 || ('j' <= (c) && (c) <= 'r') \
21506 || ('s' <= (c) && (c) <= 'z'))
21507# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21508#endif
21509
21510#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21511int
21512main ()
21513{
21514 int i;
21515 for (i = 0; i < 256; i++)
21516 if (XOR (islower (i), ISLOWER (i))
21517 || toupper (i) != TOUPPER (i))
21518 return 2;
21519 return 0;
21520}
21521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021522if ac_fn_c_try_run "$LINENO"; then :
21523
cristy3ed852e2009-09-05 21:47:34 +000021524else
cristy8b350f62009-11-15 23:12:43 +000021525 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021526fi
cristy8b350f62009-11-15 23:12:43 +000021527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21528 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021529fi
21530
cristy3ed852e2009-09-05 21:47:34 +000021531fi
21532fi
cristy8b350f62009-11-15 23:12:43 +000021533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021534$as_echo "$ac_cv_header_stdc" >&6; }
21535if test $ac_cv_header_stdc = yes; then
21536
cristy8b350f62009-11-15 23:12:43 +000021537$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021538
21539fi
21540
21541if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021542 { $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 +000021543 header files. Compilation cannot proceed. Please install the ANSI C
21544 headers and rerun this script." >&5
21545$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21546 header files. Compilation cannot proceed. Please install the ANSI C
21547 headers and rerun this script." >&2;};
21548fi
cristya0b81c32010-01-22 02:54:33 +000021549
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21551$as_echo_n "checking whether to enable assertions... " >&6; }
21552 # Check whether --enable-assert was given.
21553if test "${enable_assert+set}" = set; then :
21554 enableval=$enable_assert; ac_enable_assert=$enableval
21555 if test "x$enableval" = xno; then :
21556
21557$as_echo "#define NDEBUG 1" >>confdefs.h
21558
21559elif test "x$enableval" != xyes; then :
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21561$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21562 ac_enable_assert=yes
21563fi
21564else
21565 ac_enable_assert=yes
21566fi
21567
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21569$as_echo "$ac_enable_assert" >&6; }
21570
cristy3ed852e2009-09-05 21:47:34 +000021571ac_header_dirent=no
21572for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21573 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021575$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021576if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021577 $as_echo_n "(cached) " >&6
21578else
cristy8b350f62009-11-15 23:12:43 +000021579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021580/* end confdefs.h. */
21581#include <sys/types.h>
21582#include <$ac_hdr>
21583
21584int
21585main ()
21586{
21587if ((DIR *) 0)
21588return 0;
21589 ;
21590 return 0;
21591}
21592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021593if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021594 eval "$as_ac_Header=yes"
21595else
cristy8b350f62009-11-15 23:12:43 +000021596 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021597fi
cristy3ed852e2009-09-05 21:47:34 +000021598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21599fi
cristy8b350f62009-11-15 23:12:43 +000021600eval ac_res=\$$as_ac_Header
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021602$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021603if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021604 cat >>confdefs.h <<_ACEOF
21605#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21606_ACEOF
21607
21608ac_header_dirent=$ac_hdr; break
21609fi
21610
21611done
21612# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21613if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021615$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021616if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021617 $as_echo_n "(cached) " >&6
21618else
21619 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021621/* end confdefs.h. */
21622
21623/* Override any GCC internal prototype to avoid an error.
21624 Use char because int might match the return type of a GCC
21625 builtin and then its argument prototype would still apply. */
21626#ifdef __cplusplus
21627extern "C"
21628#endif
21629char opendir ();
21630int
21631main ()
21632{
21633return opendir ();
21634 ;
21635 return 0;
21636}
21637_ACEOF
21638for ac_lib in '' dir; do
21639 if test -z "$ac_lib"; then
21640 ac_res="none required"
21641 else
21642 ac_res=-l$ac_lib
21643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21644 fi
cristy8b350f62009-11-15 23:12:43 +000021645 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021646 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021647fi
cristy8b350f62009-11-15 23:12:43 +000021648rm -f core conftest.err conftest.$ac_objext \
21649 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021650 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021651 break
21652fi
21653done
cristyda16f162011-02-19 23:52:17 +000021654if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021655
cristy3ed852e2009-09-05 21:47:34 +000021656else
21657 ac_cv_search_opendir=no
21658fi
21659rm conftest.$ac_ext
21660LIBS=$ac_func_search_save_LIBS
21661fi
cristy8b350f62009-11-15 23:12:43 +000021662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021663$as_echo "$ac_cv_search_opendir" >&6; }
21664ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021665if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21667
21668fi
21669
21670else
cristy8b350f62009-11-15 23:12:43 +000021671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021672$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021673if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021674 $as_echo_n "(cached) " >&6
21675else
21676 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021678/* end confdefs.h. */
21679
21680/* Override any GCC internal prototype to avoid an error.
21681 Use char because int might match the return type of a GCC
21682 builtin and then its argument prototype would still apply. */
21683#ifdef __cplusplus
21684extern "C"
21685#endif
21686char opendir ();
21687int
21688main ()
21689{
21690return opendir ();
21691 ;
21692 return 0;
21693}
21694_ACEOF
21695for ac_lib in '' x; do
21696 if test -z "$ac_lib"; then
21697 ac_res="none required"
21698 else
21699 ac_res=-l$ac_lib
21700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21701 fi
cristy8b350f62009-11-15 23:12:43 +000021702 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021703 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021704fi
cristy8b350f62009-11-15 23:12:43 +000021705rm -f core conftest.err conftest.$ac_objext \
21706 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021707 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021708 break
21709fi
21710done
cristyda16f162011-02-19 23:52:17 +000021711if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021712
cristy3ed852e2009-09-05 21:47:34 +000021713else
21714 ac_cv_search_opendir=no
21715fi
21716rm conftest.$ac_ext
21717LIBS=$ac_func_search_save_LIBS
21718fi
cristy8b350f62009-11-15 23:12:43 +000021719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021720$as_echo "$ac_cv_search_opendir" >&6; }
21721ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021722if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21724
21725fi
21726
21727fi
21728
21729
21730# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021731for 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 +000021732do :
21733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21734ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021735if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021736 cat >>confdefs.h <<_ACEOF
21737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21738_ACEOF
21739
21740fi
21741
21742done
21743
21744
21745########
21746#
21747# Checks for typedefs, structures, and compiler characteristics.
21748#
21749########
21750
cristy8b350f62009-11-15 23:12:43 +000021751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021752$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021753if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021754 $as_echo_n "(cached) " >&6
21755else
cristy8b350f62009-11-15 23:12:43 +000021756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021757/* end confdefs.h. */
21758
21759#include <stdbool.h>
21760#ifndef bool
21761 "error: bool is not defined"
21762#endif
21763#ifndef false
21764 "error: false is not defined"
21765#endif
21766#if false
21767 "error: false is not 0"
21768#endif
21769#ifndef true
21770 "error: true is not defined"
21771#endif
21772#if true != 1
21773 "error: true is not 1"
21774#endif
21775#ifndef __bool_true_false_are_defined
21776 "error: __bool_true_false_are_defined is not defined"
21777#endif
21778
21779 struct s { _Bool s: 1; _Bool t; } s;
21780
21781 char a[true == 1 ? 1 : -1];
21782 char b[false == 0 ? 1 : -1];
21783 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21784 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021785 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021786 char f[(_Bool) 0.0 == false ? 1 : -1];
21787 char g[true];
21788 char h[sizeof (_Bool)];
21789 char i[sizeof s.t];
21790 enum { j = false, k = true, l = false * true, m = true * 256 };
21791 /* The following fails for
21792 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21793 _Bool n[m];
21794 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21795 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021796 /* Catch a bug in an HP-UX C compiler. See
21797 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21798 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21799 */
21800 _Bool q = true;
21801 _Bool *pq = &q;
21802
21803int
21804main ()
21805{
21806
cristyda16f162011-02-19 23:52:17 +000021807 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021808 *pq |= q;
21809 *pq |= ! q;
21810 /* Refer to every declared value, to avoid compiler optimizations. */
21811 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21812 + !m + !n + !o + !p + !q + !pq);
21813
21814 ;
21815 return 0;
21816}
21817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021818if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021819 ac_cv_header_stdbool_h=yes
21820else
cristy8b350f62009-11-15 23:12:43 +000021821 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021822fi
cristy3ed852e2009-09-05 21:47:34 +000021823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21824fi
cristy8b350f62009-11-15 23:12:43 +000021825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021826$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021827ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021828if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021829
21830cat >>confdefs.h <<_ACEOF
21831#define HAVE__BOOL 1
21832_ACEOF
21833
21834
21835fi
21836
21837if test $ac_cv_header_stdbool_h = yes; then
21838
cristy8b350f62009-11-15 23:12:43 +000021839$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021840
21841fi
21842
cristy8b350f62009-11-15 23:12:43 +000021843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021844$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021845if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021846 $as_echo_n "(cached) " >&6
21847else
cristy8b350f62009-11-15 23:12:43 +000021848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021849/* end confdefs.h. */
21850
21851int
21852main ()
21853{
21854
21855volatile int x;
21856int * volatile y = (int *) 0;
21857return !x && !y;
21858 ;
21859 return 0;
21860}
21861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021862if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021863 ac_cv_c_volatile=yes
21864else
cristy8b350f62009-11-15 23:12:43 +000021865 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021866fi
cristy3ed852e2009-09-05 21:47:34 +000021867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21868fi
cristy8b350f62009-11-15 23:12:43 +000021869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021870$as_echo "$ac_cv_c_volatile" >&6; }
21871if test $ac_cv_c_volatile = no; then
21872
cristy8b350f62009-11-15 23:12:43 +000021873$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021874
21875fi
21876
cristy8b350f62009-11-15 23:12:43 +000021877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021878$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021879if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021880 $as_echo_n "(cached) " >&6
21881else
cristy8b350f62009-11-15 23:12:43 +000021882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021883/* end confdefs.h. */
21884#define x(y) #y
21885
21886char *s = x(teststring);
21887_ACEOF
21888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021889 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021890 ac_cv_c_stringize=no
21891else
21892 ac_cv_c_stringize=yes
21893fi
21894rm -f conftest*
21895
21896fi
cristy8b350f62009-11-15 23:12:43 +000021897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021898$as_echo "$ac_cv_c_stringize" >&6; }
21899if test $ac_cv_c_stringize = yes; then
21900
cristy8b350f62009-11-15 23:12:43 +000021901$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021902
21903fi
21904
cristy8b350f62009-11-15 23:12:43 +000021905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021906$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021907if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021908 $as_echo_n "(cached) " >&6
21909else
cristy8b350f62009-11-15 23:12:43 +000021910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021911/* end confdefs.h. */
21912#include <sys/types.h>
21913#include <sys/stat.h>
21914
21915#if defined S_ISBLK && defined S_IFDIR
21916extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21917#endif
21918
21919#if defined S_ISBLK && defined S_IFCHR
21920extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21921#endif
21922
21923#if defined S_ISLNK && defined S_IFREG
21924extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21925#endif
21926
21927#if defined S_ISSOCK && defined S_IFREG
21928extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21929#endif
21930
21931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021932if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 ac_cv_header_stat_broken=no
21934else
cristy8b350f62009-11-15 23:12:43 +000021935 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021936fi
cristy3ed852e2009-09-05 21:47:34 +000021937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938fi
cristy8b350f62009-11-15 23:12:43 +000021939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021940$as_echo "$ac_cv_header_stat_broken" >&6; }
21941if test $ac_cv_header_stat_broken = yes; then
21942
cristy8b350f62009-11-15 23:12:43 +000021943$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021944
21945fi
21946
cristy8b350f62009-11-15 23:12:43 +000021947{ $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 +000021948$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021949if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021950 $as_echo_n "(cached) " >&6
21951else
cristy8b350f62009-11-15 23:12:43 +000021952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021953/* end confdefs.h. */
21954#include <sys/types.h>
21955#include <sys/time.h>
21956#include <time.h>
21957
21958int
21959main ()
21960{
21961if ((struct tm *) 0)
21962return 0;
21963 ;
21964 return 0;
21965}
21966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021967if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021968 ac_cv_header_time=yes
21969else
cristy8b350f62009-11-15 23:12:43 +000021970 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021971fi
cristy3ed852e2009-09-05 21:47:34 +000021972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973fi
cristy8b350f62009-11-15 23:12:43 +000021974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021975$as_echo "$ac_cv_header_time" >&6; }
21976if test $ac_cv_header_time = yes; then
21977
cristy8b350f62009-11-15 23:12:43 +000021978$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021979
21980fi
21981
cristy8b350f62009-11-15 23:12:43 +000021982{ $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 +000021983$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021984if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021985 $as_echo_n "(cached) " >&6
21986else
cristy8b350f62009-11-15 23:12:43 +000021987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021988/* end confdefs.h. */
21989#include <sys/types.h>
21990#include <time.h>
21991
21992int
21993main ()
21994{
21995struct tm tm;
21996 int *p = &tm.tm_sec;
21997 return !p;
21998 ;
21999 return 0;
22000}
22001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022002if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022003 ac_cv_struct_tm=time.h
22004else
cristy8b350f62009-11-15 23:12:43 +000022005 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022006fi
cristy3ed852e2009-09-05 21:47:34 +000022007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22008fi
cristy8b350f62009-11-15 23:12:43 +000022009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022010$as_echo "$ac_cv_struct_tm" >&6; }
22011if test $ac_cv_struct_tm = sys/time.h; then
22012
cristy8b350f62009-11-15 23:12:43 +000022013$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022014
22015fi
22016
cristy92703d82010-04-26 00:18:18 +000022017ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22018#include <$ac_cv_struct_tm>
22019
22020"
cristyda16f162011-02-19 23:52:17 +000022021if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022022
22023cat >>confdefs.h <<_ACEOF
22024#define HAVE_STRUCT_TM_TM_ZONE 1
22025_ACEOF
22026
22027
22028fi
22029
22030if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22031
22032$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22033
22034else
22035 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22036"
cristyda16f162011-02-19 23:52:17 +000022037if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022038 ac_have_decl=1
22039else
22040 ac_have_decl=0
22041fi
22042
22043cat >>confdefs.h <<_ACEOF
22044#define HAVE_DECL_TZNAME $ac_have_decl
22045_ACEOF
22046
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22048$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022049if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022050 $as_echo_n "(cached) " >&6
22051else
22052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22053/* end confdefs.h. */
22054#include <time.h>
22055#if !HAVE_DECL_TZNAME
22056extern char *tzname[];
22057#endif
22058
22059int
22060main ()
22061{
22062return tzname[0][0];
22063 ;
22064 return 0;
22065}
22066_ACEOF
22067if ac_fn_c_try_link "$LINENO"; then :
22068 ac_cv_var_tzname=yes
22069else
22070 ac_cv_var_tzname=no
22071fi
22072rm -f core conftest.err conftest.$ac_objext \
22073 conftest$ac_exeext conftest.$ac_ext
22074fi
22075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22076$as_echo "$ac_cv_var_tzname" >&6; }
22077 if test $ac_cv_var_tzname = yes; then
22078
22079$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22080
22081 fi
22082fi
22083
cristy8b350f62009-11-15 23:12:43 +000022084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022085$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022086if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022087 $as_echo_n "(cached) " >&6
22088else
22089 echo '#! /bin/cat
22090exit 69
22091' >conftest
22092chmod u+x conftest
22093(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22094if test $? -ne 69; then
22095 ac_cv_sys_interpreter=yes
22096else
22097 ac_cv_sys_interpreter=no
22098fi
22099rm -f conftest
22100fi
cristy8b350f62009-11-15 23:12:43 +000022101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022102$as_echo "$ac_cv_sys_interpreter" >&6; }
22103interpval=$ac_cv_sys_interpreter
22104
22105
cristy3ed852e2009-09-05 21:47:34 +000022106# If the C compiler supports the keyword inline, do nothing. Otherwise
22107# define inline to __inline__ or __inline if it accepts one of those,
22108# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022110$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022111if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022112 $as_echo_n "(cached) " >&6
22113else
22114 ac_cv_c_inline=no
22115for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022117/* end confdefs.h. */
22118#ifndef __cplusplus
22119typedef int foo_t;
22120static $ac_kw foo_t static_foo () {return 0; }
22121$ac_kw foo_t foo () {return 0; }
22122#endif
22123
22124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022125if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022126 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022127fi
cristy3ed852e2009-09-05 21:47:34 +000022128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22129 test "$ac_cv_c_inline" != no && break
22130done
22131
22132fi
cristy8b350f62009-11-15 23:12:43 +000022133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022134$as_echo "$ac_cv_c_inline" >&6; }
22135
cristy3ed852e2009-09-05 21:47:34 +000022136case $ac_cv_c_inline in
22137 inline | yes) ;;
22138 *)
22139 case $ac_cv_c_inline in
22140 no) ac_val=;;
22141 *) ac_val=$ac_cv_c_inline;;
22142 esac
22143 cat >>confdefs.h <<_ACEOF
22144#ifndef __cplusplus
22145#define inline $ac_val
22146#endif
22147_ACEOF
22148 ;;
22149esac
22150
22151
22152# If the C compiler supports the keyword restrict, do nothing. Otherwise
22153# define restrict to __restrict__ or __restrict if it accepts one of those,
22154# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022156$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022157if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022158 $as_echo_n "(cached) " >&6
22159else
22160 ac_cv_c_restrict=no
22161 # The order here caters to the fact that C++ does not require restrict.
22162 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022164/* end confdefs.h. */
22165typedef int * int_ptr;
22166 int foo (int_ptr $ac_kw ip) {
22167 return ip[0];
22168 }
22169int
22170main ()
22171{
22172int s[1];
22173 int * $ac_kw t = s;
22174 t[0] = 0;
22175 return foo(t)
22176 ;
22177 return 0;
22178}
22179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022180if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022181 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022182fi
cristy3ed852e2009-09-05 21:47:34 +000022183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 test "$ac_cv_c_restrict" != no && break
22185 done
22186
22187fi
cristy8b350f62009-11-15 23:12:43 +000022188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022189$as_echo "$ac_cv_c_restrict" >&6; }
22190
cristy3ed852e2009-09-05 21:47:34 +000022191 case $ac_cv_c_restrict in
22192 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022193 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022194 ;;
22195 *) cat >>confdefs.h <<_ACEOF
22196#define restrict $ac_cv_c_restrict
22197_ACEOF
22198 ;;
22199 esac
22200
22201
22202# If words are stored with the most significant byte first (like
22203# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022205$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022206if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022207 $as_echo_n "(cached) " >&6
22208else
22209 ac_cv_c_bigendian=unknown
22210 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022212/* end confdefs.h. */
22213#ifndef __APPLE_CC__
22214 not a universal capable compiler
22215 #endif
22216 typedef int dummy;
22217
22218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022219if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022220
22221 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022222 # there are at least two -arch flags with different values.
22223 ac_arch=
22224 ac_prev=
22225 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22226 if test -n "$ac_prev"; then
22227 case $ac_word in
22228 i?86 | x86_64 | ppc | ppc64)
22229 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22230 ac_arch=$ac_word
22231 else
22232 ac_cv_c_bigendian=universal
22233 break
22234 fi
22235 ;;
22236 esac
22237 ac_prev=
22238 elif test "x$ac_word" = "x-arch"; then
22239 ac_prev=arch
22240 fi
22241 done
cristy3ed852e2009-09-05 21:47:34 +000022242fi
cristy3ed852e2009-09-05 21:47:34 +000022243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 if test $ac_cv_c_bigendian = unknown; then
22245 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022247/* end confdefs.h. */
22248#include <sys/types.h>
22249 #include <sys/param.h>
22250
22251int
22252main ()
22253{
22254#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22255 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22256 && LITTLE_ENDIAN)
22257 bogus endian macros
22258 #endif
22259
22260 ;
22261 return 0;
22262}
22263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022264if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022265 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022267/* end confdefs.h. */
22268#include <sys/types.h>
22269 #include <sys/param.h>
22270
22271int
22272main ()
22273{
22274#if BYTE_ORDER != BIG_ENDIAN
22275 not big endian
22276 #endif
22277
22278 ;
22279 return 0;
22280}
22281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022282if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022283 ac_cv_c_bigendian=yes
22284else
cristy8b350f62009-11-15 23:12:43 +000022285 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022286fi
cristy3ed852e2009-09-05 21:47:34 +000022287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022288fi
cristy3ed852e2009-09-05 21:47:34 +000022289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290 fi
22291 if test $ac_cv_c_bigendian = unknown; then
22292 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022294/* end confdefs.h. */
22295#include <limits.h>
22296
22297int
22298main ()
22299{
22300#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22301 bogus endian macros
22302 #endif
22303
22304 ;
22305 return 0;
22306}
22307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022308if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022309 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022311/* end confdefs.h. */
22312#include <limits.h>
22313
22314int
22315main ()
22316{
22317#ifndef _BIG_ENDIAN
22318 not big endian
22319 #endif
22320
22321 ;
22322 return 0;
22323}
22324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022325if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022326 ac_cv_c_bigendian=yes
22327else
cristy8b350f62009-11-15 23:12:43 +000022328 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022329fi
cristy3ed852e2009-09-05 21:47:34 +000022330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022331fi
cristy3ed852e2009-09-05 21:47:34 +000022332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22333 fi
22334 if test $ac_cv_c_bigendian = unknown; then
22335 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022336 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022337 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022339/* end confdefs.h. */
22340short int ascii_mm[] =
22341 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22342 short int ascii_ii[] =
22343 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22344 int use_ascii (int i) {
22345 return ascii_mm[i] + ascii_ii[i];
22346 }
22347 short int ebcdic_ii[] =
22348 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22349 short int ebcdic_mm[] =
22350 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22351 int use_ebcdic (int i) {
22352 return ebcdic_mm[i] + ebcdic_ii[i];
22353 }
22354 extern int foo;
22355
22356int
22357main ()
22358{
22359return use_ascii (foo) == use_ebcdic (foo);
22360 ;
22361 return 0;
22362}
22363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022364if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022365 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22366 ac_cv_c_bigendian=yes
22367 fi
22368 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22369 if test "$ac_cv_c_bigendian" = unknown; then
22370 ac_cv_c_bigendian=no
22371 else
22372 # finding both strings is unlikely to happen, but who knows?
22373 ac_cv_c_bigendian=unknown
22374 fi
22375 fi
cristy3ed852e2009-09-05 21:47:34 +000022376fi
cristy3ed852e2009-09-05 21:47:34 +000022377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378else
cristy8b350f62009-11-15 23:12:43 +000022379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022380/* end confdefs.h. */
22381$ac_includes_default
22382int
22383main ()
22384{
22385
22386 /* Are we little or big endian? From Harbison&Steele. */
22387 union
22388 {
22389 long int l;
22390 char c[sizeof (long int)];
22391 } u;
22392 u.l = 1;
22393 return u.c[sizeof (long int) - 1] == 1;
22394
22395 ;
22396 return 0;
22397}
22398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022399if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022400 ac_cv_c_bigendian=no
22401else
cristy8b350f62009-11-15 23:12:43 +000022402 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022403fi
cristy8b350f62009-11-15 23:12:43 +000022404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22405 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022406fi
22407
cristy3ed852e2009-09-05 21:47:34 +000022408 fi
22409fi
cristy8b350f62009-11-15 23:12:43 +000022410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022411$as_echo "$ac_cv_c_bigendian" >&6; }
22412 case $ac_cv_c_bigendian in #(
22413 yes)
cristy8b350f62009-11-15 23:12:43 +000022414 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022415;; #(
22416 no)
22417 ;; #(
22418 universal)
22419
cristy8b350f62009-11-15 23:12:43 +000022420$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022421
22422 ;; #(
22423 *)
cristy98dddb52010-11-04 00:30:15 +000022424 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022425 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022426 esac
22427
22428
cristy501c8042011-05-26 17:46:28 +000022429# Define to a suitable type, if standard headers do not define it.
22430ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22431case $ac_cv_c_int8_t in #(
22432 no|yes) ;; #(
22433 *)
cristy3ed852e2009-09-05 21:47:34 +000022434
22435cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022436#define int8_t $ac_cv_c_int8_t
22437_ACEOF
22438;;
22439esac
22440
22441ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22442case $ac_cv_c_int16_t in #(
22443 no|yes) ;; #(
22444 *)
22445
22446cat >>confdefs.h <<_ACEOF
22447#define int16_t $ac_cv_c_int16_t
22448_ACEOF
22449;;
22450esac
22451
22452ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22453case $ac_cv_c_int32_t in #(
22454 no|yes) ;; #(
22455 *)
22456
22457cat >>confdefs.h <<_ACEOF
22458#define int32_t $ac_cv_c_int32_t
22459_ACEOF
22460;;
22461esac
22462
22463ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22464case $ac_cv_c_int64_t in #(
22465 no|yes) ;; #(
22466 *)
22467
22468cat >>confdefs.h <<_ACEOF
22469#define int64_t $ac_cv_c_int64_t
22470_ACEOF
22471;;
22472esac
22473
22474
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22476$as_echo_n "checking for long long int... " >&6; }
22477if ${ac_cv_type_long_long_int+:} false; then :
22478 $as_echo_n "(cached) " >&6
22479else
22480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22481/* end confdefs.h. */
22482
22483 /* For now, do not test the preprocessor; as of 2007 there are too many
22484 implementations with broken preprocessors. Perhaps this can
22485 be revisited in 2012. In the meantime, code should not expect
22486 #if to work with literals wider than 32 bits. */
22487 /* Test literals. */
22488 long long int ll = 9223372036854775807ll;
22489 long long int nll = -9223372036854775807LL;
22490 unsigned long long int ull = 18446744073709551615ULL;
22491 /* Test constant expressions. */
22492 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22493 ? 1 : -1)];
22494 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22495 ? 1 : -1)];
22496 int i = 63;
22497int
22498main ()
22499{
22500/* Test availability of runtime routines for shift and division. */
22501 long long int llmax = 9223372036854775807ll;
22502 unsigned long long int ullmax = 18446744073709551615ull;
22503 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22504 | (llmax / ll) | (llmax % ll)
22505 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22506 | (ullmax / ull) | (ullmax % ull));
22507 ;
22508 return 0;
22509}
22510
22511_ACEOF
22512if ac_fn_c_try_link "$LINENO"; then :
22513 if test "$cross_compiling" = yes; then :
22514 ac_cv_type_long_long_int=yes
22515else
22516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22517/* end confdefs.h. */
22518#include <limits.h>
22519 #ifndef LLONG_MAX
22520 # define HALF \
22521 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22522 # define LLONG_MAX (HALF - 1 + HALF)
22523 #endif
22524int
22525main ()
22526{
22527long long int n = 1;
22528 int i;
22529 for (i = 0; ; i++)
22530 {
22531 long long int m = n << i;
22532 if (m >> i != n)
22533 return 1;
22534 if (LLONG_MAX / 2 < m)
22535 break;
22536 }
22537 return 0;
22538 ;
22539 return 0;
22540}
22541_ACEOF
22542if ac_fn_c_try_run "$LINENO"; then :
22543 ac_cv_type_long_long_int=yes
22544else
22545 ac_cv_type_long_long_int=no
22546fi
22547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22548 conftest.$ac_objext conftest.beam conftest.$ac_ext
22549fi
22550
22551else
22552 ac_cv_type_long_long_int=no
22553fi
22554rm -f core conftest.err conftest.$ac_objext \
22555 conftest$ac_exeext conftest.$ac_ext
22556fi
22557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22558$as_echo "$ac_cv_type_long_long_int" >&6; }
22559 if test $ac_cv_type_long_long_int = yes; then
22560
22561$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22562
22563 fi
22564
22565
22566
22567 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22568if test "x$ac_cv_type_intmax_t" = xyes; then :
22569
22570$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22571
22572else
22573 test $ac_cv_type_long_long_int = yes \
22574 && ac_type='long long int' \
22575 || ac_type='long int'
22576
22577cat >>confdefs.h <<_ACEOF
22578#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022579_ACEOF
22580
22581fi
22582
22583
cristy501c8042011-05-26 17:46:28 +000022584
22585 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22586if test "x$ac_cv_type_intptr_t" = xyes; then :
22587
22588$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022589
cristy3ed852e2009-09-05 21:47:34 +000022590else
cristy501c8042011-05-26 17:46:28 +000022591 for ac_type in 'int' 'long int' 'long long int'; do
22592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22593/* end confdefs.h. */
22594$ac_includes_default
22595int
22596main ()
22597{
22598static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22599test_array [0] = 0
22600
22601 ;
22602 return 0;
22603}
22604_ACEOF
22605if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022606
22607cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022608#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022609_ACEOF
22610
cristy501c8042011-05-26 17:46:28 +000022611 ac_type=
22612fi
22613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22614 test -z "$ac_type" && break
22615 done
cristy3ed852e2009-09-05 21:47:34 +000022616fi
22617
22618
cristy3ed852e2009-09-05 21:47:34 +000022619
cristy501c8042011-05-26 17:46:28 +000022620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22621$as_echo_n "checking for long double... " >&6; }
22622if ${ac_cv_type_long_double+:} false; then :
22623 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022624else
cristy501c8042011-05-26 17:46:28 +000022625 if test "$GCC" = yes; then
22626 ac_cv_type_long_double=yes
22627 else
22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629/* end confdefs.h. */
22630/* The Stardent Vistra knows sizeof (long double), but does
22631 not support it. */
22632 long double foo = 0.0L;
22633int
22634main ()
22635{
22636static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22637 sizeof (double) <= sizeof (long double))];
22638test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022639
cristy501c8042011-05-26 17:46:28 +000022640 ;
22641 return 0;
22642}
cristy3ed852e2009-09-05 21:47:34 +000022643_ACEOF
cristy501c8042011-05-26 17:46:28 +000022644if ac_fn_c_try_compile "$LINENO"; then :
22645 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022646else
cristy501c8042011-05-26 17:46:28 +000022647 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022648fi
cristy501c8042011-05-26 17:46:28 +000022649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 fi
cristy3ed852e2009-09-05 21:47:34 +000022651fi
cristy501c8042011-05-26 17:46:28 +000022652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22653$as_echo "$ac_cv_type_long_double" >&6; }
22654 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022655
cristy501c8042011-05-26 17:46:28 +000022656$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022657
cristy501c8042011-05-26 17:46:28 +000022658 fi
22659
cristy3ed852e2009-09-05 21:47:34 +000022660
cristy8b350f62009-11-15 23:12:43 +000022661 { $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 +000022662$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022663if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022664 $as_echo_n "(cached) " >&6
22665else
cristy8b350f62009-11-15 23:12:43 +000022666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022667/* end confdefs.h. */
22668#include <float.h>
22669 long double const a[] =
22670 {
22671 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22672 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22673 };
22674 long double
22675 f (long double x)
22676 {
22677 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22678 + (x ? f (x) : 'c'));
22679 }
22680
22681int
22682main ()
22683{
22684static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22685 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22686 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22687 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22688 && (int) LDBL_EPSILON == 0
22689 )];
22690test_array [0] = 0
22691
22692 ;
22693 return 0;
22694}
22695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022696if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022697 ac_cv_type_long_double_wider=yes
22698else
cristy8b350f62009-11-15 23:12:43 +000022699 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022700fi
cristy3ed852e2009-09-05 21:47:34 +000022701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22702fi
cristy8b350f62009-11-15 23:12:43 +000022703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022704$as_echo "$ac_cv_type_long_double_wider" >&6; }
22705 if test $ac_cv_type_long_double_wider = yes; then
22706
cristy8b350f62009-11-15 23:12:43 +000022707$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022708
22709 fi
22710
22711
cristy501c8042011-05-26 17:46:28 +000022712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22713$as_echo_n "checking for long long int... " >&6; }
22714if ${ac_cv_type_long_long_int+:} false; then :
22715 $as_echo_n "(cached) " >&6
22716else
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718/* end confdefs.h. */
22719
22720 /* For now, do not test the preprocessor; as of 2007 there are too many
22721 implementations with broken preprocessors. Perhaps this can
22722 be revisited in 2012. In the meantime, code should not expect
22723 #if to work with literals wider than 32 bits. */
22724 /* Test literals. */
22725 long long int ll = 9223372036854775807ll;
22726 long long int nll = -9223372036854775807LL;
22727 unsigned long long int ull = 18446744073709551615ULL;
22728 /* Test constant expressions. */
22729 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22730 ? 1 : -1)];
22731 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22732 ? 1 : -1)];
22733 int i = 63;
22734int
22735main ()
22736{
22737/* Test availability of runtime routines for shift and division. */
22738 long long int llmax = 9223372036854775807ll;
22739 unsigned long long int ullmax = 18446744073709551615ull;
22740 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22741 | (llmax / ll) | (llmax % ll)
22742 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22743 | (ullmax / ull) | (ullmax % ull));
22744 ;
22745 return 0;
22746}
22747
22748_ACEOF
22749if ac_fn_c_try_link "$LINENO"; then :
22750 if test "$cross_compiling" = yes; then :
22751 ac_cv_type_long_long_int=yes
22752else
22753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754/* end confdefs.h. */
22755#include <limits.h>
22756 #ifndef LLONG_MAX
22757 # define HALF \
22758 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22759 # define LLONG_MAX (HALF - 1 + HALF)
22760 #endif
22761int
22762main ()
22763{
22764long long int n = 1;
22765 int i;
22766 for (i = 0; ; i++)
22767 {
22768 long long int m = n << i;
22769 if (m >> i != n)
22770 return 1;
22771 if (LLONG_MAX / 2 < m)
22772 break;
22773 }
22774 return 0;
22775 ;
22776 return 0;
22777}
22778_ACEOF
22779if ac_fn_c_try_run "$LINENO"; then :
22780 ac_cv_type_long_long_int=yes
22781else
22782 ac_cv_type_long_long_int=no
22783fi
22784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22785 conftest.$ac_objext conftest.beam conftest.$ac_ext
22786fi
22787
22788else
22789 ac_cv_type_long_long_int=no
22790fi
22791rm -f core conftest.err conftest.$ac_objext \
22792 conftest$ac_exeext conftest.$ac_ext
22793fi
22794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22795$as_echo "$ac_cv_type_long_long_int" >&6; }
22796 if test $ac_cv_type_long_long_int = yes; then
22797
22798$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22799
22800 fi
22801
22802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22803$as_echo_n "checking for mbstate_t... " >&6; }
22804if ${ac_cv_type_mbstate_t+:} false; then :
22805 $as_echo_n "(cached) " >&6
22806else
22807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808/* end confdefs.h. */
22809$ac_includes_default
22810# include <wchar.h>
22811int
22812main ()
22813{
22814mbstate_t x; return sizeof x;
22815 ;
22816 return 0;
22817}
22818_ACEOF
22819if ac_fn_c_try_compile "$LINENO"; then :
22820 ac_cv_type_mbstate_t=yes
22821else
22822 ac_cv_type_mbstate_t=no
22823fi
22824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22825fi
22826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22827$as_echo "$ac_cv_type_mbstate_t" >&6; }
22828 if test $ac_cv_type_mbstate_t = yes; then
22829
22830$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22831
22832 else
22833
22834$as_echo "#define mbstate_t int" >>confdefs.h
22835
22836 fi
22837ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22838if test "x$ac_cv_type_mode_t" = xyes; then :
22839
22840else
22841
22842cat >>confdefs.h <<_ACEOF
22843#define mode_t int
22844_ACEOF
22845
22846fi
22847
22848ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22849if test "x$ac_cv_type_off_t" = xyes; then :
22850
22851else
22852
22853cat >>confdefs.h <<_ACEOF
22854#define off_t long int
22855_ACEOF
22856
22857fi
22858
22859ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22860if test "x$ac_cv_type_pid_t" = xyes; then :
22861
22862else
22863
22864cat >>confdefs.h <<_ACEOF
22865#define pid_t int
22866_ACEOF
22867
22868fi
22869
22870ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22871if test "x$ac_cv_type_size_t" = xyes; then :
22872
22873else
22874
22875cat >>confdefs.h <<_ACEOF
22876#define size_t unsigned int
22877_ACEOF
22878
22879fi
22880
22881ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22882if test "x$ac_cv_type_ssize_t" = xyes; then :
22883
22884else
22885
22886cat >>confdefs.h <<_ACEOF
22887#define ssize_t int
22888_ACEOF
22889
22890fi
22891
22892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22893$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22894if ${ac_cv_type_uid_t+:} false; then :
22895 $as_echo_n "(cached) " >&6
22896else
22897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898/* end confdefs.h. */
22899#include <sys/types.h>
22900
22901_ACEOF
22902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22903 $EGREP "uid_t" >/dev/null 2>&1; then :
22904 ac_cv_type_uid_t=yes
22905else
22906 ac_cv_type_uid_t=no
22907fi
22908rm -f conftest*
22909
22910fi
22911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22912$as_echo "$ac_cv_type_uid_t" >&6; }
22913if test $ac_cv_type_uid_t = no; then
22914
22915$as_echo "#define uid_t int" >>confdefs.h
22916
22917
22918$as_echo "#define gid_t int" >>confdefs.h
22919
22920fi
22921
22922ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22923case $ac_cv_c_uint8_t in #(
22924 no|yes) ;; #(
22925 *)
22926
22927$as_echo "#define _UINT8_T 1" >>confdefs.h
22928
22929
22930cat >>confdefs.h <<_ACEOF
22931#define uint8_t $ac_cv_c_uint8_t
22932_ACEOF
22933;;
22934 esac
22935
22936ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22937case $ac_cv_c_uint16_t in #(
22938 no|yes) ;; #(
22939 *)
22940
22941
22942cat >>confdefs.h <<_ACEOF
22943#define uint16_t $ac_cv_c_uint16_t
22944_ACEOF
22945;;
22946 esac
22947
22948ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22949case $ac_cv_c_uint32_t in #(
22950 no|yes) ;; #(
22951 *)
22952
22953$as_echo "#define _UINT32_T 1" >>confdefs.h
22954
22955
22956cat >>confdefs.h <<_ACEOF
22957#define uint32_t $ac_cv_c_uint32_t
22958_ACEOF
22959;;
22960 esac
22961
22962ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22963case $ac_cv_c_uint64_t in #(
22964 no|yes) ;; #(
22965 *)
22966
22967$as_echo "#define _UINT64_T 1" >>confdefs.h
22968
22969
22970cat >>confdefs.h <<_ACEOF
22971#define uint64_t $ac_cv_c_uint64_t
22972_ACEOF
22973;;
22974 esac
22975
22976
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22978$as_echo_n "checking for unsigned long long int... " >&6; }
22979if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22980 $as_echo_n "(cached) " >&6
22981else
22982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22983/* end confdefs.h. */
22984
22985 /* For now, do not test the preprocessor; as of 2007 there are too many
22986 implementations with broken preprocessors. Perhaps this can
22987 be revisited in 2012. In the meantime, code should not expect
22988 #if to work with literals wider than 32 bits. */
22989 /* Test literals. */
22990 long long int ll = 9223372036854775807ll;
22991 long long int nll = -9223372036854775807LL;
22992 unsigned long long int ull = 18446744073709551615ULL;
22993 /* Test constant expressions. */
22994 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22995 ? 1 : -1)];
22996 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22997 ? 1 : -1)];
22998 int i = 63;
22999int
23000main ()
23001{
23002/* Test availability of runtime routines for shift and division. */
23003 long long int llmax = 9223372036854775807ll;
23004 unsigned long long int ullmax = 18446744073709551615ull;
23005 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23006 | (llmax / ll) | (llmax % ll)
23007 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23008 | (ullmax / ull) | (ullmax % ull));
23009 ;
23010 return 0;
23011}
23012
23013_ACEOF
23014if ac_fn_c_try_link "$LINENO"; then :
23015 ac_cv_type_unsigned_long_long_int=yes
23016else
23017 ac_cv_type_unsigned_long_long_int=no
23018fi
23019rm -f core conftest.err conftest.$ac_objext \
23020 conftest$ac_exeext conftest.$ac_ext
23021fi
23022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23023$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23024 if test $ac_cv_type_unsigned_long_long_int = yes; then
23025
23026$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23027
23028 fi
23029
23030
23031
23032 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23033if test "x$ac_cv_type_uintmax_t" = xyes; then :
23034
23035$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23036
23037else
23038 test $ac_cv_type_unsigned_long_long_int = yes \
23039 && ac_type='unsigned long long int' \
23040 || ac_type='unsigned long int'
23041
23042cat >>confdefs.h <<_ACEOF
23043#define uintmax_t $ac_type
23044_ACEOF
23045
23046fi
23047
23048
23049
23050 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23051if test "x$ac_cv_type_uintptr_t" = xyes; then :
23052
23053$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23054
23055else
23056 for ac_type in 'unsigned int' 'unsigned long int' \
23057 'unsigned long long int'; do
23058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23059/* end confdefs.h. */
23060$ac_includes_default
23061int
23062main ()
23063{
23064static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23065test_array [0] = 0
23066
23067 ;
23068 return 0;
23069}
23070_ACEOF
23071if ac_fn_c_try_compile "$LINENO"; then :
23072
23073cat >>confdefs.h <<_ACEOF
23074#define uintptr_t $ac_type
23075_ACEOF
23076
23077 ac_type=
23078fi
23079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23080 test -z "$ac_type" && break
23081 done
23082fi
23083
23084
23085
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23087$as_echo_n "checking for unsigned long long int... " >&6; }
23088if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23089 $as_echo_n "(cached) " >&6
23090else
23091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23092/* end confdefs.h. */
23093
23094 /* For now, do not test the preprocessor; as of 2007 there are too many
23095 implementations with broken preprocessors. Perhaps this can
23096 be revisited in 2012. In the meantime, code should not expect
23097 #if to work with literals wider than 32 bits. */
23098 /* Test literals. */
23099 long long int ll = 9223372036854775807ll;
23100 long long int nll = -9223372036854775807LL;
23101 unsigned long long int ull = 18446744073709551615ULL;
23102 /* Test constant expressions. */
23103 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23104 ? 1 : -1)];
23105 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23106 ? 1 : -1)];
23107 int i = 63;
23108int
23109main ()
23110{
23111/* Test availability of runtime routines for shift and division. */
23112 long long int llmax = 9223372036854775807ll;
23113 unsigned long long int ullmax = 18446744073709551615ull;
23114 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23115 | (llmax / ll) | (llmax % ll)
23116 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23117 | (ullmax / ull) | (ullmax % ull));
23118 ;
23119 return 0;
23120}
23121
23122_ACEOF
23123if ac_fn_c_try_link "$LINENO"; then :
23124 ac_cv_type_unsigned_long_long_int=yes
23125else
23126 ac_cv_type_unsigned_long_long_int=no
23127fi
23128rm -f core conftest.err conftest.$ac_objext \
23129 conftest$ac_exeext conftest.$ac_ext
23130fi
23131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23132$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23133 if test $ac_cv_type_unsigned_long_long_int = yes; then
23134
23135$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23136
23137 fi
23138
23139
cristy3ed852e2009-09-05 21:47:34 +000023140# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23141# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023143$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023144if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023145 $as_echo_n "(cached) " >&6
23146else
cristy8b350f62009-11-15 23:12:43 +000023147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023148/* end confdefs.h. */
23149$ac_includes_default
23150int
23151main ()
23152{
23153static int test_array [1 - 2 * !(((char) -1) < 0)];
23154test_array [0] = 0
23155
23156 ;
23157 return 0;
23158}
23159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023160if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023161 ac_cv_c_char_unsigned=no
23162else
cristy8b350f62009-11-15 23:12:43 +000023163 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023164fi
cristy3ed852e2009-09-05 21:47:34 +000023165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23166fi
cristy8b350f62009-11-15 23:12:43 +000023167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023168$as_echo "$ac_cv_c_char_unsigned" >&6; }
23169if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023170 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023171
23172fi
23173
23174
23175# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23176# The cast to long int works around a bug in the HP C Compiler
23177# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23178# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23179# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023181$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023182if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023183 $as_echo_n "(cached) " >&6
23184else
cristy8b350f62009-11-15 23:12:43 +000023185 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 +000023186
cristy3ed852e2009-09-05 21:47:34 +000023187else
cristy8b350f62009-11-15 23:12:43 +000023188 if test "$ac_cv_type_signed_short" = yes; then
23189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023191as_fn_error 77 "cannot compute sizeof (signed short)
23192See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023193 else
23194 ac_cv_sizeof_signed_short=0
23195 fi
23196fi
cristy8b350f62009-11-15 23:12:43 +000023197
cristy3ed852e2009-09-05 21:47:34 +000023198fi
cristy8b350f62009-11-15 23:12:43 +000023199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023200$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23201
23202
23203
23204cat >>confdefs.h <<_ACEOF
23205#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23206_ACEOF
23207
23208
23209
23210# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23211# The cast to long int works around a bug in the HP C Compiler
23212# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23213# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23214# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023216$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023217if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023218 $as_echo_n "(cached) " >&6
23219else
cristy8b350f62009-11-15 23:12:43 +000023220 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 +000023221
cristy3ed852e2009-09-05 21:47:34 +000023222else
cristy8b350f62009-11-15 23:12:43 +000023223 if test "$ac_cv_type_unsigned_short" = yes; then
23224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023226as_fn_error 77 "cannot compute sizeof (unsigned short)
23227See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023228 else
23229 ac_cv_sizeof_unsigned_short=0
23230 fi
23231fi
cristy8b350f62009-11-15 23:12:43 +000023232
cristy3ed852e2009-09-05 21:47:34 +000023233fi
cristy8b350f62009-11-15 23:12:43 +000023234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023235$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23236
23237
23238
23239cat >>confdefs.h <<_ACEOF
23240#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23241_ACEOF
23242
23243
23244
23245# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23246# The cast to long int works around a bug in the HP C Compiler
23247# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23248# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23249# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023251$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023252if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023253 $as_echo_n "(cached) " >&6
23254else
cristy8b350f62009-11-15 23:12:43 +000023255 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 +000023256
cristy3ed852e2009-09-05 21:47:34 +000023257else
cristy8b350f62009-11-15 23:12:43 +000023258 if test "$ac_cv_type_signed_int" = yes; then
23259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023261as_fn_error 77 "cannot compute sizeof (signed int)
23262See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023263 else
23264 ac_cv_sizeof_signed_int=0
23265 fi
23266fi
cristy8b350f62009-11-15 23:12:43 +000023267
cristy3ed852e2009-09-05 21:47:34 +000023268fi
cristy8b350f62009-11-15 23:12:43 +000023269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023270$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23271
23272
23273
23274cat >>confdefs.h <<_ACEOF
23275#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23276_ACEOF
23277
23278
23279
23280# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23281# The cast to long int works around a bug in the HP C Compiler
23282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23284# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023286$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023287if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023288 $as_echo_n "(cached) " >&6
23289else
cristy8b350f62009-11-15 23:12:43 +000023290 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 +000023291
cristy3ed852e2009-09-05 21:47:34 +000023292else
cristy8b350f62009-11-15 23:12:43 +000023293 if test "$ac_cv_type_unsigned_int" = yes; then
23294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023296as_fn_error 77 "cannot compute sizeof (unsigned int)
23297See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023298 else
23299 ac_cv_sizeof_unsigned_int=0
23300 fi
23301fi
cristy8b350f62009-11-15 23:12:43 +000023302
cristy3ed852e2009-09-05 21:47:34 +000023303fi
cristy8b350f62009-11-15 23:12:43 +000023304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023305$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23306
23307
23308
23309cat >>confdefs.h <<_ACEOF
23310#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23311_ACEOF
23312
23313
23314
23315# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23316# The cast to long int works around a bug in the HP C Compiler
23317# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23318# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23319# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023321$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023322if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023323 $as_echo_n "(cached) " >&6
23324else
cristy8b350f62009-11-15 23:12:43 +000023325 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 +000023326
cristy3ed852e2009-09-05 21:47:34 +000023327else
cristy8b350f62009-11-15 23:12:43 +000023328 if test "$ac_cv_type_signed_long" = yes; then
23329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023331as_fn_error 77 "cannot compute sizeof (signed long)
23332See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023333 else
23334 ac_cv_sizeof_signed_long=0
23335 fi
23336fi
cristy8b350f62009-11-15 23:12:43 +000023337
cristy3ed852e2009-09-05 21:47:34 +000023338fi
cristy8b350f62009-11-15 23:12:43 +000023339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023340$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23341
23342
23343
23344cat >>confdefs.h <<_ACEOF
23345#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23346_ACEOF
23347
23348
23349
23350# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23351# The cast to long int works around a bug in the HP C Compiler
23352# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23353# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23354# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023356$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023357if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023358 $as_echo_n "(cached) " >&6
23359else
cristy8b350f62009-11-15 23:12:43 +000023360 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 +000023361
cristy3ed852e2009-09-05 21:47:34 +000023362else
cristy8b350f62009-11-15 23:12:43 +000023363 if test "$ac_cv_type_unsigned_long" = yes; then
23364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023366as_fn_error 77 "cannot compute sizeof (unsigned long)
23367See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023368 else
23369 ac_cv_sizeof_unsigned_long=0
23370 fi
23371fi
cristy8b350f62009-11-15 23:12:43 +000023372
cristy3ed852e2009-09-05 21:47:34 +000023373fi
cristy8b350f62009-11-15 23:12:43 +000023374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023375$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23376
23377
23378
23379cat >>confdefs.h <<_ACEOF
23380#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23381_ACEOF
23382
23383
23384
23385# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23386# 'signed long long' is not supported then the value defined is zero.
23387# The cast to long int works around a bug in the HP C Compiler
23388# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23389# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23390# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023392$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023393if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023394 $as_echo_n "(cached) " >&6
23395else
cristy8b350f62009-11-15 23:12:43 +000023396 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 +000023397
cristy3ed852e2009-09-05 21:47:34 +000023398else
cristy8b350f62009-11-15 23:12:43 +000023399 if test "$ac_cv_type_signed_long_long" = yes; then
23400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023402as_fn_error 77 "cannot compute sizeof (signed long long)
23403See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023404 else
23405 ac_cv_sizeof_signed_long_long=0
23406 fi
23407fi
cristy8b350f62009-11-15 23:12:43 +000023408
cristy3ed852e2009-09-05 21:47:34 +000023409fi
cristy8b350f62009-11-15 23:12:43 +000023410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023411$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23412
23413
23414
23415cat >>confdefs.h <<_ACEOF
23416#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23417_ACEOF
23418
23419
23420
23421# Obtain size of a 'unsigned long long' and define as
23422# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23423# supported then the value defined is zero.
23424# The cast to long int works around a bug in the HP C Compiler
23425# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23426# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23427# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023429$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023430if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023431 $as_echo_n "(cached) " >&6
23432else
cristy8b350f62009-11-15 23:12:43 +000023433 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 +000023434
cristy3ed852e2009-09-05 21:47:34 +000023435else
cristy8b350f62009-11-15 23:12:43 +000023436 if test "$ac_cv_type_unsigned_long_long" = yes; then
23437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023439as_fn_error 77 "cannot compute sizeof (unsigned long long)
23440See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023441 else
23442 ac_cv_sizeof_unsigned_long_long=0
23443 fi
23444fi
cristy8b350f62009-11-15 23:12:43 +000023445
cristy3ed852e2009-09-05 21:47:34 +000023446fi
cristy8b350f62009-11-15 23:12:43 +000023447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023448$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23449
23450
23451
23452cat >>confdefs.h <<_ACEOF
23453#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23454_ACEOF
23455
23456
23457
23458# Obtain size of off_t and define as SIZEOF_OFF_T
23459# The cast to long int works around a bug in the HP C Compiler
23460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23462# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023464$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023465if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023466 $as_echo_n "(cached) " >&6
23467else
cristy8b350f62009-11-15 23:12:43 +000023468 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 +000023469
cristy3ed852e2009-09-05 21:47:34 +000023470else
cristy8b350f62009-11-15 23:12:43 +000023471 if test "$ac_cv_type_off_t" = yes; then
23472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023474as_fn_error 77 "cannot compute sizeof (off_t)
23475See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023476 else
23477 ac_cv_sizeof_off_t=0
23478 fi
23479fi
cristy8b350f62009-11-15 23:12:43 +000023480
cristy3ed852e2009-09-05 21:47:34 +000023481fi
cristy8b350f62009-11-15 23:12:43 +000023482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023483$as_echo "$ac_cv_sizeof_off_t" >&6; }
23484
23485
23486
23487cat >>confdefs.h <<_ACEOF
23488#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23489_ACEOF
23490
23491
23492
23493# Obtain size of size_t and define as SIZEOF_SIZE_T
23494# The cast to long int works around a bug in the HP C Compiler
23495# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23496# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23497# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023499$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023500if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023501 $as_echo_n "(cached) " >&6
23502else
cristy8b350f62009-11-15 23:12:43 +000023503 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 +000023504
cristy3ed852e2009-09-05 21:47:34 +000023505else
cristy8b350f62009-11-15 23:12:43 +000023506 if test "$ac_cv_type_size_t" = yes; then
23507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023509as_fn_error 77 "cannot compute sizeof (size_t)
23510See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023511 else
23512 ac_cv_sizeof_size_t=0
23513 fi
23514fi
cristy8b350f62009-11-15 23:12:43 +000023515
cristy3ed852e2009-09-05 21:47:34 +000023516fi
cristy8b350f62009-11-15 23:12:43 +000023517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023518$as_echo "$ac_cv_sizeof_size_t" >&6; }
23519
23520
23521
23522cat >>confdefs.h <<_ACEOF
23523#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23524_ACEOF
23525
23526
23527
cristy330e9352010-06-01 18:42:49 +000023528# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23529# The cast to long int works around a bug in the HP C Compiler
23530# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23531# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23532# This bug is HP SR number 8606223364.
23533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23534$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023535if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023536 $as_echo_n "(cached) " >&6
23537else
23538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23539
23540else
23541 if test "$ac_cv_type_ssize_t" = yes; then
23542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023544as_fn_error 77 "cannot compute sizeof (ssize_t)
23545See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023546 else
23547 ac_cv_sizeof_ssize_t=0
23548 fi
23549fi
23550
23551fi
23552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23553$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23554
23555
23556
23557cat >>confdefs.h <<_ACEOF
23558#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23559_ACEOF
23560
23561
23562
cristy3ed852e2009-09-05 21:47:34 +000023563# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23564# The cast to long int works around a bug in the HP C Compiler
23565# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23566# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23567# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023569$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023570if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023571 $as_echo_n "(cached) " >&6
23572else
cristy8b350f62009-11-15 23:12:43 +000023573 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 +000023574
cristy3ed852e2009-09-05 21:47:34 +000023575else
cristy8b350f62009-11-15 23:12:43 +000023576 if test "$ac_cv_type_unsigned_intp" = yes; then
23577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023579as_fn_error 77 "cannot compute sizeof (unsigned int*)
23580See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023581 else
23582 ac_cv_sizeof_unsigned_intp=0
23583 fi
23584fi
cristy8b350f62009-11-15 23:12:43 +000023585
cristy3ed852e2009-09-05 21:47:34 +000023586fi
cristy8b350f62009-11-15 23:12:43 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023588$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23589
23590
23591
23592cat >>confdefs.h <<_ACEOF
23593#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23594_ACEOF
23595
23596
23597
23598#
23599# Compute sized types for current CPU and compiler options.
23600#
23601
cristy8b350f62009-11-15 23:12:43 +000023602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023603$as_echo_n "checking for signed 8-bit type... " >&6; }
23604INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000023605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023606$as_echo "$INT8_T" >&6; }
23607
23608
cristy8b350f62009-11-15 23:12:43 +000023609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023610$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23611UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000023612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023613$as_echo "$UINT8_T" >&6; }
23614
23615
cristy8b350f62009-11-15 23:12:43 +000023616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023617$as_echo_n "checking for signed 16-bit type... " >&6; }
23618INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000023619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023620$as_echo "$INT16_T" >&6; }
23621
23622
cristy8b350f62009-11-15 23:12:43 +000023623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023624$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23625UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000023626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023627$as_echo "$UINT16_T" >&6; }
23628
23629
cristy8b350f62009-11-15 23:12:43 +000023630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023631$as_echo_n "checking for signed 32-bit type... " >&6; }
23632INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023633INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023634if test $ac_cv_sizeof_signed_int -eq 4; then
23635 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023636 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023637elif test $ac_cv_sizeof_signed_long -eq 4; then
23638 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023639 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023640fi
cristy8b350f62009-11-15 23:12:43 +000023641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023642$as_echo "$INT32_T" >&6; }
23643
23644
cristy6d5e20f2011-04-25 13:48:54 +000023645
cristy8b350f62009-11-15 23:12:43 +000023646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023647$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23648UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023649UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023650if test $ac_cv_sizeof_unsigned_int -eq 4; then
23651 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023652 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023653elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23654 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023655 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023656fi
cristy8b350f62009-11-15 23:12:43 +000023657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023658$as_echo "$UINT32_T" >&6; }
23659
23660
cristy6d5e20f2011-04-25 13:48:54 +000023661
cristy8b350f62009-11-15 23:12:43 +000023662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023663$as_echo_n "checking for signed 64-bit type... " >&6; }
23664INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023665INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023666if test $ac_cv_sizeof_signed_long -eq 8; then
23667 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023668 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023669elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23670 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023671 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023672fi
cristy6d5e20f2011-04-25 13:48:54 +000023673case "${build_os}" in
23674 mingw* )
23675 INT64_F='"I64"'
23676 ;;
23677esac
cristy8b350f62009-11-15 23:12:43 +000023678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023679$as_echo "$INT64_T" >&6; }
23680
23681
cristy6d5e20f2011-04-25 13:48:54 +000023682
cristy8b350f62009-11-15 23:12:43 +000023683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023684$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23685UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023686UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023687if test $ac_cv_sizeof_unsigned_long -eq 8; then
23688 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023689 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023690elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23691 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023692 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023693fi
cristy6d5e20f2011-04-25 13:48:54 +000023694case "${build_os}" in
23695 mingw* )
23696 UINT64_F='"I64"'
23697 ;;
23698esac
cristy8b350f62009-11-15 23:12:43 +000023699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023700$as_echo "$UINT64_T" >&6; }
23701
23702
cristy6d5e20f2011-04-25 13:48:54 +000023703
cristy8b350f62009-11-15 23:12:43 +000023704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023705$as_echo_n "checking for unsigned maximum type... " >&6; }
23706UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023707UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023708if test "$UINT64_T" != 'none'; then
23709 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023710 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023711elif test "$UINT32_T" != 'none'; then
23712 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023713 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023714fi
cristy8b350f62009-11-15 23:12:43 +000023715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023716$as_echo "$UINTMAX_T" >&6; }
23717
23718
cristy6d5e20f2011-04-25 13:48:54 +000023719
cristy8b350f62009-11-15 23:12:43 +000023720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023721$as_echo_n "checking for pointer difference type... " >&6; }
23722UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023723UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023724if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23725 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023726 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023727elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23728 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023729 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023730fi
cristy8b350f62009-11-15 23:12:43 +000023731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023732$as_echo "$UINTPTR_T" >&6; }
23733
23734
cristy6d5e20f2011-04-25 13:48:54 +000023735
cristy8b350f62009-11-15 23:12:43 +000023736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023737$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023739/* end confdefs.h. */
23740
23741int
23742main ()
23743{
23744{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23745 ;
23746 return 0;
23747}
23748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023749if ac_fn_c_try_compile "$LINENO"; then :
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023751$as_echo "yes" >&6; }
23752else
cristy8b350f62009-11-15 23:12:43 +000023753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023754$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023756$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023758/* end confdefs.h. */
23759
23760int
23761main ()
23762{
23763{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23764 ;
23765 return 0;
23766}
23767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023768if ac_fn_c_try_compile "$LINENO"; then :
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023770$as_echo "yes" >&6; }
23771
cristy8b350f62009-11-15 23:12:43 +000023772$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023773
23774else
cristy8b350f62009-11-15 23:12:43 +000023775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023776$as_echo "no" >&6; }
23777
cristy8b350f62009-11-15 23:12:43 +000023778$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023779
23780fi
cristy3ed852e2009-09-05 21:47:34 +000023781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782fi
cristy3ed852e2009-09-05 21:47:34 +000023783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23784
23785########
23786#
23787# Check for functions
23788#
23789########
cristy73bd4a52010-10-05 11:24:23 +000023790for ac_header in stdlib.h unistd.h
23791do :
23792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23793ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023794if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023795 cat >>confdefs.h <<_ACEOF
23796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23797_ACEOF
23798
23799fi
23800
23801done
23802
23803for ac_func in getpagesize
23804do :
23805 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023806if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023807 cat >>confdefs.h <<_ACEOF
23808#define HAVE_GETPAGESIZE 1
23809_ACEOF
23810
23811fi
23812done
23813
23814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23815$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023816if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023817 $as_echo_n "(cached) " >&6
23818else
23819 if test "$cross_compiling" = yes; then :
23820 magick_cv_func_mmap_fileio=no
23821else
23822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23823/* end confdefs.h. */
23824$ac_includes_default
23825/* malloc might have been renamed as rpl_malloc. */
23826#undef malloc
23827
23828/*
23829 This test is derived from GNU Autoconf's similar macro.
23830 The purpose of this test is to verify that files may be memory
23831 mapped, and that memory mapping and file I/O are coherent.
23832
23833 The test creates a test file, memory maps the file, updates
23834 the file using the memory map, and then reads the file using
23835 file I/O to verify that the file contains the updates.
23836*/
23837
23838#include <fcntl.h>
23839#include <sys/mman.h>
23840
23841#if !STDC_HEADERS && !HAVE_STDLIB_H
23842char *malloc ();
23843#endif
23844
23845/* This mess was copied from the GNU getpagesize.h. */
23846#if !HAVE_GETPAGESIZE
23847/* Assume that all systems that can run configure have sys/param.h. */
23848# if !HAVE_SYS_PARAM_H
23849# define HAVE_SYS_PARAM_H 1
23850# endif
23851
23852# ifdef _SC_PAGESIZE
23853# define getpagesize() sysconf(_SC_PAGESIZE)
23854# else /* no _SC_PAGESIZE */
23855# if HAVE_SYS_PARAM_H
23856# include <sys/param.h>
23857# ifdef EXEC_PAGESIZE
23858# define getpagesize() EXEC_PAGESIZE
23859# else /* no EXEC_PAGESIZE */
23860# ifdef NBPG
23861# define getpagesize() NBPG * CLSIZE
23862# ifndef CLSIZE
23863# define CLSIZE 1
23864# endif /* no CLSIZE */
23865# else /* no NBPG */
23866# ifdef NBPC
23867# define getpagesize() NBPC
23868# else /* no NBPC */
23869# ifdef PAGESIZE
23870# define getpagesize() PAGESIZE
23871# endif /* PAGESIZE */
23872# endif /* no NBPC */
23873# endif /* no NBPG */
23874# endif /* no EXEC_PAGESIZE */
23875# else /* no HAVE_SYS_PARAM_H */
23876# define getpagesize() 8192 /* punt totally */
23877# endif /* no HAVE_SYS_PARAM_H */
23878# endif /* no _SC_PAGESIZE */
23879
23880#endif /* no HAVE_GETPAGESIZE */
23881
23882int
23883main ()
23884{
23885 char *data, *data2, *data3;
23886 int i, pagesize;
23887 int fd;
23888
23889 pagesize = getpagesize ();
23890
23891 /* First, make a file with some known garbage in it. */
23892 data = (char *) malloc (pagesize);
23893 if (!data)
23894 exit (1);
23895 for (i = 0; i < pagesize; ++i)
23896 *(data + i) = rand ();
23897 umask (0);
23898 fd = creat ("conftest.mmap", 0600);
23899 if (fd < 0)
23900 exit (1);
23901 if (write (fd, data, pagesize) != pagesize)
23902 exit (1);
23903 close (fd);
23904
23905 /* Mmap the file as read/write/shared and verify that we see the
23906 same garbage. */
23907 fd = open ("conftest.mmap", O_RDWR);
23908 if (fd < 0)
23909 exit (1);
23910 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23911 if (data2 == 0)
23912 exit (1);
23913 for (i = 0; i < pagesize; ++i)
23914 if (*(data + i) != *(data2 + i))
23915 exit (1);
23916
23917 /* Finally, make sure that changes to the mapped area
23918 percolate back to the file as seen by read(). */
23919 for (i = 0; i < pagesize; ++i)
23920 *(data2 + i) = *(data2 + i) + 1;
23921 data3 = (char *) malloc (pagesize);
23922 if (!data3)
23923 exit (1);
23924 if (read (fd, data3, pagesize) != pagesize)
23925 exit (1);
23926 for (i = 0; i < pagesize; ++i)
23927 if (*(data2 + i) != *(data3 + i))
23928 exit (1);
23929 close (fd);
23930 exit (0);
23931}
23932_ACEOF
23933if ac_fn_c_try_run "$LINENO"; then :
23934 magick_cv_func_mmap_fileio=yes
23935else
23936 magick_cv_func_mmap_fileio=no
23937fi
23938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23939 conftest.$ac_objext conftest.beam conftest.$ac_ext
23940fi
23941
23942fi
23943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23944$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23945if test $magick_cv_func_mmap_fileio = yes; then
23946
23947$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23948
23949fi
23950rm -f conftest.mmap
23951
cristy8b350f62009-11-15 23:12:43 +000023952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023953$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023954if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023955 $as_echo_n "(cached) " >&6
23956else
cristy8b350f62009-11-15 23:12:43 +000023957 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023958 ac_cv_func_closedir_void=yes
23959else
cristy8b350f62009-11-15 23:12:43 +000023960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023961/* end confdefs.h. */
23962$ac_includes_default
23963#include <$ac_header_dirent>
23964#ifndef __cplusplus
23965int closedir ();
23966#endif
23967
23968int
23969main ()
23970{
23971return closedir (opendir (".")) != 0;
23972 ;
23973 return 0;
23974}
23975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023976if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023977 ac_cv_func_closedir_void=no
23978else
cristy8b350f62009-11-15 23:12:43 +000023979 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023980fi
cristy8b350f62009-11-15 23:12:43 +000023981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23982 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023983fi
23984
cristy3ed852e2009-09-05 21:47:34 +000023985fi
cristy8b350f62009-11-15 23:12:43 +000023986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023987$as_echo "$ac_cv_func_closedir_void" >&6; }
23988if test $ac_cv_func_closedir_void = yes; then
23989
cristy8b350f62009-11-15 23:12:43 +000023990$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023991
23992fi
23993
cristycd4c5312009-11-22 01:19:08 +000023994
23995
23996
23997 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023998do :
23999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024000ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24001"
cristy98dddb52010-11-04 00:30:15 +000024002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024003 cat >>confdefs.h <<_ACEOF
24004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24005_ACEOF
24006
24007fi
24008
24009done
24010
cristycd4c5312009-11-22 01:19:08 +000024011
24012
24013
24014
24015
24016
24017
cristy3ed852e2009-09-05 21:47:34 +000024018for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024019do :
24020 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024021if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024022 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024023#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024024_ACEOF
24025
24026fi
24027done
24028
cristy8b350f62009-11-15 23:12:43 +000024029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024030$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024031if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024032 $as_echo_n "(cached) " >&6
24033else
cristy8b350f62009-11-15 23:12:43 +000024034 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024035 ac_cv_func_mmap_fixed_mapped=no
24036else
cristy8b350f62009-11-15 23:12:43 +000024037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024038/* end confdefs.h. */
24039$ac_includes_default
24040/* malloc might have been renamed as rpl_malloc. */
24041#undef malloc
24042
24043/* Thanks to Mike Haertel and Jim Avera for this test.
24044 Here is a matrix of mmap possibilities:
24045 mmap private not fixed
24046 mmap private fixed at somewhere currently unmapped
24047 mmap private fixed at somewhere already mapped
24048 mmap shared not fixed
24049 mmap shared fixed at somewhere currently unmapped
24050 mmap shared fixed at somewhere already mapped
24051 For private mappings, we should verify that changes cannot be read()
24052 back from the file, nor mmap's back from the file at a different
24053 address. (There have been systems where private was not correctly
24054 implemented like the infamous i386 svr4.0, and systems where the
24055 VM page cache was not coherent with the file system buffer cache
24056 like early versions of FreeBSD and possibly contemporary NetBSD.)
24057 For shared mappings, we should conversely verify that changes get
24058 propagated back to all the places they're supposed to be.
24059
24060 Grep wants private fixed already mapped.
24061 The main things grep needs to know about mmap are:
24062 * does it exist and is it safe to write into the mmap'd area
24063 * how to use it (BSD variants) */
24064
24065#include <fcntl.h>
24066#include <sys/mman.h>
24067
24068#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24069char *malloc ();
24070#endif
24071
24072/* This mess was copied from the GNU getpagesize.h. */
24073#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024074# ifdef _SC_PAGESIZE
24075# define getpagesize() sysconf(_SC_PAGESIZE)
24076# else /* no _SC_PAGESIZE */
24077# ifdef HAVE_SYS_PARAM_H
24078# include <sys/param.h>
24079# ifdef EXEC_PAGESIZE
24080# define getpagesize() EXEC_PAGESIZE
24081# else /* no EXEC_PAGESIZE */
24082# ifdef NBPG
24083# define getpagesize() NBPG * CLSIZE
24084# ifndef CLSIZE
24085# define CLSIZE 1
24086# endif /* no CLSIZE */
24087# else /* no NBPG */
24088# ifdef NBPC
24089# define getpagesize() NBPC
24090# else /* no NBPC */
24091# ifdef PAGESIZE
24092# define getpagesize() PAGESIZE
24093# endif /* PAGESIZE */
24094# endif /* no NBPC */
24095# endif /* no NBPG */
24096# endif /* no EXEC_PAGESIZE */
24097# else /* no HAVE_SYS_PARAM_H */
24098# define getpagesize() 8192 /* punt totally */
24099# endif /* no HAVE_SYS_PARAM_H */
24100# endif /* no _SC_PAGESIZE */
24101
24102#endif /* no HAVE_GETPAGESIZE */
24103
24104int
24105main ()
24106{
24107 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024108 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024109 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024110 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024111
24112 pagesize = getpagesize ();
24113
24114 /* First, make a file with some known garbage in it. */
24115 data = (char *) malloc (pagesize);
24116 if (!data)
24117 return 1;
24118 for (i = 0; i < pagesize; ++i)
24119 *(data + i) = rand ();
24120 umask (0);
24121 fd = creat ("conftest.mmap", 0600);
24122 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024123 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024124 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024125 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024126 close (fd);
24127
cristycd4c5312009-11-22 01:19:08 +000024128 /* Next, check that the tail of a page is zero-filled. File must have
24129 non-zero length, otherwise we risk SIGBUS for entire page. */
24130 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24131 if (fd2 < 0)
24132 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024133 cdata2 = "";
24134 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024135 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024136 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024137 if (data2 == MAP_FAILED)
24138 return 6;
24139 for (i = 0; i < pagesize; ++i)
24140 if (*(data2 + i))
24141 return 7;
24142 close (fd2);
24143 if (munmap (data2, pagesize))
24144 return 8;
24145
cristy3ed852e2009-09-05 21:47:34 +000024146 /* Next, try to mmap the file at a fixed address which already has
24147 something else allocated at it. If we can, also make sure that
24148 we see the same garbage. */
24149 fd = open ("conftest.mmap", O_RDWR);
24150 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024151 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024152 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24153 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024154 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024155 for (i = 0; i < pagesize; ++i)
24156 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024157 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024158
24159 /* Finally, make sure that changes to the mapped area do not
24160 percolate back to the file as seen by read(). (This is a bug on
24161 some variants of i386 svr4.0.) */
24162 for (i = 0; i < pagesize; ++i)
24163 *(data2 + i) = *(data2 + i) + 1;
24164 data3 = (char *) malloc (pagesize);
24165 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024166 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024167 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024168 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024169 for (i = 0; i < pagesize; ++i)
24170 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024171 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024172 close (fd);
24173 return 0;
24174}
24175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024176if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024177 ac_cv_func_mmap_fixed_mapped=yes
24178else
cristy8b350f62009-11-15 23:12:43 +000024179 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024180fi
cristy8b350f62009-11-15 23:12:43 +000024181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24182 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024183fi
24184
cristy3ed852e2009-09-05 21:47:34 +000024185fi
cristy8b350f62009-11-15 23:12:43 +000024186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024187$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24188if test $ac_cv_func_mmap_fixed_mapped = yes; then
24189
cristy8b350f62009-11-15 23:12:43 +000024190$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024191
24192fi
cristycd4c5312009-11-22 01:19:08 +000024193rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024194
cristy3ed852e2009-09-05 21:47:34 +000024195for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024196do :
24197 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024198if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024199 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024200#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024201_ACEOF
24202
24203fi
24204
24205done
24206
cristy3ed852e2009-09-05 21:47:34 +000024207for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024208do :
24209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24210ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024211if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024212 cat >>confdefs.h <<_ACEOF
24213#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24214_ACEOF
24215
24216fi
24217done
24218
24219if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024221$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024222if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024223 $as_echo_n "(cached) " >&6
24224else
cristy8b350f62009-11-15 23:12:43 +000024225 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024226 ac_cv_func_fork_works=cross
24227else
cristy8b350f62009-11-15 23:12:43 +000024228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024229/* end confdefs.h. */
24230$ac_includes_default
24231int
24232main ()
24233{
24234
24235 /* By Ruediger Kuhlmann. */
24236 return fork () < 0;
24237
24238 ;
24239 return 0;
24240}
24241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024242if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024243 ac_cv_func_fork_works=yes
24244else
cristy8b350f62009-11-15 23:12:43 +000024245 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024246fi
cristy8b350f62009-11-15 23:12:43 +000024247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24248 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024249fi
24250
cristy3ed852e2009-09-05 21:47:34 +000024251fi
cristy8b350f62009-11-15 23:12:43 +000024252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024253$as_echo "$ac_cv_func_fork_works" >&6; }
24254
24255else
24256 ac_cv_func_fork_works=$ac_cv_func_fork
24257fi
24258if test "x$ac_cv_func_fork_works" = xcross; then
24259 case $host in
24260 *-*-amigaos* | *-*-msdosdjgpp*)
24261 # Override, as these systems have only a dummy fork() stub
24262 ac_cv_func_fork_works=no
24263 ;;
24264 *)
24265 ac_cv_func_fork_works=yes
24266 ;;
24267 esac
cristy8b350f62009-11-15 23:12:43 +000024268 { $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 +000024269$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24270fi
24271ac_cv_func_vfork_works=$ac_cv_func_vfork
24272if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024274$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024275if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024276 $as_echo_n "(cached) " >&6
24277else
cristy8b350f62009-11-15 23:12:43 +000024278 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024279 ac_cv_func_vfork_works=cross
24280else
cristy8b350f62009-11-15 23:12:43 +000024281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024282/* end confdefs.h. */
24283/* Thanks to Paul Eggert for this test. */
24284$ac_includes_default
24285#include <sys/wait.h>
24286#ifdef HAVE_VFORK_H
24287# include <vfork.h>
24288#endif
24289/* On some sparc systems, changes by the child to local and incoming
24290 argument registers are propagated back to the parent. The compiler
24291 is told about this with #include <vfork.h>, but some compilers
24292 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24293 static variable whose address is put into a register that is
24294 clobbered by the vfork. */
24295static void
24296#ifdef __cplusplus
24297sparc_address_test (int arg)
24298# else
24299sparc_address_test (arg) int arg;
24300#endif
24301{
24302 static pid_t child;
24303 if (!child) {
24304 child = vfork ();
24305 if (child < 0) {
24306 perror ("vfork");
24307 _exit(2);
24308 }
24309 if (!child) {
24310 arg = getpid();
24311 write(-1, "", 0);
24312 _exit (arg);
24313 }
24314 }
24315}
24316
24317int
24318main ()
24319{
24320 pid_t parent = getpid ();
24321 pid_t child;
24322
24323 sparc_address_test (0);
24324
24325 child = vfork ();
24326
24327 if (child == 0) {
24328 /* Here is another test for sparc vfork register problems. This
24329 test uses lots of local variables, at least as many local
24330 variables as main has allocated so far including compiler
24331 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24332 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24333 reuse the register of parent for one of the local variables,
24334 since it will think that parent can't possibly be used any more
24335 in this routine. Assigning to the local variable will thus
24336 munge parent in the parent process. */
24337 pid_t
24338 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24339 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24340 /* Convince the compiler that p..p7 are live; otherwise, it might
24341 use the same hardware register for all 8 local variables. */
24342 if (p != p1 || p != p2 || p != p3 || p != p4
24343 || p != p5 || p != p6 || p != p7)
24344 _exit(1);
24345
24346 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24347 from child file descriptors. If the child closes a descriptor
24348 before it execs or exits, this munges the parent's descriptor
24349 as well. Test for this by closing stdout in the child. */
24350 _exit(close(fileno(stdout)) != 0);
24351 } else {
24352 int status;
24353 struct stat st;
24354
24355 while (wait(&status) != child)
24356 ;
24357 return (
24358 /* Was there some problem with vforking? */
24359 child < 0
24360
24361 /* Did the child fail? (This shouldn't happen.) */
24362 || status
24363
24364 /* Did the vfork/compiler bug occur? */
24365 || parent != getpid()
24366
24367 /* Did the file descriptor bug occur? */
24368 || fstat(fileno(stdout), &st) != 0
24369 );
24370 }
24371}
24372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024373if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024374 ac_cv_func_vfork_works=yes
24375else
cristy8b350f62009-11-15 23:12:43 +000024376 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024377fi
cristy8b350f62009-11-15 23:12:43 +000024378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24379 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024380fi
24381
cristy3ed852e2009-09-05 21:47:34 +000024382fi
cristy8b350f62009-11-15 23:12:43 +000024383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024384$as_echo "$ac_cv_func_vfork_works" >&6; }
24385
24386fi;
24387if test "x$ac_cv_func_fork_works" = xcross; then
24388 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024389 { $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 +000024390$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24391fi
24392
24393if test "x$ac_cv_func_vfork_works" = xyes; then
24394
cristy8b350f62009-11-15 23:12:43 +000024395$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024396
24397else
24398
cristy8b350f62009-11-15 23:12:43 +000024399$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024400
24401fi
24402if test "x$ac_cv_func_fork_works" = xyes; then
24403
cristy8b350f62009-11-15 23:12:43 +000024404$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024405
24406fi
24407
cristy8b350f62009-11-15 23:12:43 +000024408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024409$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024410if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024411 $as_echo_n "(cached) " >&6
24412else
cristy8b350f62009-11-15 23:12:43 +000024413 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024414 ac_cv_func_memcmp_working=no
24415else
cristy8b350f62009-11-15 23:12:43 +000024416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024417/* end confdefs.h. */
24418$ac_includes_default
24419int
24420main ()
24421{
24422
24423 /* Some versions of memcmp are not 8-bit clean. */
24424 char c0 = '\100', c1 = '\200', c2 = '\201';
24425 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24426 return 1;
24427
24428 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24429 or more and with at least one buffer not starting on a 4-byte boundary.
24430 William Lewis provided this test program. */
24431 {
24432 char foo[21];
24433 char bar[21];
24434 int i;
24435 for (i = 0; i < 4; i++)
24436 {
24437 char *a = foo + i;
24438 char *b = bar + i;
24439 strcpy (a, "--------01111111");
24440 strcpy (b, "--------10000000");
24441 if (memcmp (a, b, 16) >= 0)
24442 return 1;
24443 }
24444 return 0;
24445 }
24446
24447 ;
24448 return 0;
24449}
24450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024451if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024452 ac_cv_func_memcmp_working=yes
24453else
cristy8b350f62009-11-15 23:12:43 +000024454 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024455fi
cristy8b350f62009-11-15 23:12:43 +000024456rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24457 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024458fi
24459
cristy3ed852e2009-09-05 21:47:34 +000024460fi
cristy8b350f62009-11-15 23:12:43 +000024461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024462$as_echo "$ac_cv_func_memcmp_working" >&6; }
24463test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24464 *" memcmp.$ac_objext "* ) ;;
24465 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24466 ;;
24467esac
24468
24469
cristy3ed852e2009-09-05 21:47:34 +000024470for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024471do :
24472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24473ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024474if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024475 cat >>confdefs.h <<_ACEOF
24476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24477_ACEOF
24478
24479fi
24480
24481done
24482
cristy8b350f62009-11-15 23:12:43 +000024483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024484$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024485if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024486 $as_echo_n "(cached) " >&6
24487else
24488 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24489 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24490 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024492/* end confdefs.h. */
24493$ac_includes_default
24494#ifdef HAVE_SYS_SELECT_H
24495# include <sys/select.h>
24496#endif
24497#ifdef HAVE_SYS_SOCKET_H
24498# include <sys/socket.h>
24499#endif
24500
24501int
24502main ()
24503{
24504extern int select ($ac_arg1,
24505 $ac_arg234, $ac_arg234, $ac_arg234,
24506 $ac_arg5);
24507 ;
24508 return 0;
24509}
24510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024511if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024512 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024513fi
cristy3ed852e2009-09-05 21:47:34 +000024514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24515 done
24516 done
24517done
24518# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024519: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024520
24521fi
cristy8b350f62009-11-15 23:12:43 +000024522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024523$as_echo "$ac_cv_func_select_args" >&6; }
24524ac_save_IFS=$IFS; IFS=','
24525set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24526IFS=$ac_save_IFS
24527shift
24528
24529cat >>confdefs.h <<_ACEOF
24530#define SELECT_TYPE_ARG1 $1
24531_ACEOF
24532
24533
24534cat >>confdefs.h <<_ACEOF
24535#define SELECT_TYPE_ARG234 ($2)
24536_ACEOF
24537
24538
24539cat >>confdefs.h <<_ACEOF
24540#define SELECT_TYPE_ARG5 ($3)
24541_ACEOF
24542
24543rm -f conftest*
24544
cristyda16f162011-02-19 23:52:17 +000024545if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024546 $as_echo_n "(cached) " >&6
24547else
24548 ac_cv_func_setvbuf_reversed=no
24549fi
24550
24551
cristy8b350f62009-11-15 23:12:43 +000024552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024553$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024554if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024555 $as_echo_n "(cached) " >&6
24556else
cristy8b350f62009-11-15 23:12:43 +000024557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024558/* end confdefs.h. */
24559#include <sys/types.h>
24560#include <signal.h>
24561
24562int
24563main ()
24564{
24565return *(signal (0, 0)) (0) == 1;
24566 ;
24567 return 0;
24568}
24569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024570if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024571 ac_cv_type_signal=int
24572else
cristy8b350f62009-11-15 23:12:43 +000024573 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024574fi
cristy3ed852e2009-09-05 21:47:34 +000024575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24576fi
cristy8b350f62009-11-15 23:12:43 +000024577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024578$as_echo "$ac_cv_type_signal" >&6; }
24579
24580cat >>confdefs.h <<_ACEOF
24581#define RETSIGTYPE $ac_cv_type_signal
24582_ACEOF
24583
24584
cristy8b350f62009-11-15 23:12:43 +000024585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024586$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024587if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024588 $as_echo_n "(cached) " >&6
24589else
cristy8b350f62009-11-15 23:12:43 +000024590 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024591 ac_cv_func_strtod=no
24592else
cristy8b350f62009-11-15 23:12:43 +000024593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024594/* end confdefs.h. */
24595
24596$ac_includes_default
24597#ifndef strtod
24598double strtod ();
24599#endif
24600int
24601main()
24602{
24603 {
24604 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24605 char *string = " +69";
24606 char *term;
24607 double value;
24608 value = strtod (string, &term);
24609 if (value != 69 || term != (string + 4))
24610 return 1;
24611 }
24612
24613 {
24614 /* Under Solaris 2.4, strtod returns the wrong value for the
24615 terminating character under some conditions. */
24616 char *string = "NaN";
24617 char *term;
24618 strtod (string, &term);
24619 if (term != string && *(term - 1) == 0)
24620 return 1;
24621 }
24622 return 0;
24623}
24624
24625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024626if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024627 ac_cv_func_strtod=yes
24628else
cristy8b350f62009-11-15 23:12:43 +000024629 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024630fi
cristy8b350f62009-11-15 23:12:43 +000024631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24632 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024633fi
24634
cristy3ed852e2009-09-05 21:47:34 +000024635fi
cristy8b350f62009-11-15 23:12:43 +000024636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024637$as_echo "$ac_cv_func_strtod" >&6; }
24638if test $ac_cv_func_strtod = no; then
24639 case " $LIBOBJS " in
24640 *" strtod.$ac_objext "* ) ;;
24641 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24642 ;;
24643esac
24644
cristy8b350f62009-11-15 23:12:43 +000024645ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024646if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024647
cristy3ed852e2009-09-05 21:47:34 +000024648fi
24649
cristy3ed852e2009-09-05 21:47:34 +000024650if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024652$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024653if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024654 $as_echo_n "(cached) " >&6
24655else
24656 ac_check_lib_save_LIBS=$LIBS
24657LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024659/* end confdefs.h. */
24660
24661/* Override any GCC internal prototype to avoid an error.
24662 Use char because int might match the return type of a GCC
24663 builtin and then its argument prototype would still apply. */
24664#ifdef __cplusplus
24665extern "C"
24666#endif
24667char pow ();
24668int
24669main ()
24670{
24671return pow ();
24672 ;
24673 return 0;
24674}
24675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024676if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024677 ac_cv_lib_m_pow=yes
24678else
cristy8b350f62009-11-15 23:12:43 +000024679 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024680fi
cristy8b350f62009-11-15 23:12:43 +000024681rm -f core conftest.err conftest.$ac_objext \
24682 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024683LIBS=$ac_check_lib_save_LIBS
24684fi
cristy8b350f62009-11-15 23:12:43 +000024685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024686$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024687if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024688 POW_LIB=-lm
24689else
cristy8b350f62009-11-15 23:12:43 +000024690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024691$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24692fi
24693
24694fi
24695
24696fi
24697
cristy3ed852e2009-09-05 21:47:34 +000024698for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024699do :
24700 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024701if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024702 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024703#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024704_ACEOF
24705
cristy8b350f62009-11-15 23:12:43 +000024706ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024707if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024708
cristy8b350f62009-11-15 23:12:43 +000024709$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024710
24711fi
24712
24713fi
24714done
24715
24716
24717
cristy161b9262010-03-20 19:34:32 +000024718#
24719# Find math library
24720#
24721MATH_LIBS=''
24722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24723$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024724if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024725 $as_echo_n "(cached) " >&6
24726else
24727 ac_check_lib_save_LIBS=$LIBS
24728LIBS="-lm $LIBS"
24729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24730/* end confdefs.h. */
24731
24732/* Override any GCC internal prototype to avoid an error.
24733 Use char because int might match the return type of a GCC
24734 builtin and then its argument prototype would still apply. */
24735#ifdef __cplusplus
24736extern "C"
24737#endif
24738char sqrt ();
24739int
24740main ()
24741{
24742return sqrt ();
24743 ;
24744 return 0;
24745}
24746_ACEOF
24747if ac_fn_c_try_link "$LINENO"; then :
24748 ac_cv_lib_m_sqrt=yes
24749else
24750 ac_cv_lib_m_sqrt=no
24751fi
24752rm -f core conftest.err conftest.$ac_objext \
24753 conftest$ac_exeext conftest.$ac_ext
24754LIBS=$ac_check_lib_save_LIBS
24755fi
24756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24757$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024758if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024759 MATH_LIBS="-lm"
24760fi
24761
24762LIBS="$MATH_LIBS $LIBS"
24763
24764
cristyb33454f2011-08-03 02:10:45 +000024765for 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 strerror_r 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 +000024766do :
24767 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24768ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024769if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024770 cat >>confdefs.h <<_ACEOF
24771#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24772_ACEOF
24773
24774fi
24775done
24776
24777
cristye43a45e2009-09-28 14:49:00 +000024778#
24779# Check for clock_gettime().
24780#
cristy8b350f62009-11-15 23:12:43 +000024781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024782$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024783if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024784 $as_echo_n "(cached) " >&6
24785else
24786 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024788/* end confdefs.h. */
24789
24790/* Override any GCC internal prototype to avoid an error.
24791 Use char because int might match the return type of a GCC
24792 builtin and then its argument prototype would still apply. */
24793#ifdef __cplusplus
24794extern "C"
24795#endif
24796char clock_gettime ();
24797int
24798main ()
24799{
24800return clock_gettime ();
24801 ;
24802 return 0;
24803}
24804_ACEOF
24805for ac_lib in '' rt; do
24806 if test -z "$ac_lib"; then
24807 ac_res="none required"
24808 else
24809 ac_res=-l$ac_lib
24810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24811 fi
cristy8b350f62009-11-15 23:12:43 +000024812 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024813 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024814fi
cristy8b350f62009-11-15 23:12:43 +000024815rm -f core conftest.err conftest.$ac_objext \
24816 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024817 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024818 break
24819fi
24820done
cristyda16f162011-02-19 23:52:17 +000024821if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024822
cristye43a45e2009-09-28 14:49:00 +000024823else
24824 ac_cv_search_clock_gettime=no
24825fi
24826rm conftest.$ac_ext
24827LIBS=$ac_func_search_save_LIBS
24828fi
cristy8b350f62009-11-15 23:12:43 +000024829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024830$as_echo "$ac_cv_search_clock_gettime" >&6; }
24831ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024832if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24834
24835
cristy8b350f62009-11-15 23:12:43 +000024836$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024837
cristy8b350f62009-11-15 23:12:43 +000024838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024839$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024841/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024842
24843 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024844int
24845main ()
24846{
24847clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024848 ;
24849 return 0;
24850}
24851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024852if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024853
cristy8b350f62009-11-15 23:12:43 +000024854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024855$as_echo "yes" >&6; }
24856
cristy8b350f62009-11-15 23:12:43 +000024857$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024858
24859
24860else
cristy8b350f62009-11-15 23:12:43 +000024861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024862$as_echo "no" >&6; }
24863
24864fi
cristye43a45e2009-09-28 14:49:00 +000024865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24866
24867else
24868
cristy8b350f62009-11-15 23:12:43 +000024869 for ac_func in gettimeofday ftime
24870do :
24871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24872ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024873if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024874 cat >>confdefs.h <<_ACEOF
24875#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24876_ACEOF
24877 break
24878fi
24879done
24880
24881
24882
24883fi
24884
24885
cristy3ed852e2009-09-05 21:47:34 +000024886########
24887#
24888# Check for function prototypes
24889#
24890########
24891
cristy8b350f62009-11-15 23:12:43 +000024892ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024893#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024894"
cristyda16f162011-02-19 23:52:17 +000024895if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024896 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024897else
cristy8b350f62009-11-15 23:12:43 +000024898 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024899fi
24900
cristy3ed852e2009-09-05 21:47:34 +000024901cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024902#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024904ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024905#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024906"
cristyda16f162011-02-19 23:52:17 +000024907if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024908 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024909else
cristy8b350f62009-11-15 23:12:43 +000024910 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024911fi
24912
cristy3ed852e2009-09-05 21:47:34 +000024913cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024914#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024915_ACEOF
24916
24917
cristy8b350f62009-11-15 23:12:43 +000024918ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024919#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024920"
cristyda16f162011-02-19 23:52:17 +000024921if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024922 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024923else
cristy8b350f62009-11-15 23:12:43 +000024924 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024925fi
24926
cristy3ed852e2009-09-05 21:47:34 +000024927cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024928#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024929_ACEOF
24930
24931
cristy8b350f62009-11-15 23:12:43 +000024932ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024933#include <stdio.h>
24934#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024935"
cristyda16f162011-02-19 23:52:17 +000024936if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024937 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024938else
cristy8b350f62009-11-15 23:12:43 +000024939 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024940fi
24941
cristy3ed852e2009-09-05 21:47:34 +000024942cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024943#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024944_ACEOF
24945
24946
cristy3ed852e2009-09-05 21:47:34 +000024947########
24948#
24949# C++ Support Tests (For Magick++)
24950#
24951########
24952have_magick_plus_plus='no'
24953if test "$with_magick_plus_plus" = 'yes'; then
24954 OLIBS="$LIBS"
24955 LIBS=''
24956 ac_ext=cpp
24957ac_cpp='$CXXCPP $CPPFLAGS'
24958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24961
24962
24963 # Full set of headers used...
24964 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24965 # functional iomanip iosfwd iostream iterator list string strstream utility
24966 ac_ext=cpp
24967ac_cpp='$CXXCPP $CPPFLAGS'
24968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24971
24972 ac_ext=cpp
24973ac_cpp='$CXXCPP $CPPFLAGS'
24974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24977if test -z "$CXX"; then
24978 if test -n "$CCC"; then
24979 CXX=$CCC
24980 else
24981 if test -n "$ac_tool_prefix"; then
24982 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24983 do
24984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24985set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024987$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024988if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024989 $as_echo_n "(cached) " >&6
24990else
24991 if test -n "$CXX"; then
24992 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24993else
24994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24995for as_dir in $PATH
24996do
24997 IFS=$as_save_IFS
24998 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024999 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25001 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025003 break 2
25004 fi
25005done
cristy8b350f62009-11-15 23:12:43 +000025006 done
cristy3ed852e2009-09-05 21:47:34 +000025007IFS=$as_save_IFS
25008
25009fi
25010fi
25011CXX=$ac_cv_prog_CXX
25012if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025014$as_echo "$CXX" >&6; }
25015else
cristy8b350f62009-11-15 23:12:43 +000025016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025017$as_echo "no" >&6; }
25018fi
25019
25020
25021 test -n "$CXX" && break
25022 done
25023fi
25024if test -z "$CXX"; then
25025 ac_ct_CXX=$CXX
25026 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25027do
25028 # Extract the first word of "$ac_prog", so it can be a program name with args.
25029set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025031$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025032if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025033 $as_echo_n "(cached) " >&6
25034else
25035 if test -n "$ac_ct_CXX"; then
25036 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25037else
25038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25039for as_dir in $PATH
25040do
25041 IFS=$as_save_IFS
25042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25045 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025047 break 2
25048 fi
25049done
cristy8b350f62009-11-15 23:12:43 +000025050 done
cristy3ed852e2009-09-05 21:47:34 +000025051IFS=$as_save_IFS
25052
25053fi
25054fi
25055ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25056if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025058$as_echo "$ac_ct_CXX" >&6; }
25059else
cristy8b350f62009-11-15 23:12:43 +000025060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025061$as_echo "no" >&6; }
25062fi
25063
25064
25065 test -n "$ac_ct_CXX" && break
25066done
25067
25068 if test "x$ac_ct_CXX" = x; then
25069 CXX="g++"
25070 else
25071 case $cross_compiling:$ac_tool_warned in
25072yes:)
cristy8b350f62009-11-15 23:12:43 +000025073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25075ac_tool_warned=yes ;;
25076esac
25077 CXX=$ac_ct_CXX
25078 fi
25079fi
25080
25081 fi
25082fi
25083# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025084$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025085set X $ac_compile
25086ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025087for ac_option in --version -v -V -qversion; do
25088 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025089case "(($ac_try" in
25090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091 *) ac_try_echo=$ac_try;;
25092esac
cristy8b350f62009-11-15 23:12:43 +000025093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25094$as_echo "$ac_try_echo"; } >&5
25095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025096 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025097 if test -s conftest.err; then
25098 sed '10a\
25099... rest of stderr output deleted ...
25100 10q' conftest.err >conftest.er1
25101 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025102 fi
cristycd4c5312009-11-22 01:19:08 +000025103 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25105 test $ac_status = 0; }
25106done
cristy3ed852e2009-09-05 21:47:34 +000025107
cristy8b350f62009-11-15 23:12:43 +000025108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025109$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025110if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025111 $as_echo_n "(cached) " >&6
25112else
cristy8b350f62009-11-15 23:12:43 +000025113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025114/* end confdefs.h. */
25115
25116int
25117main ()
25118{
25119#ifndef __GNUC__
25120 choke me
25121#endif
25122
25123 ;
25124 return 0;
25125}
25126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025127if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025128 ac_compiler_gnu=yes
25129else
cristy8b350f62009-11-15 23:12:43 +000025130 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025131fi
cristy3ed852e2009-09-05 21:47:34 +000025132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25133ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25134
25135fi
cristy8b350f62009-11-15 23:12:43 +000025136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025137$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25138if test $ac_compiler_gnu = yes; then
25139 GXX=yes
25140else
25141 GXX=
25142fi
25143ac_test_CXXFLAGS=${CXXFLAGS+set}
25144ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025146$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025147if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025148 $as_echo_n "(cached) " >&6
25149else
25150 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25151 ac_cxx_werror_flag=yes
25152 ac_cv_prog_cxx_g=no
25153 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025155/* end confdefs.h. */
25156
25157int
25158main ()
25159{
25160
25161 ;
25162 return 0;
25163}
25164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025165if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025166 ac_cv_prog_cxx_g=yes
25167else
cristy8b350f62009-11-15 23:12:43 +000025168 CXXFLAGS=""
25169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025170/* end confdefs.h. */
25171
25172int
25173main ()
25174{
25175
25176 ;
25177 return 0;
25178}
25179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025180if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025181
cristy8b350f62009-11-15 23:12:43 +000025182else
25183 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025184 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025186/* end confdefs.h. */
25187
25188int
25189main ()
25190{
25191
25192 ;
25193 return 0;
25194}
25195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025196if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025197 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025198fi
cristy3ed852e2009-09-05 21:47:34 +000025199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25200fi
cristy3ed852e2009-09-05 21:47:34 +000025201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25202fi
cristy3ed852e2009-09-05 21:47:34 +000025203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25205fi
cristy8b350f62009-11-15 23:12:43 +000025206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025207$as_echo "$ac_cv_prog_cxx_g" >&6; }
25208if test "$ac_test_CXXFLAGS" = set; then
25209 CXXFLAGS=$ac_save_CXXFLAGS
25210elif test $ac_cv_prog_cxx_g = yes; then
25211 if test "$GXX" = yes; then
25212 CXXFLAGS="-g -O2"
25213 else
25214 CXXFLAGS="-g"
25215 fi
25216else
25217 if test "$GXX" = yes; then
25218 CXXFLAGS="-O2"
25219 else
25220 CXXFLAGS=
25221 fi
25222fi
25223ac_ext=cpp
25224ac_cpp='$CXXCPP $CPPFLAGS'
25225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25228
cristy73bd4a52010-10-05 11:24:23 +000025229depcc="$CXX" am_compiler_list=
25230
25231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25232$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025233if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025234 $as_echo_n "(cached) " >&6
25235else
25236 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25237 # We make a subdir and do the tests there. Otherwise we can end up
25238 # making bogus files that we don't know about and never remove. For
25239 # instance it was reported that on HP-UX the gcc test will end up
25240 # making a dummy file named `D' -- because `-MD' means `put the output
25241 # in D'.
25242 mkdir conftest.dir
25243 # Copy depcomp to subdir because otherwise we won't find it if we're
25244 # using a relative directory.
25245 cp "$am_depcomp" conftest.dir
25246 cd conftest.dir
25247 # We will build objects and dependencies in a subdirectory because
25248 # it helps to detect inapplicable dependency modes. For instance
25249 # both Tru64's cc and ICC support -MD to output dependencies as a
25250 # side effect of compilation, but ICC will put the dependencies in
25251 # the current directory while Tru64 will put them in the object
25252 # directory.
25253 mkdir sub
25254
25255 am_cv_CXX_dependencies_compiler_type=none
25256 if test "$am_compiler_list" = ""; then
25257 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25258 fi
25259 am__universal=false
25260 case " $depcc " in #(
25261 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25262 esac
25263
25264 for depmode in $am_compiler_list; do
25265 # Setup a source with many dependencies, because some compilers
25266 # like to wrap large dependency lists on column 80 (with \), and
25267 # we should not choose a depcomp mode which is confused by this.
25268 #
25269 # We need to recreate these files for each test, as the compiler may
25270 # overwrite some of them when testing with obscure command lines.
25271 # This happens at least with the AIX C compiler.
25272 : > sub/conftest.c
25273 for i in 1 2 3 4 5 6; do
25274 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25275 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25276 # Solaris 8's {/usr,}/bin/sh.
25277 touch sub/conftst$i.h
25278 done
25279 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25280
25281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25282 # mode. It turns out that the SunPro C++ compiler does not properly
25283 # handle `-M -o', and we need to detect this. Also, some Intel
25284 # versions had trouble with output in subdirs
25285 am__obj=sub/conftest.${OBJEXT-o}
25286 am__minus_obj="-o $am__obj"
25287 case $depmode in
25288 gcc)
25289 # This depmode causes a compiler race in universal mode.
25290 test "$am__universal" = false || continue
25291 ;;
25292 nosideeffect)
25293 # after this tag, mechanisms are not by side-effect, so they'll
25294 # only be used when explicitly requested
25295 if test "x$enable_dependency_tracking" = xyes; then
25296 continue
25297 else
25298 break
25299 fi
25300 ;;
25301 msvisualcpp | msvcmsys)
25302 # This compiler won't grok `-c -o', but also, the minuso test has
25303 # not run yet. These depmodes are late enough in the game, and
25304 # so weak that their functioning should not be impacted.
25305 am__obj=conftest.${OBJEXT-o}
25306 am__minus_obj=
25307 ;;
25308 none) break ;;
25309 esac
25310 if depmode=$depmode \
25311 source=sub/conftest.c object=$am__obj \
25312 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25313 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25314 >/dev/null 2>conftest.err &&
25315 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25317 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25319 # icc doesn't choke on unknown options, it will just issue warnings
25320 # or remarks (even with -Werror). So we grep stderr for any message
25321 # that says an option was ignored or not supported.
25322 # When given -MP, icc 7.0 and 7.1 complain thusly:
25323 # icc: Command line warning: ignoring option '-M'; no argument required
25324 # The diagnosis changed in icc 8.0:
25325 # icc: Command line remark: option '-MP' not supported
25326 if (grep 'ignoring option' conftest.err ||
25327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25328 am_cv_CXX_dependencies_compiler_type=$depmode
25329 break
25330 fi
25331 fi
25332 done
25333
25334 cd ..
25335 rm -rf conftest.dir
25336else
25337 am_cv_CXX_dependencies_compiler_type=none
25338fi
25339
25340fi
25341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25342$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25343CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25344
25345 if
25346 test "x$enable_dependency_tracking" != xno \
25347 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25348 am__fastdepCXX_TRUE=
25349 am__fastdepCXX_FALSE='#'
25350else
25351 am__fastdepCXX_TRUE='#'
25352 am__fastdepCXX_FALSE=
25353fi
25354
25355
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25357$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025358if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025359 $as_echo_n "(cached) " >&6
25360else
25361
25362 ac_ext=cpp
25363ac_cpp='$CXXCPP $CPPFLAGS'
25364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25367
25368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369/* end confdefs.h. */
25370
25371int f(int x){return 1;}
25372int f(char x){return 1;}
25373int f(bool x){return 1;}
25374
25375int
25376main ()
25377{
25378bool b = true; return f(b);
25379 ;
25380 return 0;
25381}
25382_ACEOF
25383if ac_fn_cxx_try_compile "$LINENO"; then :
25384 ax_cv_cxx_bool=yes
25385else
25386 ax_cv_cxx_bool=no
25387fi
25388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25389 ac_ext=cpp
25390ac_cpp='$CXXCPP $CPPFLAGS'
25391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25394
25395
25396fi
25397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25398$as_echo "$ax_cv_cxx_bool" >&6; }
25399if test "$ax_cv_cxx_bool" = yes; then
25400
25401$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25402
25403fi
25404
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25406$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025407if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025408 $as_echo_n "(cached) " >&6
25409else
25410
25411 ac_ext=cpp
25412ac_cpp='$CXXCPP $CPPFLAGS'
25413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25416
25417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25418/* end confdefs.h. */
25419namespace Outer { namespace Inner { int i = 0; }}
25420int
25421main ()
25422{
25423using namespace Outer::Inner; return i;
25424 ;
25425 return 0;
25426}
25427_ACEOF
25428if ac_fn_cxx_try_compile "$LINENO"; then :
25429 ax_cv_cxx_namespaces=yes
25430else
25431 ax_cv_cxx_namespaces=no
25432fi
25433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25434 ac_ext=cpp
25435ac_cpp='$CXXCPP $CPPFLAGS'
25436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25439
25440
25441fi
25442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25443$as_echo "$ax_cv_cxx_namespaces" >&6; }
25444if test "$ax_cv_cxx_namespaces" = yes; then
25445
25446$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25447
25448fi
25449
25450
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25452$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025453if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025454 $as_echo_n "(cached) " >&6
25455else
25456
25457 ac_ext=cpp
25458ac_cpp='$CXXCPP $CPPFLAGS'
25459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25462
25463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25464/* end confdefs.h. */
25465#include <iostream>
25466 std::istream& is = std::cin;
25467int
25468main ()
25469{
25470
25471 ;
25472 return 0;
25473}
25474_ACEOF
25475if ac_fn_cxx_try_compile "$LINENO"; then :
25476 ax_cv_cxx_have_std_namespace=yes
25477else
25478 ax_cv_cxx_have_std_namespace=no
25479fi
25480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25481 ac_ext=cpp
25482ac_cpp='$CXXCPP $CPPFLAGS'
25483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25486
25487
25488fi
25489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25490$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25491 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25492
25493$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25494
25495 fi
25496
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25498$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025499if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025500 $as_echo_n "(cached) " >&6
25501else
25502
25503
25504 ac_ext=cpp
25505ac_cpp='$CXXCPP $CPPFLAGS'
25506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25509
25510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511/* end confdefs.h. */
25512#include <iostream>
25513#include <map>
25514#include <iomanip>
25515#include <cmath>
25516#ifdef HAVE_NAMESPACES
25517using namespace std;
25518#endif
25519int
25520main ()
25521{
25522return 0;
25523 ;
25524 return 0;
25525}
25526_ACEOF
25527if ac_fn_cxx_try_compile "$LINENO"; then :
25528 ac_cv_cxx_have_std_libs=yes
25529else
25530 ac_cv_cxx_have_std_libs=no
25531fi
25532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25533 ac_ext=cpp
25534ac_cpp='$CXXCPP $CPPFLAGS'
25535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25538
25539
25540fi
25541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25542$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25543if test "$ac_cv_cxx_have_std_libs" = yes; then
25544
25545$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25546
25547fi
25548
cristy3ed852e2009-09-05 21:47:34 +000025549
25550 OPENMP_CXXFLAGS=
25551 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025552if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025553 enableval=$enable_openmp;
25554fi
25555
25556 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25558$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025559if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025560 $as_echo_n "(cached) " >&6
25561else
cristy8b350f62009-11-15 23:12:43 +000025562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025564
25565#ifndef _OPENMP
25566 choke me
25567#endif
25568#include <omp.h>
25569int main () { return omp_get_num_threads (); }
25570
25571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025572if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025573 ac_cv_prog_cxx_openmp='none needed'
25574else
cristy8b350f62009-11-15 23:12:43 +000025575 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025576 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25577 ac_save_CXXFLAGS=$CXXFLAGS
25578 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25580/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025581
25582#ifndef _OPENMP
25583 choke me
25584#endif
25585#include <omp.h>
25586int main () { return omp_get_num_threads (); }
25587
25588_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025589if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025590 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025591fi
cristy8b350f62009-11-15 23:12:43 +000025592rm -f core conftest.err conftest.$ac_objext \
25593 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025594 CXXFLAGS=$ac_save_CXXFLAGS
25595 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25596 break
25597 fi
25598 done
25599fi
cristy8b350f62009-11-15 23:12:43 +000025600rm -f core conftest.err conftest.$ac_objext \
25601 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025602fi
cristy8b350f62009-11-15 23:12:43 +000025603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025604$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25605 case $ac_cv_prog_cxx_openmp in #(
25606 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025607 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025608 *)
cristy8b350f62009-11-15 23:12:43 +000025609 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025610 esac
25611 fi
25612
25613
25614 ac_ext=c
25615ac_cpp='$CPP $CPPFLAGS'
25616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25618ac_compiler_gnu=$ac_cv_c_compiler_gnu
25619
25620
cristy8b350f62009-11-15 23:12:43 +000025621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025622$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25623 if \
cristy964cb7f2010-04-25 23:18:00 +000025624 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025625 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025626 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025627 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025628 have_magick_plus_plus='yes'
25629 else
25630 have_magick_plus_plus='no (failed tests)'
25631 fi
cristy8b350f62009-11-15 23:12:43 +000025632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000025633$as_echo "$have_magick_plus_plus" >&6; }
25634 LIBS="$OLIBS"
25635fi
cristy73bd4a52010-10-05 11:24:23 +000025636 if test "$have_magick_plus_plus" = 'yes'; then
25637 WITH_MAGICK_PLUS_PLUS_TRUE=
25638 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25639else
25640 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25641 WITH_MAGICK_PLUS_PLUS_FALSE=
25642fi
25643
cristy3ed852e2009-09-05 21:47:34 +000025644
25645# Only check for delegate libraries in subdirectories if requested.
25646if test "$enable_delegate_build" != 'no'; then
25647 # Check for delegate sub-directories and add -I & -L options as required.
25648 # This presumes that delegates are installed as detailed in the ImageMagick
25649 # README. If delegates are installed in a standard location where the
25650 # compiler will automatically find them then these options should not be
25651 # required.
25652
25653 #
25654 # Most delegates have includes in the same directory as the library, but not all...
25655 #
25656 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025657 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 +000025658 if test -d "$builddir/$dir"; then
25659 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25660 else
25661 if test -d "$srcdirfull/$dir"; then
25662 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25663 fi
25664 fi
25665 done
25666
25667 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025668 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 +000025669 if test -d "$builddir/$dir/.libs"; then
25670 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25671 else
25672 if test -d "$srcdirfull/$dir/.libs"; then
25673 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25674 fi
25675 fi
25676 if test -d "$builddir/$dir"; then
25677 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25678 else
25679 if test -d "$srcdirfull/$dir"; then
25680 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25681 fi
25682 fi
25683 done
25684fi
25685
25686# Assume that delegate headers reside under same directory as ImageMagick
25687# installation prefix.
25688MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25689
25690#
25691# Find the X11 RGB database
25692#
cristy8b350f62009-11-15 23:12:43 +000025693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025694$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025695if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025696 $as_echo_n "(cached) " >&6
25697else
25698 # Look for the header file in a standard set of common directories.
25699# Check X11 before X11Rn because it is often a symlink to the current release.
25700 for ac_dir in \
25701 /lib/usr/lib/X11 \
25702 /usr/X11/lib \
25703 /usr/X11R4/lib \
25704 /usr/X11R5/lib \
25705 /usr/X11R6/lib \
25706 /usr/X11R7/lib \
25707 /usr/X386/lib \
25708 /usr/XFree86/lib/X11 \
25709 /usr/athena/lib \
25710 /usr/lib \
25711 /usr/lib/X11 \
25712 /usr/lib/X11R4 \
25713 /usr/lib/X11R5 \
25714 /usr/lib/X11R6 \
25715 /usr/lib/X11R7 \
25716 /usr/local/X11/lib \
25717 /usr/local/X11R4/lib \
25718 /usr/local/X11R5/lib \
25719 /usr/local/X11R6/lib \
25720 /usr/local/lib \
25721 /usr/local/lib/X11 \
25722 /usr/local/lib/X11R4 \
25723 /usr/local/lib/X11R5 \
25724 /usr/local/lib/X11R6 \
25725 /usr/local/lib/X11R7 \
25726 /usr/local/x11r5/lib \
25727 /usr/lpp/Xamples/lib \
25728 /usr/openwin/lib \
25729 /usr/openwin/share/lib \
25730 /usr/unsupported/lib \
25731 /usr/x386/lib \
25732 ; do
25733 if test -f "$ac_dir/X11/rgb.txt"; then
25734 im_cv_x_configure="$ac_dir/X11/"
25735 break
25736 elif test -f "$ac_dir/rgb.txt"; then
25737 im_cv_x_configure="$ac_dir/"
25738 break
25739 fi
25740
25741 done
25742fi
cristy8b350f62009-11-15 23:12:43 +000025743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025744$as_echo "$im_cv_x_configure" >&6; }
25745X11_CONFIGURE_PATH="$im_cv_x_configure"
25746case "${build_os}" in
25747 mingw* )
25748 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25749 ;;
25750esac
25751
25752cat >>confdefs.h <<_ACEOF
25753#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25754_ACEOF
25755
25756
25757#
25758# Find OpenMP library
25759#
25760GOMP_LIBS=''
25761if test "$enable_openmp" != 'no'; then
25762 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025764$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025765if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025766 $as_echo_n "(cached) " >&6
25767else
25768 ac_check_lib_save_LIBS=$LIBS
25769LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025771/* end confdefs.h. */
25772
25773/* Override any GCC internal prototype to avoid an error.
25774 Use char because int might match the return type of a GCC
25775 builtin and then its argument prototype would still apply. */
25776#ifdef __cplusplus
25777extern "C"
25778#endif
25779char GOMP_parallel_start ();
25780int
25781main ()
25782{
25783return GOMP_parallel_start ();
25784 ;
25785 return 0;
25786}
25787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025788if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025789 ac_cv_lib_gomp_GOMP_parallel_start=yes
25790else
cristy8b350f62009-11-15 23:12:43 +000025791 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025792fi
cristy8b350f62009-11-15 23:12:43 +000025793rm -f core conftest.err conftest.$ac_objext \
25794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025795LIBS=$ac_check_lib_save_LIBS
25796fi
cristy8b350f62009-11-15 23:12:43 +000025797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025798$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025799if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025800 GOMP_LIBS="-lgomp"
25801fi
25802 # gcc
25803 else
cristy8b350f62009-11-15 23:12:43 +000025804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025805$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025806if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025807 $as_echo_n "(cached) " >&6
25808else
25809 ac_check_lib_save_LIBS=$LIBS
25810LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025812/* end confdefs.h. */
25813
25814/* Override any GCC internal prototype to avoid an error.
25815 Use char because int might match the return type of a GCC
25816 builtin and then its argument prototype would still apply. */
25817#ifdef __cplusplus
25818extern "C"
25819#endif
25820char sunw_mp_register_warn ();
25821int
25822main ()
25823{
25824return sunw_mp_register_warn ();
25825 ;
25826 return 0;
25827}
25828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025829if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025830 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25831else
cristy8b350f62009-11-15 23:12:43 +000025832 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025833fi
cristy8b350f62009-11-15 23:12:43 +000025834rm -f core conftest.err conftest.$ac_objext \
25835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025836LIBS=$ac_check_lib_save_LIBS
25837fi
cristy8b350f62009-11-15 23:12:43 +000025838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025839$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025840if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025841 GOMP_LIBS="-lmtsk"
25842fi
25843 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025845$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025846if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025847 $as_echo_n "(cached) " >&6
25848else
25849 ac_check_lib_save_LIBS=$LIBS
25850LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025852/* end confdefs.h. */
25853
25854/* Override any GCC internal prototype to avoid an error.
25855 Use char because int might match the return type of a GCC
25856 builtin and then its argument prototype would still apply. */
25857#ifdef __cplusplus
25858extern "C"
25859#endif
25860char _xlsmpFlush ();
25861int
25862main ()
25863{
25864return _xlsmpFlush ();
25865 ;
25866 return 0;
25867}
25868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025869if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025870 ac_cv_lib_xlsmp__xlsmpFlush=yes
25871else
cristy8b350f62009-11-15 23:12:43 +000025872 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025873fi
cristy8b350f62009-11-15 23:12:43 +000025874rm -f core conftest.err conftest.$ac_objext \
25875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025876LIBS=$ac_check_lib_save_LIBS
25877fi
cristy8b350f62009-11-15 23:12:43 +000025878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025879$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025880if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025881 GOMP_LIBS="-lxlsmp"
25882fi
25883 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025885$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025886if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025887 $as_echo_n "(cached) " >&6
25888else
25889 ac_check_lib_save_LIBS=$LIBS
25890LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025892/* end confdefs.h. */
25893
25894/* Override any GCC internal prototype to avoid an error.
25895 Use char because int might match the return type of a GCC
25896 builtin and then its argument prototype would still apply. */
25897#ifdef __cplusplus
25898extern "C"
25899#endif
25900char mp_destroy ();
25901int
25902main ()
25903{
25904return mp_destroy ();
25905 ;
25906 return 0;
25907}
25908_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025909if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025910 ac_cv_lib_mp_mp_destroy=yes
25911else
cristy8b350f62009-11-15 23:12:43 +000025912 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025913fi
cristy8b350f62009-11-15 23:12:43 +000025914rm -f core conftest.err conftest.$ac_objext \
25915 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025916LIBS=$ac_check_lib_save_LIBS
25917fi
cristy8b350f62009-11-15 23:12:43 +000025918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025919$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025920if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025921 GOMP_LIBS="-lmp"
25922fi
25923 # SGI IRIX 6.5 MIPSpro C/C++
25924 fi
25925 LIBS="$GOMP_LIBS $LIBS"
25926fi
25927
25928
25929#
25930# Find Posix threads library
25931#
25932THREAD_LIBS=''
25933if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25934
25935 if test "x$PTHREAD_LIBS" = "x"; then
25936 case "${host_cpu}-${host_os}" in
25937 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025938
25939
25940
25941ac_ext=c
25942ac_cpp='$CPP $CPPFLAGS'
25943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25945ac_compiler_gnu=$ac_cv_c_compiler_gnu
25946
25947magick_pthread_lib_ok=no
25948
25949LIB=-lc_r
25950save_LIBS="$LIBS"
25951LIBS="$LIBS $LIB"
25952
25953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25954$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956/* end confdefs.h. */
25957#include <pthread.h>
25958int
25959main ()
25960{
25961 pthread_t th;
25962 pthread_join(th, 0);
25963 pthread_attr_init(0);
25964 pthread_cleanup_push(0, 0);
25965 pthread_create(0,0,0,0);
25966 pthread_cleanup_pop(0);
25967 ;
25968 return 0;
25969}
25970_ACEOF
25971if ac_fn_c_try_link "$LINENO"; then :
25972 magick_pthread_lib_ok=yes
25973fi
25974rm -f core conftest.err conftest.$ac_objext \
25975 conftest$ac_exeext conftest.$ac_ext
25976
25977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25978$as_echo "${magick_pthread_lib_ok}" >&6; }
25979if test "$magick_pthread_lib_ok" = yes
25980then
25981 PTHREAD_LIBS=-lc_r
25982 :
25983else
25984
25985 :
25986fi
25987
25988LIBS="$save_LIBS"
25989
25990ac_ext=c
25991ac_cpp='$CPP $CPPFLAGS'
25992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25994ac_compiler_gnu=$ac_cv_c_compiler_gnu
25995
25996 ;;
cristy3ed852e2009-09-05 21:47:34 +000025997 esac
25998 fi
25999
26000 for lib in pthread pthreads; do
26001 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026002
26003
26004
26005ac_ext=c
26006ac_cpp='$CPP $CPPFLAGS'
26007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26009ac_compiler_gnu=$ac_cv_c_compiler_gnu
26010
26011magick_pthread_lib_ok=no
26012
26013LIB=-l$lib
26014save_LIBS="$LIBS"
26015LIBS="$LIBS $LIB"
26016
26017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26018$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26020/* end confdefs.h. */
26021#include <pthread.h>
26022int
26023main ()
26024{
26025 pthread_t th;
26026 pthread_join(th, 0);
26027 pthread_attr_init(0);
26028 pthread_cleanup_push(0, 0);
26029 pthread_create(0,0,0,0);
26030 pthread_cleanup_pop(0);
26031 ;
26032 return 0;
26033}
26034_ACEOF
26035if ac_fn_c_try_link "$LINENO"; then :
26036 magick_pthread_lib_ok=yes
26037fi
26038rm -f core conftest.err conftest.$ac_objext \
26039 conftest$ac_exeext conftest.$ac_ext
26040
26041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26042$as_echo "${magick_pthread_lib_ok}" >&6; }
26043if test "$magick_pthread_lib_ok" = yes
26044then
26045 PTHREAD_LIBS=-l$lib
26046 :
26047else
26048
26049 :
26050fi
26051
26052LIBS="$save_LIBS"
26053
26054ac_ext=c
26055ac_cpp='$CPP $CPPFLAGS'
26056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26058ac_compiler_gnu=$ac_cv_c_compiler_gnu
26059
26060
cristy3ed852e2009-09-05 21:47:34 +000026061 fi
26062 done
26063
26064 THREAD_LIBS="$PTHREAD_LIBS"
26065 LIBS="$LIBS $THREAD_LIBS"
26066fi
26067
26068
26069#
26070# Check for umem.
26071#
26072have_umem='no'
26073UMEM_LIBS=''
26074if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026076$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026078$as_echo "" >&6; }
26079 failed=0
26080 passed=0
cristy8b350f62009-11-15 23:12:43 +000026081 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026082if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026083 passed=`expr $passed + 1`
26084else
26085 failed=`expr $failed + 1`
26086fi
26087
26088
cristy8b350f62009-11-15 23:12:43 +000026089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026090$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026091if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026092 $as_echo_n "(cached) " >&6
26093else
26094 ac_check_lib_save_LIBS=$LIBS
26095LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026097/* end confdefs.h. */
26098
26099/* Override any GCC internal prototype to avoid an error.
26100 Use char because int might match the return type of a GCC
26101 builtin and then its argument prototype would still apply. */
26102#ifdef __cplusplus
26103extern "C"
26104#endif
26105char umem_alloc ();
26106int
26107main ()
26108{
26109return umem_alloc ();
26110 ;
26111 return 0;
26112}
26113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026115 ac_cv_lib_umem_umem_alloc=yes
26116else
cristy8b350f62009-11-15 23:12:43 +000026117 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026118fi
cristy8b350f62009-11-15 23:12:43 +000026119rm -f core conftest.err conftest.$ac_objext \
26120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026121LIBS=$ac_check_lib_save_LIBS
26122fi
cristy8b350f62009-11-15 23:12:43 +000026123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026124$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026125if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026126 passed=`expr $passed + 1`
26127else
26128 failed=`expr $failed + 1`
26129fi
26130
cristy8b350f62009-11-15 23:12:43 +000026131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026132$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026133if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026134 $as_echo_n "(cached) " >&6
26135else
26136 ac_check_lib_save_LIBS=$LIBS
26137LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026139/* end confdefs.h. */
26140
26141/* Override any GCC internal prototype to avoid an error.
26142 Use char because int might match the return type of a GCC
26143 builtin and then its argument prototype would still apply. */
26144#ifdef __cplusplus
26145extern "C"
26146#endif
26147char umem_free ();
26148int
26149main ()
26150{
26151return umem_free ();
26152 ;
26153 return 0;
26154}
26155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026156if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026157 ac_cv_lib_umem_umem_free=yes
26158else
cristy8b350f62009-11-15 23:12:43 +000026159 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026160fi
cristy8b350f62009-11-15 23:12:43 +000026161rm -f core conftest.err conftest.$ac_objext \
26162 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026163LIBS=$ac_check_lib_save_LIBS
26164fi
cristy8b350f62009-11-15 23:12:43 +000026165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026166$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026167if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026168 passed=`expr $passed + 1`
26169else
26170 failed=`expr $failed + 1`
26171fi
26172
cristy8b350f62009-11-15 23:12:43 +000026173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026174$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26175 if test $passed -gt 0; then
26176 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026178$as_echo "no -- some components failed test" >&6; }
26179 have_umem='no (failed tests)'
26180 else
26181 UMEM_LIBS='-lumem'
26182 LIBS="$UMEM_LIBS $LIBS"
26183
cristy8b350f62009-11-15 23:12:43 +000026184$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026185
cristy8b350f62009-11-15 23:12:43 +000026186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026187$as_echo "yes" >&6; }
26188 have_umem='yes'
26189 fi
26190 else
cristy8b350f62009-11-15 23:12:43 +000026191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026192$as_echo "no" >&6; }
26193 fi
26194fi
cristy73bd4a52010-10-05 11:24:23 +000026195 if test "$have_umem" = 'yes'; then
26196 HasUMEM_TRUE=
26197 HasUMEM_FALSE='#'
26198else
26199 HasUMEM_TRUE='#'
26200 HasUMEM_FALSE=
26201fi
26202
cristy3ed852e2009-09-05 21:47:34 +000026203
26204
26205#
26206# Add support for ccmalloc memory debugging library if requested
26207#
26208have_ccmalloc='no'
26209CCMALLOC_LIBS=''
26210if test "$enable_ccmalloc" = 'yes'; then
26211 # Extract the first word of "ccmalloc", so it can be a program name with args.
26212set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026215if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026216 $as_echo_n "(cached) " >&6
26217else
26218 case $CCMALLOCDelegate in
26219 [\\/]* | ?:[\\/]*)
26220 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26221 ;;
26222 *)
26223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26224for as_dir in $PATH
26225do
26226 IFS=$as_save_IFS
26227 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26230 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026232 break 2
26233 fi
26234done
cristy8b350f62009-11-15 23:12:43 +000026235 done
cristy3ed852e2009-09-05 21:47:34 +000026236IFS=$as_save_IFS
26237
26238 ;;
26239esac
26240fi
26241CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26242if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026244$as_echo "$CCMALLOCDelegate" >&6; }
26245else
cristy8b350f62009-11-15 23:12:43 +000026246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026247$as_echo "no" >&6; }
26248fi
26249
26250
26251 if test -n "$CCMALLOCDelegate"; then
26252 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26253 OLIBS="$LIBS"
26254 # Assume that gcc is used with ccmalloc.
26255 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026257$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026258if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026259 $as_echo_n "(cached) " >&6
26260else
26261 ac_check_lib_save_LIBS=$LIBS
26262LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026264/* end confdefs.h. */
26265
26266/* Override any GCC internal prototype to avoid an error.
26267 Use char because int might match the return type of a GCC
26268 builtin and then its argument prototype would still apply. */
26269#ifdef __cplusplus
26270extern "C"
26271#endif
26272char ccmalloc_malloc ();
26273int
26274main ()
26275{
26276return ccmalloc_malloc ();
26277 ;
26278 return 0;
26279}
26280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026281if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026282 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26283else
cristy8b350f62009-11-15 23:12:43 +000026284 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026285fi
cristy8b350f62009-11-15 23:12:43 +000026286rm -f core conftest.err conftest.$ac_objext \
26287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026288LIBS=$ac_check_lib_save_LIBS
26289fi
cristy8b350f62009-11-15 23:12:43 +000026290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026291$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026292if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026293 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26294fi
26295
26296 if test -n "$CCMALLOC_LIBS"; then
26297 LIBS="$OLIBS"
26298 LIBS="$LIBS $CCMALLOC_LIBS"
26299 have_ccmalloc='yes'
26300 else
26301 LIBS="$OLIBS"
26302 fi
26303 fi
26304fi
26305
26306#
26307# Add support for efence memory debugging library if requested
26308#
26309if test "$enable_efence" = 'yes'; then
26310 EFENCE_LIBS='-lefence'
26311 LIBS="$EFENCE_LIBS $LIBS"
26312fi
26313
cristy3ed852e2009-09-05 21:47:34 +000026314
26315#
26316# Check for BZLIB
26317#
26318
26319
26320# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026321if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026322 withval=$with_bzlib; with_bzlib=$withval
26323else
26324 with_bzlib='yes'
26325fi
26326
26327
26328if test "$with_bzlib" != 'yes'; then
26329 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26330fi
26331
26332have_bzlib='no'
26333if test "$with_bzlib" != 'no'; then
26334 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026336$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026338$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026340$as_echo "" >&6; }
26341 failed=0
26342 passed=0
26343 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026344 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026345if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026346 passed=`expr $passed + 1`
26347else
26348 failed=`expr $failed + 1`
26349fi
26350
26351
cristy8b350f62009-11-15 23:12:43 +000026352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026353$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026354if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026355 $as_echo_n "(cached) " >&6
26356else
26357 ac_check_lib_save_LIBS=$LIBS
26358LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026360/* end confdefs.h. */
26361
26362/* Override any GCC internal prototype to avoid an error.
26363 Use char because int might match the return type of a GCC
26364 builtin and then its argument prototype would still apply. */
26365#ifdef __cplusplus
26366extern "C"
26367#endif
26368char BZ2_bzDecompress ();
26369int
26370main ()
26371{
26372return BZ2_bzDecompress ();
26373 ;
26374 return 0;
26375}
26376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026377if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026378 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26379else
cristy8b350f62009-11-15 23:12:43 +000026380 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026381fi
cristy8b350f62009-11-15 23:12:43 +000026382rm -f core conftest.err conftest.$ac_objext \
26383 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026384LIBS=$ac_check_lib_save_LIBS
26385fi
cristy8b350f62009-11-15 23:12:43 +000026386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026387$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026388if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026389 found_libbz=`expr $found_libbz + 1`
26390fi
26391
26392 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026394$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026395if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026396 $as_echo_n "(cached) " >&6
26397else
26398 ac_check_lib_save_LIBS=$LIBS
26399LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026401/* end confdefs.h. */
26402
26403/* Override any GCC internal prototype to avoid an error.
26404 Use char because int might match the return type of a GCC
26405 builtin and then its argument prototype would still apply. */
26406#ifdef __cplusplus
26407extern "C"
26408#endif
26409char _imp__BZ2_decompress ();
26410int
26411main ()
26412{
26413return _imp__BZ2_decompress ();
26414 ;
26415 return 0;
26416}
26417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026419 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26420else
cristy8b350f62009-11-15 23:12:43 +000026421 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026422fi
cristy8b350f62009-11-15 23:12:43 +000026423rm -f core conftest.err conftest.$ac_objext \
26424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026425LIBS=$ac_check_lib_save_LIBS
26426fi
cristy8b350f62009-11-15 23:12:43 +000026427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026429if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026430 found_libbz=`expr $found_libbz + 1`
26431fi
26432
26433 fi
26434 if test $found_libbz -gt 0; then
26435 passed=`expr $passed + 1`
26436 else
26437 failed=`expr $failed + 1`
26438 fi
cristy8b350f62009-11-15 23:12:43 +000026439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026440$as_echo_n "checking if BZLIB package is complete... " >&6; }
26441 if test $passed -gt 0; then
26442 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026444$as_echo "no -- some components failed test" >&6; }
26445 have_bzlib='no (failed tests)'
26446 else
26447 BZLIB_LIBS='-lbz2'
26448 LIBS="$BZLIB_LIBS $LIBS"
26449
cristy8b350f62009-11-15 23:12:43 +000026450$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026451
cristy8b350f62009-11-15 23:12:43 +000026452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026453$as_echo "yes" >&6; }
26454 have_bzlib='yes'
26455 fi
26456 else
cristy8b350f62009-11-15 23:12:43 +000026457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026458$as_echo "no" >&6; }
26459 fi
26460fi
cristy73bd4a52010-10-05 11:24:23 +000026461 if test "$have_bzlib" = 'yes'; then
26462 BZLIB_DELEGATE_TRUE=
26463 BZLIB_DELEGATE_FALSE='#'
26464else
26465 BZLIB_DELEGATE_TRUE='#'
26466 BZLIB_DELEGATE_FALSE=
26467fi
26468
cristy3ed852e2009-09-05 21:47:34 +000026469
26470
26471#
26472# Find the X11 include and library directories.
26473#
26474IPC_LIBS=''
26475X11_LIBS=''
26476XEXT_LIBS=''
26477XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026479$as_echo_n "checking for X... " >&6; }
26480
26481
26482# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026483if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026484 withval=$with_x;
26485fi
26486
26487# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26488if test "x$with_x" = xno; then
26489 # The user explicitly disabled X.
26490 have_x=disabled
26491else
26492 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026493 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026494 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026495 $as_echo_n "(cached) " >&6
26496else
26497 # One or both of the vars are not set, and there is no cached value.
26498ac_x_includes=no ac_x_libraries=no
26499rm -f -r conftest.dir
26500if mkdir conftest.dir; then
26501 cd conftest.dir
26502 cat >Imakefile <<'_ACEOF'
26503incroot:
26504 @echo incroot='${INCROOT}'
26505usrlibdir:
26506 @echo usrlibdir='${USRLIBDIR}'
26507libdir:
26508 @echo libdir='${LIBDIR}'
26509_ACEOF
26510 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026511 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026512 for ac_var in incroot usrlibdir libdir; do
26513 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26514 done
26515 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26516 for ac_extension in a so sl dylib la dll; do
26517 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26518 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26519 ac_im_usrlibdir=$ac_im_libdir; break
26520 fi
26521 done
26522 # Screen out bogus values from the imake configuration. They are
26523 # bogus both because they are the default anyway, and because
26524 # using them would break gcc on systems where it needs fixed includes.
26525 case $ac_im_incroot in
26526 /usr/include) ac_x_includes= ;;
26527 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26528 esac
26529 case $ac_im_usrlibdir in
26530 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26531 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26532 esac
26533 fi
26534 cd ..
26535 rm -f -r conftest.dir
26536fi
26537
26538# Standard set of common directories for X headers.
26539# Check X11 before X11Rn because it is often a symlink to the current release.
26540ac_x_header_dirs='
26541/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026542/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026543/usr/X11R6/include
26544/usr/X11R5/include
26545/usr/X11R4/include
26546
26547/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026548/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026549/usr/include/X11R6
26550/usr/include/X11R5
26551/usr/include/X11R4
26552
26553/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026554/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026555/usr/local/X11R6/include
26556/usr/local/X11R5/include
26557/usr/local/X11R4/include
26558
26559/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026560/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026561/usr/local/include/X11R6
26562/usr/local/include/X11R5
26563/usr/local/include/X11R4
26564
26565/usr/X386/include
26566/usr/x386/include
26567/usr/XFree86/include/X11
26568
26569/usr/include
26570/usr/local/include
26571/usr/unsupported/include
26572/usr/athena/include
26573/usr/local/x11r5/include
26574/usr/lpp/Xamples/include
26575
26576/usr/openwin/include
26577/usr/openwin/share/include'
26578
26579if test "$ac_x_includes" = no; then
26580 # Guess where to find include files, by looking for Xlib.h.
26581 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026583/* end confdefs.h. */
26584#include <X11/Xlib.h>
26585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026586if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026587 # We can compile using X headers with no special include directory.
26588ac_x_includes=
26589else
cristyc7083c12009-10-14 03:16:55 +000026590 for ac_dir in $ac_x_header_dirs; do
26591 if test -r "$ac_dir/X11/Xlib.h"; then
26592 ac_x_includes=$ac_dir
26593 break
26594 fi
26595done
26596fi
cristyda16f162011-02-19 23:52:17 +000026597rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026598fi # $ac_x_includes = no
26599
26600if test "$ac_x_libraries" = no; then
26601 # Check for the libraries.
26602 # See if we find them without any special options.
26603 # Don't add to $LIBS permanently.
26604 ac_save_LIBS=$LIBS
26605 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026607/* end confdefs.h. */
26608#include <X11/Xlib.h>
26609int
26610main ()
26611{
26612XrmInitialize ()
26613 ;
26614 return 0;
26615}
26616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026617if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026618 LIBS=$ac_save_LIBS
26619# We can link X programs with no special library path.
26620ac_x_libraries=
26621else
cristy8b350f62009-11-15 23:12:43 +000026622 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026623for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26624do
26625 # Don't even attempt the hair of trying to link an X program!
26626 for ac_extension in a so sl dylib la dll; do
26627 if test -r "$ac_dir/libX11.$ac_extension"; then
26628 ac_x_libraries=$ac_dir
26629 break 2
26630 fi
26631 done
26632done
26633fi
cristy8b350f62009-11-15 23:12:43 +000026634rm -f core conftest.err conftest.$ac_objext \
26635 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026636fi # $ac_x_libraries = no
26637
26638case $ac_x_includes,$ac_x_libraries in #(
26639 no,* | *,no | *\'*)
26640 # Didn't find X, or a directory has "'" in its name.
26641 ac_cv_have_x="have_x=no";; #(
26642 *)
26643 # Record where we found X for the cache.
26644 ac_cv_have_x="have_x=yes\
26645 ac_x_includes='$ac_x_includes'\
26646 ac_x_libraries='$ac_x_libraries'"
26647esac
26648fi
26649;; #(
26650 *) have_x=yes;;
26651 esac
26652 eval "$ac_cv_have_x"
26653fi # $with_x != no
26654
26655if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026657$as_echo "$have_x" >&6; }
26658 no_x=yes
26659else
26660 # If each of the values was on the command line, it overrides each guess.
26661 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26662 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26663 # Update the cache value to reflect the command line values.
26664 ac_cv_have_x="have_x=yes\
26665 ac_x_includes='$x_includes'\
26666 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026668$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26669fi
26670
cristy3ed852e2009-09-05 21:47:34 +000026671if test "$no_x" = yes; then
26672 # Not all programs may use this symbol, but it does not hurt to define it.
26673
cristy8b350f62009-11-15 23:12:43 +000026674$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026675
26676 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26677else
26678 if test -n "$x_includes"; then
26679 X_CFLAGS="$X_CFLAGS -I$x_includes"
26680 fi
26681
26682 # It would also be nice to do this for all -L options, not just this one.
26683 if test -n "$x_libraries"; then
26684 X_LIBS="$X_LIBS -L$x_libraries"
26685 # For Solaris; some versions of Sun CC require a space after -R and
26686 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026688$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26689 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26690 ac_xsave_c_werror_flag=$ac_c_werror_flag
26691 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026693/* end confdefs.h. */
26694
26695int
26696main ()
26697{
26698
26699 ;
26700 return 0;
26701}
26702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026703if ac_fn_c_try_link "$LINENO"; then :
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026705$as_echo "no" >&6; }
26706 X_LIBS="$X_LIBS -R$x_libraries"
26707else
cristy8b350f62009-11-15 23:12:43 +000026708 LIBS="$ac_xsave_LIBS -R $x_libraries"
26709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026710/* end confdefs.h. */
26711
26712int
26713main ()
26714{
26715
26716 ;
26717 return 0;
26718}
26719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026720if ac_fn_c_try_link "$LINENO"; then :
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026722$as_echo "yes" >&6; }
26723 X_LIBS="$X_LIBS -R $x_libraries"
26724else
cristy8b350f62009-11-15 23:12:43 +000026725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026726$as_echo "neither works" >&6; }
26727fi
cristy8b350f62009-11-15 23:12:43 +000026728rm -f core conftest.err conftest.$ac_objext \
26729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026730fi
cristy8b350f62009-11-15 23:12:43 +000026731rm -f core conftest.err conftest.$ac_objext \
26732 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026733 ac_c_werror_flag=$ac_xsave_c_werror_flag
26734 LIBS=$ac_xsave_LIBS
26735 fi
26736
26737 # Check for system-dependent libraries X programs must link with.
26738 # Do this before checking for the system-independent R6 libraries
26739 # (-lICE), since we may need -lsocket or whatever for X linking.
26740
26741 if test "$ISC" = yes; then
26742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26743 else
26744 # Martyn Johnson says this is needed for Ultrix, if the X
26745 # libraries were built with DECnet support. And Karl Berry says
26746 # the Alpha needs dnet_stub (dnet does not exist).
26747 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026749/* end confdefs.h. */
26750
26751/* Override any GCC internal prototype to avoid an error.
26752 Use char because int might match the return type of a GCC
26753 builtin and then its argument prototype would still apply. */
26754#ifdef __cplusplus
26755extern "C"
26756#endif
26757char XOpenDisplay ();
26758int
26759main ()
26760{
26761return XOpenDisplay ();
26762 ;
26763 return 0;
26764}
26765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026767
cristy8b350f62009-11-15 23:12:43 +000026768else
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026770$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026771if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026772 $as_echo_n "(cached) " >&6
26773else
26774 ac_check_lib_save_LIBS=$LIBS
26775LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026777/* end confdefs.h. */
26778
26779/* Override any GCC internal prototype to avoid an error.
26780 Use char because int might match the return type of a GCC
26781 builtin and then its argument prototype would still apply. */
26782#ifdef __cplusplus
26783extern "C"
26784#endif
26785char dnet_ntoa ();
26786int
26787main ()
26788{
26789return dnet_ntoa ();
26790 ;
26791 return 0;
26792}
26793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026794if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026795 ac_cv_lib_dnet_dnet_ntoa=yes
26796else
cristy8b350f62009-11-15 23:12:43 +000026797 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026798fi
cristy8b350f62009-11-15 23:12:43 +000026799rm -f core conftest.err conftest.$ac_objext \
26800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026801LIBS=$ac_check_lib_save_LIBS
26802fi
cristy8b350f62009-11-15 23:12:43 +000026803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026805if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026806 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26807fi
26808
26809 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026812if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026813 $as_echo_n "(cached) " >&6
26814else
26815 ac_check_lib_save_LIBS=$LIBS
26816LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026818/* end confdefs.h. */
26819
26820/* Override any GCC internal prototype to avoid an error.
26821 Use char because int might match the return type of a GCC
26822 builtin and then its argument prototype would still apply. */
26823#ifdef __cplusplus
26824extern "C"
26825#endif
26826char dnet_ntoa ();
26827int
26828main ()
26829{
26830return dnet_ntoa ();
26831 ;
26832 return 0;
26833}
26834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026835if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026836 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26837else
cristy8b350f62009-11-15 23:12:43 +000026838 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026839fi
cristy8b350f62009-11-15 23:12:43 +000026840rm -f core conftest.err conftest.$ac_objext \
26841 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026842LIBS=$ac_check_lib_save_LIBS
26843fi
cristy8b350f62009-11-15 23:12:43 +000026844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026845$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026846if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026847 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26848fi
26849
26850 fi
26851fi
cristy8b350f62009-11-15 23:12:43 +000026852rm -f core conftest.err conftest.$ac_objext \
26853 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026854 LIBS="$ac_xsave_LIBS"
26855
26856 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26857 # to get the SysV transport functions.
26858 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26859 # needs -lnsl.
26860 # The nsl library prevents programs from opening the X display
26861 # on Irix 5.2, according to T.E. Dickey.
26862 # The functions gethostbyname, getservbyname, and inet_addr are
26863 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026864 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026865if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026866
cristy3ed852e2009-09-05 21:47:34 +000026867fi
26868
cristy3ed852e2009-09-05 21:47:34 +000026869 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026871$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026872if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026873 $as_echo_n "(cached) " >&6
26874else
26875 ac_check_lib_save_LIBS=$LIBS
26876LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026878/* end confdefs.h. */
26879
26880/* Override any GCC internal prototype to avoid an error.
26881 Use char because int might match the return type of a GCC
26882 builtin and then its argument prototype would still apply. */
26883#ifdef __cplusplus
26884extern "C"
26885#endif
26886char gethostbyname ();
26887int
26888main ()
26889{
26890return gethostbyname ();
26891 ;
26892 return 0;
26893}
26894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026895if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026896 ac_cv_lib_nsl_gethostbyname=yes
26897else
cristy8b350f62009-11-15 23:12:43 +000026898 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026899fi
cristy8b350f62009-11-15 23:12:43 +000026900rm -f core conftest.err conftest.$ac_objext \
26901 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026902LIBS=$ac_check_lib_save_LIBS
26903fi
cristy8b350f62009-11-15 23:12:43 +000026904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026905$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026906if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26908fi
26909
26910 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026912$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026913if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026914 $as_echo_n "(cached) " >&6
26915else
26916 ac_check_lib_save_LIBS=$LIBS
26917LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026919/* end confdefs.h. */
26920
26921/* Override any GCC internal prototype to avoid an error.
26922 Use char because int might match the return type of a GCC
26923 builtin and then its argument prototype would still apply. */
26924#ifdef __cplusplus
26925extern "C"
26926#endif
26927char gethostbyname ();
26928int
26929main ()
26930{
26931return gethostbyname ();
26932 ;
26933 return 0;
26934}
26935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026936if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026937 ac_cv_lib_bsd_gethostbyname=yes
26938else
cristy8b350f62009-11-15 23:12:43 +000026939 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026940fi
cristy8b350f62009-11-15 23:12:43 +000026941rm -f core conftest.err conftest.$ac_objext \
26942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026943LIBS=$ac_check_lib_save_LIBS
26944fi
cristy8b350f62009-11-15 23:12:43 +000026945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026946$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026947if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026948 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26949fi
26950
26951 fi
26952 fi
26953
26954 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26955 # socket/setsockopt and other routines are undefined under SCO ODT
26956 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26957 # on later versions), says Simon Leinen: it contains gethostby*
26958 # variants that don't use the name server (or something). -lsocket
26959 # must be given before -lnsl if both are needed. We assume that
26960 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026961 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026962if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026963
cristy3ed852e2009-09-05 21:47:34 +000026964fi
26965
cristy3ed852e2009-09-05 21:47:34 +000026966 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026968$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026969if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026970 $as_echo_n "(cached) " >&6
26971else
26972 ac_check_lib_save_LIBS=$LIBS
26973LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026975/* end confdefs.h. */
26976
26977/* Override any GCC internal prototype to avoid an error.
26978 Use char because int might match the return type of a GCC
26979 builtin and then its argument prototype would still apply. */
26980#ifdef __cplusplus
26981extern "C"
26982#endif
26983char connect ();
26984int
26985main ()
26986{
26987return connect ();
26988 ;
26989 return 0;
26990}
26991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026992if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026993 ac_cv_lib_socket_connect=yes
26994else
cristy8b350f62009-11-15 23:12:43 +000026995 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026996fi
cristy8b350f62009-11-15 23:12:43 +000026997rm -f core conftest.err conftest.$ac_objext \
26998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026999LIBS=$ac_check_lib_save_LIBS
27000fi
cristy8b350f62009-11-15 23:12:43 +000027001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027002$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027003if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027004 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27005fi
27006
27007 fi
27008
27009 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027010 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027011if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027012
cristy3ed852e2009-09-05 21:47:34 +000027013fi
27014
cristy3ed852e2009-09-05 21:47:34 +000027015 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027017$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027018if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027019 $as_echo_n "(cached) " >&6
27020else
27021 ac_check_lib_save_LIBS=$LIBS
27022LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027024/* end confdefs.h. */
27025
27026/* Override any GCC internal prototype to avoid an error.
27027 Use char because int might match the return type of a GCC
27028 builtin and then its argument prototype would still apply. */
27029#ifdef __cplusplus
27030extern "C"
27031#endif
27032char remove ();
27033int
27034main ()
27035{
27036return remove ();
27037 ;
27038 return 0;
27039}
27040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027041if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027042 ac_cv_lib_posix_remove=yes
27043else
cristy8b350f62009-11-15 23:12:43 +000027044 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027045fi
cristy8b350f62009-11-15 23:12:43 +000027046rm -f core conftest.err conftest.$ac_objext \
27047 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027048LIBS=$ac_check_lib_save_LIBS
27049fi
cristy8b350f62009-11-15 23:12:43 +000027050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027052if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027053 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27054fi
27055
27056 fi
27057
27058 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027059 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027060if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027061
cristy3ed852e2009-09-05 21:47:34 +000027062fi
27063
cristy3ed852e2009-09-05 21:47:34 +000027064 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027066$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027067if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027068 $as_echo_n "(cached) " >&6
27069else
27070 ac_check_lib_save_LIBS=$LIBS
27071LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027073/* end confdefs.h. */
27074
27075/* Override any GCC internal prototype to avoid an error.
27076 Use char because int might match the return type of a GCC
27077 builtin and then its argument prototype would still apply. */
27078#ifdef __cplusplus
27079extern "C"
27080#endif
27081char shmat ();
27082int
27083main ()
27084{
27085return shmat ();
27086 ;
27087 return 0;
27088}
27089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027090if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027091 ac_cv_lib_ipc_shmat=yes
27092else
cristy8b350f62009-11-15 23:12:43 +000027093 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027094fi
cristy8b350f62009-11-15 23:12:43 +000027095rm -f core conftest.err conftest.$ac_objext \
27096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027097LIBS=$ac_check_lib_save_LIBS
27098fi
cristy8b350f62009-11-15 23:12:43 +000027099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027100$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027101if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27103fi
27104
27105 fi
27106 fi
27107
27108 # Check for libraries that X11R6 Xt/Xaw programs need.
27109 ac_save_LDFLAGS=$LDFLAGS
27110 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27111 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27112 # check for ICE first), but we must link in the order -lSM -lICE or
27113 # we get undefined symbols. So assume we have SM if we have ICE.
27114 # These have to be linked with before -lX11, unlike the other
27115 # libraries we check for below, so use a different variable.
27116 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027118$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027119if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027120 $as_echo_n "(cached) " >&6
27121else
27122 ac_check_lib_save_LIBS=$LIBS
27123LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027125/* end confdefs.h. */
27126
27127/* Override any GCC internal prototype to avoid an error.
27128 Use char because int might match the return type of a GCC
27129 builtin and then its argument prototype would still apply. */
27130#ifdef __cplusplus
27131extern "C"
27132#endif
27133char IceConnectionNumber ();
27134int
27135main ()
27136{
27137return IceConnectionNumber ();
27138 ;
27139 return 0;
27140}
27141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027142if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 ac_cv_lib_ICE_IceConnectionNumber=yes
27144else
cristy8b350f62009-11-15 23:12:43 +000027145 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027146fi
cristy8b350f62009-11-15 23:12:43 +000027147rm -f core conftest.err conftest.$ac_objext \
27148 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027149LIBS=$ac_check_lib_save_LIBS
27150fi
cristy8b350f62009-11-15 23:12:43 +000027151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027152$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027153if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027154 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27155fi
27156
27157 LDFLAGS=$ac_save_LDFLAGS
27158
27159fi
27160
27161if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027163$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027165$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027167$as_echo "" >&6; }
27168 LDFLAGS="$LDFLAGS $X_LIBS"
27169 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27170 LIBS="$X11_LIBS $LIBS"
27171 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27172
27173
cristy8b350f62009-11-15 23:12:43 +000027174$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027175
27176 #
27177 # Check for X11 shared memory extension
27178 #
27179 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027180 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027181if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027182 have_shmctl='yes'
27183fi
27184
27185 if test "$have_shmctl" != 'yes'; then
27186 PERSIST_LIBS=$LIBS
27187 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027189/* end confdefs.h. */
27190
27191/* Override any GCC internal prototype to avoid an error.
27192 Use char because int might match the return type of a GCC
27193 builtin and then its argument prototype would still apply. */
27194#ifdef __cplusplus
27195extern "C"
27196#endif
27197char shmctl ();
27198int
27199main ()
27200{
27201return shmctl ();
27202 ;
27203 return 0;
27204}
27205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027206if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027207 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027208fi
cristy8b350f62009-11-15 23:12:43 +000027209rm -f core conftest.err conftest.$ac_objext \
27210 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027211 LIBS=$PERSIST_LIBS
27212 fi
27213
27214 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027216$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027217if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027218 $as_echo_n "(cached) " >&6
27219else
27220 ac_check_lib_save_LIBS=$LIBS
27221LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027223/* end confdefs.h. */
27224
27225/* Override any GCC internal prototype to avoid an error.
27226 Use char because int might match the return type of a GCC
27227 builtin and then its argument prototype would still apply. */
27228#ifdef __cplusplus
27229extern "C"
27230#endif
27231char XShmAttach ();
27232int
27233main ()
27234{
27235return XShmAttach ();
27236 ;
27237 return 0;
27238}
27239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027240if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027241 ac_cv_lib_Xext_XShmAttach=yes
27242else
cristy8b350f62009-11-15 23:12:43 +000027243 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027244fi
cristy8b350f62009-11-15 23:12:43 +000027245rm -f core conftest.err conftest.$ac_objext \
27246 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027247LIBS=$ac_check_lib_save_LIBS
27248fi
cristy8b350f62009-11-15 23:12:43 +000027249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027250$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027251if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027252 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027253$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027254
27255fi
27256
27257 fi
27258
27259 #
27260 # Check for X11 shape extension
27261 #
cristy8b350f62009-11-15 23:12:43 +000027262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027263$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027264if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027265 $as_echo_n "(cached) " >&6
27266else
27267 ac_check_lib_save_LIBS=$LIBS
27268LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027270/* end confdefs.h. */
27271
27272/* Override any GCC internal prototype to avoid an error.
27273 Use char because int might match the return type of a GCC
27274 builtin and then its argument prototype would still apply. */
27275#ifdef __cplusplus
27276extern "C"
27277#endif
27278char XShapeCombineMask ();
27279int
27280main ()
27281{
27282return XShapeCombineMask ();
27283 ;
27284 return 0;
27285}
27286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027288 ac_cv_lib_Xext_XShapeCombineMask=yes
27289else
cristy8b350f62009-11-15 23:12:43 +000027290 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027291fi
cristy8b350f62009-11-15 23:12:43 +000027292rm -f core conftest.err conftest.$ac_objext \
27293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027294LIBS=$ac_check_lib_save_LIBS
27295fi
cristy8b350f62009-11-15 23:12:43 +000027296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027298if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027300$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027301
27302fi
27303
cristy8b350f62009-11-15 23:12:43 +000027304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027305$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027306if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027307 $as_echo_n "(cached) " >&6
27308else
27309 ac_check_lib_save_LIBS=$LIBS
27310LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027312/* end confdefs.h. */
27313
27314/* Override any GCC internal prototype to avoid an error.
27315 Use char because int might match the return type of a GCC
27316 builtin and then its argument prototype would still apply. */
27317#ifdef __cplusplus
27318extern "C"
27319#endif
27320char XtSetEventDispatcher ();
27321int
27322main ()
27323{
27324return XtSetEventDispatcher ();
27325 ;
27326 return 0;
27327}
27328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27331else
cristy8b350f62009-11-15 23:12:43 +000027332 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027333fi
cristy8b350f62009-11-15 23:12:43 +000027334rm -f core conftest.err conftest.$ac_objext \
27335 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027336LIBS=$ac_check_lib_save_LIBS
27337fi
cristy8b350f62009-11-15 23:12:43 +000027338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027339$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027340if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027341 XT_LIBS='-lXt'
27342fi
27343
27344 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27345fi
27346if test "$no_x" != 'yes'; then
27347 have_x='yes'
27348else
27349 have_x='no'
27350fi
cristy73bd4a52010-10-05 11:24:23 +000027351 if test "$have_x" = 'yes'; then
27352 X11_DELEGATE_TRUE=
27353 X11_DELEGATE_FALSE='#'
27354else
27355 X11_DELEGATE_TRUE='#'
27356 X11_DELEGATE_FALSE=
27357fi
27358
cristy3ed852e2009-09-05 21:47:34 +000027359
27360
27361
27362
27363#
27364# Check for ZLIB
27365#
27366
27367# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027368if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027369 withval=$with_zlib; with_zlib=$withval
27370else
27371 with_zlib='yes'
27372fi
27373
27374
27375if test "$with_zlib" != 'yes'; then
27376 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27377fi
27378
27379have_zlib='no'
27380ZLIB_LIBS=''
27381if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027383$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027385$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027387$as_echo "" >&6; }
27388 ZLIB_LIBS=''
27389 failed=0
27390 passed=0
cristy8b350f62009-11-15 23:12:43 +000027391 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027392if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027393 passed=`expr $passed + 1`
27394else
27395 failed=`expr $failed + 1`
27396fi
27397
27398
cristy8b350f62009-11-15 23:12:43 +000027399 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027400if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027401 passed=`expr $passed + 1`
27402else
27403 failed=`expr $failed + 1`
27404fi
27405
27406
cristy8b350f62009-11-15 23:12:43 +000027407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027408$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027409if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027410 $as_echo_n "(cached) " >&6
27411else
27412 ac_check_lib_save_LIBS=$LIBS
27413LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027415/* end confdefs.h. */
27416
27417/* Override any GCC internal prototype to avoid an error.
27418 Use char because int might match the return type of a GCC
27419 builtin and then its argument prototype would still apply. */
27420#ifdef __cplusplus
27421extern "C"
27422#endif
27423char compress ();
27424int
27425main ()
27426{
27427return compress ();
27428 ;
27429 return 0;
27430}
27431_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027432if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027433 ac_cv_lib_z_compress=yes
27434else
cristy8b350f62009-11-15 23:12:43 +000027435 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027436fi
cristy8b350f62009-11-15 23:12:43 +000027437rm -f core conftest.err conftest.$ac_objext \
27438 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027439LIBS=$ac_check_lib_save_LIBS
27440fi
cristy8b350f62009-11-15 23:12:43 +000027441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027442$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027443if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027444 passed=`expr $passed + 1`
27445else
27446 failed=`expr $failed + 1`
27447fi
27448
cristy8b350f62009-11-15 23:12:43 +000027449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027450$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027451if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027452 $as_echo_n "(cached) " >&6
27453else
27454 ac_check_lib_save_LIBS=$LIBS
27455LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027457/* end confdefs.h. */
27458
27459/* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
27462#ifdef __cplusplus
27463extern "C"
27464#endif
27465char uncompress ();
27466int
27467main ()
27468{
27469return uncompress ();
27470 ;
27471 return 0;
27472}
27473_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027474if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027475 ac_cv_lib_z_uncompress=yes
27476else
cristy8b350f62009-11-15 23:12:43 +000027477 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027478fi
cristy8b350f62009-11-15 23:12:43 +000027479rm -f core conftest.err conftest.$ac_objext \
27480 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027481LIBS=$ac_check_lib_save_LIBS
27482fi
cristy8b350f62009-11-15 23:12:43 +000027483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027484$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027485if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027486 passed=`expr $passed + 1`
27487else
27488 failed=`expr $failed + 1`
27489fi
27490
cristy8b350f62009-11-15 23:12:43 +000027491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027492$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027493if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027494 $as_echo_n "(cached) " >&6
27495else
27496 ac_check_lib_save_LIBS=$LIBS
27497LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027499/* end confdefs.h. */
27500
27501/* Override any GCC internal prototype to avoid an error.
27502 Use char because int might match the return type of a GCC
27503 builtin and then its argument prototype would still apply. */
27504#ifdef __cplusplus
27505extern "C"
27506#endif
27507char deflate ();
27508int
27509main ()
27510{
27511return deflate ();
27512 ;
27513 return 0;
27514}
27515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027516if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027517 ac_cv_lib_z_deflate=yes
27518else
cristy8b350f62009-11-15 23:12:43 +000027519 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027520fi
cristy8b350f62009-11-15 23:12:43 +000027521rm -f core conftest.err conftest.$ac_objext \
27522 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027523LIBS=$ac_check_lib_save_LIBS
27524fi
cristy8b350f62009-11-15 23:12:43 +000027525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027526$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027527if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027528 passed=`expr $passed + 1`
27529else
27530 failed=`expr $failed + 1`
27531fi
27532
cristy8b350f62009-11-15 23:12:43 +000027533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027534$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027535if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027536 $as_echo_n "(cached) " >&6
27537else
27538 ac_check_lib_save_LIBS=$LIBS
27539LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027541/* end confdefs.h. */
27542
27543/* Override any GCC internal prototype to avoid an error.
27544 Use char because int might match the return type of a GCC
27545 builtin and then its argument prototype would still apply. */
27546#ifdef __cplusplus
27547extern "C"
27548#endif
27549char inflate ();
27550int
27551main ()
27552{
27553return inflate ();
27554 ;
27555 return 0;
27556}
27557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027558if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027559 ac_cv_lib_z_inflate=yes
27560else
cristy8b350f62009-11-15 23:12:43 +000027561 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027562fi
cristy8b350f62009-11-15 23:12:43 +000027563rm -f core conftest.err conftest.$ac_objext \
27564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027565LIBS=$ac_check_lib_save_LIBS
27566fi
cristy8b350f62009-11-15 23:12:43 +000027567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027568$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027569if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027570 passed=`expr $passed + 1`
27571else
27572 failed=`expr $failed + 1`
27573fi
27574
cristy8b350f62009-11-15 23:12:43 +000027575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027576$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027577if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027578 $as_echo_n "(cached) " >&6
27579else
27580 ac_check_lib_save_LIBS=$LIBS
27581LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027583/* end confdefs.h. */
27584
27585/* Override any GCC internal prototype to avoid an error.
27586 Use char because int might match the return type of a GCC
27587 builtin and then its argument prototype would still apply. */
27588#ifdef __cplusplus
27589extern "C"
27590#endif
27591char gzseek ();
27592int
27593main ()
27594{
27595return gzseek ();
27596 ;
27597 return 0;
27598}
27599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027600if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027601 ac_cv_lib_z_gzseek=yes
27602else
cristy8b350f62009-11-15 23:12:43 +000027603 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027604fi
cristy8b350f62009-11-15 23:12:43 +000027605rm -f core conftest.err conftest.$ac_objext \
27606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027607LIBS=$ac_check_lib_save_LIBS
27608fi
cristy8b350f62009-11-15 23:12:43 +000027609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027610$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027611if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027612 passed=`expr $passed + 1`
27613else
27614 failed=`expr $failed + 1`
27615fi
27616
cristy8b350f62009-11-15 23:12:43 +000027617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027618$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027619if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027620 $as_echo_n "(cached) " >&6
27621else
27622 ac_check_lib_save_LIBS=$LIBS
27623LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027625/* end confdefs.h. */
27626
27627/* Override any GCC internal prototype to avoid an error.
27628 Use char because int might match the return type of a GCC
27629 builtin and then its argument prototype would still apply. */
27630#ifdef __cplusplus
27631extern "C"
27632#endif
27633char gztell ();
27634int
27635main ()
27636{
27637return gztell ();
27638 ;
27639 return 0;
27640}
27641_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027642if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027643 ac_cv_lib_z_gztell=yes
27644else
cristy8b350f62009-11-15 23:12:43 +000027645 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027646fi
cristy8b350f62009-11-15 23:12:43 +000027647rm -f core conftest.err conftest.$ac_objext \
27648 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027649LIBS=$ac_check_lib_save_LIBS
27650fi
cristy8b350f62009-11-15 23:12:43 +000027651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027652$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027653if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027654 passed=`expr $passed + 1`
27655else
27656 failed=`expr $failed + 1`
27657fi
27658
cristy8b350f62009-11-15 23:12:43 +000027659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027660$as_echo_n "checking if ZLIB package is complete... " >&6; }
27661 if test $passed -gt 0; then
27662 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027664$as_echo "no -- some components failed test" >&6; }
27665 have_zlib='no (failed tests)'
27666 else
27667 ZLIB_LIBS='-lz'
27668 LIBS="$ZLIB_LIBS $LIBS"
27669
cristy8b350f62009-11-15 23:12:43 +000027670$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027671
cristy8b350f62009-11-15 23:12:43 +000027672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027673$as_echo "yes" >&6; }
27674 have_zlib='yes'
27675 fi
27676 else
cristy8b350f62009-11-15 23:12:43 +000027677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027678$as_echo "no" >&6; }
27679 fi
27680fi
cristy73bd4a52010-10-05 11:24:23 +000027681 if test "$have_zlib" = 'yes'; then
27682 ZLIB_DELEGATE_TRUE=
27683 ZLIB_DELEGATE_FALSE='#'
27684else
27685 ZLIB_DELEGATE_TRUE='#'
27686 ZLIB_DELEGATE_FALSE=
27687fi
27688
cristy3ed852e2009-09-05 21:47:34 +000027689
27690
27691#
27692# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27693#
27694LIB_DL=''
27695if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027697$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027698if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027699 $as_echo_n "(cached) " >&6
27700else
27701 ac_check_lib_save_LIBS=$LIBS
27702LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027704/* end confdefs.h. */
27705
27706/* Override any GCC internal prototype to avoid an error.
27707 Use char because int might match the return type of a GCC
27708 builtin and then its argument prototype would still apply. */
27709#ifdef __cplusplus
27710extern "C"
27711#endif
27712char dlopen ();
27713int
27714main ()
27715{
27716return dlopen ();
27717 ;
27718 return 0;
27719}
27720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027721if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027722 ac_cv_lib_dl_dlopen=yes
27723else
cristy8b350f62009-11-15 23:12:43 +000027724 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027725fi
cristy8b350f62009-11-15 23:12:43 +000027726rm -f core conftest.err conftest.$ac_objext \
27727 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027728LIBS=$ac_check_lib_save_LIBS
27729fi
cristy8b350f62009-11-15 23:12:43 +000027730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027731$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027732if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027733 LIB_DL='-ldl'
27734fi
27735
27736 LIBS="$LIB_DL $LIBS"
27737fi
27738
27739
27740
27741#
27742# Check for Autotrace delegate library.
27743#
27744
27745# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027746if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027747 withval=$with_autotrace; with_autotrace=$withval
27748else
27749 with_autotrace='no'
27750fi
27751
27752
27753if test "$with_autotrace" != 'yes'; then
27754 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27755fi
27756
27757have_autotrace='no'
27758AUTOTRACE_CFLAGS=""
27759AUTOTRACE_LIBS=""
27760AUTOTRACE_PKG=""
27761if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027763$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027764
27765pkg_failed=no
27766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27767$as_echo_n "checking for AUTOTRACE... " >&6; }
27768
27769if test -n "$AUTOTRACE_CFLAGS"; then
27770 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27771 elif test -n "$PKG_CONFIG"; then
27772 if test -n "$PKG_CONFIG" && \
27773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27774 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27775 ac_status=$?
27776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27777 test $ac_status = 0; }; then
27778 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27779else
27780 pkg_failed=yes
27781fi
27782 else
27783 pkg_failed=untried
27784fi
27785if test -n "$AUTOTRACE_LIBS"; then
27786 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27787 elif test -n "$PKG_CONFIG"; then
27788 if test -n "$PKG_CONFIG" && \
27789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27790 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27791 ac_status=$?
27792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27793 test $ac_status = 0; }; then
27794 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27795else
27796 pkg_failed=yes
27797fi
27798 else
27799 pkg_failed=untried
27800fi
27801
27802
27803
27804if test $pkg_failed = yes; then
27805
27806if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27807 _pkg_short_errors_supported=yes
27808else
27809 _pkg_short_errors_supported=no
27810fi
27811 if test $_pkg_short_errors_supported = yes; then
27812 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27813 else
27814 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27815 fi
27816 # Put the nasty error message in config.log where it belongs
27817 echo "$AUTOTRACE_PKG_ERRORS" >&5
27818
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27820$as_echo "no" >&6; }
27821 have_autotrace=no
27822elif test $pkg_failed = untried; then
27823 have_autotrace=no
27824else
27825 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27826 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27828$as_echo "yes" >&6; }
27829 have_autotrace=yes
27830fi
cristy8b350f62009-11-15 23:12:43 +000027831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027832$as_echo "" >&6; }
27833fi
27834
27835if test "$have_autotrace" = 'yes'; then
27836 failed=0
27837
cristy8b350f62009-11-15 23:12:43 +000027838$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027839
27840 if test "$with_modules" = 'no'; then
27841 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27842 fi
27843fi
27844
cristy73bd4a52010-10-05 11:24:23 +000027845 if test "$have_autotrace" = 'yes'; then
27846 AUTOTRACE_DELEGATE_TRUE=
27847 AUTOTRACE_DELEGATE_FALSE='#'
27848else
27849 AUTOTRACE_DELEGATE_TRUE='#'
27850 AUTOTRACE_DELEGATE_FALSE=
27851fi
27852
cristy3ed852e2009-09-05 21:47:34 +000027853
27854
27855
27856
27857#
27858# Check for Display Postscript delegate library.
27859#
27860
27861# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027862if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 withval=$with_dps; with_dps=$withval
27864else
27865 with_dps='yes'
27866fi
27867
27868
27869if test "$with_dps" != 'yes'; then
27870 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27871fi
27872
27873have_dps='no'
27874DPS_LIBS=''
27875if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027877$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027879$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027881$as_echo "" >&6; }
27882 failed=0
27883 passed=0
27884 PERSIST_CPPFLAGS="$CPPFLAGS"
27885 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027886 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 +000027887if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027888 passed=`expr $passed + 1`
27889else
27890 failed=`expr $failed + 1`
27891fi
27892
27893
27894 # DPS issues:
27895 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27896 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27897 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27898 # ImageMagick itself doesn't use -lXt.
27899 have_libdps='no'
27900 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027902$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027903if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027904 $as_echo_n "(cached) " >&6
27905else
27906 ac_check_lib_save_LIBS=$LIBS
27907LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027909/* end confdefs.h. */
27910
27911/* Override any GCC internal prototype to avoid an error.
27912 Use char because int might match the return type of a GCC
27913 builtin and then its argument prototype would still apply. */
27914#ifdef __cplusplus
27915extern "C"
27916#endif
27917char DPSInitialize ();
27918int
27919main ()
27920{
27921return DPSInitialize ();
27922 ;
27923 return 0;
27924}
27925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027926if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027927 ac_cv_lib_dps_DPSInitialize=yes
27928else
cristy8b350f62009-11-15 23:12:43 +000027929 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027930fi
cristy8b350f62009-11-15 23:12:43 +000027931rm -f core conftest.err conftest.$ac_objext \
27932 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027933LIBS=$ac_check_lib_save_LIBS
27934fi
cristy8b350f62009-11-15 23:12:43 +000027935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027936$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027937if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027938 have_libdps='yes'
27939else
27940 have_libdps='no'
27941fi
27942
27943 if test "$have_libdps" != 'yes'; then
27944 # Unset cache variable so we can try again.
27945 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027947$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027948if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027949 $as_echo_n "(cached) " >&6
27950else
27951 ac_check_lib_save_LIBS=$LIBS
27952LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027954/* end confdefs.h. */
27955
27956/* Override any GCC internal prototype to avoid an error.
27957 Use char because int might match the return type of a GCC
27958 builtin and then its argument prototype would still apply. */
27959#ifdef __cplusplus
27960extern "C"
27961#endif
27962char DPSInitialize ();
27963int
27964main ()
27965{
27966return DPSInitialize ();
27967 ;
27968 return 0;
27969}
27970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027971if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027972 ac_cv_lib_dps_DPSInitialize=yes
27973else
cristy8b350f62009-11-15 23:12:43 +000027974 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027975fi
cristy8b350f62009-11-15 23:12:43 +000027976rm -f core conftest.err conftest.$ac_objext \
27977 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027978LIBS=$ac_check_lib_save_LIBS
27979fi
cristy8b350f62009-11-15 23:12:43 +000027980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027981$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027982if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 have_libdps='yes'
27984else
27985 have_libdps='no'
27986fi
27987
27988 if test "$have_libdps" = 'yes'; then
27989 LIBDPS_XT='-lXt'
27990 fi
27991 fi
27992 if test "$have_libdps" = 'yes'; then
27993 passed=`expr $passed + 1`
27994 else
27995 failed=`expr $failed + 1`
27996 fi
cristy8b350f62009-11-15 23:12:43 +000027997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027998$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027999if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028000 $as_echo_n "(cached) " >&6
28001else
28002 ac_check_lib_save_LIBS=$LIBS
28003LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028005/* end confdefs.h. */
28006
28007/* Override any GCC internal prototype to avoid an error.
28008 Use char because int might match the return type of a GCC
28009 builtin and then its argument prototype would still apply. */
28010#ifdef __cplusplus
28011extern "C"
28012#endif
28013char XDPSPixelsPerPoint ();
28014int
28015main ()
28016{
28017return XDPSPixelsPerPoint ();
28018 ;
28019 return 0;
28020}
28021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28024else
cristy8b350f62009-11-15 23:12:43 +000028025 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028026fi
cristy8b350f62009-11-15 23:12:43 +000028027rm -f core conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028029LIBS=$ac_check_lib_save_LIBS
28030fi
cristy8b350f62009-11-15 23:12:43 +000028031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028032$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028033if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028034 passed=`expr $passed + 1`
28035else
28036 failed=`expr $failed + 1`
28037fi
28038
cristy8b350f62009-11-15 23:12:43 +000028039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028040$as_echo_n "checking if DPS package is complete... " >&6; }
28041 if test $passed -gt 0; then
28042 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028044$as_echo "no -- some components failed test" >&6; }
28045 have_dps='no (failed tests)'
28046 CPPFLAGS="$PERSIST_CPPFLAGS"
28047 else
28048 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28049 LIBS="$DPS_LIBS $LIBS"
28050
cristy8b350f62009-11-15 23:12:43 +000028051$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028052
cristy8b350f62009-11-15 23:12:43 +000028053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028054$as_echo "yes" >&6; }
28055 have_dps='yes'
28056 fi
28057 else
cristy8b350f62009-11-15 23:12:43 +000028058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028059$as_echo "no" >&6; }
28060 CPPFLAGS=$PERSIST_CPPFLAGS
28061 fi
28062fi
cristy73bd4a52010-10-05 11:24:23 +000028063 if test "$have_dps" = 'yes'; then
28064 DPS_DELEGATE_TRUE=
28065 DPS_DELEGATE_FALSE='#'
28066else
28067 DPS_DELEGATE_TRUE='#'
28068 DPS_DELEGATE_FALSE=
28069fi
28070
cristy3ed852e2009-09-05 21:47:34 +000028071
28072
28073
28074#
28075# Check for DJVU delegate library.
28076#
28077
28078# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028079if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028080 withval=$with_djvu; with_djvu=$withval
28081else
28082 with_djvu='yes'
28083fi
28084
28085
28086if test "$with_djvu" != 'yes'; then
28087 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28088fi
28089
28090have_djvu='no'
28091DJVU_LIBS=''
28092if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028094$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028096$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028098$as_echo "" >&6; }
28099 failed=0
28100 passed=0
cristy8b350f62009-11-15 23:12:43 +000028101 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 +000028102if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028103 passed=`expr $passed + 1`
28104else
28105 failed=`expr $failed + 1`
28106fi
28107
28108
cristy8b350f62009-11-15 23:12:43 +000028109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028110$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028111if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028112 $as_echo_n "(cached) " >&6
28113else
28114 ac_check_lib_save_LIBS=$LIBS
28115LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028117/* end confdefs.h. */
28118
28119/* Override any GCC internal prototype to avoid an error.
28120 Use char because int might match the return type of a GCC
28121 builtin and then its argument prototype would still apply. */
28122#ifdef __cplusplus
28123extern "C"
28124#endif
28125char ddjvu_context_create ();
28126int
28127main ()
28128{
28129return ddjvu_context_create ();
28130 ;
28131 return 0;
28132}
28133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028134if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028135 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28136else
cristy8b350f62009-11-15 23:12:43 +000028137 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028138fi
cristy8b350f62009-11-15 23:12:43 +000028139rm -f core conftest.err conftest.$ac_objext \
28140 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028141LIBS=$ac_check_lib_save_LIBS
28142fi
cristy8b350f62009-11-15 23:12:43 +000028143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028144$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028145if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028146 passed=`expr $passed + 1`
28147else
28148 failed=`expr $failed + 1`
28149fi
28150
cristy8b350f62009-11-15 23:12:43 +000028151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028152$as_echo_n "checking if DJVU package is complete... " >&6; }
28153 if test $passed -gt 0; then
28154 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028156$as_echo "no -- some components failed test" >&6; }
28157 have_djvu='no (failed tests)'
28158 else
28159 DJVU_LIBS='-ldjvulibre'
28160 LIBS="$DJVU_LIBS $LIBS"
28161
cristy8b350f62009-11-15 23:12:43 +000028162$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028163
cristy8b350f62009-11-15 23:12:43 +000028164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028165$as_echo "yes" >&6; }
28166 have_djvu='yes'
28167 fi
28168 else
cristy8b350f62009-11-15 23:12:43 +000028169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028170$as_echo "no" >&6; }
28171 fi
28172fi
cristy73bd4a52010-10-05 11:24:23 +000028173 if test "$have_djvu" = 'yes'; then
28174 DJVU_DELEGATE_TRUE=
28175 DJVU_DELEGATE_FALSE='#'
28176else
28177 DJVU_DELEGATE_TRUE='#'
28178 DJVU_DELEGATE_FALSE=
28179fi
28180
cristy3ed852e2009-09-05 21:47:34 +000028181
28182
28183
28184#
cristy430a7312010-01-21 20:44:04 +000028185# Set DejaVu font directory.
28186#
28187
28188# Check whether --with-dejavu-font-dir was given.
28189if test "${with_dejavu_font_dir+set}" = set; then :
28190 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28191else
28192 with_dejavu_font_dir='default'
28193fi
28194
28195
28196if test "$with_dejavu_font_dir" != 'default'; then
28197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28198fi
28199
28200
28201#
cristy3ed852e2009-09-05 21:47:34 +000028202# Check for FFTW delegate library.
28203#
28204
28205# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028206if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028207 withval=$with_fftw; with_fftw=$withval
28208else
28209 with_fftw='yes'
28210fi
28211
28212
28213if test "$with_fftw" != 'yes'; then
28214 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28215fi
28216
cristyf805afb2011-10-03 17:17:37 +000028217FFTW_PKG=""
28218if test "x$with_fftw" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028220$as_echo "-------------------------------------------------------------" >&6; }
cristyf805afb2011-10-03 17:17:37 +000028221
28222pkg_failed=no
28223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5
28224$as_echo_n "checking for FFTW3... " >&6; }
28225
28226if test -n "$FFTW3_CFLAGS"; then
28227 pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS"
28228 elif test -n "$PKG_CONFIG"; then
28229 if test -n "$PKG_CONFIG" && \
28230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3\""; } >&5
28231 ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5
28232 ac_status=$?
28233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28234 test $ac_status = 0; }; then
28235 pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3" 2>/dev/null`
28236else
28237 pkg_failed=yes
28238fi
28239 else
28240 pkg_failed=untried
28241fi
28242if test -n "$FFTW3_LIBS"; then
28243 pkg_cv_FFTW3_LIBS="$FFTW3_LIBS"
28244 elif test -n "$PKG_CONFIG"; then
28245 if test -n "$PKG_CONFIG" && \
28246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3\""; } >&5
28247 ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5
28248 ac_status=$?
28249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28250 test $ac_status = 0; }; then
28251 pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3" 2>/dev/null`
28252else
28253 pkg_failed=yes
28254fi
28255 else
28256 pkg_failed=untried
28257fi
28258
28259
28260
28261if test $pkg_failed = yes; then
28262
28263if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28264 _pkg_short_errors_supported=yes
28265else
28266 _pkg_short_errors_supported=no
28267fi
28268 if test $_pkg_short_errors_supported = yes; then
28269 FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fftw3" 2>&1`
28270 else
28271 FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors "fftw3" 2>&1`
28272 fi
28273 # Put the nasty error message in config.log where it belongs
28274 echo "$FFTW3_PKG_ERRORS" >&5
28275
28276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28277$as_echo "no" >&6; }
28278 have_fftw=no
28279elif test $pkg_failed = untried; then
28280 have_fftw=no
28281else
28282 FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS
28283 FFTW3_LIBS=$pkg_cv_FFTW3_LIBS
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28285$as_echo "yes" >&6; }
28286 have_fftw=yes
28287fi
cristy8b350f62009-11-15 23:12:43 +000028288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028289$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028290fi
28291
cristyf805afb2011-10-03 17:17:37 +000028292if test "$have_fftw" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028293
cristy8b350f62009-11-15 23:12:43 +000028294$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028295
cristyf805afb2011-10-03 17:17:37 +000028296 if test "$with_modules" = 'no'; then
28297 CPPFLAGS="$FFTW_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028298 fi
28299fi
cristyf805afb2011-10-03 17:17:37 +000028300
cristy73bd4a52010-10-05 11:24:23 +000028301 if test "$have_fftw" = 'yes'; then
28302 FFTW_DELEGATE_TRUE=
28303 FFTW_DELEGATE_FALSE='#'
28304else
28305 FFTW_DELEGATE_TRUE='#'
28306 FFTW_DELEGATE_FALSE=
28307fi
28308
cristy3ed852e2009-09-05 21:47:34 +000028309
28310
28311
cristyf805afb2011-10-03 17:17:37 +000028312
cristy3ed852e2009-09-05 21:47:34 +000028313#
28314# Check for FlashPIX delegate library.
28315#
28316
28317# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028318if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028319 withval=$with_fpx; with_fpx=$withval
28320else
28321 with_fpx='yes'
28322fi
28323
28324
28325if test "$with_fpx" != 'yes'; then
28326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28327fi
28328
28329have_fpx='no'
28330FPX_LIBS=''
28331if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028333$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028335$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028337$as_echo "" >&6; }
28338 failed=0
28339 passed=0
28340 ac_ext=cpp
28341ac_cpp='$CXXCPP $CPPFLAGS'
28342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28345
28346
cristy8b350f62009-11-15 23:12:43 +000028347ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028348if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028349 passed=`expr $passed + 1`
28350else
28351 failed=`expr $failed + 1`
28352fi
28353
28354
cristy8b350f62009-11-15 23:12:43 +000028355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028356$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028357if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028358 $as_echo_n "(cached) " >&6
28359else
28360 ac_check_lib_save_LIBS=$LIBS
28361LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028363/* end confdefs.h. */
28364
28365/* Override any GCC internal prototype to avoid an error.
28366 Use char because int might match the return type of a GCC
28367 builtin and then its argument prototype would still apply. */
28368#ifdef __cplusplus
28369extern "C"
28370#endif
28371char FPX_OpenImageByFilename ();
28372int
28373main ()
28374{
28375return FPX_OpenImageByFilename ();
28376 ;
28377 return 0;
28378}
28379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028380if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028381 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28382else
cristy8b350f62009-11-15 23:12:43 +000028383 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028384fi
cristy8b350f62009-11-15 23:12:43 +000028385rm -f core conftest.err conftest.$ac_objext \
28386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028387LIBS=$ac_check_lib_save_LIBS
28388fi
cristy8b350f62009-11-15 23:12:43 +000028389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028390$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028391if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028392 passed=`expr $passed + 1`
28393else
28394 failed=`expr $failed + 1`
28395fi
28396
28397 ac_ext=c
28398ac_cpp='$CPP $CPPFLAGS'
28399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28401ac_compiler_gnu=$ac_cv_c_compiler_gnu
28402
cristy8b350f62009-11-15 23:12:43 +000028403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028404$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28405 if test $passed -gt 0; then
28406 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028408$as_echo "no -- some components failed test" >&6; }
28409 have_fpx='no (failed tests)'
28410 else
28411 FPX_LIBS='-lfpx'
28412
cristy8b350f62009-11-15 23:12:43 +000028413$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028414
cristy8b350f62009-11-15 23:12:43 +000028415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028416$as_echo "yes" >&6; }
28417 have_fpx='yes'
28418 PERLMAINCC="$CXX"
28419 fi
28420 else
cristy8b350f62009-11-15 23:12:43 +000028421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028422$as_echo "no" >&6; }
28423 fi
28424fi
cristy73bd4a52010-10-05 11:24:23 +000028425 if test "$have_fpx" = 'yes'; then
28426 FPX_DELEGATE_TRUE=
28427 FPX_DELEGATE_FALSE='#'
28428else
28429 FPX_DELEGATE_TRUE='#'
28430 FPX_DELEGATE_FALSE=
28431fi
28432
cristy3ed852e2009-09-05 21:47:34 +000028433
28434
28435
28436#
28437# Check for fontconfig delegate library.
28438#
28439
28440# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028441if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028442 withval=$with_fontconfig; with_fontconfig=$withval
28443else
28444 with_fontconfig=$have_x
28445fi
28446
28447
28448if test "$with_fontconfig" != 'yes'; then
28449 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28450fi
28451
28452have_fontconfig='no'
28453FONTCONFIG_CFLAGS=""
28454FONTCONFIG_LIBS=""
28455FONTCONFIG_PKG=""
28456if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028458$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028459
28460pkg_failed=no
28461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28462$as_echo_n "checking for FONTCONFIG... " >&6; }
28463
28464if test -n "$FONTCONFIG_CFLAGS"; then
28465 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28466 elif test -n "$PKG_CONFIG"; then
28467 if test -n "$PKG_CONFIG" && \
28468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28469 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28470 ac_status=$?
28471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28472 test $ac_status = 0; }; then
28473 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28474else
28475 pkg_failed=yes
28476fi
28477 else
28478 pkg_failed=untried
28479fi
28480if test -n "$FONTCONFIG_LIBS"; then
28481 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28482 elif test -n "$PKG_CONFIG"; then
28483 if test -n "$PKG_CONFIG" && \
28484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28485 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28486 ac_status=$?
28487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28488 test $ac_status = 0; }; then
28489 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28490else
28491 pkg_failed=yes
28492fi
28493 else
28494 pkg_failed=untried
28495fi
28496
28497
28498
28499if test $pkg_failed = yes; then
28500
28501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28502 _pkg_short_errors_supported=yes
28503else
28504 _pkg_short_errors_supported=no
28505fi
28506 if test $_pkg_short_errors_supported = yes; then
28507 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28508 else
28509 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28510 fi
28511 # Put the nasty error message in config.log where it belongs
28512 echo "$FONTCONFIG_PKG_ERRORS" >&5
28513
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28515$as_echo "no" >&6; }
28516 have_fontconfig=no
28517elif test $pkg_failed = untried; then
28518 have_fontconfig=no
28519else
28520 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28521 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28523$as_echo "yes" >&6; }
28524 have_fontconfig=yes
28525fi
cristy8b350f62009-11-15 23:12:43 +000028526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028527$as_echo "" >&6; }
28528fi
28529
28530if test "$have_fontconfig" = 'yes'; then
28531
cristy8b350f62009-11-15 23:12:43 +000028532$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028533
cristyd09bcf92010-03-25 03:04:45 +000028534 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028535 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028536 fi
cristy3ed852e2009-09-05 21:47:34 +000028537fi
28538
cristy73bd4a52010-10-05 11:24:23 +000028539 if test "$have_fontconfig" = 'yes'; then
28540 FONTCONFIG_DELEGATE_TRUE=
28541 FONTCONFIG_DELEGATE_FALSE='#'
28542else
28543 FONTCONFIG_DELEGATE_TRUE='#'
28544 FONTCONFIG_DELEGATE_FALSE=
28545fi
28546
cristy3ed852e2009-09-05 21:47:34 +000028547
28548
28549
28550
28551#
cristyf805afb2011-10-03 17:17:37 +000028552# Check for FREETYPE delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028553#
28554
28555# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028556if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028557 withval=$with_freetype; with_freetype=$withval
28558else
28559 with_freetype='yes'
28560fi
28561
28562
cristy3ed852e2009-09-05 21:47:34 +000028563if test "$with_freetype" != 'yes'; then
28564 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28565fi
28566
cristyf805afb2011-10-03 17:17:37 +000028567FREETYPE_PKG=""
28568if test "x$with_freetype" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028570$as_echo "-------------------------------------------------------------" >&6; }
cristyf805afb2011-10-03 17:17:37 +000028571
28572pkg_failed=no
28573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5
28574$as_echo_n "checking for FREETYPE2... " >&6; }
28575
28576if test -n "$FREETYPE2_CFLAGS"; then
28577 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
28578 elif test -n "$PKG_CONFIG"; then
28579 if test -n "$PKG_CONFIG" && \
28580 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28581 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28582 ac_status=$?
28583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28584 test $ac_status = 0; }; then
28585 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
28586else
28587 pkg_failed=yes
28588fi
28589 else
28590 pkg_failed=untried
28591fi
28592if test -n "$FREETYPE2_LIBS"; then
28593 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
28594 elif test -n "$PKG_CONFIG"; then
28595 if test -n "$PKG_CONFIG" && \
28596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28597 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28598 ac_status=$?
28599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28600 test $ac_status = 0; }; then
28601 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
28602else
28603 pkg_failed=yes
28604fi
28605 else
28606 pkg_failed=untried
28607fi
28608
28609
28610
28611if test $pkg_failed = yes; then
28612
28613if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28614 _pkg_short_errors_supported=yes
28615else
28616 _pkg_short_errors_supported=no
28617fi
28618 if test $_pkg_short_errors_supported = yes; then
28619 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
28620 else
28621 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
28622 fi
28623 # Put the nasty error message in config.log where it belongs
28624 echo "$FREETYPE2_PKG_ERRORS" >&5
28625
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28627$as_echo "no" >&6; }
28628 have_freetype=no
28629elif test $pkg_failed = untried; then
28630 have_freetype=no
28631else
28632 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
28633 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28635$as_echo "yes" >&6; }
28636 have_freetype=yes
28637fi
cristy8b350f62009-11-15 23:12:43 +000028638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028639$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028640fi
28641
cristyf805afb2011-10-03 17:17:37 +000028642if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028643
cristy8b350f62009-11-15 23:12:43 +000028644$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028645
cristyf805afb2011-10-03 17:17:37 +000028646 if test "$with_modules" = 'no'; then
28647 CPPFLAGS="$FREETYPE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028648 fi
28649fi
cristyf805afb2011-10-03 17:17:37 +000028650
cristy73bd4a52010-10-05 11:24:23 +000028651 if test "$have_freetype" = 'yes'; then
28652 FREETYPE_DELEGATE_TRUE=
28653 FREETYPE_DELEGATE_FALSE='#'
28654else
28655 FREETYPE_DELEGATE_TRUE='#'
28656 FREETYPE_DELEGATE_FALSE=
28657fi
28658
cristy3ed852e2009-09-05 21:47:34 +000028659
28660
28661
28662
cristyf805afb2011-10-03 17:17:37 +000028663
28664
cristy3ed852e2009-09-05 21:47:34 +000028665#
28666# Check for Ghostscript library or framework.
28667#
28668# Test for iapi.h & test for gsapi_new_instance in -lgs
28669# or -framework Ghostscript
28670
28671
28672# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028673if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028674 withval=$with_gslib; with_gslib=$withval
28675else
28676 with_gslib='no'
28677fi
28678
28679
cristyb7931f12009-09-25 10:22:21 +000028680gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028681if test "$with_gslib" != 'yes'; then
28682 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28683fi
28684
28685have_gslib='no'
28686GS_LIBS=''
28687if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028689$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028691$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028693$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028694 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028695 failed=0
28696 passed=0
cristy8b350f62009-11-15 23:12:43 +000028697 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 +000028698if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028699 passed=`expr $passed + 1`
28700else
28701 failed=`expr $failed + 1`
28702fi
28703
28704
cristy8b350f62009-11-15 23:12:43 +000028705 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 +000028706if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028707 passed=`expr $passed + 1`
28708else
28709 failed=`expr $failed + 1`
28710fi
28711
28712
cristy73bd4a52010-10-05 11:24:23 +000028713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28714$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028715if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028716 $as_echo_n "(cached) " >&6
28717else
28718 ac_check_framework_save_LIBS=$LIBS
28719LIBS="-framework Ghostscript $LIBS"
28720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28721/* end confdefs.h. */
28722
28723/* Override any GCC internal prototype to avoid an error.
28724 Use char because int might match the return type of a GCC
28725 builtin and then its argument prototype would still apply. */
28726#ifdef __cplusplus
28727extern "C"
28728#endif
28729char gsapi_new_instance ();
28730int
28731main ()
28732{
28733return gsapi_new_instance ();
28734 ;
28735 return 0;
28736}
28737_ACEOF
28738if ac_fn_c_try_link "$LINENO"; then :
28739 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28740else
28741 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28742fi
28743rm -f core conftest.err conftest.$ac_objext \
28744 conftest$ac_exeext conftest.$ac_ext
28745LIBS=$ac_check_framework_save_LIBS
28746fi
28747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28748$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28749if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28750 framework=`expr $framework + 1`
28751else
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028753$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028754if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028755 $as_echo_n "(cached) " >&6
28756else
28757 ac_check_lib_save_LIBS=$LIBS
28758LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028760/* end confdefs.h. */
28761
28762/* Override any GCC internal prototype to avoid an error.
28763 Use char because int might match the return type of a GCC
28764 builtin and then its argument prototype would still apply. */
28765#ifdef __cplusplus
28766extern "C"
28767#endif
28768char gsapi_new_instance ();
28769int
28770main ()
28771{
28772return gsapi_new_instance ();
28773 ;
28774 return 0;
28775}
28776_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028777if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028778 ac_cv_lib_gs_gsapi_new_instance=yes
28779else
cristy8b350f62009-11-15 23:12:43 +000028780 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028781fi
cristy8b350f62009-11-15 23:12:43 +000028782rm -f core conftest.err conftest.$ac_objext \
28783 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028784LIBS=$ac_check_lib_save_LIBS
28785fi
cristy8b350f62009-11-15 23:12:43 +000028786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028787$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028788if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028789 passed=`expr $passed + 1`
28790else
28791 failed=`expr $failed + 1`
28792fi
cristy73bd4a52010-10-05 11:24:23 +000028793
28794fi
cristy8b350f62009-11-15 23:12:43 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028796$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28797 if test $passed -gt 0; then
28798 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028800$as_echo "no -- some components failed test" >&6; }
28801 have_gslib='no (failed tests)'
28802 else
28803 if test $framework -gt 0; then
28804 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028805 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028807$as_echo "yes, using framework." >&6; }
28808 else
cristy8b350f62009-11-15 23:12:43 +000028809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028810$as_echo "yes, using library." >&6; }
28811 GS_LIBS='-lgs'
28812 fi
28813 LIBS="$GS_LIBS $LIBS"
28814
cristy8b350f62009-11-15 23:12:43 +000028815$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028816
28817 have_gslib='yes'
28818 fi
28819 else
cristy8b350f62009-11-15 23:12:43 +000028820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028821$as_echo "no" >&6; }
28822 fi
28823fi
cristy73bd4a52010-10-05 11:24:23 +000028824 if test "$have_gslib" = 'yes'; then
28825 GS_DELEGATE_TRUE=
28826 GS_DELEGATE_FALSE='#'
28827else
28828 GS_DELEGATE_TRUE='#'
28829 GS_DELEGATE_FALSE=
28830fi
28831
cristy3ed852e2009-09-05 21:47:34 +000028832
28833
28834# Set default font search path
28835
28836# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028837if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028838 withval=$with_fontpath; with_fontpath=$withval
28839else
28840 with_fontpath=''
28841fi
28842
28843
28844if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28845 with_fontpath=''
28846else
28847
28848cat >>confdefs.h <<_ACEOF
28849#define MAGICK_FONT_PATH "$with_fontpath"
28850_ACEOF
28851
28852fi
28853if test "$with_fontpath=" != ''; then
28854 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28855fi
28856
28857# Set Ghostscript font directory
28858
28859# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028860if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028861 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28862else
28863 with_gs_font_dir='default'
28864fi
28865
28866
28867if test "$with_gs_font_dir" != 'default'; then
28868 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28869fi
28870
28871
28872#
28873# Check for GVC delegate library.
28874#
28875
28876# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028877if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028878 withval=$with_gvc; with_gvc=$withval
28879else
28880 with_gvc='yes'
28881fi
28882
28883
28884if test "$with_gvc" != 'yes'; then
28885 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28886fi
28887
28888GVC_PKG=""
28889if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028891$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028892
28893pkg_failed=no
28894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28895$as_echo_n "checking for GVC... " >&6; }
28896
28897if test -n "$GVC_CFLAGS"; then
28898 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28899 elif test -n "$PKG_CONFIG"; then
28900 if test -n "$PKG_CONFIG" && \
28901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28902 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28903 ac_status=$?
28904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28905 test $ac_status = 0; }; then
28906 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28907else
28908 pkg_failed=yes
28909fi
28910 else
28911 pkg_failed=untried
28912fi
28913if test -n "$GVC_LIBS"; then
28914 pkg_cv_GVC_LIBS="$GVC_LIBS"
28915 elif test -n "$PKG_CONFIG"; then
28916 if test -n "$PKG_CONFIG" && \
28917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28918 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28919 ac_status=$?
28920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28921 test $ac_status = 0; }; then
28922 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28923else
28924 pkg_failed=yes
28925fi
28926 else
28927 pkg_failed=untried
28928fi
28929
28930
28931
28932if test $pkg_failed = yes; then
28933
28934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28935 _pkg_short_errors_supported=yes
28936else
28937 _pkg_short_errors_supported=no
28938fi
28939 if test $_pkg_short_errors_supported = yes; then
28940 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28941 else
28942 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28943 fi
28944 # Put the nasty error message in config.log where it belongs
28945 echo "$GVC_PKG_ERRORS" >&5
28946
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28948$as_echo "no" >&6; }
28949 have_gvc=no
28950elif test $pkg_failed = untried; then
28951 have_gvc=no
28952else
28953 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28954 GVC_LIBS=$pkg_cv_GVC_LIBS
28955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28956$as_echo "yes" >&6; }
28957 have_gvc=yes
28958fi
cristy8b350f62009-11-15 23:12:43 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028960$as_echo "" >&6; }
28961fi
28962
28963if test "$have_gvc" = 'yes'; then
28964
cristy8b350f62009-11-15 23:12:43 +000028965$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028966
28967 if test "$with_modules" = 'no'; then
28968 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28969 fi
28970fi
28971
cristy73bd4a52010-10-05 11:24:23 +000028972 if test "$have_gvc" = 'yes'; then
28973 GVC_DELEGATE_TRUE=
28974 GVC_DELEGATE_FALSE='#'
28975else
28976 GVC_DELEGATE_TRUE='#'
28977 GVC_DELEGATE_FALSE=
28978fi
28979
cristy3ed852e2009-09-05 21:47:34 +000028980
28981
28982
28983
28984#
28985# Check for JBIG delegate library.
28986#
28987
28988
28989# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028990if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028991 withval=$with_jbig; with_jbig=$withval
28992else
28993 with_jbig='yes'
28994fi
28995
28996
28997have_jbig='no'
28998JBIG_LIBS=''
28999if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029001$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029003$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029005$as_echo "" >&6; }
29006 failed=0
29007 passed=0
cristy8b350f62009-11-15 23:12:43 +000029008 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029009if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029010 passed=`expr $passed + 1`
29011else
29012 failed=`expr $failed + 1`
29013fi
29014
29015
cristy8b350f62009-11-15 23:12:43 +000029016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029017$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029018if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029019 $as_echo_n "(cached) " >&6
29020else
29021 ac_check_lib_save_LIBS=$LIBS
29022LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029024/* end confdefs.h. */
29025
29026/* Override any GCC internal prototype to avoid an error.
29027 Use char because int might match the return type of a GCC
29028 builtin and then its argument prototype would still apply. */
29029#ifdef __cplusplus
29030extern "C"
29031#endif
29032char jbg_dec_init ();
29033int
29034main ()
29035{
29036return jbg_dec_init ();
29037 ;
29038 return 0;
29039}
29040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029041if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029042 ac_cv_lib_jbig_jbg_dec_init=yes
29043else
cristy8b350f62009-11-15 23:12:43 +000029044 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029045fi
cristy8b350f62009-11-15 23:12:43 +000029046rm -f core conftest.err conftest.$ac_objext \
29047 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029048LIBS=$ac_check_lib_save_LIBS
29049fi
cristy8b350f62009-11-15 23:12:43 +000029050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029051$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029052if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029053 passed=`expr $passed + 1`
29054else
29055 failed=`expr $failed + 1`
29056fi
29057
cristy8b350f62009-11-15 23:12:43 +000029058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029059$as_echo_n "checking if JBIG package is complete... " >&6; }
29060 if test $passed -gt 0; then
29061 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029063$as_echo "no -- some components failed test" >&6; }
29064 have_jbig='no (failed tests)'
29065 else
29066 JBIG_LIBS='-ljbig'
29067 LIBS="$JBIG_LIBS $LIBS"
29068
cristy8b350f62009-11-15 23:12:43 +000029069$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029070
cristy8b350f62009-11-15 23:12:43 +000029071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029072$as_echo "yes" >&6; }
29073 have_jbig='yes'
29074 fi
29075 else
cristy8b350f62009-11-15 23:12:43 +000029076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029077$as_echo "no" >&6; }
29078 fi
29079fi
cristy73bd4a52010-10-05 11:24:23 +000029080 if test "$have_jbig" = 'yes'; then
29081 JBIG_DELEGATE_TRUE=
29082 JBIG_DELEGATE_FALSE='#'
29083else
29084 JBIG_DELEGATE_TRUE='#'
29085 JBIG_DELEGATE_FALSE=
29086fi
29087
cristy3ed852e2009-09-05 21:47:34 +000029088
29089
29090
29091#
29092# Check for JPEG delegate library.
29093#
29094
29095# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029096if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029097 withval=$with_jpeg; with_jpeg=$withval
29098else
29099 with_jpeg='yes'
29100fi
29101
29102
29103if test "$with_jpeg" != 'yes'; then
29104 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29105fi
29106
29107have_jpeg='no'
29108JPEG_LIBS=''
29109if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029111$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029113$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029115$as_echo "" >&6; }
29116 failed=0
29117 passed=0
cristy8b350f62009-11-15 23:12:43 +000029118 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029119if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029120 passed=`expr $passed + 1`
29121else
29122 failed=`expr $failed + 1`
29123fi
29124
29125
cristy8b350f62009-11-15 23:12:43 +000029126 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029127if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029128 passed=`expr $passed + 1`
29129else
29130 failed=`expr $failed + 1`
29131fi
29132
29133
cristy8b350f62009-11-15 23:12:43 +000029134 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029135if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029136 passed=`expr $passed + 1`
29137else
29138 failed=`expr $failed + 1`
29139fi
29140
29141
cristy8b350f62009-11-15 23:12:43 +000029142 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029143if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029144 passed=`expr $passed + 1`
29145else
29146 failed=`expr $failed + 1`
29147fi
29148
29149
cristy8b350f62009-11-15 23:12:43 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029151$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029152if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029153 $as_echo_n "(cached) " >&6
29154else
29155 ac_check_lib_save_LIBS=$LIBS
29156LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029158/* end confdefs.h. */
29159
29160/* Override any GCC internal prototype to avoid an error.
29161 Use char because int might match the return type of a GCC
29162 builtin and then its argument prototype would still apply. */
29163#ifdef __cplusplus
29164extern "C"
29165#endif
29166char jpeg_read_header ();
29167int
29168main ()
29169{
29170return jpeg_read_header ();
29171 ;
29172 return 0;
29173}
29174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029175if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029176 ac_cv_lib_jpeg_jpeg_read_header=yes
29177else
cristy8b350f62009-11-15 23:12:43 +000029178 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029179fi
cristy8b350f62009-11-15 23:12:43 +000029180rm -f core conftest.err conftest.$ac_objext \
29181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029182LIBS=$ac_check_lib_save_LIBS
29183fi
cristy8b350f62009-11-15 23:12:43 +000029184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029185$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029186if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029187 passed=`expr $passed + 1`
29188else
29189 failed=`expr $failed + 1`
29190fi
29191
29192
29193# Test for compatible JPEG library
29194if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029196$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029197if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029198 $as_echo_n "(cached) " >&6
29199else
cristy8b350f62009-11-15 23:12:43 +000029200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029201/* end confdefs.h. */
29202#include <stdio.h>
29203#include <stdlib.h>
29204#include <jpeglib.h>
29205
29206int
29207main ()
29208{
29209
29210#if JPEG_LIB_VERSION < 62
29211#error IJG JPEG library must be version 6b or newer!
29212#endif
29213return 0;
29214
29215 ;
29216 return 0;
29217}
29218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029219if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029220 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29221else
cristy8b350f62009-11-15 23:12:43 +000029222 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029223fi
cristy3ed852e2009-09-05 21:47:34 +000029224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29225fi
cristy8b350f62009-11-15 23:12:43 +000029226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029227$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29228fi
cristy8b350f62009-11-15 23:12:43 +000029229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029230$as_echo_n "checking if JPEG package is complete... " >&6; }
29231 if test $passed -gt 0; then
29232 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029234$as_echo "no -- some components failed test" >&6; }
29235 have_jpeg='no (failed tests)'
29236 else
29237 JPEG_LIBS='-ljpeg'
29238 LIBS="$JPEG_LIBS $LIBS"
29239
cristy8b350f62009-11-15 23:12:43 +000029240$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029241
cristy8b350f62009-11-15 23:12:43 +000029242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029243$as_echo "yes" >&6; }
29244 have_jpeg='yes'
29245 fi
29246 else
cristy8b350f62009-11-15 23:12:43 +000029247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029248$as_echo "no" >&6; }
29249 fi
29250fi
cristy73bd4a52010-10-05 11:24:23 +000029251 if test "$have_jpeg" = 'yes'; then
29252 JPEG_DELEGATE_TRUE=
29253 JPEG_DELEGATE_FALSE='#'
29254else
29255 JPEG_DELEGATE_TRUE='#'
29256 JPEG_DELEGATE_FALSE=
29257fi
29258
cristy3ed852e2009-09-05 21:47:34 +000029259
29260
29261
29262#
29263# Check for JPEG Version 2 delegate library.
29264#
29265
29266# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029267if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029268 withval=$with_jp2; with_jp2=$withval
29269else
29270 with_jp2='yes'
29271fi
29272
29273
29274if test "$with_jp2" != 'yes'; then
29275 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29276fi
29277
29278have_jp2='no'
29279JP2_LIBS=''
29280if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029284$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029286$as_echo "" >&6; }
29287 failed=0
29288 passed=0
cristy8b350f62009-11-15 23:12:43 +000029289 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 +000029290if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029291 passed=`expr $passed + 1`
29292else
29293 failed=`expr $failed + 1`
29294fi
29295
29296
cristy8b350f62009-11-15 23:12:43 +000029297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029298$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029299if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029300 $as_echo_n "(cached) " >&6
29301else
29302 ac_check_lib_save_LIBS=$LIBS
29303LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029305/* end confdefs.h. */
29306
29307/* Override any GCC internal prototype to avoid an error.
29308 Use char because int might match the return type of a GCC
29309 builtin and then its argument prototype would still apply. */
29310#ifdef __cplusplus
29311extern "C"
29312#endif
29313char jas_stream_fopen ();
29314int
29315main ()
29316{
29317return jas_stream_fopen ();
29318 ;
29319 return 0;
29320}
29321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029322if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029323 ac_cv_lib_jasper_jas_stream_fopen=yes
29324else
cristy8b350f62009-11-15 23:12:43 +000029325 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029326fi
cristy8b350f62009-11-15 23:12:43 +000029327rm -f core conftest.err conftest.$ac_objext \
29328 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029329LIBS=$ac_check_lib_save_LIBS
29330fi
cristy8b350f62009-11-15 23:12:43 +000029331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029332$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029333if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029334 passed=`expr $passed + 1`
29335else
29336 failed=`expr $failed + 1`
29337fi
29338
cristy8b350f62009-11-15 23:12:43 +000029339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029340$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29341 if test $passed -gt 0; then
29342 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029344$as_echo "no -- some components failed test" >&6; }
29345 have_jp2='no (failed tests)'
29346 else
29347 JP2_LIBS='-ljasper'
29348 LIBS="$JP2_LIBS $LIBS"
29349
cristy8b350f62009-11-15 23:12:43 +000029350$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029351
cristy8b350f62009-11-15 23:12:43 +000029352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029353$as_echo "yes" >&6; }
29354 have_jp2='yes'
29355 fi
29356 else
cristy8b350f62009-11-15 23:12:43 +000029357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029358$as_echo "no" >&6; }
29359 fi
29360fi
cristy73bd4a52010-10-05 11:24:23 +000029361 if test "$have_jp2" = 'yes'; then
29362 JP2_DELEGATE_TRUE=
29363 JP2_DELEGATE_FALSE='#'
29364else
29365 JP2_DELEGATE_TRUE='#'
29366 JP2_DELEGATE_FALSE=
29367fi
29368
cristy3ed852e2009-09-05 21:47:34 +000029369
29370
29371
29372#
29373# Check for LCMS delegate library.
29374#
cristy71203402010-06-18 13:12:03 +000029375# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029376
29377# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029378if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029379 withval=$with_lcms; with_lcms=$withval
29380else
29381 with_lcms='yes'
29382fi
29383
cristy71203402010-06-18 13:12:03 +000029384if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029385 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29386fi
29387
cristy71203402010-06-18 13:12:03 +000029388# Disable LCMS2.
29389
29390# Check whether --with-lcms2 was given.
29391if test "${with_lcms2+set}" = set; then :
29392 withval=$with_lcms2; with_lcms2=$withval
29393else
29394 with_lcms2='yes'
29395fi
29396
29397if test "$with_lcms2" != 'yes' ; then
29398 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29399fi
29400
29401have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029402LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029403if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029405$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29407$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029409$as_echo "" >&6; }
29410 failed=0
29411 passed=0
29412 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029413
29414 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029415 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029416if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029417 have_lcms_header='yes'
29418fi
29419
29420
29421 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029422
29423$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29424
cristy71203402010-06-18 13:12:03 +000029425 passed=`expr $passed + 1`
29426 fi
29427
29428 # Check for <lcms2/lcms2.h)
29429 if test "$have_lcms_header" != 'yes'; then
29430 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 +000029431if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029432 have_lcms_header='yes'
29433fi
29434
29435
cristy71203402010-06-18 13:12:03 +000029436 if test "$have_lcms_header" = 'yes'; then
29437 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029438
cristy71203402010-06-18 13:12:03 +000029439$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029440
cristy71203402010-06-18 13:12:03 +000029441 fi
cristyd09bcf92010-03-25 03:04:45 +000029442 fi
cristy71203402010-06-18 13:12:03 +000029443
29444 # Failed to find lcms header?
29445 if test "$have_lcms_header" != 'yes'; then
29446 failed=`expr $failed + 1`
29447 fi
29448
29449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29450$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029451if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029452 $as_echo_n "(cached) " >&6
29453else
29454 ac_check_lib_save_LIBS=$LIBS
29455LIBS="-llcms2 $LIBS"
29456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29457/* end confdefs.h. */
29458
29459/* Override any GCC internal prototype to avoid an error.
29460 Use char because int might match the return type of a GCC
29461 builtin and then its argument prototype would still apply. */
29462#ifdef __cplusplus
29463extern "C"
29464#endif
cristy71203402010-06-18 13:12:03 +000029465char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029466int
29467main ()
29468{
cristy71203402010-06-18 13:12:03 +000029469return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029470 ;
29471 return 0;
29472}
29473_ACEOF
29474if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029475 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029476else
cristy71203402010-06-18 13:12:03 +000029477 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029478fi
29479rm -f core conftest.err conftest.$ac_objext \
29480 conftest$ac_exeext conftest.$ac_ext
29481LIBS=$ac_check_lib_save_LIBS
29482fi
cristy71203402010-06-18 13:12:03 +000029483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29484$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029485if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029486 passed=`expr $passed + 1`
29487else
29488 failed=`expr $failed + 1`
29489fi
29490
cristy71203402010-06-18 13:12:03 +000029491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29492$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029493 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029494 if test $failed -gt 0; then
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000029496$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029497 have_lcms2='no (failed tests)'
29498 else
29499 LCMS_LIBS='-llcms2'
29500 LIBS="$LCMS_LIBS $LIBS"
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000029502$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029503 have_lcms2='yes'
29504 fi
cristyd09bcf92010-03-25 03:04:45 +000029505 else
cristy71203402010-06-18 13:12:03 +000029506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000029507$as_echo "no" >&6; }
29508 fi
29509fi
29510
cristy71203402010-06-18 13:12:03 +000029511#
29512# Check for LCMS v1 (1.11 or later)
29513#
29514if test $have_lcms2 = 'yes'; then
29515 with_lcms='no'
29516fi
29517
29518have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029519if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000029520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29521$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29523$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29525$as_echo "" >&6; }
29526 failed=0
29527 passed=0
29528 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029529
29530 # Check for <lcms.h>
29531 if test "$have_lcms_header" != 'yes'; then
29532 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029533if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029534 have_lcms_header='yes'
29535fi
29536
29537
cristy71203402010-06-18 13:12:03 +000029538 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029539 passed=`expr $passed + 1`
29540
cristy8b350f62009-11-15 23:12:43 +000029541$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029542
cristy71203402010-06-18 13:12:03 +000029543 fi
29544 fi
29545
29546 # Check for <lcms/lcms.h>
29547 if test "$have_lcms_header" != 'yes'; then
29548 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 +000029549if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029550 have_lcms_header='yes'
29551fi
29552
29553
cristy71203402010-06-18 13:12:03 +000029554 if test "$have_lcms_header" = 'yes'; then
29555 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029556
cristy8b350f62009-11-15 23:12:43 +000029557$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029558
cristy71203402010-06-18 13:12:03 +000029559 fi
cristy3ed852e2009-09-05 21:47:34 +000029560 fi
cristy71203402010-06-18 13:12:03 +000029561
29562 # Failed to find lcms header?
29563 if test "$have_lcms_header" != 'yes'; then
29564 failed=`expr $failed + 1`
29565 fi
29566
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29568$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029569if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029570 $as_echo_n "(cached) " >&6
29571else
29572 ac_check_lib_save_LIBS=$LIBS
29573LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029575/* end confdefs.h. */
29576
29577/* Override any GCC internal prototype to avoid an error.
29578 Use char because int might match the return type of a GCC
29579 builtin and then its argument prototype would still apply. */
29580#ifdef __cplusplus
29581extern "C"
29582#endif
cristy71203402010-06-18 13:12:03 +000029583char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029584int
29585main ()
29586{
cristy71203402010-06-18 13:12:03 +000029587return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029588 ;
29589 return 0;
29590}
29591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029592if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029593 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029594else
cristy71203402010-06-18 13:12:03 +000029595 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029596fi
cristy8b350f62009-11-15 23:12:43 +000029597rm -f core conftest.err conftest.$ac_objext \
29598 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029599LIBS=$ac_check_lib_save_LIBS
29600fi
cristy71203402010-06-18 13:12:03 +000029601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29602$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029603if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029604 passed=`expr $passed + 1`
29605else
29606 failed=`expr $failed + 1`
29607fi
29608
cristy8b350f62009-11-15 23:12:43 +000029609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029610$as_echo_n "checking if LCMS package is complete... " >&6; }
29611 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029612 if test $failed -gt 0; then
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029614$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029615 have_lcms='no (failed tests)'
29616 else
29617 LCMS_LIBS='-llcms'
29618 LIBS="$LCMS_LIBS $LIBS"
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029620$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029621 have_lcms='yes'
29622 fi
cristy3ed852e2009-09-05 21:47:34 +000029623 else
cristy71203402010-06-18 13:12:03 +000029624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029625$as_echo "no" >&6; }
29626 fi
29627fi
cristy71203402010-06-18 13:12:03 +000029628
cristy73bd4a52010-10-05 11:24:23 +000029629 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29630 LCMS_DELEGATE_TRUE=
29631 LCMS_DELEGATE_FALSE='#'
29632else
29633 LCMS_DELEGATE_TRUE='#'
29634 LCMS_DELEGATE_FALSE=
29635fi
29636
cristy71203402010-06-18 13:12:03 +000029637if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29638
29639$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29640
29641fi
29642
cristy3ed852e2009-09-05 21:47:34 +000029643
29644
29645
29646#
29647# Check for the LQR (Liquid Rescale) delegate library.
29648#
29649
29650# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029651if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029652 withval=$with_lqr; with_lqr=$withval
29653else
29654 with_lqr='yes'
29655fi
29656
29657
29658if test "$with_lqr" != 'yes'; then
29659 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29660fi
29661
29662have_lqr='no'
29663LQR_CFLAGS=""
29664LQR_LIBS=""
29665LQR_PKG=""
29666if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029668$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029669
29670pkg_failed=no
29671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29672$as_echo_n "checking for LQR... " >&6; }
29673
29674if test -n "$LQR_CFLAGS"; then
29675 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29676 elif test -n "$PKG_CONFIG"; then
29677 if test -n "$PKG_CONFIG" && \
29678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29679 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29680 ac_status=$?
29681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29682 test $ac_status = 0; }; then
29683 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29684else
29685 pkg_failed=yes
29686fi
29687 else
29688 pkg_failed=untried
29689fi
29690if test -n "$LQR_LIBS"; then
29691 pkg_cv_LQR_LIBS="$LQR_LIBS"
29692 elif test -n "$PKG_CONFIG"; then
29693 if test -n "$PKG_CONFIG" && \
29694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29695 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29696 ac_status=$?
29697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29698 test $ac_status = 0; }; then
29699 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29700else
29701 pkg_failed=yes
29702fi
29703 else
29704 pkg_failed=untried
29705fi
29706
29707
29708
29709if test $pkg_failed = yes; then
29710
29711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29712 _pkg_short_errors_supported=yes
29713else
29714 _pkg_short_errors_supported=no
29715fi
29716 if test $_pkg_short_errors_supported = yes; then
29717 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29718 else
29719 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29720 fi
29721 # Put the nasty error message in config.log where it belongs
29722 echo "$LQR_PKG_ERRORS" >&5
29723
29724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29725$as_echo "no" >&6; }
29726 have_lqr=no
29727elif test $pkg_failed = untried; then
29728 have_lqr=no
29729else
29730 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29731 LQR_LIBS=$pkg_cv_LQR_LIBS
29732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29733$as_echo "yes" >&6; }
29734 have_lqr=yes
29735fi
cristy8b350f62009-11-15 23:12:43 +000029736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029737$as_echo "" >&6; }
29738fi
29739
29740if test "$have_lqr" = 'yes'; then
29741
cristy8b350f62009-11-15 23:12:43 +000029742$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029743
29744 CFLAGS="$LQR_CFLAGS $CFLAGS"
29745fi
29746
cristy73bd4a52010-10-05 11:24:23 +000029747 if test "$have_lqr" = 'yes'; then
29748 LQR_DELEGATE_TRUE=
29749 LQR_DELEGATE_FALSE='#'
29750else
29751 LQR_DELEGATE_TRUE='#'
29752 LQR_DELEGATE_FALSE=
29753fi
29754
cristy3ed852e2009-09-05 21:47:34 +000029755
29756
29757
29758
cristyf805afb2011-10-03 17:17:37 +000029759#
29760# Check for LZMA delegate library.
29761#
cristyfbb0ef02010-12-19 02:32:11 +000029762
29763# Check whether --with-lzma was given.
29764if test "${with_lzma+set}" = set; then :
29765 withval=$with_lzma; with_lzma=$withval
29766else
29767 with_lzma='yes'
29768fi
29769
cristyf805afb2011-10-03 17:17:37 +000029770
29771if test "$with_lzma" != 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000029772 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29773fi
29774
cristyf805afb2011-10-03 17:17:37 +000029775LZMA_PKG=""
29776if test "x$with_lzma" = "xyes"; then
cristyfbb0ef02010-12-19 02:32:11 +000029777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29778$as_echo "-------------------------------------------------------------" >&6; }
cristyf805afb2011-10-03 17:17:37 +000029779
29780pkg_failed=no
29781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000029782$as_echo_n "checking for LZMA... " >&6; }
cristyf805afb2011-10-03 17:17:37 +000029783
29784if test -n "$LZMA_CFLAGS"; then
29785 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
29786 elif test -n "$PKG_CONFIG"; then
29787 if test -n "$PKG_CONFIG" && \
29788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
29789 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
29790 ac_status=$?
29791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29792 test $ac_status = 0; }; then
29793 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
29794else
29795 pkg_failed=yes
29796fi
29797 else
29798 pkg_failed=untried
29799fi
29800if test -n "$LZMA_LIBS"; then
29801 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
29802 elif test -n "$PKG_CONFIG"; then
29803 if test -n "$PKG_CONFIG" && \
29804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
29805 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
29806 ac_status=$?
29807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29808 test $ac_status = 0; }; then
29809 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
29810else
29811 pkg_failed=yes
29812fi
29813 else
29814 pkg_failed=untried
29815fi
29816
29817
29818
29819if test $pkg_failed = yes; then
29820
29821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29822 _pkg_short_errors_supported=yes
29823else
29824 _pkg_short_errors_supported=no
29825fi
29826 if test $_pkg_short_errors_supported = yes; then
29827 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma" 2>&1`
29828 else
29829 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma" 2>&1`
29830 fi
29831 # Put the nasty error message in config.log where it belongs
29832 echo "$LZMA_PKG_ERRORS" >&5
29833
29834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29835$as_echo "no" >&6; }
29836 have_lzma=no
29837elif test $pkg_failed = untried; then
29838 have_lzma=no
29839else
29840 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
29841 LZMA_LIBS=$pkg_cv_LZMA_LIBS
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29843$as_echo "yes" >&6; }
29844 have_lzma=yes
29845fi
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyfbb0ef02010-12-19 02:32:11 +000029847$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000029848fi
29849
cristyf805afb2011-10-03 17:17:37 +000029850if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000029851
29852$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29853
cristyf805afb2011-10-03 17:17:37 +000029854 if test "$with_modules" = 'no'; then
29855 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000029856 fi
cristyfbb0ef02010-12-19 02:32:11 +000029857fi
cristyf805afb2011-10-03 17:17:37 +000029858
cristyfbb0ef02010-12-19 02:32:11 +000029859 if test "$have_lzma" = 'yes'; then
29860 LZMA_DELEGATE_TRUE=
29861 LZMA_DELEGATE_FALSE='#'
29862else
29863 LZMA_DELEGATE_TRUE='#'
29864 LZMA_DELEGATE_FALSE=
29865fi
29866
29867
29868
29869
cristyf805afb2011-10-03 17:17:37 +000029870
cristy3ed852e2009-09-05 21:47:34 +000029871#
29872# Check for the OpenEXR delegate library.
29873#
29874
29875# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029876if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029877 withval=$with_openexr; with_openexr=$withval
29878else
29879 with_openexr='yes'
29880fi
29881
29882
29883if test "$with_openexr" != 'yes'; then
29884 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29885fi
29886
29887have_openexr='no'
29888OPENEXR_CFLAGS=""
29889OPENEXR_LIBS=""
29890OPENEXR_PKG=""
29891if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029893$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029894
29895pkg_failed=no
29896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29897$as_echo_n "checking for OPENEXR... " >&6; }
29898
29899if test -n "$OPENEXR_CFLAGS"; then
29900 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29901 elif test -n "$PKG_CONFIG"; then
29902 if test -n "$PKG_CONFIG" && \
29903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29904 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29905 ac_status=$?
29906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29907 test $ac_status = 0; }; then
29908 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29909else
29910 pkg_failed=yes
29911fi
29912 else
29913 pkg_failed=untried
29914fi
29915if test -n "$OPENEXR_LIBS"; then
29916 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29917 elif test -n "$PKG_CONFIG"; then
29918 if test -n "$PKG_CONFIG" && \
29919 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29920 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29921 ac_status=$?
29922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29923 test $ac_status = 0; }; then
29924 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29925else
29926 pkg_failed=yes
29927fi
29928 else
29929 pkg_failed=untried
29930fi
29931
29932
29933
29934if test $pkg_failed = yes; then
29935
29936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29937 _pkg_short_errors_supported=yes
29938else
29939 _pkg_short_errors_supported=no
29940fi
29941 if test $_pkg_short_errors_supported = yes; then
29942 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29943 else
29944 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29945 fi
29946 # Put the nasty error message in config.log where it belongs
29947 echo "$OPENEXR_PKG_ERRORS" >&5
29948
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29950$as_echo "no" >&6; }
29951 have_openexr=no
29952elif test $pkg_failed = untried; then
29953 have_openexr=no
29954else
29955 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29956 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29958$as_echo "yes" >&6; }
29959 have_openexr=yes
29960fi
cristy8b350f62009-11-15 23:12:43 +000029961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029962$as_echo "" >&6; }
29963fi
29964
29965if test "$have_openexr" = 'yes'; then
29966
cristy8b350f62009-11-15 23:12:43 +000029967$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029968
29969 if test "$with_modules" = 'no'; then
29970 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29971 fi
29972fi
29973
cristy73bd4a52010-10-05 11:24:23 +000029974 if test "$have_openexr" = 'yes'; then
29975 OPENEXR_DELEGATE_TRUE=
29976 OPENEXR_DELEGATE_FALSE='#'
29977else
29978 OPENEXR_DELEGATE_TRUE='#'
29979 OPENEXR_DELEGATE_FALSE=
29980fi
29981
cristy3ed852e2009-09-05 21:47:34 +000029982
29983
29984
29985
29986#
29987# Check for PNG delegate library.
29988#
29989
29990# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000029991if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029992 withval=$with_png; with_png=$withval
29993else
29994 with_png='yes'
29995fi
29996
29997
29998if test "$with_png" != 'yes'; then
29999 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30000fi
30001
cristyf805afb2011-10-03 17:17:37 +000030002PNG_PKG=""
30003if test "x$with_png" = "xyes"; then
30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030005$as_echo "-------------------------------------------------------------" >&6; }
cristyf805afb2011-10-03 17:17:37 +000030006
30007pkg_failed=no
30008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
30009$as_echo_n "checking for PNG... " >&6; }
30010
30011if test -n "$PNG_CFLAGS"; then
30012 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
30013 elif test -n "$PKG_CONFIG"; then
30014 if test -n "$PKG_CONFIG" && \
30015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
30016 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
30017 ac_status=$?
30018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30019 test $ac_status = 0; }; then
30020 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
cristy3ed852e2009-09-05 21:47:34 +000030021else
cristyf805afb2011-10-03 17:17:37 +000030022 pkg_failed=yes
30023fi
30024 else
30025 pkg_failed=untried
30026fi
30027if test -n "$PNG_LIBS"; then
30028 pkg_cv_PNG_LIBS="$PNG_LIBS"
30029 elif test -n "$PKG_CONFIG"; then
30030 if test -n "$PKG_CONFIG" && \
30031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
30032 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
30033 ac_status=$?
30034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30035 test $ac_status = 0; }; then
30036 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
30037else
30038 pkg_failed=yes
30039fi
30040 else
30041 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000030042fi
30043
30044
cristy64877302011-08-23 19:10:31 +000030045
cristyf805afb2011-10-03 17:17:37 +000030046if test $pkg_failed = yes; then
30047
30048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30049 _pkg_short_errors_supported=yes
30050else
30051 _pkg_short_errors_supported=no
30052fi
30053 if test $_pkg_short_errors_supported = yes; then
30054 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1`
cristy50d3f5c2011-09-10 20:09:06 +000030055 else
cristyf805afb2011-10-03 17:17:37 +000030056 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1`
cristy50d3f5c2011-09-10 20:09:06 +000030057 fi
cristyf805afb2011-10-03 17:17:37 +000030058 # Put the nasty error message in config.log where it belongs
30059 echo "$PNG_PKG_ERRORS" >&5
cristy64877302011-08-23 19:10:31 +000030060
cristyf805afb2011-10-03 17:17:37 +000030061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy64877302011-08-23 19:10:31 +000030062$as_echo "no" >&6; }
cristyf805afb2011-10-03 17:17:37 +000030063 have_png=no
30064elif test $pkg_failed = untried; then
30065 have_png=no
30066else
30067 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
30068 PNG_LIBS=$pkg_cv_PNG_LIBS
30069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy64877302011-08-23 19:10:31 +000030070$as_echo "yes" >&6; }
cristyf805afb2011-10-03 17:17:37 +000030071 have_png=yes
cristy64877302011-08-23 19:10:31 +000030072fi
cristyf805afb2011-10-03 17:17:37 +000030073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30074$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000030075fi
30076
cristyf805afb2011-10-03 17:17:37 +000030077if test "$have_png" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030078
cristy8b350f62009-11-15 23:12:43 +000030079$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030080
cristyf805afb2011-10-03 17:17:37 +000030081 if test "$with_modules" = 'no'; then
30082 CPPFLAGS="$PNG_CFLAGS $CPPFLAGS"
30083 fi
cristy3ed852e2009-09-05 21:47:34 +000030084fi
cristy64877302011-08-23 19:10:31 +000030085
cristy73bd4a52010-10-05 11:24:23 +000030086 if test "$have_png" = 'yes'; then
30087 PNG_DELEGATE_TRUE=
30088 PNG_DELEGATE_FALSE='#'
30089else
30090 PNG_DELEGATE_TRUE='#'
30091 PNG_DELEGATE_FALSE=
30092fi
30093
cristy3ed852e2009-09-05 21:47:34 +000030094
cristy50d3f5c2011-09-10 20:09:06 +000030095
cristy3ed852e2009-09-05 21:47:34 +000030096
30097
30098#
30099# Check for RSVG delegate library.
30100#
30101
30102# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030103if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030104 withval=$with_rsvg; with_rsvg=$withval
30105else
30106 with_rsvg=$have_x
30107fi
30108
30109
30110if test "$with_rsvg" != 'yes'; then
30111 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30112fi
30113
30114have_rsvg='no'
30115have_cairo='no'
30116RSVG_CFLAGS=""
30117RSVG_LIBS=""
30118RSVG_PKG=""
30119if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000030120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030121$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030122
30123pkg_failed=no
30124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30125$as_echo_n "checking for RSVG... " >&6; }
30126
30127if test -n "$RSVG_CFLAGS"; then
30128 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30129 elif test -n "$PKG_CONFIG"; then
30130 if test -n "$PKG_CONFIG" && \
30131 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30132 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30133 ac_status=$?
30134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30135 test $ac_status = 0; }; then
30136 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30137else
30138 pkg_failed=yes
30139fi
30140 else
30141 pkg_failed=untried
30142fi
30143if test -n "$RSVG_LIBS"; then
30144 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30145 elif test -n "$PKG_CONFIG"; then
30146 if test -n "$PKG_CONFIG" && \
30147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30148 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30149 ac_status=$?
30150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30151 test $ac_status = 0; }; then
30152 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30153else
30154 pkg_failed=yes
30155fi
30156 else
30157 pkg_failed=untried
30158fi
30159
30160
30161
30162if test $pkg_failed = yes; then
30163
30164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30165 _pkg_short_errors_supported=yes
30166else
30167 _pkg_short_errors_supported=no
30168fi
30169 if test $_pkg_short_errors_supported = yes; then
30170 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30171 else
30172 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30173 fi
30174 # Put the nasty error message in config.log where it belongs
30175 echo "$RSVG_PKG_ERRORS" >&5
30176
30177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30178$as_echo "no" >&6; }
30179 have_rsvg=no
30180elif test $pkg_failed = untried; then
30181 have_rsvg=no
30182else
30183 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30184 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30186$as_echo "yes" >&6; }
30187 have_rsvg=yes
30188fi
cristy8b350f62009-11-15 23:12:43 +000030189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030190$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030191
30192pkg_failed=no
30193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30194$as_echo_n "checking for CAIRO_SVG... " >&6; }
30195
30196if test -n "$CAIRO_SVG_CFLAGS"; then
30197 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30198 elif test -n "$PKG_CONFIG"; then
30199 if test -n "$PKG_CONFIG" && \
30200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30201 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30202 ac_status=$?
30203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30204 test $ac_status = 0; }; then
30205 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30206else
30207 pkg_failed=yes
30208fi
30209 else
30210 pkg_failed=untried
30211fi
30212if test -n "$CAIRO_SVG_LIBS"; then
30213 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30214 elif test -n "$PKG_CONFIG"; then
30215 if test -n "$PKG_CONFIG" && \
30216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30217 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30218 ac_status=$?
30219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30220 test $ac_status = 0; }; then
30221 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30222else
30223 pkg_failed=yes
30224fi
30225 else
30226 pkg_failed=untried
30227fi
30228
30229
30230
30231if test $pkg_failed = yes; then
30232
30233if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30234 _pkg_short_errors_supported=yes
30235else
30236 _pkg_short_errors_supported=no
30237fi
30238 if test $_pkg_short_errors_supported = yes; then
30239 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30240 else
30241 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30242 fi
30243 # Put the nasty error message in config.log where it belongs
30244 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30245
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30247$as_echo "no" >&6; }
30248 have_cairo=no
30249elif test $pkg_failed = untried; then
30250 have_cairo=no
30251else
30252 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30253 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30255$as_echo "yes" >&6; }
30256 have_cairo=yes
30257fi
cristy8b350f62009-11-15 23:12:43 +000030258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030259$as_echo "" >&6; }
30260fi
30261
30262if test "$have_rsvg" = 'yes'; then
30263
cristy8b350f62009-11-15 23:12:43 +000030264$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030265
30266 if test "$with_modules" = 'no'; then
30267 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30268 fi
30269fi
30270
30271if test "$have_cairo" = 'yes'; then
30272
cristy8b350f62009-11-15 23:12:43 +000030273$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030274
30275 if test "$with_modules" = 'no'; then
30276 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30277 fi
30278fi
30279
cristy73bd4a52010-10-05 11:24:23 +000030280 if test "$have_rsvg" = 'yes'; then
30281 RSVG_DELEGATE_TRUE=
30282 RSVG_DELEGATE_FALSE='#'
30283else
30284 RSVG_DELEGATE_TRUE='#'
30285 RSVG_DELEGATE_FALSE=
30286fi
30287
30288 if test "$have_cairo" = 'yes'; then
30289 CAIRO_DELEGATE_TRUE=
30290 CAIRO_DELEGATE_FALSE='#'
30291else
30292 CAIRO_DELEGATE_TRUE='#'
30293 CAIRO_DELEGATE_FALSE=
30294fi
30295
cristy3ed852e2009-09-05 21:47:34 +000030296
30297
30298
30299
30300#
30301# Check for TIFF delegate library.
30302#
30303
30304# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030305if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030306 withval=$with_tiff; with_tiff=$withval
30307else
30308 with_tiff='yes'
30309fi
30310
30311
30312if test "$with_tiff" != 'yes'; then
30313 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30314fi
30315
30316have_tiff='no'
30317TIFF_LIBS=''
30318if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030320$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030322$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030324$as_echo "" >&6; }
30325 failed=0
30326 passed=0
cristy8b350f62009-11-15 23:12:43 +000030327 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030328if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030329 passed=`expr $passed + 1`
30330else
30331 failed=`expr $failed + 1`
30332fi
30333
30334
cristy8b350f62009-11-15 23:12:43 +000030335 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030336if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030337 passed=`expr $passed + 1`
30338else
30339 failed=`expr $failed + 1`
30340fi
30341
30342
cristy8b350f62009-11-15 23:12:43 +000030343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030344$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030345if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030346 $as_echo_n "(cached) " >&6
30347else
30348 ac_check_lib_save_LIBS=$LIBS
30349LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030351/* end confdefs.h. */
30352
30353/* Override any GCC internal prototype to avoid an error.
30354 Use char because int might match the return type of a GCC
30355 builtin and then its argument prototype would still apply. */
30356#ifdef __cplusplus
30357extern "C"
30358#endif
30359char TIFFOpen ();
30360int
30361main ()
30362{
30363return TIFFOpen ();
30364 ;
30365 return 0;
30366}
30367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030369 ac_cv_lib_tiff_TIFFOpen=yes
30370else
cristy8b350f62009-11-15 23:12:43 +000030371 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030372fi
cristy8b350f62009-11-15 23:12:43 +000030373rm -f core conftest.err conftest.$ac_objext \
30374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030375LIBS=$ac_check_lib_save_LIBS
30376fi
cristy8b350f62009-11-15 23:12:43 +000030377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030378$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030379if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030380 passed=`expr $passed + 1`
30381else
30382 failed=`expr $failed + 1`
30383fi
30384
cristy8b350f62009-11-15 23:12:43 +000030385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030386$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030387if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030388 $as_echo_n "(cached) " >&6
30389else
30390 ac_check_lib_save_LIBS=$LIBS
30391LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030393/* end confdefs.h. */
30394
30395/* Override any GCC internal prototype to avoid an error.
30396 Use char because int might match the return type of a GCC
30397 builtin and then its argument prototype would still apply. */
30398#ifdef __cplusplus
30399extern "C"
30400#endif
30401char TIFFClientOpen ();
30402int
30403main ()
30404{
30405return TIFFClientOpen ();
30406 ;
30407 return 0;
30408}
30409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030411 ac_cv_lib_tiff_TIFFClientOpen=yes
30412else
cristy8b350f62009-11-15 23:12:43 +000030413 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030414fi
cristy8b350f62009-11-15 23:12:43 +000030415rm -f core conftest.err conftest.$ac_objext \
30416 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030417LIBS=$ac_check_lib_save_LIBS
30418fi
cristy8b350f62009-11-15 23:12:43 +000030419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030420$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030421if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030422 passed=`expr $passed + 1`
30423else
30424 failed=`expr $failed + 1`
30425fi
30426
cristyb97f1002010-07-26 14:02:57 +000030427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30428$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030429if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000030430 $as_echo_n "(cached) " >&6
30431else
30432 ac_check_lib_save_LIBS=$LIBS
30433LIBS="-ltiff $LIBS"
30434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30435/* end confdefs.h. */
30436
30437/* Override any GCC internal prototype to avoid an error.
30438 Use char because int might match the return type of a GCC
30439 builtin and then its argument prototype would still apply. */
30440#ifdef __cplusplus
30441extern "C"
30442#endif
30443char TIFFIsBigEndian ();
30444int
30445main ()
30446{
30447return TIFFIsBigEndian ();
30448 ;
30449 return 0;
30450}
30451_ACEOF
30452if ac_fn_c_try_link "$LINENO"; then :
30453 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30454else
30455 ac_cv_lib_tiff_TIFFIsBigEndian=no
30456fi
30457rm -f core conftest.err conftest.$ac_objext \
30458 conftest$ac_exeext conftest.$ac_ext
30459LIBS=$ac_check_lib_save_LIBS
30460fi
30461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30462$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000030463if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000030464 passed=`expr $passed + 1`
30465else
30466 failed=`expr $failed + 1`
30467fi
30468
cristy8b350f62009-11-15 23:12:43 +000030469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030470$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030471if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030472 $as_echo_n "(cached) " >&6
30473else
30474 ac_check_lib_save_LIBS=$LIBS
30475LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030477/* end confdefs.h. */
30478
30479/* Override any GCC internal prototype to avoid an error.
30480 Use char because int might match the return type of a GCC
30481 builtin and then its argument prototype would still apply. */
30482#ifdef __cplusplus
30483extern "C"
30484#endif
30485char TIFFIsByteSwapped ();
30486int
30487main ()
30488{
30489return TIFFIsByteSwapped ();
30490 ;
30491 return 0;
30492}
30493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030494if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030495 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30496else
cristy8b350f62009-11-15 23:12:43 +000030497 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000030498fi
cristy8b350f62009-11-15 23:12:43 +000030499rm -f core conftest.err conftest.$ac_objext \
30500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030501LIBS=$ac_check_lib_save_LIBS
30502fi
cristy8b350f62009-11-15 23:12:43 +000030503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000030504$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000030505if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030506 passed=`expr $passed + 1`
30507else
30508 failed=`expr $failed + 1`
30509fi
30510
cristy8b350f62009-11-15 23:12:43 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030512$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030513if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030514 $as_echo_n "(cached) " >&6
30515else
30516 ac_check_lib_save_LIBS=$LIBS
30517LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030519/* end confdefs.h. */
30520
30521/* Override any GCC internal prototype to avoid an error.
30522 Use char because int might match the return type of a GCC
30523 builtin and then its argument prototype would still apply. */
30524#ifdef __cplusplus
30525extern "C"
30526#endif
30527char TIFFReadRGBATile ();
30528int
30529main ()
30530{
30531return TIFFReadRGBATile ();
30532 ;
30533 return 0;
30534}
30535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030536if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030537 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30538else
cristy8b350f62009-11-15 23:12:43 +000030539 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000030540fi
cristy8b350f62009-11-15 23:12:43 +000030541rm -f core conftest.err conftest.$ac_objext \
30542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030543LIBS=$ac_check_lib_save_LIBS
30544fi
cristy8b350f62009-11-15 23:12:43 +000030545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000030546$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000030547if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030548 passed=`expr $passed + 1`
30549else
30550 failed=`expr $failed + 1`
30551fi
30552
cristy8b350f62009-11-15 23:12:43 +000030553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030554$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030555if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030556 $as_echo_n "(cached) " >&6
30557else
30558 ac_check_lib_save_LIBS=$LIBS
30559LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030561/* end confdefs.h. */
30562
30563/* Override any GCC internal prototype to avoid an error.
30564 Use char because int might match the return type of a GCC
30565 builtin and then its argument prototype would still apply. */
30566#ifdef __cplusplus
30567extern "C"
30568#endif
30569char TIFFReadRGBAStrip ();
30570int
30571main ()
30572{
30573return TIFFReadRGBAStrip ();
30574 ;
30575 return 0;
30576}
30577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030578if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030579 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30580else
cristy8b350f62009-11-15 23:12:43 +000030581 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000030582fi
cristy8b350f62009-11-15 23:12:43 +000030583rm -f core conftest.err conftest.$ac_objext \
30584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030585LIBS=$ac_check_lib_save_LIBS
30586fi
cristy8b350f62009-11-15 23:12:43 +000030587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000030588$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000030589if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030590 passed=`expr $passed + 1`
30591else
30592 failed=`expr $failed + 1`
30593fi
30594
cristy8b350f62009-11-15 23:12:43 +000030595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030596$as_echo_n "checking if TIFF package is complete... " >&6; }
30597 if test $passed -gt 0; then
30598 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030600$as_echo "no -- some components failed test" >&6; }
30601 have_tiff='no (failed tests)'
30602 else
30603 TIFF_LIBS='-ltiff'
30604 LIBS="$TIFF_LIBS $LIBS"
30605
cristy8b350f62009-11-15 23:12:43 +000030606$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030607
cristy8b350f62009-11-15 23:12:43 +000030608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030609$as_echo "yes" >&6; }
30610 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000030611 for ac_header in tiffconf.h
30612do :
30613 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030614if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030615 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030616#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000030617_ACEOF
30618
30619fi
30620
30621done
30622
cristy8b350f62009-11-15 23:12:43 +000030623 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000030624 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30625 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000030626do :
30627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30628ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000030629if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000030630 cat >>confdefs.h <<_ACEOF
30631#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30632_ACEOF
30633
30634fi
30635done
30636
30637 fi
30638 else
cristy8b350f62009-11-15 23:12:43 +000030639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030640$as_echo "no" >&6; }
30641 fi
30642fi
cristy73bd4a52010-10-05 11:24:23 +000030643 if test "$have_tiff" = 'yes'; then
30644 TIFF_DELEGATE_TRUE=
30645 TIFF_DELEGATE_FALSE='#'
30646else
30647 TIFF_DELEGATE_TRUE='#'
30648 TIFF_DELEGATE_FALSE=
30649fi
30650
cristy3ed852e2009-09-05 21:47:34 +000030651
30652
30653
30654#
cristyb1860752011-03-14 00:27:46 +000030655# Check for WEBP delegate library.
30656#
30657
30658# Check whether --with-webp was given.
30659if test "${with_webp+set}" = set; then :
30660 withval=$with_webp; with_webp=$withval
30661else
30662 with_webp='yes'
30663fi
30664
30665
30666if test "$with_webp" != 'yes'; then
30667 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30668fi
30669
30670have_webp='no'
30671WEBP_LIBS=''
30672if test "$with_webp" != 'no'; then
30673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30674$as_echo "-------------------------------------------------------------" >&6; }
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
30676$as_echo_n "checking for WEBP... " >&6; }
30677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30678$as_echo "" >&6; }
30679 failed=0
30680 passed=0
30681 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
30682if test "x$ac_cv_header_webp_decode_h" = xyes; then :
30683 passed=`expr $passed + 1`
30684else
30685 failed=`expr $failed + 1`
30686fi
30687
30688
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
30690$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
30691if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
30692 $as_echo_n "(cached) " >&6
30693else
30694 ac_check_lib_save_LIBS=$LIBS
30695LIBS="-lwebp $LIBS"
30696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30697/* end confdefs.h. */
30698
30699/* Override any GCC internal prototype to avoid an error.
30700 Use char because int might match the return type of a GCC
30701 builtin and then its argument prototype would still apply. */
30702#ifdef __cplusplus
30703extern "C"
30704#endif
30705char WebPDecodeRGB ();
30706int
30707main ()
30708{
30709return WebPDecodeRGB ();
30710 ;
30711 return 0;
30712}
30713_ACEOF
30714if ac_fn_c_try_link "$LINENO"; then :
30715 ac_cv_lib_webp_WebPDecodeRGB=yes
30716else
30717 ac_cv_lib_webp_WebPDecodeRGB=no
30718fi
30719rm -f core conftest.err conftest.$ac_objext \
30720 conftest$ac_exeext conftest.$ac_ext
30721LIBS=$ac_check_lib_save_LIBS
30722fi
30723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30724$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30725if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30726 passed=`expr $passed + 1`
30727else
30728 failed=`expr $failed + 1`
30729fi
30730
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30732$as_echo_n "checking if WEBP package is complete... " >&6; }
30733 if test $passed -gt 0; then
30734 if test $failed -gt 0; then
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30736$as_echo "no -- some components failed test" >&6; }
30737 have_webp='no (failed tests)'
30738 else
30739 WEBP_LIBS='-lwebp'
30740 LIBS="$WEBP_LIBS $LIBS"
30741
30742$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30743
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30745$as_echo "yes" >&6; }
30746 have_webp='yes'
30747 fi
30748 else
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30750$as_echo "no" >&6; }
30751 fi
30752fi
30753 if test "$have_webp" = 'yes'; then
30754 WEBP_DELEGATE_TRUE=
30755 WEBP_DELEGATE_FALSE='#'
30756else
30757 WEBP_DELEGATE_TRUE='#'
30758 WEBP_DELEGATE_FALSE=
30759fi
30760
30761
30762
30763
30764#
cristy3ed852e2009-09-05 21:47:34 +000030765# Set Windows font directory.
30766#
30767
30768# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030769if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030770 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30771else
30772 with_windows_font_dir=''
30773fi
30774
30775if test "$with_windows_font_dir" != '' ; then
30776 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30777fi
30778
30779
30780#
30781# Check for WMF delegate library.
30782#
30783
30784# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000030785if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030786 withval=$with_wmf; with_wmf=$withval
30787else
cristy8d63d1d2010-01-06 20:38:37 +000030788 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000030789fi
30790
30791
30792if test "$with_wmf" != 'yes'; then
30793 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30794fi
30795
30796have_wmf='no'
30797WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000030798if test "$with_wmf" != 'no'; then
glennrp33e524b2011-08-24 17:41:57 +000030799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030800$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000030801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030802$as_echo_n "checking for WMF... " >&6; }
glennrp33e524b2011-08-24 17:41:57 +000030803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030804$as_echo "" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000030805 failed=0
30806 passed=0
30807 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
30808if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
30809 passed=`expr $passed + 1`
30810else
30811 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030812fi
30813
30814
glennrp33e524b2011-08-24 17:41:57 +000030815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30816$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
30817if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030818 $as_echo_n "(cached) " >&6
30819else
30820 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000030821LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030823/* end confdefs.h. */
30824
30825/* Override any GCC internal prototype to avoid an error.
30826 Use char because int might match the return type of a GCC
30827 builtin and then its argument prototype would still apply. */
30828#ifdef __cplusplus
30829extern "C"
30830#endif
glennrp33e524b2011-08-24 17:41:57 +000030831char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030832int
30833main ()
30834{
glennrp33e524b2011-08-24 17:41:57 +000030835return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030836 ;
30837 return 0;
30838}
30839_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030840if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000030841 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030842else
glennrp33e524b2011-08-24 17:41:57 +000030843 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030844fi
cristy8b350f62009-11-15 23:12:43 +000030845rm -f core conftest.err conftest.$ac_objext \
30846 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030847LIBS=$ac_check_lib_save_LIBS
30848fi
glennrp33e524b2011-08-24 17:41:57 +000030849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30850$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
30851if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
30852 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000030853else
glennrp33e524b2011-08-24 17:41:57 +000030854 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000030855fi
30856
glennrp33e524b2011-08-24 17:41:57 +000030857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30858$as_echo_n "checking if WMF package is complete... " >&6; }
30859 if test $passed -gt 0; then
30860 if test $failed -gt 0; then
30861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30862$as_echo "no -- some components failed test" >&6; }
30863 have_wmf='no (failed tests)'
30864 else
30865 WMF_LIBS='-lwmf -lwmflite'
30866 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030867
cristy8b350f62009-11-15 23:12:43 +000030868$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030869
glennrp33e524b2011-08-24 17:41:57 +000030870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy9243a2d2011-08-22 17:32:32 +000030871$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000030872 have_wmf='yes'
30873 fi
30874 else
30875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy9243a2d2011-08-22 17:32:32 +000030876$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000030877 fi
cristy3ed852e2009-09-05 21:47:34 +000030878fi
cristy73bd4a52010-10-05 11:24:23 +000030879 if test "$have_wmf" = 'yes'; then
30880 WMF_DELEGATE_TRUE=
30881 WMF_DELEGATE_FALSE='#'
30882else
30883 WMF_DELEGATE_TRUE='#'
30884 WMF_DELEGATE_FALSE=
30885fi
30886
cristy3ed852e2009-09-05 21:47:34 +000030887
30888
30889
cristy3ed852e2009-09-05 21:47:34 +000030890#
30891# Check for XML delegate library.
30892#
30893
30894# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030895if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030896 withval=$with_xml; with_xml=$withval
30897else
cristyf805afb2011-10-03 17:17:37 +000030898 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000030899fi
30900
30901
cristyf805afb2011-10-03 17:17:37 +000030902if test "$with_xml" != 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030903 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30904fi
30905
cristyf805afb2011-10-03 17:17:37 +000030906XML_PKG=""
30907if test "x$with_xml" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000030908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030909$as_echo "-------------------------------------------------------------" >&6; }
cristyf805afb2011-10-03 17:17:37 +000030910
30911pkg_failed=no
30912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2" >&5
30913$as_echo_n "checking for XML2... " >&6; }
30914
30915if test -n "$XML2_CFLAGS"; then
30916 pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
30917 elif test -n "$PKG_CONFIG"; then
30918 if test -n "$PKG_CONFIG" && \
30919 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
30920 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
30921 ac_status=$?
30922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30923 test $ac_status = 0; }; then
30924 pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
30925else
30926 pkg_failed=yes
30927fi
30928 else
30929 pkg_failed=untried
30930fi
30931if test -n "$XML2_LIBS"; then
30932 pkg_cv_XML2_LIBS="$XML2_LIBS"
30933 elif test -n "$PKG_CONFIG"; then
30934 if test -n "$PKG_CONFIG" && \
30935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
30936 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
30937 ac_status=$?
30938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30939 test $ac_status = 0; }; then
30940 pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
30941else
30942 pkg_failed=yes
30943fi
30944 else
30945 pkg_failed=untried
30946fi
30947
30948
30949
30950if test $pkg_failed = yes; then
30951
30952if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30953 _pkg_short_errors_supported=yes
30954else
30955 _pkg_short_errors_supported=no
30956fi
30957 if test $_pkg_short_errors_supported = yes; then
30958 XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1`
30959 else
30960 XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1`
30961 fi
30962 # Put the nasty error message in config.log where it belongs
30963 echo "$XML2_PKG_ERRORS" >&5
30964
30965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30966$as_echo "no" >&6; }
30967 have_xml=no
30968elif test $pkg_failed = untried; then
30969 have_xml=no
30970else
30971 XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
30972 XML2_LIBS=$pkg_cv_XML2_LIBS
30973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30974$as_echo "yes" >&6; }
30975 have_xml=yes
30976fi
cristy8b350f62009-11-15 23:12:43 +000030977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030978$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030979fi
30980
cristyf805afb2011-10-03 17:17:37 +000030981if test "$have_xml" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030982
cristy8b350f62009-11-15 23:12:43 +000030983$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030984
cristyf805afb2011-10-03 17:17:37 +000030985 if test "$with_modules" = 'no'; then
30986 CPPFLAGS="$XML_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030987 fi
30988fi
cristyf805afb2011-10-03 17:17:37 +000030989
cristy73bd4a52010-10-05 11:24:23 +000030990 if test "$have_xml" = 'yes'; then
30991 XML_DELEGATE_TRUE=
30992 XML_DELEGATE_FALSE='#'
30993else
30994 XML_DELEGATE_TRUE='#'
30995 XML_DELEGATE_FALSE=
30996fi
30997
cristy3ed852e2009-09-05 21:47:34 +000030998
30999
31000
cristyf805afb2011-10-03 17:17:37 +000031001
cristy3ed852e2009-09-05 21:47:34 +000031002# Substitute compiler name to build/link PerlMagick
31003#
31004
31005
31006#
31007# Configure install Paths
31008#
31009
31010# Subdirectory under lib to place ImageMagick lib files
31011LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31012
31013cat >>confdefs.h <<_ACEOF
31014#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31015_ACEOF
31016
31017
31018# Path to ImageMagick bin directory
31019EXECUTABLE_PATH="${BIN_DIR}"
31020DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31021case "${build_os}" in
31022 mingw* )
31023 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31024 ;;
31025esac
31026
31027cat >>confdefs.h <<_ACEOF
31028#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31029_ACEOF
31030
31031
31032
31033# Path to ImageMagick lib
31034LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31035DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31036case "${build_os}" in
31037 mingw* )
31038 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31039 ;;
31040esac
31041
31042cat >>confdefs.h <<_ACEOF
31043#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31044_ACEOF
31045
31046
31047
cristy3ed852e2009-09-05 21:47:34 +000031048#
31049# Subdirectory under lib to place ImageMagick coder module files
31050CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31051
31052cat >>confdefs.h <<_ACEOF
31053#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31054_ACEOF
31055
31056CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31057DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31058case "${build_os}" in
31059 mingw* )
31060 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31061 ;;
31062esac
31063
31064cat >>confdefs.h <<_ACEOF
31065#define CODER_PATH "$DEFINE_CODER_PATH"
31066_ACEOF
31067
31068
31069
31070#
31071# Subdirectory under lib to place ImageMagick filter module files
31072FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31073
31074cat >>confdefs.h <<_ACEOF
31075#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31076_ACEOF
31077
31078FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31079DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31080case "${build_os}" in
31081 mingw* )
31082 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31083 ;;
31084esac
31085
31086cat >>confdefs.h <<_ACEOF
31087#define FILTER_PATH "$DEFINE_FILTER_PATH"
31088_ACEOF
31089
31090
31091
31092#
31093# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031094DOCUMENTATION_RELATIVE_PATH=""
31095DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31096DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031097case "${build_os}" in
31098 mingw* )
31099 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31100 ;;
31101esac
31102
31103cat >>confdefs.h <<_ACEOF
31104#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31105_ACEOF
31106
31107
31108
cristy3cf8a722011-03-20 23:32:22 +000031109# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031110CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031111
31112cat >>confdefs.h <<_ACEOF
31113#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31114_ACEOF
31115
31116CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31117DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31118case "${build_os}" in
31119 mingw* )
31120 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31121 ;;
31122esac
31123
31124cat >>confdefs.h <<_ACEOF
31125#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31126_ACEOF
31127
31128
31129
31130# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031131SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031132
31133cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031134#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031135_ACEOF
31136
cristy4f820712011-04-01 12:35:43 +000031137SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31138DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031139case "${build_os}" in
31140 mingw* )
cristy4f820712011-04-01 12:35:43 +000031141 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031142 ;;
31143esac
31144
31145cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031146#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031147_ACEOF
31148
31149
31150
31151#
31152# program_transform_name is formed for use in a Makefile, so create a
31153# modified version for use in a shell script.
31154configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31155
31156# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000031157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031158$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031160$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031162$as_echo "" >&6; }
31163AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031164BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031165BZIPDelegateDefault='bzip2'
31166BrowseDelegateDefault='xdg-open'
31167CGMDecodeDelegateDefault='ralcgm'
31168CatDelegateDefault='cat'
31169DNGDecodeDelegateDefault='ufraw-batch'
31170GVCDecodeDelegateDefault='dot'
31171DVIDecodeDelegateDefault='dvips'
31172EchoDelegateDefault='echo'
31173EditorDelegateDefault='xterm'
31174FIGDecodeDelegateDefault='fig2dev'
31175ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31176DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31177MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31178GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031179HPGLDecodeDelegateDefault='hp2xx'
31180HTMLDecodeDelegateDefault='html2ps'
31181ILBMDecodeDelegateDefault='ilbmtoppm'
31182ILBMEncodeDelegateDefault='ppmtoilbm'
31183LPDelegateDefault='lp'
31184LPRDelegateDefault='lpr'
31185LZWDecodeDelegateDefault='uncompress'
31186LZWEncodeDelegateDefault='compress'
31187LaunchDelegateDefault='gimp'
31188MANDelegateDefault='groff'
31189MPEGDecodeDelegateDefault='ffmpeg'
31190MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031191MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031192MVDelegateDefault='mv'
31193PCLDelegateDefault='pcl6'
31194PGPDecodeDelegateDefault='pgpv'
31195POVDelegateDefault='povray'
31196if test "$native_win32_build" = 'yes'; then
31197 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031198elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031199 PSDelegateDefault='gsc'
31200else
31201 PSDelegateDefault='gs'
31202fi
31203RLEEncodeDelegateDefault='rawtorle'
31204RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000031205RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000031206SCANDecodeDelegateDefault='scanimage'
31207TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031208UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031209WMFDecodeDelegateDefault='wmf2eps'
31210WWWDecodeDelegateDefault='curl'
31211XPSDelegateDefault='gxps'
31212ZipDelegateDefault='gzip'
31213
31214# Search for delegates
31215# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31216set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031218$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031219if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031220 $as_echo_n "(cached) " >&6
31221else
31222 case $AutotraceDecodeDelegate in
31223 [\\/]* | ?:[\\/]*)
31224 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31225 ;;
31226 *)
31227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31228for as_dir in $PATH
31229do
31230 IFS=$as_save_IFS
31231 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31234 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031236 break 2
31237 fi
31238done
cristy8b350f62009-11-15 23:12:43 +000031239 done
cristy3ed852e2009-09-05 21:47:34 +000031240IFS=$as_save_IFS
31241
31242 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31243 ;;
31244esac
31245fi
31246AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31247if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031249$as_echo "$AutotraceDecodeDelegate" >&6; }
31250else
cristy8b350f62009-11-15 23:12:43 +000031251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031252$as_echo "no" >&6; }
31253fi
31254
31255
cristy3ed852e2009-09-05 21:47:34 +000031256# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31257set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031259$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031260if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031261 $as_echo_n "(cached) " >&6
31262else
31263 case $BlenderDecodeDelegate in
31264 [\\/]* | ?:[\\/]*)
31265 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31266 ;;
31267 *)
31268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31269for as_dir in $PATH
31270do
31271 IFS=$as_save_IFS
31272 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031273 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31275 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031277 break 2
31278 fi
31279done
cristy8b350f62009-11-15 23:12:43 +000031280 done
cristy3ed852e2009-09-05 21:47:34 +000031281IFS=$as_save_IFS
31282
31283 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31284 ;;
31285esac
31286fi
31287BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31288if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031290$as_echo "$BlenderDecodeDelegate" >&6; }
31291else
cristy8b350f62009-11-15 23:12:43 +000031292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031293$as_echo "no" >&6; }
31294fi
31295
31296
31297# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31298set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031300$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031301if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031302 $as_echo_n "(cached) " >&6
31303else
31304 case $BZIPDelegate in
31305 [\\/]* | ?:[\\/]*)
31306 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31307 ;;
31308 *)
31309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31310for as_dir in $PATH
31311do
31312 IFS=$as_save_IFS
31313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31316 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031318 break 2
31319 fi
31320done
cristy8b350f62009-11-15 23:12:43 +000031321 done
cristy3ed852e2009-09-05 21:47:34 +000031322IFS=$as_save_IFS
31323
31324 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31325 ;;
31326esac
31327fi
31328BZIPDelegate=$ac_cv_path_BZIPDelegate
31329if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031331$as_echo "$BZIPDelegate" >&6; }
31332else
cristy8b350f62009-11-15 23:12:43 +000031333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031334$as_echo "no" >&6; }
31335fi
31336
31337
31338# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31339set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031341$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031342if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031343 $as_echo_n "(cached) " >&6
31344else
31345 case $BrowseDelegate in
31346 [\\/]* | ?:[\\/]*)
31347 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31348 ;;
31349 *)
31350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31351for as_dir in $PATH
31352do
31353 IFS=$as_save_IFS
31354 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31357 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031359 break 2
31360 fi
31361done
cristy8b350f62009-11-15 23:12:43 +000031362 done
cristy3ed852e2009-09-05 21:47:34 +000031363IFS=$as_save_IFS
31364
31365 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31366 ;;
31367esac
31368fi
31369BrowseDelegate=$ac_cv_path_BrowseDelegate
31370if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031372$as_echo "$BrowseDelegate" >&6; }
31373else
cristy8b350f62009-11-15 23:12:43 +000031374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031375$as_echo "no" >&6; }
31376fi
31377
31378
31379# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31380set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031382$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031383if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031384 $as_echo_n "(cached) " >&6
31385else
31386 case $CGMDecodeDelegate in
31387 [\\/]* | ?:[\\/]*)
31388 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31389 ;;
31390 *)
31391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31392for as_dir in $PATH
31393do
31394 IFS=$as_save_IFS
31395 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31398 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031400 break 2
31401 fi
31402done
cristy8b350f62009-11-15 23:12:43 +000031403 done
cristy3ed852e2009-09-05 21:47:34 +000031404IFS=$as_save_IFS
31405
31406 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31407 ;;
31408esac
31409fi
31410CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31411if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031413$as_echo "$CGMDecodeDelegate" >&6; }
31414else
cristy8b350f62009-11-15 23:12:43 +000031415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416$as_echo "no" >&6; }
31417fi
31418
31419
31420# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31421set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031423$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031424if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031425 $as_echo_n "(cached) " >&6
31426else
31427 case $CatDelegate in
31428 [\\/]* | ?:[\\/]*)
31429 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31430 ;;
31431 *)
31432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31433for as_dir in $PATH
31434do
31435 IFS=$as_save_IFS
31436 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31439 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031441 break 2
31442 fi
31443done
cristy8b350f62009-11-15 23:12:43 +000031444 done
cristy3ed852e2009-09-05 21:47:34 +000031445IFS=$as_save_IFS
31446
31447 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31448 ;;
31449esac
31450fi
31451CatDelegate=$ac_cv_path_CatDelegate
31452if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031454$as_echo "$CatDelegate" >&6; }
31455else
cristy8b350f62009-11-15 23:12:43 +000031456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031457$as_echo "no" >&6; }
31458fi
31459
31460
31461# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31462set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031464$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031465if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031466 $as_echo_n "(cached) " >&6
31467else
31468 case $DNGDecodeDelegate in
31469 [\\/]* | ?:[\\/]*)
31470 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31471 ;;
31472 *)
31473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31474for as_dir in $PATH
31475do
31476 IFS=$as_save_IFS
31477 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31480 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031482 break 2
31483 fi
31484done
cristy8b350f62009-11-15 23:12:43 +000031485 done
cristy3ed852e2009-09-05 21:47:34 +000031486IFS=$as_save_IFS
31487
31488 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31489 ;;
31490esac
31491fi
31492DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31493if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031495$as_echo "$DNGDecodeDelegate" >&6; }
31496else
cristy8b350f62009-11-15 23:12:43 +000031497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031498$as_echo "no" >&6; }
31499fi
31500
31501
31502# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31503set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031505$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031506if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031507 $as_echo_n "(cached) " >&6
31508else
31509 case $GVCDecodeDelegate in
31510 [\\/]* | ?:[\\/]*)
31511 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31512 ;;
31513 *)
31514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31515for as_dir in $PATH
31516do
31517 IFS=$as_save_IFS
31518 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031519 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31521 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031523 break 2
31524 fi
31525done
cristy8b350f62009-11-15 23:12:43 +000031526 done
cristy3ed852e2009-09-05 21:47:34 +000031527IFS=$as_save_IFS
31528
31529 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
31530 ;;
31531esac
31532fi
31533GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
31534if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031536$as_echo "$GVCDecodeDelegate" >&6; }
31537else
cristy8b350f62009-11-15 23:12:43 +000031538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo "no" >&6; }
31540fi
31541
31542
31543# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
31544set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031547if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031548 $as_echo_n "(cached) " >&6
31549else
31550 case $DVIDecodeDelegate in
31551 [\\/]* | ?:[\\/]*)
31552 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
31553 ;;
31554 *)
31555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31556for as_dir in $PATH
31557do
31558 IFS=$as_save_IFS
31559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31562 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031564 break 2
31565 fi
31566done
cristy8b350f62009-11-15 23:12:43 +000031567 done
cristy3ed852e2009-09-05 21:47:34 +000031568IFS=$as_save_IFS
31569
31570 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
31571 ;;
31572esac
31573fi
31574DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
31575if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031577$as_echo "$DVIDecodeDelegate" >&6; }
31578else
cristy8b350f62009-11-15 23:12:43 +000031579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031580$as_echo "no" >&6; }
31581fi
31582
31583
31584# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
31585set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031587$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031588if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031589 $as_echo_n "(cached) " >&6
31590else
31591 case $EchoDelegate in
31592 [\\/]* | ?:[\\/]*)
31593 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
31594 ;;
31595 *)
31596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31597for as_dir in $PATH
31598do
31599 IFS=$as_save_IFS
31600 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31603 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031605 break 2
31606 fi
31607done
cristy8b350f62009-11-15 23:12:43 +000031608 done
cristy3ed852e2009-09-05 21:47:34 +000031609IFS=$as_save_IFS
31610
31611 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
31612 ;;
31613esac
31614fi
31615EchoDelegate=$ac_cv_path_EchoDelegate
31616if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031618$as_echo "$EchoDelegate" >&6; }
31619else
cristy8b350f62009-11-15 23:12:43 +000031620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031621$as_echo "no" >&6; }
31622fi
31623
31624
31625# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
31626set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031629if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031630 $as_echo_n "(cached) " >&6
31631else
31632 case $EditorDelegate in
31633 [\\/]* | ?:[\\/]*)
31634 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
31635 ;;
31636 *)
31637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31638for as_dir in $PATH
31639do
31640 IFS=$as_save_IFS
31641 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31644 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031646 break 2
31647 fi
31648done
cristy8b350f62009-11-15 23:12:43 +000031649 done
cristy3ed852e2009-09-05 21:47:34 +000031650IFS=$as_save_IFS
31651
31652 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31653 ;;
31654esac
31655fi
31656EditorDelegate=$ac_cv_path_EditorDelegate
31657if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031659$as_echo "$EditorDelegate" >&6; }
31660else
cristy8b350f62009-11-15 23:12:43 +000031661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031662$as_echo "no" >&6; }
31663fi
31664
31665
31666# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31667set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031670if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031671 $as_echo_n "(cached) " >&6
31672else
31673 case $FIGDecodeDelegate in
31674 [\\/]* | ?:[\\/]*)
31675 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31676 ;;
31677 *)
31678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31679for as_dir in $PATH
31680do
31681 IFS=$as_save_IFS
31682 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031683 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31685 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031687 break 2
31688 fi
31689done
cristy8b350f62009-11-15 23:12:43 +000031690 done
cristy3ed852e2009-09-05 21:47:34 +000031691IFS=$as_save_IFS
31692
31693 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31694 ;;
31695esac
31696fi
31697FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31698if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031700$as_echo "$FIGDecodeDelegate" >&6; }
31701else
cristy8b350f62009-11-15 23:12:43 +000031702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031703$as_echo "no" >&6; }
31704fi
31705
31706
31707# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31708set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031710$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031711if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031712 $as_echo_n "(cached) " >&6
31713else
31714 case $ConvertDelegate in
31715 [\\/]* | ?:[\\/]*)
31716 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31717 ;;
31718 *)
31719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31720for as_dir in $PATH
31721do
31722 IFS=$as_save_IFS
31723 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031724 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31726 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031728 break 2
31729 fi
31730done
cristy8b350f62009-11-15 23:12:43 +000031731 done
cristy3ed852e2009-09-05 21:47:34 +000031732IFS=$as_save_IFS
31733
31734 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31735 ;;
31736esac
31737fi
31738ConvertDelegate=$ac_cv_path_ConvertDelegate
31739if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031741$as_echo "$ConvertDelegate" >&6; }
31742else
cristy8b350f62009-11-15 23:12:43 +000031743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031744$as_echo "no" >&6; }
31745fi
31746
31747
31748# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31749set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031751$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031752if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031753 $as_echo_n "(cached) " >&6
31754else
31755 case $DisplayDelegate in
31756 [\\/]* | ?:[\\/]*)
31757 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31758 ;;
31759 *)
31760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31761for as_dir in $PATH
31762do
31763 IFS=$as_save_IFS
31764 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31767 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031769 break 2
31770 fi
31771done
cristy8b350f62009-11-15 23:12:43 +000031772 done
cristy3ed852e2009-09-05 21:47:34 +000031773IFS=$as_save_IFS
31774
31775 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31776 ;;
31777esac
31778fi
31779DisplayDelegate=$ac_cv_path_DisplayDelegate
31780if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031782$as_echo "$DisplayDelegate" >&6; }
31783else
cristy8b350f62009-11-15 23:12:43 +000031784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031785$as_echo "no" >&6; }
31786fi
31787
31788
31789# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31790set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031793if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031794 $as_echo_n "(cached) " >&6
31795else
31796 case $MogrifyDelegate in
31797 [\\/]* | ?:[\\/]*)
31798 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31799 ;;
31800 *)
31801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31802for as_dir in $PATH
31803do
31804 IFS=$as_save_IFS
31805 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031806 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31808 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031810 break 2
31811 fi
31812done
cristy8b350f62009-11-15 23:12:43 +000031813 done
cristy3ed852e2009-09-05 21:47:34 +000031814IFS=$as_save_IFS
31815
31816 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31817 ;;
31818esac
31819fi
31820MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31821if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031823$as_echo "$MogrifyDelegate" >&6; }
31824else
cristy8b350f62009-11-15 23:12:43 +000031825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031826$as_echo "no" >&6; }
31827fi
31828
31829
31830# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31831set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031834if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031835 $as_echo_n "(cached) " >&6
31836else
31837 case $GnuplotDecodeDelegate in
31838 [\\/]* | ?:[\\/]*)
31839 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31840 ;;
31841 *)
31842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31843for as_dir in $PATH
31844do
31845 IFS=$as_save_IFS
31846 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31849 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031851 break 2
31852 fi
31853done
cristy8b350f62009-11-15 23:12:43 +000031854 done
cristy3ed852e2009-09-05 21:47:34 +000031855IFS=$as_save_IFS
31856
31857 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31858 ;;
31859esac
31860fi
31861GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31862if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031864$as_echo "$GnuplotDecodeDelegate" >&6; }
31865else
cristy8b350f62009-11-15 23:12:43 +000031866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031867$as_echo "no" >&6; }
31868fi
31869
31870
cristy3ed852e2009-09-05 21:47:34 +000031871# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31872set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031874$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031875if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031876 $as_echo_n "(cached) " >&6
31877else
31878 case $HPGLDecodeDelegate in
31879 [\\/]* | ?:[\\/]*)
31880 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31881 ;;
31882 *)
31883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31884for as_dir in $PATH
31885do
31886 IFS=$as_save_IFS
31887 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31890 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031892 break 2
31893 fi
31894done
cristy8b350f62009-11-15 23:12:43 +000031895 done
cristy3ed852e2009-09-05 21:47:34 +000031896IFS=$as_save_IFS
31897
31898 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31899 ;;
31900esac
31901fi
31902HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31903if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031905$as_echo "$HPGLDecodeDelegate" >&6; }
31906else
cristy8b350f62009-11-15 23:12:43 +000031907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031908$as_echo "no" >&6; }
31909fi
31910
31911
31912# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31913set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031916if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031917 $as_echo_n "(cached) " >&6
31918else
31919 case $HTMLDecodeDelegate in
31920 [\\/]* | ?:[\\/]*)
31921 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31922 ;;
31923 *)
31924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31925for as_dir in $PATH
31926do
31927 IFS=$as_save_IFS
31928 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31931 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031933 break 2
31934 fi
31935done
cristy8b350f62009-11-15 23:12:43 +000031936 done
cristy3ed852e2009-09-05 21:47:34 +000031937IFS=$as_save_IFS
31938
31939 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31940 ;;
31941esac
31942fi
31943HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31944if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031946$as_echo "$HTMLDecodeDelegate" >&6; }
31947else
cristy8b350f62009-11-15 23:12:43 +000031948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031949$as_echo "no" >&6; }
31950fi
31951
31952
31953# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31954set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031957if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031958 $as_echo_n "(cached) " >&6
31959else
31960 case $ILBMDecodeDelegate in
31961 [\\/]* | ?:[\\/]*)
31962 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31963 ;;
31964 *)
31965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31966for as_dir in $PATH
31967do
31968 IFS=$as_save_IFS
31969 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31972 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031974 break 2
31975 fi
31976done
cristy8b350f62009-11-15 23:12:43 +000031977 done
cristy3ed852e2009-09-05 21:47:34 +000031978IFS=$as_save_IFS
31979
31980 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31981 ;;
31982esac
31983fi
31984ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31985if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031987$as_echo "$ILBMDecodeDelegate" >&6; }
31988else
cristy8b350f62009-11-15 23:12:43 +000031989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031990$as_echo "no" >&6; }
31991fi
31992
31993
31994# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31995set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031998if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031999 $as_echo_n "(cached) " >&6
32000else
32001 case $ILBMEncodeDelegate in
32002 [\\/]* | ?:[\\/]*)
32003 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32004 ;;
32005 *)
32006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32007for as_dir in $PATH
32008do
32009 IFS=$as_save_IFS
32010 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32013 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032015 break 2
32016 fi
32017done
cristy8b350f62009-11-15 23:12:43 +000032018 done
cristy3ed852e2009-09-05 21:47:34 +000032019IFS=$as_save_IFS
32020
32021 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32022 ;;
32023esac
32024fi
32025ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32026if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032028$as_echo "$ILBMEncodeDelegate" >&6; }
32029else
cristy8b350f62009-11-15 23:12:43 +000032030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032031$as_echo "no" >&6; }
32032fi
32033
32034
32035# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32036set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032038$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032039if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032040 $as_echo_n "(cached) " >&6
32041else
32042 case $LPDelegate in
32043 [\\/]* | ?:[\\/]*)
32044 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32045 ;;
32046 *)
32047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32048for as_dir in $PATH
32049do
32050 IFS=$as_save_IFS
32051 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032052 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32054 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032056 break 2
32057 fi
32058done
cristy8b350f62009-11-15 23:12:43 +000032059 done
cristy3ed852e2009-09-05 21:47:34 +000032060IFS=$as_save_IFS
32061
32062 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32063 ;;
32064esac
32065fi
32066LPDelegate=$ac_cv_path_LPDelegate
32067if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032069$as_echo "$LPDelegate" >&6; }
32070else
cristy8b350f62009-11-15 23:12:43 +000032071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032072$as_echo "no" >&6; }
32073fi
32074
32075
32076# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32077set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032079$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032080if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032081 $as_echo_n "(cached) " >&6
32082else
32083 case $LPRDelegate in
32084 [\\/]* | ?:[\\/]*)
32085 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32086 ;;
32087 *)
32088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32089for as_dir in $PATH
32090do
32091 IFS=$as_save_IFS
32092 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32095 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032097 break 2
32098 fi
32099done
cristy8b350f62009-11-15 23:12:43 +000032100 done
cristy3ed852e2009-09-05 21:47:34 +000032101IFS=$as_save_IFS
32102
32103 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32104 ;;
32105esac
32106fi
32107LPRDelegate=$ac_cv_path_LPRDelegate
32108if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032110$as_echo "$LPRDelegate" >&6; }
32111else
cristy8b350f62009-11-15 23:12:43 +000032112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032113$as_echo "no" >&6; }
32114fi
32115
32116
32117# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32118set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032121if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032122 $as_echo_n "(cached) " >&6
32123else
32124 case $LZWDecodeDelegate in
32125 [\\/]* | ?:[\\/]*)
32126 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32127 ;;
32128 *)
32129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32130for as_dir in $PATH
32131do
32132 IFS=$as_save_IFS
32133 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32136 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032138 break 2
32139 fi
32140done
cristy8b350f62009-11-15 23:12:43 +000032141 done
cristy3ed852e2009-09-05 21:47:34 +000032142IFS=$as_save_IFS
32143
32144 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32145 ;;
32146esac
32147fi
32148LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32149if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032151$as_echo "$LZWDecodeDelegate" >&6; }
32152else
cristy8b350f62009-11-15 23:12:43 +000032153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032154$as_echo "no" >&6; }
32155fi
32156
32157
32158# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32159set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032161$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032162if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032163 $as_echo_n "(cached) " >&6
32164else
32165 case $LZWEncodeDelegate in
32166 [\\/]* | ?:[\\/]*)
32167 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32168 ;;
32169 *)
32170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32171for as_dir in $PATH
32172do
32173 IFS=$as_save_IFS
32174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032175 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32177 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032179 break 2
32180 fi
32181done
cristy8b350f62009-11-15 23:12:43 +000032182 done
cristy3ed852e2009-09-05 21:47:34 +000032183IFS=$as_save_IFS
32184
32185 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32186 ;;
32187esac
32188fi
32189LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32190if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032192$as_echo "$LZWEncodeDelegate" >&6; }
32193else
cristy8b350f62009-11-15 23:12:43 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo "no" >&6; }
32196fi
32197
32198
32199# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32200set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032202$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032203if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032204 $as_echo_n "(cached) " >&6
32205else
32206 case $LaunchDelegate in
32207 [\\/]* | ?:[\\/]*)
32208 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32209 ;;
32210 *)
32211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32212for as_dir in $PATH
32213do
32214 IFS=$as_save_IFS
32215 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032216 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32218 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032220 break 2
32221 fi
32222done
cristy8b350f62009-11-15 23:12:43 +000032223 done
cristy3ed852e2009-09-05 21:47:34 +000032224IFS=$as_save_IFS
32225
32226 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32227 ;;
32228esac
32229fi
32230LaunchDelegate=$ac_cv_path_LaunchDelegate
32231if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032233$as_echo "$LaunchDelegate" >&6; }
32234else
cristy8b350f62009-11-15 23:12:43 +000032235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032236$as_echo "no" >&6; }
32237fi
32238
32239
32240# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32241set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032243$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032244if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032245 $as_echo_n "(cached) " >&6
32246else
32247 case $MANDelegate in
32248 [\\/]* | ?:[\\/]*)
32249 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32250 ;;
32251 *)
32252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32253for as_dir in $PATH
32254do
32255 IFS=$as_save_IFS
32256 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32259 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032261 break 2
32262 fi
32263done
cristy8b350f62009-11-15 23:12:43 +000032264 done
cristy3ed852e2009-09-05 21:47:34 +000032265IFS=$as_save_IFS
32266
32267 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32268 ;;
32269esac
32270fi
32271MANDelegate=$ac_cv_path_MANDelegate
32272if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032274$as_echo "$MANDelegate" >&6; }
32275else
cristy8b350f62009-11-15 23:12:43 +000032276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032277$as_echo "no" >&6; }
32278fi
32279
32280
32281# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32282set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032284$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032285if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032286 $as_echo_n "(cached) " >&6
32287else
32288 case $MPEGDecodeDelegate in
32289 [\\/]* | ?:[\\/]*)
32290 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32291 ;;
32292 *)
32293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32294for as_dir in $PATH
32295do
32296 IFS=$as_save_IFS
32297 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032298 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32300 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032302 break 2
32303 fi
32304done
cristy8b350f62009-11-15 23:12:43 +000032305 done
cristy3ed852e2009-09-05 21:47:34 +000032306IFS=$as_save_IFS
32307
32308 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32309 ;;
32310esac
32311fi
32312MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32313if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032315$as_echo "$MPEGDecodeDelegate" >&6; }
32316else
cristy8b350f62009-11-15 23:12:43 +000032317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032318$as_echo "no" >&6; }
32319fi
32320
32321
32322# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32323set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032325$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032326if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032327 $as_echo_n "(cached) " >&6
32328else
32329 case $MPEGEncodeDelegate in
32330 [\\/]* | ?:[\\/]*)
32331 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32332 ;;
32333 *)
32334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32335for as_dir in $PATH
32336do
32337 IFS=$as_save_IFS
32338 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032339 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32341 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032343 break 2
32344 fi
32345done
cristy8b350f62009-11-15 23:12:43 +000032346 done
cristy3ed852e2009-09-05 21:47:34 +000032347IFS=$as_save_IFS
32348
32349 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32350 ;;
32351esac
32352fi
32353MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32354if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356$as_echo "$MPEGEncodeDelegate" >&6; }
32357else
cristy8b350f62009-11-15 23:12:43 +000032358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032359$as_echo "no" >&6; }
32360fi
32361
32362
cristy935c86e2010-06-05 23:50:07 +000032363# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32364set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032367if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000032368 $as_echo_n "(cached) " >&6
32369else
32370 case $MrSIDDecodeDelegate in
32371 [\\/]* | ?:[\\/]*)
32372 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32373 ;;
32374 *)
32375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32376for as_dir in $PATH
32377do
32378 IFS=$as_save_IFS
32379 test -z "$as_dir" && as_dir=.
32380 for ac_exec_ext in '' $ac_executable_extensions; do
32381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32382 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32384 break 2
32385 fi
32386done
32387 done
32388IFS=$as_save_IFS
32389
32390 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32391 ;;
32392esac
32393fi
32394MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32395if test -n "$MrSIDDecodeDelegate"; then
32396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32397$as_echo "$MrSIDDecodeDelegate" >&6; }
32398else
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32400$as_echo "no" >&6; }
32401fi
32402
32403
cristy3ed852e2009-09-05 21:47:34 +000032404# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32405set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032408if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032409 $as_echo_n "(cached) " >&6
32410else
32411 case $MVDelegate in
32412 [\\/]* | ?:[\\/]*)
32413 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32414 ;;
32415 *)
32416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32417for as_dir in $PATH
32418do
32419 IFS=$as_save_IFS
32420 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32423 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032425 break 2
32426 fi
32427done
cristy8b350f62009-11-15 23:12:43 +000032428 done
cristy3ed852e2009-09-05 21:47:34 +000032429IFS=$as_save_IFS
32430
32431 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32432 ;;
32433esac
32434fi
32435MVDelegate=$ac_cv_path_MVDelegate
32436if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032438$as_echo "$MVDelegate" >&6; }
32439else
cristy8b350f62009-11-15 23:12:43 +000032440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032441$as_echo "no" >&6; }
32442fi
32443
32444
32445# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32446set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032448$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032449if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032450 $as_echo_n "(cached) " >&6
32451else
32452 case $PCLDelegate in
32453 [\\/]* | ?:[\\/]*)
32454 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32455 ;;
32456 *)
32457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32458for as_dir in $PATH
32459do
32460 IFS=$as_save_IFS
32461 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32464 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032466 break 2
32467 fi
32468done
cristy8b350f62009-11-15 23:12:43 +000032469 done
cristy3ed852e2009-09-05 21:47:34 +000032470IFS=$as_save_IFS
32471
32472 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32473 ;;
32474esac
32475fi
32476PCLDelegate=$ac_cv_path_PCLDelegate
32477if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032479$as_echo "$PCLDelegate" >&6; }
32480else
cristy8b350f62009-11-15 23:12:43 +000032481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032482$as_echo "no" >&6; }
32483fi
32484
32485
32486# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32487set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032490if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032491 $as_echo_n "(cached) " >&6
32492else
32493 case $PGPDecodeDelegate in
32494 [\\/]* | ?:[\\/]*)
32495 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
32496 ;;
32497 *)
32498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32499for as_dir in $PATH
32500do
32501 IFS=$as_save_IFS
32502 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32505 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032507 break 2
32508 fi
32509done
cristy8b350f62009-11-15 23:12:43 +000032510 done
cristy3ed852e2009-09-05 21:47:34 +000032511IFS=$as_save_IFS
32512
32513 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32514 ;;
32515esac
32516fi
32517PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32518if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032520$as_echo "$PGPDecodeDelegate" >&6; }
32521else
cristy8b350f62009-11-15 23:12:43 +000032522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032523$as_echo "no" >&6; }
32524fi
32525
32526
32527# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32528set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032531if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032532 $as_echo_n "(cached) " >&6
32533else
32534 case $POVDelegate in
32535 [\\/]* | ?:[\\/]*)
32536 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
32537 ;;
32538 *)
32539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32540for as_dir in $PATH
32541do
32542 IFS=$as_save_IFS
32543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32546 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032548 break 2
32549 fi
32550done
cristy8b350f62009-11-15 23:12:43 +000032551 done
cristy3ed852e2009-09-05 21:47:34 +000032552IFS=$as_save_IFS
32553
32554 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
32555 ;;
32556esac
32557fi
32558POVDelegate=$ac_cv_path_POVDelegate
32559if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561$as_echo "$POVDelegate" >&6; }
32562else
cristy8b350f62009-11-15 23:12:43 +000032563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032564$as_echo "no" >&6; }
32565fi
32566
32567
32568for ac_prog in gsx gsc "$PSDelegateDefault"
32569do
32570 # Extract the first word of "$ac_prog", so it can be a program name with args.
32571set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032574if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032575 $as_echo_n "(cached) " >&6
32576else
32577 case $PSDelegate in
32578 [\\/]* | ?:[\\/]*)
32579 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
32580 ;;
32581 *)
32582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32583for as_dir in $PATH
32584do
32585 IFS=$as_save_IFS
32586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32589 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032591 break 2
32592 fi
32593done
cristy8b350f62009-11-15 23:12:43 +000032594 done
cristy3ed852e2009-09-05 21:47:34 +000032595IFS=$as_save_IFS
32596
32597 ;;
32598esac
32599fi
32600PSDelegate=$ac_cv_path_PSDelegate
32601if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032603$as_echo "$PSDelegate" >&6; }
32604else
cristy8b350f62009-11-15 23:12:43 +000032605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032606$as_echo "no" >&6; }
32607fi
32608
32609
32610 test -n "$PSDelegate" && break
32611done
32612test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
32613
32614# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
32615set dummy "$RLEEncodeDelegateDefault"; 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_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032619 $as_echo_n "(cached) " >&6
32620else
32621 case $RLEEncodeDelegate in
32622 [\\/]* | ?:[\\/]*)
32623 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # 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_RLEEncodeDelegate="$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_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
32642 ;;
32643esac
32644fi
32645RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
32646if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032648$as_echo "$RLEEncodeDelegate" >&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 ""$RMDelegateDefault"", so it can be a program name with args.
32656set dummy "$RMDelegateDefault"; 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_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032660 $as_echo_n "(cached) " >&6
32661else
32662 case $RMDelegate in
32663 [\\/]* | ?:[\\/]*)
32664 ac_cv_path_RMDelegate="$RMDelegate" # 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_RMDelegate="$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_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32683 ;;
32684esac
32685fi
32686RMDelegate=$ac_cv_path_RMDelegate
32687if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032689$as_echo "$RMDelegate" >&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
cristy4689cf02010-02-17 21:15:45 +000032696# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32697set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032700if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000032701 $as_echo_n "(cached) " >&6
32702else
32703 case $RSVGDecodeDelegate in
32704 [\\/]* | ?:[\\/]*)
32705 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # 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=.
32713 for ac_exec_ext in '' $ac_executable_extensions; do
32714 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_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32717 break 2
32718 fi
32719done
32720 done
32721IFS=$as_save_IFS
32722
32723 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32724 ;;
32725esac
32726fi
32727RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32728if test -n "$RSVGDecodeDelegate"; then
32729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32730$as_echo "$RSVGDecodeDelegate" >&6; }
32731else
32732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32733$as_echo "no" >&6; }
32734fi
32735
32736
cristy3ed852e2009-09-05 21:47:34 +000032737# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32738set dummy "$SCANDecodeDelegateDefault"; 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_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032742 $as_echo_n "(cached) " >&6
32743else
32744 case $SCANDecodeDelegate in
32745 [\\/]* | ?:[\\/]*)
32746 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # 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_SCANDecodeDelegate="$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_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32765 ;;
32766esac
32767fi
32768SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32769if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032771$as_echo "$SCANDecodeDelegate" >&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 ""$TXTDelegateDefault"", so it can be a program name with args.
32779set dummy "$TXTDelegateDefault"; 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_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032783 $as_echo_n "(cached) " >&6
32784else
32785 case $TXTDelegate in
32786 [\\/]* | ?:[\\/]*)
32787 ac_cv_path_TXTDelegate="$TXTDelegate" # 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_TXTDelegate="$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_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32806 ;;
32807esac
32808fi
32809TXTDelegate=$ac_cv_path_TXTDelegate
32810if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812$as_echo "$TXTDelegate" >&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
cristy5ac9ac82010-07-29 13:24:24 +000032819# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32820set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032823if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032824 $as_echo_n "(cached) " >&6
32825else
32826 case $UniconvertorDelegate in
32827 [\\/]* | ?:[\\/]*)
32828 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # 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=.
32836 for ac_exec_ext in '' $ac_executable_extensions; do
32837 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_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32840 break 2
32841 fi
32842done
32843 done
32844IFS=$as_save_IFS
32845
32846 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32847 ;;
32848esac
32849fi
32850UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32851if test -n "$UniconvertorDelegate"; then
32852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32853$as_echo "$UniconvertorDelegate" >&6; }
32854else
32855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32856$as_echo "no" >&6; }
32857fi
32858
32859
cristy3ed852e2009-09-05 21:47:34 +000032860# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32861set dummy "$WMFDecodeDelegateDefault"; 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_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032865 $as_echo_n "(cached) " >&6
32866else
32867 case $WMFDecodeDelegate in
32868 [\\/]* | ?:[\\/]*)
32869 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # 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_WMFDecodeDelegate="$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_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32888 ;;
32889esac
32890fi
32891WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32892if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032894$as_echo "$WMFDecodeDelegate" >&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 ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32902set dummy "$WWWDecodeDelegateDefault"; 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_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032906 $as_echo_n "(cached) " >&6
32907else
32908 case $WWWDecodeDelegate in
32909 [\\/]* | ?:[\\/]*)
32910 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # 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_WWWDecodeDelegate="$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_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32929 ;;
32930esac
32931fi
32932WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32933if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032935$as_echo "$WWWDecodeDelegate" >&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
32942# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32943set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032946if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032947 $as_echo_n "(cached) " >&6
32948else
32949 case $XPSDelegate in
32950 [\\/]* | ?:[\\/]*)
32951 ac_cv_path_XPSDelegate="$XPSDelegate" # 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=.
cristy8b350f62009-11-15 23:12:43 +000032959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032960 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_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032963 break 2
32964 fi
32965done
cristy8b350f62009-11-15 23:12:43 +000032966 done
cristy3ed852e2009-09-05 21:47:34 +000032967IFS=$as_save_IFS
32968
32969 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32970 ;;
32971esac
32972fi
32973XPSDelegate=$ac_cv_path_XPSDelegate
32974if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976$as_echo "$XPSDelegate" >&6; }
32977else
cristy8b350f62009-11-15 23:12:43 +000032978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032979$as_echo "no" >&6; }
32980fi
32981
32982
32983# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32984set dummy "$ZipDelegateDefault"; 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_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032988 $as_echo_n "(cached) " >&6
32989else
32990 case $ZipDelegate in
32991 [\\/]* | ?:[\\/]*)
32992 ac_cv_path_ZipDelegate="$ZipDelegate" # 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_ZipDelegate="$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_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33011 ;;
33012esac
33013fi
33014ZipDelegate=$ac_cv_path_ZipDelegate
33015if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017$as_echo "$ZipDelegate" >&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
33025# Prefer lpr to lp; lp needs options tacked on.
33026if test "$LPRDelegate" != no; then
33027 PrintDelegate="$LPRDelegate"
33028else
33029 PrintDelegate="$LPDelegate -c -s"
33030fi
33031
33032
33033# Installed ImageMagick utiltity paths
33034ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33035DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33036MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33037
33038# Set delegate booleans
33039have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33040have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33041have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33042have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33043have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033044have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033045have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33046have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033047have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33048have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33049
33050#
33051# Test for font directories
33052#
33053type_include_files=''
33054
cristy430a7312010-01-21 20:44:04 +000033055# Dejavu fonts.
33056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33057$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33058dejavu_font_dir=''
33059if test "${with_dejavu_font_dir}" != 'default'; then
33060 dejavu_font_dir="${with_dejavu_font_dir}/"
33061else
33062 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33063 if test -f "${font_dir}DejaVuSerif.ttf"; then
33064 dejavu_font_dir="${font_dir}"
33065 break 1
33066 fi
33067 done
33068fi
33069if test "${dejavu_font_dir}x" != 'x'; then
33070 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33072$as_echo "$dejavu_font_dir" >&6; }
33073else
33074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33075$as_echo "not found!" >&6; };
33076fi
33077
33078
cristy3ed852e2009-09-05 21:47:34 +000033079# Windows
33080windows_font_dir=''
33081if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33082 windows_font_dir="${with_windows_font_dir}/"
33083fi
cristy430a7312010-01-21 20:44:04 +000033084if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033085 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33086 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33087 fi
33088 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33089 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33090 fi
33091 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33092 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33093 fi
33094fi
cristy430a7312010-01-21 20:44:04 +000033095if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033096 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33097fi
33098
33099
33100# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033102$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33103ghostscript_font_dir=''
33104if test "${with_gs_font_dir}" != 'default'; then
33105 ghostscript_font_dir="${with_gs_font_dir}/"
33106else
33107 if test "${native_win32_build}" = 'yes'; then
33108 # Native Windows Build
33109 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33110 if test -f "${font_dir}a010013l.pfb"; then
33111 ghostscript_font_dir="$font_dir"
33112 break 1
33113 fi
33114 done
33115 if test "${PSDelegate}" != 'gswin32c'; then
33116 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33117 fi
33118 else
33119 # Linux / Mac OS X / Unix Build
33120 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
33121 if test -f "${font_dir}a010013l.pfb"; then
33122 ghostscript_font_dir="${font_dir}"
33123 break 1
33124 fi
33125 done
33126 if test "${ghostscript_font_dir}x" = 'x'; then
33127 if test "$PSDelegate" != 'gs'; then
33128 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33129 fi
33130 fi
33131 fi
33132fi
33133if test "${ghostscript_font_dir}x" != 'x'; then
33134 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000033135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000033136$as_echo "$ghostscript_font_dir" >&6; }
33137else
cristy8b350f62009-11-15 23:12:43 +000033138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000033139$as_echo "not found!" >&6; };
33140fi
33141
33142case "${build_os}" in
33143 mingw* )
33144 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33145 ;;
33146esac
33147
33148
33149
33150#
33151# Handle case where user doesn't want frozen paths
33152#
33153if test "$with_frozenpaths" != 'yes'; then
33154 # Re-set delegate definitions to default (no paths)
33155 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033156 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33157 BZIPDelegate="$BZIPDelegateDefault"
33158 BrowseDelegate="$BrowseDelegateDefault"
33159 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33160 CatDelegate="$CatDelegateDefault"
33161 ConvertDelegate="$ConvertDelegateDefault"
33162 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33163 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33164 EchoDelegate="$EchoDelegateDefault"
33165 EditorDelegate="$EditorDelegateDefault"
33166 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33167 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33168 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33169 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33170 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33171 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33172 LPDelegate="$LPDelegateDefault"
33173 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33174 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33175 LaunchDelegate="$LaunchDelegateDefault"
33176 MANDelegate="$MANDelegateDefault"
33177 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33178 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033179 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033180 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33181 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033182 PCLDelegate="$PCLDelegateDefault"
33183 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33184 POVDelegate="$POVDelegateDefault"
33185 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033186 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33187 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033188 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033189 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33190 ShowImageDelegate="$ShowImageDelegateDefault"
33191 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033192 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033193 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33194 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33195 XPSDelegate="$XPSDelegateDefault"
33196 ZipDelegate="$ZipDelegateDefault"
33197fi
33198
33199# Delegate substitutions
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212
33213
33214
33215
33216
33217
33218
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234
33235
33236
33237
33238
33239
33240
33241
33242#
33243# RPM support.
33244#
33245RPM=''
33246for ac_prog in gnutar gtar tar
33247do
33248 # Extract the first word of "$ac_prog", so it can be a program name with args.
33249set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033251$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033252if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033253 $as_echo_n "(cached) " >&6
33254else
33255 if test -n "$TAR"; then
33256 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33257else
33258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33259for as_dir in $PATH
33260do
33261 IFS=$as_save_IFS
33262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33265 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267 break 2
33268 fi
33269done
cristy8b350f62009-11-15 23:12:43 +000033270 done
cristy3ed852e2009-09-05 21:47:34 +000033271IFS=$as_save_IFS
33272
33273fi
33274fi
33275TAR=$ac_cv_prog_TAR
33276if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033278$as_echo "$TAR" >&6; }
33279else
cristy8b350f62009-11-15 23:12:43 +000033280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033281$as_echo "no" >&6; }
33282fi
33283
33284
33285 test -n "$TAR" && break
33286done
33287
33288for ac_prog in perl
33289do
33290 # Extract the first word of "$ac_prog", so it can be a program name with args.
33291set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033293$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033294if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033295 $as_echo_n "(cached) " >&6
33296else
33297 if test -n "$PERL"; then
33298 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33299else
33300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33301for as_dir in $PATH
33302do
33303 IFS=$as_save_IFS
33304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33307 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033309 break 2
33310 fi
33311done
cristy8b350f62009-11-15 23:12:43 +000033312 done
cristy3ed852e2009-09-05 21:47:34 +000033313IFS=$as_save_IFS
33314
33315fi
33316fi
33317PERL=$ac_cv_prog_PERL
33318if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo "$PERL" >&6; }
33321else
cristy8b350f62009-11-15 23:12:43 +000033322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323$as_echo "no" >&6; }
33324fi
33325
33326
33327 test -n "$PERL" && break
33328done
33329
33330for ac_prog in rpmbuild rpm
33331do
33332 # Extract the first word of "$ac_prog", so it can be a program name with args.
33333set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033336if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033337 $as_echo_n "(cached) " >&6
33338else
33339 if test -n "$RPM"; then
33340 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33341else
33342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33343for as_dir in $PATH
33344do
33345 IFS=$as_save_IFS
33346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33349 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351 break 2
33352 fi
33353done
cristy8b350f62009-11-15 23:12:43 +000033354 done
cristy3ed852e2009-09-05 21:47:34 +000033355IFS=$as_save_IFS
33356
33357fi
33358fi
33359RPM=$ac_cv_prog_RPM
33360if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000033361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362$as_echo "$RPM" >&6; }
33363else
cristy8b350f62009-11-15 23:12:43 +000033364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365$as_echo "no" >&6; }
33366fi
33367
33368
33369 test -n "$RPM" && break
33370done
33371
33372
cristy73bd4a52010-10-05 11:24:23 +000033373ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33374
33375
33376AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33377
33378
33379AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33380
33381
33382AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33383
33384
33385 if test "x$RPM" != "x" ; then
33386 RPM_DELEGATE_TRUE=
33387 RPM_DELEGATE_FALSE='#'
33388else
33389 RPM_DELEGATE_TRUE='#'
33390 RPM_DELEGATE_FALSE=
33391fi
33392
cristy3ed852e2009-09-05 21:47:34 +000033393
33394#
33395# 7ZIP support (http://p7zip.sourceforge.net/)
33396#
33397P7ZIP=''
33398for ac_prog in 7za
33399do
33400 # Extract the first word of "$ac_prog", so it can be a program name with args.
33401set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033404if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033405 $as_echo_n "(cached) " >&6
33406else
33407 if test -n "$P7ZIP"; then
33408 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33409else
33410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33411for as_dir in $PATH
33412do
33413 IFS=$as_save_IFS
33414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33417 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033419 break 2
33420 fi
33421done
cristy8b350f62009-11-15 23:12:43 +000033422 done
cristy3ed852e2009-09-05 21:47:34 +000033423IFS=$as_save_IFS
33424
33425fi
33426fi
33427P7ZIP=$ac_cv_prog_P7ZIP
33428if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033430$as_echo "$P7ZIP" >&6; }
33431else
cristy8b350f62009-11-15 23:12:43 +000033432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433$as_echo "no" >&6; }
33434fi
33435
33436
33437 test -n "$P7ZIP" && break
33438done
33439
33440
cristy73bd4a52010-10-05 11:24:23 +000033441 if test "x$P7ZIP" != "x" ; then
33442 P7ZIP_DELEGATE_TRUE=
33443 P7ZIP_DELEGATE_FALSE='#'
33444else
33445 P7ZIP_DELEGATE_TRUE='#'
33446 P7ZIP_DELEGATE_FALSE=
33447fi
33448
cristy3ed852e2009-09-05 21:47:34 +000033449
33450#
33451# ZIP support (http://www.info-zip.org/Zip.html)
33452#
33453ZIP=''
33454for ac_prog in zip
33455do
33456 # Extract the first word of "$ac_prog", so it can be a program name with args.
33457set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033460if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033461 $as_echo_n "(cached) " >&6
33462else
33463 if test -n "$ZIP"; then
33464 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33465else
33466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33467for as_dir in $PATH
33468do
33469 IFS=$as_save_IFS
33470 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33473 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033475 break 2
33476 fi
33477done
cristy8b350f62009-11-15 23:12:43 +000033478 done
cristy3ed852e2009-09-05 21:47:34 +000033479IFS=$as_save_IFS
33480
33481fi
33482fi
33483ZIP=$ac_cv_prog_ZIP
33484if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033486$as_echo "$ZIP" >&6; }
33487else
cristy8b350f62009-11-15 23:12:43 +000033488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033489$as_echo "no" >&6; }
33490fi
33491
33492
33493 test -n "$ZIP" && break
33494done
33495
33496
cristy73bd4a52010-10-05 11:24:23 +000033497 if test "x$ZIP" != "x" ; then
33498 ZIP_DELEGATE_TRUE=
33499 ZIP_DELEGATE_FALSE='#'
33500else
33501 ZIP_DELEGATE_TRUE='#'
33502 ZIP_DELEGATE_FALSE=
33503fi
33504
cristy3ed852e2009-09-05 21:47:34 +000033505
33506#
33507# GhostPCL related configuration.
33508#
33509PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000033510PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000033511PCLMonoDevice=pbmraw
33512if test -z "$PCLVersion"; then
33513 PCLVersion='unknown'
33514fi
33515if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033519$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033521$as_echo "" >&6; }
33522 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000033523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033524$as_echo_n "checking for pcl color device... " >&6; }
33525 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33526 :
33527 else
33528 PCLColorDevice=ppmraw
33529 fi
cristy8b350f62009-11-15 23:12:43 +000033530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo "$PCLColorDevice" >&6; }
33532
33533 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033535$as_echo_n "checking for pcl CMYK device... " >&6; }
33536 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33537 :
33538 else
33539 PCLCMYKDevice=$PCLColorDevice
33540 fi
cristy8b350f62009-11-15 23:12:43 +000033541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033542$as_echo "$PCLCMYKDevice" >&6; }
33543
33544 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033546$as_echo_n "checking for pcl mono device... " >&6; }
33547 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33548 :
33549 else
33550 PCLMonoDevice=$PCLColorDevice
33551 fi
cristy8b350f62009-11-15 23:12:43 +000033552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033553$as_echo "$PCLMonoDevice" >&6; }
33554fi
33555
33556
33557
33558
33559
33560
33561#
33562# GhostXPS related configuration.
33563#
33564XPSColorDevice=ppmraw
33565XPSCMYKDevice=bmpsep8
33566XPSMonoDevice=pbmraw
33567if test -z "$XPSVersion"; then
33568 XPSVersion='unknown'
33569fi
33570if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033574$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033576$as_echo "" >&6; }
33577 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033579$as_echo_n "checking for xps color device... " >&6; }
33580 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33581 :
33582 else
33583 XPSColorDevice=ppmraw
33584 fi
cristy8b350f62009-11-15 23:12:43 +000033585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033586$as_echo "$XPSColorDevice" >&6; }
33587
33588 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033590$as_echo_n "checking for xps CMYK device... " >&6; }
33591 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33592 :
33593 else
33594 XPSCMYKDevice=$XPSColorDevice
33595 fi
cristy8b350f62009-11-15 23:12:43 +000033596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033597$as_echo "$XPSCMYKDevice" >&6; }
33598
33599 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033601$as_echo_n "checking for xps mono device... " >&6; }
33602 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33603 :
33604 else
33605 XPSMonoDevice=$XPSColorDevice
33606 fi
cristy8b350f62009-11-15 23:12:43 +000033607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033608$as_echo "$XPSMonoDevice" >&6; }
33609fi
33610
33611
33612
33613
33614
33615
33616#
33617# Ghostscript related configuration.
33618#
cristya97426c2011-02-04 01:41:27 +000033619GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000033620GSColorDevice=pnmraw
33621GSCMYKDevice=pam
33622GSMonoDevice=pbmraw
33623GSPDFDevice=pdfwrite
33624GSPSDevice=pswrite
33625GSEPSDevice=epswrite
33626GSVersion='unknown'
33627if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033629$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000033631$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033633$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000033635$as_echo_n "checking for Ghostscript version... " >&6; }
33636 if GSVersion=`$PSDelegate --version`; then
33637 :
33638 else
33639 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
33640 fi
cristy8b350f62009-11-15 23:12:43 +000033641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000033642$as_echo "$GSVersion" >&6; }
33643
33644 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000033645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033646$as_echo_n "checking for gs alpha device... " >&6; }
33647 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33648 :
33649 else
33650 GSAlphaDevice=pnmraw
33651 fi
cristy8b350f62009-11-15 23:12:43 +000033652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033653$as_echo "$GSAlphaDevice" >&6; }
33654
33655 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657$as_echo_n "checking for gs color device... " >&6; }
33658 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33659 :
33660 else
33661 GSColorDevice=pnmraw
33662 fi
cristy8b350f62009-11-15 23:12:43 +000033663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo "$GSColorDevice" >&6; }
33665
33666 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033668$as_echo_n "checking for gs CMYK device... " >&6; }
33669 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33670 :
33671 else
33672 GSCMYKDevice=bmpsep8
33673 fi
cristy8b350f62009-11-15 23:12:43 +000033674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033675$as_echo "$GSCMYKDevice" >&6; }
33676
33677 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033679$as_echo_n "checking for gs mono device... " >&6; }
33680 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33681 :
33682 else
33683 GSMonoDevice=$GSColorDevice
33684 fi
cristy8b350f62009-11-15 23:12:43 +000033685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033686$as_echo "$GSMonoDevice" >&6; }
33687
33688 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033690$as_echo_n "checking for gs PDF writing device... " >&6; }
33691 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33692 :
33693 else
33694 GSPDFDevice=nodevice
33695 fi
cristy8b350f62009-11-15 23:12:43 +000033696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033697$as_echo "$GSPDFDevice" >&6; }
33698
33699 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033701$as_echo_n "checking for gs PS writing device... " >&6; }
33702 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33703 :
33704 else
33705 GSPSDevice=nodevice
33706 fi
cristy8b350f62009-11-15 23:12:43 +000033707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033708$as_echo "$GSPSDevice" >&6; }
33709
33710 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033712$as_echo_n "checking for gs EPS writing device... " >&6; }
33713 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33714 :
33715 else
33716 GSEPSDevice=nodevice
33717 fi
cristy8b350f62009-11-15 23:12:43 +000033718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033719$as_echo "$GSEPSDevice" >&6; }
33720fi
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731#
33732# PerlMagick-related configuration
33733#
33734
33735# Look for PERL if PerlMagick requested
33736# If name/path of desired PERL interpreter is specified, look for that one first
33737have_perl='no'
33738if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033740$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033742$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033744$as_echo "" >&6; }
33745 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033747$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033748if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033749 $as_echo_n "(cached) " >&6
33750else
33751 ac_cv_path_PERL="$with_perl"
33752fi
cristy8b350f62009-11-15 23:12:43 +000033753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033754$as_echo "$ac_cv_path_PERL" >&6; };
33755 PERL=$ac_cv_path_PERL
33756 have_perl="$ac_cv_path_PERL"
33757 else
33758 for ac_prog in perl perl5
33759do
33760 # Extract the first word of "$ac_prog", so it can be a program name with args.
33761set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033763$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033764if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033765 $as_echo_n "(cached) " >&6
33766else
33767 case $PERL in
33768 [\\/]* | ?:[\\/]*)
33769 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33770 ;;
33771 *)
33772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33773for as_dir in $PATH
33774do
33775 IFS=$as_save_IFS
33776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33779 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033781 break 2
33782 fi
33783done
cristy8b350f62009-11-15 23:12:43 +000033784 done
cristy3ed852e2009-09-05 21:47:34 +000033785IFS=$as_save_IFS
33786
33787 ;;
33788esac
33789fi
33790PERL=$ac_cv_path_PERL
33791if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo "$PERL" >&6; }
33794else
cristy8b350f62009-11-15 23:12:43 +000033795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033796$as_echo "no" >&6; }
33797fi
33798
33799
33800 test -n "$PERL" && break
33801done
33802 if test "$ac_cv_path_PERL"; then
33803 have_perl="$ac_cv_path_PERL"
33804 fi
33805 fi
33806fi
33807
cristy949301e2010-01-06 01:38:40 +000033808if test "$with_perl" != 'yes' ; then
33809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33810fi
33811
33812PERL_SUPPORTS_DESTDIR='no'
33813
cristy3ed852e2009-09-05 21:47:34 +000033814with_perl_static='no'
33815with_perl_dynamic='no'
33816if test "$have_perl" != 'no'; then
33817 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33818 with_perl_static='yes'
33819 fi
33820 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33821 with_perl_dynamic='yes'
33822 fi
33823 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033824
33825
33826
33827
33828 if test -n "$PERL"; then :
33829
33830 ax_perl_version="5.8.1"
33831
33832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33833$as_echo_n "checking for perl version... " >&6; }
33834
33835 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33836
33837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33838$as_echo "$perl_version" >&6; }
33839
33840 PERL_VERSION=$perl_version
33841
33842
33843
33844
33845
33846 # Used to indicate true or false condition
33847 ax_compare_version=false
33848
33849 # Convert the two version strings to be compared into a format that
33850 # allows a simple string comparison. The end result is that a version
33851 # string of the form 1.12.5-r617 will be converted to the form
33852 # 0001001200050617. In other words, each number is zero padded to four
33853 # digits, and non digits are removed.
33854
33855 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33856 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33857 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33858 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33859 -e 's/[^0-9]//g'`
33860
33861
33862 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33863 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33864 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33865 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33866 -e 's/[^0-9]//g'`
33867
33868
33869 ax_compare_version=`echo "x$ax_compare_version_A
33870x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33871
33872
33873
33874 if test "$ax_compare_version" = "true" ; then
33875
33876 :
33877 PERL_SUPPORTS_DESTDIR='yes'
33878
33879 else
33880 :
33881 PERL_SUPPORTS_DESTDIR='no'
33882
33883 fi
33884
33885
33886else
33887
33888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33889$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33890 PERL_SUPPORTS_DESTDIR='no'
33891
cristy3ed852e2009-09-05 21:47:34 +000033892fi
cristy73bd4a52010-10-05 11:24:23 +000033893
33894fi
33895 if test "$have_perl" != 'no'; then
33896 WITH_PERL_TRUE=
33897 WITH_PERL_FALSE='#'
33898else
33899 WITH_PERL_TRUE='#'
33900 WITH_PERL_FALSE=
33901fi
33902
33903 if test $with_perl_static = 'yes'; then
33904 WITH_PERL_STATIC_TRUE=
33905 WITH_PERL_STATIC_FALSE='#'
33906else
33907 WITH_PERL_STATIC_TRUE='#'
33908 WITH_PERL_STATIC_FALSE=
33909fi
33910
33911 if test $with_perl_dynamic = 'yes'; then
33912 WITH_PERL_DYNAMIC_TRUE=
33913 WITH_PERL_DYNAMIC_FALSE='#'
33914else
33915 WITH_PERL_DYNAMIC_TRUE='#'
33916 WITH_PERL_DYNAMIC_FALSE=
33917fi
33918
cristy3ed852e2009-09-05 21:47:34 +000033919
33920
33921# Determine path to pick up MagickCore library from for use with building PerlMagick
33922MAGICKCORE_PATH="${LIB_DIR}"
33923if test $with_perl_static = 'yes'; then
33924 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33925 libtool_objdir=$objdir
33926
33927 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000033928 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000033929fi
33930
33931
33932# Create a simple string containing format names for all delegate libraries
33933DELEGATES=''
33934if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33935if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33936if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33937if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33938if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33939if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33940if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33941if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33942if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33943if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33944if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33945if test "$have_jpeg" = 'yes'; then
33946 DELEGATES="$DELEGATES jpeg";
33947 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33948fi
33949if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000033950if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000033951if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33952if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000033953if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000033954if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33955if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33956if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33957if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33958if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33959if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33960if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33961if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33962if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33963
33964
33965
33966#
33967# Handle special compiler flags
33968#
33969
33970# Add '-p' if prof source profiling support enabled
33971if test "$enable_prof" = 'yes'; then
33972 CFLAGS="-p $CFLAGS"
33973 CXXFLAGS="-p $CXXFLAGS"
33974 LDFLAGS="-p $LDFLAGS"
33975fi
33976
33977# Add '-pg' if gprof source profiling support enabled
33978if test "$enable_gprof" = 'yes'; then
33979 CFLAGS="-pg $CFLAGS"
33980 CXXFLAGS="-pg $CXXFLAGS"
33981 LDFLAGS="-pg $LDFLAGS"
33982fi
33983
33984# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33985# This is a gcc-specific feature
33986if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033988$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033989if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033990 $as_echo_n "(cached) " >&6
33991else
33992 ac_check_lib_save_LIBS=$LIBS
33993LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033995/* end confdefs.h. */
33996
33997/* Override any GCC internal prototype to avoid an error.
33998 Use char because int might match the return type of a GCC
33999 builtin and then its argument prototype would still apply. */
34000#ifdef __cplusplus
34001extern "C"
34002#endif
34003char _gcov_init ();
34004int
34005main ()
34006{
34007return _gcov_init ();
34008 ;
34009 return 0;
34010}
34011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034012if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034013 ac_cv_lib_gcov__gcov_init=yes
34014else
cristy8b350f62009-11-15 23:12:43 +000034015 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034016fi
cristy8b350f62009-11-15 23:12:43 +000034017rm -f core conftest.err conftest.$ac_objext \
34018 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034019LIBS=$ac_check_lib_save_LIBS
34020fi
cristy8b350f62009-11-15 23:12:43 +000034021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034022$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034023if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034024 cat >>confdefs.h <<_ACEOF
34025#define HAVE_LIBGCOV 1
34026_ACEOF
34027
34028 LIBS="-lgcov $LIBS"
34029
34030fi
34031
cristy8b350f62009-11-15 23:12:43 +000034032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034033$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034034if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034035 $as_echo_n "(cached) " >&6
34036else
34037 ac_check_lib_save_LIBS=$LIBS
34038LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034040/* end confdefs.h. */
34041
34042/* Override any GCC internal prototype to avoid an error.
34043 Use char because int might match the return type of a GCC
34044 builtin and then its argument prototype would still apply. */
34045#ifdef __cplusplus
34046extern "C"
34047#endif
34048char __gcov_init ();
34049int
34050main ()
34051{
34052return __gcov_init ();
34053 ;
34054 return 0;
34055}
34056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034057if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034058 ac_cv_lib_gcov___gcov_init=yes
34059else
cristy8b350f62009-11-15 23:12:43 +000034060 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034061fi
cristy8b350f62009-11-15 23:12:43 +000034062rm -f core conftest.err conftest.$ac_objext \
34063 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034064LIBS=$ac_check_lib_save_LIBS
34065fi
cristy8b350f62009-11-15 23:12:43 +000034066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034067$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034068if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034069 cat >>confdefs.h <<_ACEOF
34070#define HAVE_LIBGCOV 1
34071_ACEOF
34072
34073 LIBS="-lgcov $LIBS"
34074
34075fi
34076
34077 case "$target_os" in
34078 darwin*)
34079 OSX_GCOV_LDFLAG="-Wl,-single_module"
34080 ;;
34081 *)
34082 OSX_GCOV_LDFLAG=""
34083 ;;
34084 esac
34085
34086 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34087 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34088 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34089fi
34090
34091#
34092# Build library dependency list for libMagickCore
34093#
34094
34095MAGICK_LIBLTDL='' # Libltdl for build
34096MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34097MAGICK_LTDLDEPS='' # extra libltdl dependencies
34098if test "$with_ltdl" != 'no'
34099then
34100 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34101 MAGICK_API_LIBLTDL='-lltdl'
34102 fi
34103 MAGICK_LIBLTDL=${LIBLTDL}
34104 MAGICK_LTDLDEPS=${LTDLDEPS}
34105fi
34106
34107
34108
34109if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034110 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 +000034111else
cristyb1860752011-03-14 00:27:46 +000034112 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 +000034113fi
34114
34115
34116#
34117# Remove extraneous spaces from output variables (asthetic)
34118#
34119X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34120X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34121X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34122X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34123
34124CC=`echo $CC | sed -e 's/ */ /g'`
34125CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34126CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34127CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34128DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34129DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34130LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34131TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34132MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34133#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34134
34135# Pass only user-provided LIBS as "global" libraries
34136LIBS=$USER_LIBS
34137
34138#AC_SUBST(CPPFLAGS)
34139
34140#AC_SUBST(LDFLAGS)
34141#AC_SUBST(X_PRE_LIBS)
34142#AC_SUBST(X_LIBS)
34143#AC_SUBST(X_EXTRA_LIBS)
34144
34145MAGICK_CFLAGS=$CFLAGS
34146MAGICK_CXXFLAGS="$CXXFLAGS"
34147MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34148MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34149MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34150MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34151
34152
34153
34154
34155
34156
34157
34158
cristyfd9dcd42010-08-08 18:07:02 +000034159
cristy3ed852e2009-09-05 21:47:34 +000034160# Set configured scripts to executable.
34161ac_config_commands="$ac_config_commands default"
34162
34163ac_config_commands="$ac_config_commands MagickCore-config.in"
34164
cristy3ed852e2009-09-05 21:47:34 +000034165ac_config_commands="$ac_config_commands MagickWand-config.in"
34166
cristy3ed852e2009-09-05 21:47:34 +000034167ac_config_commands="$ac_config_commands Magick++-config.in"
34168
34169ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34170
34171
cristy8b350f62009-11-15 23:12:43 +000034172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034173$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000034175$as_echo "Update ImageMagick configuration" >&6; }
34176cat >confcache <<\_ACEOF
34177# This file is a shell script that caches the results of configure
34178# tests run on this system so they can be shared between configure
34179# scripts and configure runs, see configure's option --config-cache.
34180# It is not useful on other systems. If it contains results you don't
34181# want to keep, you may remove or edit it.
34182#
34183# config.status only pays attention to the cache file if you give it
34184# the --recheck option to rerun configure.
34185#
34186# `ac_cv_env_foo' variables (set or unset) will be overridden when
34187# loading this file, other *unset* `ac_cv_foo' will be assigned the
34188# following values.
34189
34190_ACEOF
34191
34192# The following way of writing the cache mishandles newlines in values,
34193# but we know of no workaround that is simple, portable, and efficient.
34194# So, we kill variables containing newlines.
34195# Ultrix sh set writes to stderr and can't be redirected directly,
34196# and sets the high bit in the cache file unless we assign to the vars.
34197(
34198 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34199 eval ac_val=\$$ac_var
34200 case $ac_val in #(
34201 *${as_nl}*)
34202 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34205 esac
34206 case $ac_var in #(
34207 _ | IFS | as_nl) ;; #(
34208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034209 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034210 esac ;;
34211 esac
34212 done
34213
34214 (set) 2>&1 |
34215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34216 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034217 # `set' does not quote correctly, so add quotes: double-quote
34218 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034219 sed -n \
34220 "s/'/'\\\\''/g;
34221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34222 ;; #(
34223 *)
34224 # `set' quotes correctly as required by POSIX, so do not add quotes.
34225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34226 ;;
34227 esac |
34228 sort
34229) |
34230 sed '
34231 /^ac_cv_env_/b end
34232 t clear
34233 :clear
34234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34235 t end
34236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34237 :end' >>confcache
34238if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34239 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034240 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034241 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034242$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034243 if test ! -f "$cache_file" || test -h "$cache_file"; then
34244 cat confcache >"$cache_file"
34245 else
34246 case $cache_file in #(
34247 */* | ?:*)
34248 mv -f confcache "$cache_file"$$ &&
34249 mv -f "$cache_file"$$ "$cache_file" ;; #(
34250 *)
34251 mv -f confcache "$cache_file" ;;
34252 esac
34253 fi
34254 fi
cristy3ed852e2009-09-05 21:47:34 +000034255 else
cristy8b350f62009-11-15 23:12:43 +000034256 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034257$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34258 fi
34259fi
34260rm -f confcache
34261
34262test "x$prefix" = xNONE && prefix=$ac_default_prefix
34263# Let make expand exec_prefix.
34264test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34265
34266DEFS=-DHAVE_CONFIG_H
34267
34268ac_libobjs=
34269ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034270U=
cristy3ed852e2009-09-05 21:47:34 +000034271for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34272 # 1. Remove the extension, and $U if already installed.
34273 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34274 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34275 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34276 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034277 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34278 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034279done
34280LIBOBJS=$ac_libobjs
34281
34282LTLIBOBJS=$ac_ltlibobjs
34283
34284
cristy73bd4a52010-10-05 11:24:23 +000034285 if test -n "$EXEEXT"; then
34286 am__EXEEXT_TRUE=
34287 am__EXEEXT_FALSE='#'
34288else
34289 am__EXEEXT_TRUE='#'
34290 am__EXEEXT_FALSE=
34291fi
cristy3ed852e2009-09-05 21:47:34 +000034292
cristy73bd4a52010-10-05 11:24:23 +000034293if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034294 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034295Usually this means the macro was only invoked conditionally." "$LINENO" 5
34296fi
34297if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034298 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034299Usually this means the macro was only invoked conditionally." "$LINENO" 5
34300fi
34301if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034302 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034303Usually this means the macro was only invoked conditionally." "$LINENO" 5
34304fi
34305if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034306 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034307Usually this means the macro was only invoked conditionally." "$LINENO" 5
34308fi
34309if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034310 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034311Usually this means the macro was only invoked conditionally." "$LINENO" 5
34312fi
34313if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034314 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034315Usually this means the macro was only invoked conditionally." "$LINENO" 5
34316fi
34317if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034318 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034319Usually this means the macro was only invoked conditionally." "$LINENO" 5
34320fi
34321if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034322 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034323Usually this means the macro was only invoked conditionally." "$LINENO" 5
34324fi
cristy73bd4a52010-10-05 11:24:23 +000034325if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034326 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034327Usually this means the macro was only invoked conditionally." "$LINENO" 5
34328fi
34329if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034330 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034331Usually this means the macro was only invoked conditionally." "$LINENO" 5
34332fi
34333LT_CONFIG_H=config/config.h
34334
34335 _ltdl_libobjs=
34336 _ltdl_ltlibobjs=
34337 if test -n "$_LT_LIBOBJS"; then
34338 # Remove the extension.
34339 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34340 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34341 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34342 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34343 done
34344 fi
34345 ltdl_LIBOBJS=$_ltdl_libobjs
34346
34347 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34348
34349
34350if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034351 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034352Usually this means the macro was only invoked conditionally." "$LINENO" 5
34353fi
34354if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034355 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034356Usually this means the macro was only invoked conditionally." "$LINENO" 5
34357fi
34358if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034359 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034360Usually this means the macro was only invoked conditionally." "$LINENO" 5
34361fi
34362if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034363 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034364Usually this means the macro was only invoked conditionally." "$LINENO" 5
34365fi
34366
34367if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034368 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034369Usually this means the macro was only invoked conditionally." "$LINENO" 5
34370fi
34371if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034372 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034373Usually this means the macro was only invoked conditionally." "$LINENO" 5
34374fi
34375if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034376 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034377Usually this means the macro was only invoked conditionally." "$LINENO" 5
34378fi
34379if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034380 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034381Usually this means the macro was only invoked conditionally." "$LINENO" 5
34382fi
34383if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034384 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034385Usually this means the macro was only invoked conditionally." "$LINENO" 5
34386fi
34387if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034388 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034389Usually this means the macro was only invoked conditionally." "$LINENO" 5
34390fi
34391if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034392 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034393Usually this means the macro was only invoked conditionally." "$LINENO" 5
34394fi
34395if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034396 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034397Usually this means the macro was only invoked conditionally." "$LINENO" 5
34398fi
34399if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034400 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034401Usually this means the macro was only invoked conditionally." "$LINENO" 5
34402fi
34403if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034404 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034405Usually this means the macro was only invoked conditionally." "$LINENO" 5
34406fi
34407if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034408 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034409Usually this means the macro was only invoked conditionally." "$LINENO" 5
34410fi
34411if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034412 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034413Usually this means the macro was only invoked conditionally." "$LINENO" 5
34414fi
34415if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034416 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034417Usually this means the macro was only invoked conditionally." "$LINENO" 5
34418fi
34419if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034420 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034421Usually this means the macro was only invoked conditionally." "$LINENO" 5
34422fi
34423if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034424 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034425Usually this means the macro was only invoked conditionally." "$LINENO" 5
34426fi
34427if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034428 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034429Usually this means the macro was only invoked conditionally." "$LINENO" 5
34430fi
34431if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034432 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034433Usually this means the macro was only invoked conditionally." "$LINENO" 5
34434fi
34435if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034436 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034437Usually this means the macro was only invoked conditionally." "$LINENO" 5
34438fi
34439if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034440 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034441Usually this means the macro was only invoked conditionally." "$LINENO" 5
34442fi
34443if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034444 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034445Usually this means the macro was only invoked conditionally." "$LINENO" 5
34446fi
cristyfbb0ef02010-12-19 02:32:11 +000034447if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34448 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34449Usually this means the macro was only invoked conditionally." "$LINENO" 5
34450fi
cristy73bd4a52010-10-05 11:24:23 +000034451if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034452 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034453Usually this means the macro was only invoked conditionally." "$LINENO" 5
34454fi
34455if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034456 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034457Usually this means the macro was only invoked conditionally." "$LINENO" 5
34458fi
34459if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034460 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034461Usually this means the macro was only invoked conditionally." "$LINENO" 5
34462fi
34463if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034464 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034465Usually this means the macro was only invoked conditionally." "$LINENO" 5
34466fi
34467if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034468 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034469Usually this means the macro was only invoked conditionally." "$LINENO" 5
34470fi
cristyb1860752011-03-14 00:27:46 +000034471if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34472 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34473Usually this means the macro was only invoked conditionally." "$LINENO" 5
34474fi
cristy73bd4a52010-10-05 11:24:23 +000034475if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034476 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034477Usually this means the macro was only invoked conditionally." "$LINENO" 5
34478fi
34479if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034480 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034481Usually this means the macro was only invoked conditionally." "$LINENO" 5
34482fi
34483if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034484 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034485Usually this means the macro was only invoked conditionally." "$LINENO" 5
34486fi
34487if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034488 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034489Usually this means the macro was only invoked conditionally." "$LINENO" 5
34490fi
34491if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034492 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034493Usually this means the macro was only invoked conditionally." "$LINENO" 5
34494fi
34495if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034496 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034497Usually this means the macro was only invoked conditionally." "$LINENO" 5
34498fi
34499if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034500 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034501Usually this means the macro was only invoked conditionally." "$LINENO" 5
34502fi
34503if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034504 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034505Usually this means the macro was only invoked conditionally." "$LINENO" 5
34506fi
cristy3ed852e2009-09-05 21:47:34 +000034507
cristyda16f162011-02-19 23:52:17 +000034508: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000034509ac_write_fail=0
34510ac_clean_files_save=$ac_clean_files
34511ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000034512{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034513$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034514as_write_fail=0
34515cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034516#! $SHELL
34517# Generated by $as_me.
34518# Run this file to recreate the current configuration.
34519# Compiler output produced by configure, useful for debugging
34520# configure, is in config.log if it exists.
34521
34522debug=false
34523ac_cs_recheck=false
34524ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000034525
cristy8b350f62009-11-15 23:12:43 +000034526SHELL=\${CONFIG_SHELL-$SHELL}
34527export SHELL
34528_ASEOF
34529cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34530## -------------------- ##
34531## M4sh Initialization. ##
34532## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000034533
34534# Be more Bourne compatible
34535DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000034536if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000034537 emulate sh
34538 NULLCMD=:
34539 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34540 # is contrary to our usage. Disable this feature.
34541 alias -g '${1+"$@"}'='"$@"'
34542 setopt NO_GLOB_SUBST
34543else
cristy8b350f62009-11-15 23:12:43 +000034544 case `(set -o) 2>/dev/null` in #(
34545 *posix*) :
34546 set -o posix ;; #(
34547 *) :
34548 ;;
cristy3ed852e2009-09-05 21:47:34 +000034549esac
cristy3ed852e2009-09-05 21:47:34 +000034550fi
34551
34552
cristy3ed852e2009-09-05 21:47:34 +000034553as_nl='
34554'
34555export as_nl
34556# Printing a long string crashes Solaris 7 /usr/bin/printf.
34557as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34558as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34559as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000034560# Prefer a ksh shell builtin over an external printf program on Solaris,
34561# but without wasting forks for bash or zsh.
34562if test -z "$BASH_VERSION$ZSH_VERSION" \
34563 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34564 as_echo='print -r --'
34565 as_echo_n='print -rn --'
34566elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000034567 as_echo='printf %s\n'
34568 as_echo_n='printf %s'
34569else
34570 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34571 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34572 as_echo_n='/usr/ucb/echo -n'
34573 else
34574 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34575 as_echo_n_body='eval
34576 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000034577 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000034578 *"$as_nl"*)
34579 expr "X$arg" : "X\\(.*\\)$as_nl";
34580 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34581 esac;
34582 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34583 '
34584 export as_echo_n_body
34585 as_echo_n='sh -c $as_echo_n_body as_echo'
34586 fi
34587 export as_echo_body
34588 as_echo='sh -c $as_echo_body as_echo'
34589fi
34590
34591# The user is always right.
34592if test "${PATH_SEPARATOR+set}" != set; then
34593 PATH_SEPARATOR=:
34594 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34595 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34596 PATH_SEPARATOR=';'
34597 }
34598fi
34599
cristy3ed852e2009-09-05 21:47:34 +000034600
34601# IFS
34602# We need space, tab and new line, in precisely that order. Quoting is
34603# there to prevent editors from complaining about space-tab.
34604# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34605# splitting by setting IFS to empty value.)
34606IFS=" "" $as_nl"
34607
34608# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000034609as_myself=
cristy8b350f62009-11-15 23:12:43 +000034610case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000034611 *[\\/]* ) as_myself=$0 ;;
34612 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34613for as_dir in $PATH
34614do
34615 IFS=$as_save_IFS
34616 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034617 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34618 done
cristy3ed852e2009-09-05 21:47:34 +000034619IFS=$as_save_IFS
34620
34621 ;;
34622esac
34623# We did not find ourselves, most probably we were run as `sh COMMAND'
34624# in which case we are not to be found in the path.
34625if test "x$as_myself" = x; then
34626 as_myself=$0
34627fi
34628if test ! -f "$as_myself"; then
34629 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000034630 exit 1
cristy3ed852e2009-09-05 21:47:34 +000034631fi
34632
cristy8b350f62009-11-15 23:12:43 +000034633# Unset variables that we do not need and which cause bugs (e.g. in
34634# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
34635# suppresses any "Segmentation fault" message there. '((' could
34636# trigger a bug in pdksh 5.2.14.
34637for as_var in BASH_ENV ENV MAIL MAILPATH
34638do eval test x\${$as_var+set} = xset \
34639 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000034640done
34641PS1='$ '
34642PS2='> '
34643PS4='+ '
34644
34645# NLS nuisances.
34646LC_ALL=C
34647export LC_ALL
34648LANGUAGE=C
34649export LANGUAGE
34650
cristy8b350f62009-11-15 23:12:43 +000034651# CDPATH.
34652(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34653
34654
cristy98dddb52010-11-04 00:30:15 +000034655# as_fn_error STATUS ERROR [LINENO LOG_FD]
34656# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000034657# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34658# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000034659# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000034660as_fn_error ()
34661{
cristy98dddb52010-11-04 00:30:15 +000034662 as_status=$1; test $as_status -eq 0 && as_status=1
34663 if test "$4"; then
34664 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34665 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000034666 fi
cristy98dddb52010-11-04 00:30:15 +000034667 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000034668 as_fn_exit $as_status
34669} # as_fn_error
34670
34671
34672# as_fn_set_status STATUS
34673# -----------------------
34674# Set $? to STATUS, without forking.
34675as_fn_set_status ()
34676{
34677 return $1
34678} # as_fn_set_status
34679
34680# as_fn_exit STATUS
34681# -----------------
34682# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34683as_fn_exit ()
34684{
34685 set +e
34686 as_fn_set_status $1
34687 exit $1
34688} # as_fn_exit
34689
34690# as_fn_unset VAR
34691# ---------------
34692# Portably unset VAR.
34693as_fn_unset ()
34694{
34695 { eval $1=; unset $1;}
34696}
34697as_unset=as_fn_unset
34698# as_fn_append VAR VALUE
34699# ----------------------
34700# Append the text in VALUE to the end of the definition contained in VAR. Take
34701# advantage of any shell optimizations that allow amortized linear growth over
34702# repeated appends, instead of the typical quadratic growth present in naive
34703# implementations.
34704if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34705 eval 'as_fn_append ()
34706 {
34707 eval $1+=\$2
34708 }'
34709else
34710 as_fn_append ()
34711 {
34712 eval $1=\$$1\$2
34713 }
34714fi # as_fn_append
34715
34716# as_fn_arith ARG...
34717# ------------------
34718# Perform arithmetic evaluation on the ARGs, and store the result in the
34719# global $as_val. Take advantage of shells that can avoid forks. The arguments
34720# must be portable across $(()) and expr.
34721if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34722 eval 'as_fn_arith ()
34723 {
34724 as_val=$(( $* ))
34725 }'
34726else
34727 as_fn_arith ()
34728 {
34729 as_val=`expr "$@" || test $? -eq 1`
34730 }
34731fi # as_fn_arith
34732
34733
cristy3ed852e2009-09-05 21:47:34 +000034734if expr a : '\(a\)' >/dev/null 2>&1 &&
34735 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34736 as_expr=expr
34737else
34738 as_expr=false
34739fi
34740
34741if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34742 as_basename=basename
34743else
34744 as_basename=false
34745fi
34746
cristy8b350f62009-11-15 23:12:43 +000034747if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34748 as_dirname=dirname
34749else
34750 as_dirname=false
34751fi
cristy3ed852e2009-09-05 21:47:34 +000034752
cristy3ed852e2009-09-05 21:47:34 +000034753as_me=`$as_basename -- "$0" ||
34754$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34755 X"$0" : 'X\(//\)$' \| \
34756 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34757$as_echo X/"$0" |
34758 sed '/^.*\/\([^/][^/]*\)\/*$/{
34759 s//\1/
34760 q
34761 }
34762 /^X\/\(\/\/\)$/{
34763 s//\1/
34764 q
34765 }
34766 /^X\/\(\/\).*/{
34767 s//\1/
34768 q
34769 }
34770 s/.*/./; q'`
34771
cristy8b350f62009-11-15 23:12:43 +000034772# Avoid depending upon Character Ranges.
34773as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34774as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34775as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34776as_cr_digits='0123456789'
34777as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034778
34779ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034780case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034781-n*)
cristy8b350f62009-11-15 23:12:43 +000034782 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034783 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034784 xy) ECHO_C='\c';;
34785 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34786 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034787 esac;;
34788*)
34789 ECHO_N='-n';;
34790esac
cristy3ed852e2009-09-05 21:47:34 +000034791
34792rm -f conf$$ conf$$.exe conf$$.file
34793if test -d conf$$.dir; then
34794 rm -f conf$$.dir/conf$$.file
34795else
34796 rm -f conf$$.dir
34797 mkdir conf$$.dir 2>/dev/null
34798fi
34799if (echo >conf$$.file) 2>/dev/null; then
34800 if ln -s conf$$.file conf$$ 2>/dev/null; then
34801 as_ln_s='ln -s'
34802 # ... but there are two gotchas:
34803 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34804 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34805 # In both cases, we have to default to `cp -p'.
34806 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34807 as_ln_s='cp -p'
34808 elif ln conf$$.file conf$$ 2>/dev/null; then
34809 as_ln_s=ln
34810 else
34811 as_ln_s='cp -p'
34812 fi
34813else
34814 as_ln_s='cp -p'
34815fi
34816rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34817rmdir conf$$.dir 2>/dev/null
34818
cristy8b350f62009-11-15 23:12:43 +000034819
34820# as_fn_mkdir_p
34821# -------------
34822# Create "$as_dir" as a directory, including parents if necessary.
34823as_fn_mkdir_p ()
34824{
34825
34826 case $as_dir in #(
34827 -*) as_dir=./$as_dir;;
34828 esac
34829 test -d "$as_dir" || eval $as_mkdir_p || {
34830 as_dirs=
34831 while :; do
34832 case $as_dir in #(
34833 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34834 *) as_qdir=$as_dir;;
34835 esac
34836 as_dirs="'$as_qdir' $as_dirs"
34837 as_dir=`$as_dirname -- "$as_dir" ||
34838$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34839 X"$as_dir" : 'X\(//\)[^/]' \| \
34840 X"$as_dir" : 'X\(//\)$' \| \
34841 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34842$as_echo X"$as_dir" |
34843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34844 s//\1/
34845 q
34846 }
34847 /^X\(\/\/\)[^/].*/{
34848 s//\1/
34849 q
34850 }
34851 /^X\(\/\/\)$/{
34852 s//\1/
34853 q
34854 }
34855 /^X\(\/\).*/{
34856 s//\1/
34857 q
34858 }
34859 s/.*/./; q'`
34860 test -d "$as_dir" && break
34861 done
34862 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034863 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034864
34865
34866} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034867if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034868 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034869else
34870 test -d ./-p && rmdir ./-p
34871 as_mkdir_p=false
34872fi
34873
34874if test -x / >/dev/null 2>&1; then
34875 as_test_x='test -x'
34876else
34877 if ls -dL / >/dev/null 2>&1; then
34878 as_ls_L_option=L
34879 else
34880 as_ls_L_option=
34881 fi
34882 as_test_x='
34883 eval sh -c '\''
34884 if test -d "$1"; then
34885 test -d "$1/.";
34886 else
cristy8b350f62009-11-15 23:12:43 +000034887 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034888 -*)set "./$1";;
34889 esac;
cristy8b350f62009-11-15 23:12:43 +000034890 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034891 ???[sx]*):;;*)false;;esac;fi
34892 '\'' sh
34893 '
34894fi
34895as_executable_p=$as_test_x
34896
34897# Sed expression to map a string onto a valid CPP name.
34898as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34899
34900# Sed expression to map a string onto a valid variable name.
34901as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34902
34903
34904exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000034905## ----------------------------------- ##
34906## Main body of $CONFIG_STATUS script. ##
34907## ----------------------------------- ##
34908_ASEOF
34909test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034910
cristy8b350f62009-11-15 23:12:43 +000034911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34912# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000034913# report actual input values of CONFIG_FILES etc. instead of their
34914# values after options handling.
34915ac_log="
cristy4c08aed2011-07-01 19:47:50 +000034916This file was extended by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +000034917generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000034918
34919 CONFIG_FILES = $CONFIG_FILES
34920 CONFIG_HEADERS = $CONFIG_HEADERS
34921 CONFIG_LINKS = $CONFIG_LINKS
34922 CONFIG_COMMANDS = $CONFIG_COMMANDS
34923 $ $0 $@
34924
34925on `(hostname || uname -n) 2>/dev/null | sed 1q`
34926"
34927
34928_ACEOF
34929
34930case $ac_config_files in *"
34931"*) set x $ac_config_files; shift; ac_config_files=$*;;
34932esac
34933
34934case $ac_config_headers in *"
34935"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34936esac
34937
34938
34939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34940# Files that config.status was made for.
34941config_files="$ac_config_files"
34942config_headers="$ac_config_headers"
34943config_commands="$ac_config_commands"
34944
34945_ACEOF
34946
34947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34948ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000034949\`$as_me' instantiates files and other configuration actions
34950from templates according to the current configuration. Unless the files
34951and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000034952
cristy8b350f62009-11-15 23:12:43 +000034953Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000034954
34955 -h, --help print this help, then exit
34956 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000034957 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000034958 -q, --quiet, --silent
34959 do not print progress messages
34960 -d, --debug don't remove temporary files
34961 --recheck update $as_me by reconfiguring in the same conditions
34962 --file=FILE[:TEMPLATE]
34963 instantiate the configuration file FILE
34964 --header=FILE[:TEMPLATE]
34965 instantiate the configuration header FILE
34966
34967Configuration files:
34968$config_files
34969
34970Configuration headers:
34971$config_headers
34972
34973Configuration commands:
34974$config_commands
34975
cristy8b350f62009-11-15 23:12:43 +000034976Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000034977
34978_ACEOF
34979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000034980ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000034981ac_cs_version="\\
cristy4c08aed2011-07-01 19:47:50 +000034982ImageMagick config.status 7.0.0
cristyda16f162011-02-19 23:52:17 +000034983configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000034984 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000034985
cristy98dddb52010-11-04 00:30:15 +000034986Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034987This config.status script is free software; the Free Software Foundation
34988gives unlimited permission to copy, distribute and modify it."
34989
34990ac_pwd='$ac_pwd'
34991srcdir='$srcdir'
34992INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000034993MKDIR_P='$MKDIR_P'
34994AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000034995test -n "\$AWK" || AWK=awk
34996_ACEOF
34997
34998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34999# The default lists apply if the user does not specify any file.
35000ac_need_defaults=:
35001while test $# != 0
35002do
35003 case $1 in
cristyda16f162011-02-19 23:52:17 +000035004 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35007 ac_shift=:
35008 ;;
cristyda16f162011-02-19 23:52:17 +000035009 --*=)
35010 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35011 ac_optarg=
35012 ac_shift=:
35013 ;;
cristy3ed852e2009-09-05 21:47:34 +000035014 *)
35015 ac_option=$1
35016 ac_optarg=$2
35017 ac_shift=shift
35018 ;;
35019 esac
35020
35021 case $ac_option in
35022 # Handling of the options.
35023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35024 ac_cs_recheck=: ;;
35025 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35026 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035027 --config | --confi | --conf | --con | --co | --c )
35028 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035029 --debug | --debu | --deb | --de | --d | -d )
35030 debug=: ;;
35031 --file | --fil | --fi | --f )
35032 $ac_shift
35033 case $ac_optarg in
35034 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035035 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035036 esac
cristy8b350f62009-11-15 23:12:43 +000035037 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035038 ac_need_defaults=false;;
35039 --header | --heade | --head | --hea )
35040 $ac_shift
35041 case $ac_optarg in
35042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35043 esac
cristy8b350f62009-11-15 23:12:43 +000035044 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035045 ac_need_defaults=false;;
35046 --he | --h)
35047 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035048 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035049Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035050 --help | --hel | -h )
35051 $as_echo "$ac_cs_usage"; exit ;;
35052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35054 ac_cs_silent=: ;;
35055
35056 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035057 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035058Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035059
cristy8b350f62009-11-15 23:12:43 +000035060 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035061 ac_need_defaults=false ;;
35062
35063 esac
35064 shift
35065done
35066
35067ac_configure_extra_args=
35068
35069if $ac_cs_silent; then
35070 exec 6>/dev/null
35071 ac_configure_extra_args="$ac_configure_extra_args --silent"
35072fi
35073
35074_ACEOF
35075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35076if \$ac_cs_recheck; then
35077 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35078 shift
35079 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35080 CONFIG_SHELL='$SHELL'
35081 export CONFIG_SHELL
35082 exec "\$@"
35083fi
35084
35085_ACEOF
35086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35087exec 5>>config.log
35088{
35089 echo
35090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35091## Running $as_me. ##
35092_ASBOX
35093 $as_echo "$ac_log"
35094} >&5
35095
35096_ACEOF
35097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035098#
35099# INIT-COMMANDS
35100#
35101PACKAGE="$PACKAGE"
35102AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35103
35104
35105# The HP-UX ksh and POSIX shell print the target directory to stdout
35106# if CDPATH is set.
35107(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35108
35109sed_quote_subst='$sed_quote_subst'
35110double_quote_subst='$double_quote_subst'
35111delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035112SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35113Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35114GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35115EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35116FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35117SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35118ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35119LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35120macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35121macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35122AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35123DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35124OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35125enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35126enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35127pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35128enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35129host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35130host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35131host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35132build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35133build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35134build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35135NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35136LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35137max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35138ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35139exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35140lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35141lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35142lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035143lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35144lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035145reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35146reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35147deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35148file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035149file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35150want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35151sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035152AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35153AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035154archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035155STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35156RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35157old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35158old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35159old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35160lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35161CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35162CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35163compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35164GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35165lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35166lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35167lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35168lt_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 +000035169nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35170lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035171objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35172MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35173lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035174lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035175lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035176lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35177lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35178need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035179MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035180DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35181NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35182LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35183OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35184OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35185libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35186shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35187extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35188archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35189enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35190export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35191whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35192compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35193old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35194old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35195archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35196archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35197module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35198module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35199with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35200allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35201no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35202hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35203hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35204hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35205hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35206hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35207hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35208hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35209hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35210inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35211link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035212always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35213export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35214exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35215include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35216prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035217postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035218file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35219variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35220need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35221need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35222version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35223runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35224shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35225shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35226libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35227library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35228soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35229install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35230postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35231postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35232finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35233finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35234hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35235sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35236sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35237hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35238enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35239enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35240enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35241old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35242striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35243compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35244predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35245postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35246predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35247postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35248compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35249LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35250reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35251reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35252old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35253compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35254GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35255lt_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 +000035256lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035257lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035258lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35259lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35260archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35261enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35262export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35263whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35264compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35265old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35266old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35267archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35268archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35269module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35270module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35271with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35272allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35273no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35274hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35275hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35276hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35277hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35278hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35279hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35280hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35281hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35282inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35283link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035284always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35285export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35286exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35287include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35288prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035289postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035290file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35291hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35292compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35293predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35294postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35295predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35296postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35297compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035298
35299LTCC='$LTCC'
35300LTCFLAGS='$LTCFLAGS'
35301compiler='$compiler_DEFAULT'
35302
cristy0c60a692010-11-04 01:09:47 +000035303# A function that is used when there is no print builtin or printf.
35304func_fallback_echo ()
35305{
35306 eval 'cat <<_LTECHO_EOF
35307\$1
35308_LTECHO_EOF'
35309}
35310
cristy73bd4a52010-10-05 11:24:23 +000035311# Quote evaled strings.
35312for var in SED \
35313GREP \
35314EGREP \
35315FGREP \
cristy0c60a692010-11-04 01:09:47 +000035316SHELL \
35317ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035318LD \
cristy0c60a692010-11-04 01:09:47 +000035319AS \
35320DLLTOOL \
35321OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000035322NM \
35323LN_S \
35324lt_SP2NL \
35325lt_NL2SP \
35326reload_flag \
35327deplibs_check_method \
35328file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035329file_magic_glob \
35330want_nocaseglob \
35331sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035332AR \
35333AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035334archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035335STRIP \
35336RANLIB \
35337CC \
35338CFLAGS \
35339compiler \
35340lt_cv_sys_global_symbol_pipe \
35341lt_cv_sys_global_symbol_to_cdecl \
35342lt_cv_sys_global_symbol_to_c_name_address \
35343lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035344nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035345lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035346lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035347lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035348lt_prog_compiler_static \
35349lt_cv_prog_compiler_c_o \
35350need_locks \
cristyda16f162011-02-19 23:52:17 +000035351MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035352DSYMUTIL \
35353NMEDIT \
35354LIPO \
35355OTOOL \
35356OTOOL64 \
35357shrext_cmds \
35358export_dynamic_flag_spec \
35359whole_archive_flag_spec \
35360compiler_needs_object \
35361with_gnu_ld \
35362allow_undefined_flag \
35363no_undefined_flag \
35364hardcode_libdir_flag_spec \
35365hardcode_libdir_flag_spec_ld \
35366hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000035367exclude_expsyms \
35368include_expsyms \
35369file_list_spec \
35370variables_saved_for_relink \
35371libname_spec \
35372library_names_spec \
35373soname_spec \
cristy0c60a692010-11-04 01:09:47 +000035374install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000035375finish_eval \
35376old_striplib \
35377striplib \
35378compiler_lib_search_dirs \
35379predep_objects \
35380postdep_objects \
35381predeps \
35382postdeps \
35383compiler_lib_search_path \
35384LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000035385reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035386compiler_CXX \
35387lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035388lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000035389lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035390lt_prog_compiler_static_CXX \
35391lt_cv_prog_compiler_c_o_CXX \
35392export_dynamic_flag_spec_CXX \
35393whole_archive_flag_spec_CXX \
35394compiler_needs_object_CXX \
35395with_gnu_ld_CXX \
35396allow_undefined_flag_CXX \
35397no_undefined_flag_CXX \
35398hardcode_libdir_flag_spec_CXX \
35399hardcode_libdir_flag_spec_ld_CXX \
35400hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035401exclude_expsyms_CXX \
35402include_expsyms_CXX \
35403file_list_spec_CXX \
35404compiler_lib_search_dirs_CXX \
35405predep_objects_CXX \
35406postdep_objects_CXX \
35407predeps_CXX \
35408postdeps_CXX \
35409compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035410 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035411 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035412 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035413 ;;
35414 *)
35415 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35416 ;;
35417 esac
35418done
35419
35420# Double-quote double-evaled strings.
35421for var in reload_cmds \
35422old_postinstall_cmds \
35423old_postuninstall_cmds \
35424old_archive_cmds \
35425extract_expsyms_cmds \
35426old_archive_from_new_cmds \
35427old_archive_from_expsyms_cmds \
35428archive_cmds \
35429archive_expsym_cmds \
35430module_cmds \
35431module_expsym_cmds \
35432export_symbols_cmds \
35433prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000035434postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000035435postinstall_cmds \
35436postuninstall_cmds \
35437finish_cmds \
35438sys_lib_search_path_spec \
35439sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000035440reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035441old_archive_cmds_CXX \
35442old_archive_from_new_cmds_CXX \
35443old_archive_from_expsyms_cmds_CXX \
35444archive_cmds_CXX \
35445archive_expsym_cmds_CXX \
35446module_cmds_CXX \
35447module_expsym_cmds_CXX \
35448export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000035449prelink_cmds_CXX \
35450postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035451 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035452 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035453 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035454 ;;
35455 *)
35456 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35457 ;;
35458 esac
35459done
35460
cristy73bd4a52010-10-05 11:24:23 +000035461ac_aux_dir='$ac_aux_dir'
35462xsi_shell='$xsi_shell'
35463lt_shell_append='$lt_shell_append'
35464
35465# See if we are running on zsh, and set the options which allow our
35466# commands through without removal of \ escapes INIT.
35467if test -n "\${ZSH_VERSION+set}" ; then
35468 setopt NO_GLOB_SUBST
35469fi
35470
35471
35472 PACKAGE='$PACKAGE'
35473 VERSION='$VERSION'
35474 TIMESTAMP='$TIMESTAMP'
35475 RM='$RM'
35476 ofile='$ofile'
35477
35478
35479
35480
35481
35482
cristy3ed852e2009-09-05 21:47:34 +000035483_ACEOF
35484
35485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35486
35487# Handling of arguments.
35488for ac_config_target in $ac_config_targets
35489do
35490 case $ac_config_target in
35491 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000035492 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035493 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35494 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35495 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35496 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35497 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000035498 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000035499 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35500 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35501 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35502 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35503 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000035504 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000035505 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35506 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000035507 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
35508 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
35509 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035510 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35511 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35512 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35513 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35514 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35515 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35516 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35517 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35518 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35519 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35520 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35521 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35522 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35523 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35524 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35525 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35526 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000035527 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
35528 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000035529 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35530 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000035531 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35532 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000035533 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000035534 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
35535 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
35536
cristy98dddb52010-11-04 00:30:15 +000035537 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035538 esac
35539done
35540
35541
35542# If the user did not use the arguments to specify the items to instantiate,
35543# then the envvar interface is used. Set only those that are not.
35544# We use the long form for the default assignment because of an extremely
35545# bizarre bug on SunOS 4.1.3.
35546if $ac_need_defaults; then
35547 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35548 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35549 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35550fi
35551
35552# Have a temporary directory for convenience. Make it in the build tree
35553# simply because there is no reason against having it here, and in addition,
35554# creating and moving files from /tmp can sometimes cause problems.
35555# Hook for its removal unless debugging.
35556# Note that there is a small window in which the directory will not be cleaned:
35557# after its creation but before its name has been assigned to `$tmp'.
35558$debug ||
35559{
cristyda16f162011-02-19 23:52:17 +000035560 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000035561 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000035562 : "${ac_tmp:=$tmp}"
35563 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000035564' 0
cristy8b350f62009-11-15 23:12:43 +000035565 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000035566}
35567# Create a (secure) tmp directory for tmp files.
35568
35569{
35570 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000035571 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000035572} ||
35573{
35574 tmp=./conf$$-$RANDOM
35575 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000035576} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035577ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000035578
35579# Set up the scripts for CONFIG_FILES section.
35580# No need to generate them if there are no CONFIG_FILES.
35581# This happens for instance with `./config.status config.h'.
35582if test -n "$CONFIG_FILES"; then
35583
35584
cristy8b350f62009-11-15 23:12:43 +000035585ac_cr=`echo X | tr X '\015'`
35586# On cygwin, bash can eat \r inside `` if the user requested igncr.
35587# But we know of no other shell where ac_cr would be empty at this
35588# point, so we can use a bashism as a fallback.
35589if test "x$ac_cr" = x; then
35590 eval ac_cr=\$\'\\r\'
35591fi
cristy3ed852e2009-09-05 21:47:34 +000035592ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35593if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000035594 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000035595else
35596 ac_cs_awk_cr=$ac_cr
35597fi
35598
cristyda16f162011-02-19 23:52:17 +000035599echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000035600_ACEOF
35601
35602
35603{
35604 echo "cat >conf$$subs.awk <<_ACEOF" &&
35605 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35606 echo "_ACEOF"
35607} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000035608 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35609ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000035610ac_delim='%!_!# '
35611for ac_last_try in false false false false false :; do
35612 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000035613 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035614
35615 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35616 if test $ac_delim_n = $ac_delim_num; then
35617 break
35618 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035620 else
35621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35622 fi
35623done
35624rm -f conf$$subs.sh
35625
35626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000035627cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035628_ACEOF
35629sed -n '
35630h
35631s/^/S["/; s/!.*/"]=/
35632p
35633g
35634s/^[^!]*!//
35635:repl
35636t repl
35637s/'"$ac_delim"'$//
35638t delim
35639:nl
35640h
cristycd4c5312009-11-22 01:19:08 +000035641s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035642t more1
35643s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35644p
35645n
35646b repl
35647:more1
35648s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35649p
35650g
35651s/.\{148\}//
35652t nl
35653:delim
35654h
cristycd4c5312009-11-22 01:19:08 +000035655s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035656t more2
35657s/["\\]/\\&/g; s/^/"/; s/$/"/
35658p
35659b
35660:more2
35661s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35662p
35663g
35664s/.\{148\}//
35665t delim
35666' <conf$$subs.awk | sed '
35667/^[^""]/{
35668 N
35669 s/\n//
35670}
35671' >>$CONFIG_STATUS || ac_write_fail=1
35672rm -f conf$$subs.awk
35673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35674_ACAWK
cristyda16f162011-02-19 23:52:17 +000035675cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035676 for (key in S) S_is_set[key] = 1
35677 FS = ""
35678
35679}
35680{
35681 line = $ 0
35682 nfields = split(line, field, "@")
35683 substed = 0
35684 len = length(field[1])
35685 for (i = 2; i < nfields; i++) {
35686 key = field[i]
35687 keylen = length(key)
35688 if (S_is_set[key]) {
35689 value = S[key]
35690 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35691 len += length(value) + length(field[++i])
35692 substed = 1
35693 } else
35694 len += 1 + keylen
35695 }
35696
35697 print line
35698}
35699
35700_ACAWK
35701_ACEOF
35702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35703if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35704 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35705else
35706 cat
cristyda16f162011-02-19 23:52:17 +000035707fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035708 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035709_ACEOF
35710
cristy98dddb52010-11-04 00:30:15 +000035711# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35712# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035713# trailing colons and then remove the whole line if VPATH becomes empty
35714# (actually we leave an empty line to preserve line numbers).
35715if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035716 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35717h
35718s///
35719s/^/:/
35720s/[ ]*$/:/
35721s/:\$(srcdir):/:/g
35722s/:\${srcdir}:/:/g
35723s/:@srcdir@:/:/g
35724s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035725s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035726x
35727s/\(=[ ]*\).*/\1/
35728G
35729s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035730s/^[^=]*=[ ]*$//
35731}'
35732fi
35733
35734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35735fi # test -n "$CONFIG_FILES"
35736
35737# Set up the scripts for CONFIG_HEADERS section.
35738# No need to generate them if there are no CONFIG_HEADERS.
35739# This happens for instance with `./config.status Makefile'.
35740if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035741cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035742BEGIN {
35743_ACEOF
35744
35745# Transform confdefs.h into an awk script `defines.awk', embedded as
35746# here-document in config.status, that substitutes the proper values into
35747# config.h.in to produce config.h.
35748
35749# Create a delimiter string that does not exist in confdefs.h, to ease
35750# handling of long lines.
35751ac_delim='%!_!# '
35752for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035753 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35754 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035755 break
35756 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035757 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035758 else
35759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35760 fi
35761done
35762
35763# For the awk script, D is an array of macro values keyed by name,
35764# likewise P contains macro parameters if any. Preserve backslash
35765# newline sequences.
35766
35767ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35768sed -n '
35769s/.\{148\}/&'"$ac_delim"'/g
35770t rset
35771:rset
35772s/^[ ]*#[ ]*define[ ][ ]*/ /
35773t def
35774d
35775:def
35776s/\\$//
35777t bsnl
35778s/["\\]/\\&/g
35779s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35780D["\1"]=" \3"/p
35781s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35782d
35783:bsnl
35784s/["\\]/\\&/g
35785s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35786D["\1"]=" \3\\\\\\n"\\/p
35787t cont
35788s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35789t cont
35790d
35791:cont
35792n
35793s/.\{148\}/&'"$ac_delim"'/g
35794t clear
35795:clear
35796s/\\$//
35797t bsnlc
35798s/["\\]/\\&/g; s/^/"/; s/$/"/p
35799d
35800:bsnlc
35801s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35802b cont
35803' <confdefs.h | sed '
35804s/'"$ac_delim"'/"\\\
35805"/g' >>$CONFIG_STATUS || ac_write_fail=1
35806
35807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35808 for (key in D) D_is_set[key] = 1
35809 FS = ""
35810}
35811/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35812 line = \$ 0
35813 split(line, arg, " ")
35814 if (arg[1] == "#") {
35815 defundef = arg[2]
35816 mac1 = arg[3]
35817 } else {
35818 defundef = substr(arg[1], 2)
35819 mac1 = arg[2]
35820 }
35821 split(mac1, mac2, "(") #)
35822 macro = mac2[1]
35823 prefix = substr(line, 1, index(line, defundef) - 1)
35824 if (D_is_set[macro]) {
35825 # Preserve the white space surrounding the "#".
35826 print prefix "define", macro P[macro] D[macro]
35827 next
35828 } else {
35829 # Replace #undef with comments. This is necessary, for example,
35830 # in the case of _POSIX_SOURCE, which is predefined and required
35831 # on some systems where configure will not decide to define it.
35832 if (defundef == "undef") {
35833 print "/*", prefix defundef, macro, "*/"
35834 next
35835 }
35836 }
35837}
35838{ print }
35839_ACAWK
35840_ACEOF
35841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035842 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035843fi # test -n "$CONFIG_HEADERS"
35844
35845
35846eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35847shift
35848for ac_tag
35849do
35850 case $ac_tag in
35851 :[FHLC]) ac_mode=$ac_tag; continue;;
35852 esac
35853 case $ac_mode$ac_tag in
35854 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035855 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035856 :[FH]-) ac_tag=-:-;;
35857 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35858 esac
35859 ac_save_IFS=$IFS
35860 IFS=:
35861 set x $ac_tag
35862 IFS=$ac_save_IFS
35863 shift
35864 ac_file=$1
35865 shift
35866
35867 case $ac_mode in
35868 :L) ac_source=$1;;
35869 :[FH])
35870 ac_file_inputs=
35871 for ac_f
35872 do
35873 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035874 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035875 *) # Look for the file first in the build tree, then in the source tree
35876 # (if the path is not absolute). The absolute path cannot be DOS-style,
35877 # because $ac_f cannot contain `:'.
35878 test -f "$ac_f" ||
35879 case $ac_f in
35880 [\\/$]*) false;;
35881 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35882 esac ||
cristy98dddb52010-11-04 00:30:15 +000035883 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035884 esac
35885 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035886 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035887 done
35888
35889 # Let's still pretend it is `configure' which instantiates (i.e., don't
35890 # use $as_me), people would be surprised to read:
35891 # /* config.h. Generated by config.status. */
35892 configure_input='Generated from '`
35893 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35894 `' by configure.'
35895 if test x"$ac_file" != x-; then
35896 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035897 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035898$as_echo "$as_me: creating $ac_file" >&6;}
35899 fi
35900 # Neutralize special characters interpreted by sed in replacement strings.
35901 case $configure_input in #(
35902 *\&* | *\|* | *\\* )
35903 ac_sed_conf_input=`$as_echo "$configure_input" |
35904 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35905 *) ac_sed_conf_input=$configure_input;;
35906 esac
35907
35908 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000035909 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000035910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000035911 esac
35912 ;;
35913 esac
35914
35915 ac_dir=`$as_dirname -- "$ac_file" ||
35916$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35917 X"$ac_file" : 'X\(//\)[^/]' \| \
35918 X"$ac_file" : 'X\(//\)$' \| \
35919 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35920$as_echo X"$ac_file" |
35921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35922 s//\1/
35923 q
35924 }
35925 /^X\(\/\/\)[^/].*/{
35926 s//\1/
35927 q
35928 }
35929 /^X\(\/\/\)$/{
35930 s//\1/
35931 q
35932 }
35933 /^X\(\/\).*/{
35934 s//\1/
35935 q
35936 }
35937 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000035938 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035939 ac_builddir=.
35940
35941case "$ac_dir" in
35942.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35943*)
35944 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35945 # A ".." for each directory in $ac_dir_suffix.
35946 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35947 case $ac_top_builddir_sub in
35948 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35949 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35950 esac ;;
35951esac
35952ac_abs_top_builddir=$ac_pwd
35953ac_abs_builddir=$ac_pwd$ac_dir_suffix
35954# for backward compatibility:
35955ac_top_builddir=$ac_top_build_prefix
35956
35957case $srcdir in
35958 .) # We are building in place.
35959 ac_srcdir=.
35960 ac_top_srcdir=$ac_top_builddir_sub
35961 ac_abs_top_srcdir=$ac_pwd ;;
35962 [\\/]* | ?:[\\/]* ) # Absolute name.
35963 ac_srcdir=$srcdir$ac_dir_suffix;
35964 ac_top_srcdir=$srcdir
35965 ac_abs_top_srcdir=$srcdir ;;
35966 *) # Relative name.
35967 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35968 ac_top_srcdir=$ac_top_build_prefix$srcdir
35969 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35970esac
35971ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35972
35973
35974 case $ac_mode in
35975 :F)
35976 #
35977 # CONFIG_FILE
35978 #
35979
35980 case $INSTALL in
35981 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35982 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35983 esac
cristy73bd4a52010-10-05 11:24:23 +000035984 ac_MKDIR_P=$MKDIR_P
35985 case $MKDIR_P in
35986 [\\/$]* | ?:[\\/]* ) ;;
35987 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35988 esac
cristy3ed852e2009-09-05 21:47:34 +000035989_ACEOF
35990
35991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35992# If the template does not know about datarootdir, expand it.
35993# FIXME: This hack should be removed a few years after 2.60.
35994ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000035995ac_sed_dataroot='
35996/datarootdir/ {
35997 p
35998 q
35999}
36000/@datadir@/p
36001/@docdir@/p
36002/@infodir@/p
36003/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036004/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036005case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36006*datarootdir*) ac_datarootdir_seen=yes;;
36007*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036009$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36010_ACEOF
36011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36012 ac_datarootdir_hack='
36013 s&@datadir@&$datadir&g
36014 s&@docdir@&$docdir&g
36015 s&@infodir@&$infodir&g
36016 s&@localedir@&$localedir&g
36017 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036018 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036019esac
36020_ACEOF
36021
36022# Neutralize VPATH when `$srcdir' = `.'.
36023# Shell code in configure.ac might set extrasub.
36024# FIXME: do we really want to maintain this feature?
36025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36026ac_sed_extra="$ac_vpsub
36027$extrasub
36028_ACEOF
36029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36030:t
36031/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36032s|@configure_input@|$ac_sed_conf_input|;t t
36033s&@top_builddir@&$ac_top_builddir_sub&;t t
36034s&@top_build_prefix@&$ac_top_build_prefix&;t t
36035s&@srcdir@&$ac_srcdir&;t t
36036s&@abs_srcdir@&$ac_abs_srcdir&;t t
36037s&@top_srcdir@&$ac_top_srcdir&;t t
36038s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36039s&@builddir@&$ac_builddir&;t t
36040s&@abs_builddir@&$ac_abs_builddir&;t t
36041s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36042s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036043s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036044$ac_datarootdir_hack
36045"
cristyda16f162011-02-19 23:52:17 +000036046eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36047 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036048
36049test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036050 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36051 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36052 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036054which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036055$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036056which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036057
cristyda16f162011-02-19 23:52:17 +000036058 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036059 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036060 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36061 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036062 esac \
cristy98dddb52010-11-04 00:30:15 +000036063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036064 ;;
36065 :H)
36066 #
36067 # CONFIG_HEADER
36068 #
36069 if test x"$ac_file" != x-; then
36070 {
36071 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036072 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36073 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036075 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036076 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036077$as_echo "$as_me: $ac_file is unchanged" >&6;}
36078 else
36079 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036080 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036081 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036082 fi
36083 else
36084 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036085 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036086 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036087 fi
cristy73bd4a52010-10-05 11:24:23 +000036088# Compute "$ac_file"'s index in $config_headers.
36089_am_arg="$ac_file"
36090_am_stamp_count=1
36091for _am_header in $config_headers :; do
36092 case $_am_header in
36093 $_am_arg | $_am_arg:* )
36094 break ;;
36095 * )
36096 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36097 esac
36098done
36099echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36100$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36101 X"$_am_arg" : 'X\(//\)[^/]' \| \
36102 X"$_am_arg" : 'X\(//\)$' \| \
36103 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36104$as_echo X"$_am_arg" |
36105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36106 s//\1/
36107 q
36108 }
36109 /^X\(\/\/\)[^/].*/{
36110 s//\1/
36111 q
36112 }
36113 /^X\(\/\/\)$/{
36114 s//\1/
36115 q
36116 }
36117 /^X\(\/\).*/{
36118 s//\1/
36119 q
36120 }
36121 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036122 ;;
36123
cristy8b350f62009-11-15 23:12:43 +000036124 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036125$as_echo "$as_me: executing $ac_file commands" >&6;}
36126 ;;
36127 esac
36128
36129
36130 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036131 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000036132ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36133ac_prefix_conf_PKG=`echo MagickCore`
36134ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36135ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36136ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36137if test ".$ac_prefix_conf_INP" = "."; then
36138 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36139 case "$ac_file" in
36140 *.h) ac_prefix_conf_INP=$ac_file ;;
36141 *)
36142 esac
36143 test ".$ac_prefix_conf_INP" != "." && break
36144 done
36145fi
36146if test ".$ac_prefix_conf_INP" = "."; then
36147 case "$ac_prefix_conf_OUT" in
36148 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36149 ;;
36150 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36151 ;;
36152 *) ac_prefix_conf_INP=config.h
36153 ;;
36154 esac
36155fi
36156if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036157 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036158else
36159 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36160 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36161 fi fi
36162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36163$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36164 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036165 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36166 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36167 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36168 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36169 $as_echo "#endif/" >> conftest.prefix
36170 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36171 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36172 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036173 # now executing _script on _DEF input to create _OUT output file
36174 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36175 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36176 echo ' ' >>$tmp/pconfig.h
36177 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36178
36179 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36180 echo ' ' >>$tmp/pconfig.h
36181 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36182 echo "#endif" >>$tmp/pconfig.h
36183 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36185$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36186 else
36187 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36188$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36189 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36190 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36191 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36192$as_echo X"$ac_prefix_conf_OUT" |
36193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36194 s//\1/
36195 q
36196 }
36197 /^X\(\/\/\)[^/].*/{
36198 s//\1/
36199 q
36200 }
36201 /^X\(\/\/\)$/{
36202 s//\1/
36203 q
36204 }
36205 /^X\(\/\).*/{
36206 s//\1/
36207 q
36208 }
36209 s/.*/./; q'`
36210 as_dir="$ac_dir"; as_fn_mkdir_p
36211 rm -f "$ac_prefix_conf_OUT"
36212 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36213 fi
36214 cp conftest.prefix _configs.sed
36215 else
cristy98dddb52010-11-04 00:30:15 +000036216 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 +000036217 fi
36218 rm -f conftest.*
36219fi
36220 ;;
36221 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36222 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36223 # are listed without --file. Let's play safe and only enable the eval
36224 # if we detect the quoting.
36225 case $CONFIG_FILES in
36226 *\'*) eval set x "$CONFIG_FILES" ;;
36227 *) set x $CONFIG_FILES ;;
36228 esac
36229 shift
36230 for mf
36231 do
36232 # Strip MF so we end up with the name of the file.
36233 mf=`echo "$mf" | sed -e 's/:.*$//'`
36234 # Check whether this is an Automake generated Makefile or not.
36235 # We used to match only the files named `Makefile.in', but
36236 # some people rename them; so instead we look at the file content.
36237 # Grep'ing the first line is not enough: some people post-process
36238 # each Makefile.in and add a new line on top of each file to say so.
36239 # Grep'ing the whole file is not good either: AIX grep has a line
36240 # limit of 2048, but all sed's we know have understand at least 4000.
36241 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36242 dirpart=`$as_dirname -- "$mf" ||
36243$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36244 X"$mf" : 'X\(//\)[^/]' \| \
36245 X"$mf" : 'X\(//\)$' \| \
36246 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36247$as_echo X"$mf" |
36248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36249 s//\1/
36250 q
36251 }
36252 /^X\(\/\/\)[^/].*/{
36253 s//\1/
36254 q
36255 }
36256 /^X\(\/\/\)$/{
36257 s//\1/
36258 q
36259 }
36260 /^X\(\/\).*/{
36261 s//\1/
36262 q
36263 }
36264 s/.*/./; q'`
36265 else
36266 continue
36267 fi
36268 # Extract the definition of DEPDIR, am__include, and am__quote
36269 # from the Makefile without running `make'.
36270 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36271 test -z "$DEPDIR" && continue
36272 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36273 test -z "am__include" && continue
36274 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36275 # When using ansi2knr, U may be empty or an underscore; expand it
36276 U=`sed -n 's/^U = //p' < "$mf"`
36277 # Find all dependency output files, they are included files with
36278 # $(DEPDIR) in their names. We invoke sed twice because it is the
36279 # simplest approach to changing $(DEPDIR) to its actual value in the
36280 # expansion.
36281 for file in `sed -n "
36282 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36283 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36284 # Make sure the directory exists.
36285 test -f "$dirpart/$file" && continue
36286 fdir=`$as_dirname -- "$file" ||
36287$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36288 X"$file" : 'X\(//\)[^/]' \| \
36289 X"$file" : 'X\(//\)$' \| \
36290 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36291$as_echo X"$file" |
36292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36293 s//\1/
36294 q
36295 }
36296 /^X\(\/\/\)[^/].*/{
36297 s//\1/
36298 q
36299 }
36300 /^X\(\/\/\)$/{
36301 s//\1/
36302 q
36303 }
36304 /^X\(\/\).*/{
36305 s//\1/
36306 q
36307 }
36308 s/.*/./; q'`
36309 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36310 # echo "creating $dirpart/$file"
36311 echo '# dummy' > "$dirpart/$file"
36312 done
36313 done
36314}
36315 ;;
36316 "libtool":C)
36317
36318 # See if we are running on zsh, and set the options which allow our
36319 # commands through without removal of \ escapes.
36320 if test -n "${ZSH_VERSION+set}" ; then
36321 setopt NO_GLOB_SUBST
36322 fi
36323
36324 cfgfile="${ofile}T"
36325 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36326 $RM "$cfgfile"
36327
36328 cat <<_LT_EOF >> "$cfgfile"
36329#! $SHELL
36330
36331# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36332# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36333# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36334# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36335#
36336# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000036337# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36338# Inc.
cristy73bd4a52010-10-05 11:24:23 +000036339# Written by Gordon Matzigkeit, 1996
36340#
36341# This file is part of GNU Libtool.
36342#
36343# GNU Libtool is free software; you can redistribute it and/or
36344# modify it under the terms of the GNU General Public License as
36345# published by the Free Software Foundation; either version 2 of
36346# the License, or (at your option) any later version.
36347#
36348# As a special exception to the GNU General Public License,
36349# if you distribute this file as part of a program or library that
36350# is built using GNU Libtool, you may include this file under the
36351# same distribution terms that you use for the rest of that program.
36352#
36353# GNU Libtool is distributed in the hope that it will be useful,
36354# but WITHOUT ANY WARRANTY; without even the implied warranty of
36355# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36356# GNU General Public License for more details.
36357#
36358# You should have received a copy of the GNU General Public License
36359# along with GNU Libtool; see the file COPYING. If not, a copy
36360# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36361# obtained by writing to the Free Software Foundation, Inc.,
36362# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36363
36364
36365# The names of the tagged configurations supported by this script.
36366available_tags="CXX "
36367
36368# ### BEGIN LIBTOOL CONFIG
36369
36370# A sed program that does not truncate output.
36371SED=$lt_SED
36372
36373# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36374Xsed="\$SED -e 1s/^X//"
36375
36376# A grep program that handles long lines.
36377GREP=$lt_GREP
36378
36379# An ERE matcher.
36380EGREP=$lt_EGREP
36381
36382# A literal string matcher.
36383FGREP=$lt_FGREP
36384
cristy0c60a692010-11-04 01:09:47 +000036385# Shell to use when invoking shell scripts.
36386SHELL=$lt_SHELL
36387
36388# An echo program that protects backslashes.
36389ECHO=$lt_ECHO
36390
cristy73bd4a52010-10-05 11:24:23 +000036391# Which release of libtool.m4 was used?
36392macro_version=$macro_version
36393macro_revision=$macro_revision
36394
36395# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000036396AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000036397
36398# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000036399DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000036400
36401# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000036402OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000036403
36404# Whether or not to build shared libraries.
36405build_libtool_libs=$enable_shared
36406
36407# Whether or not to build static libraries.
36408build_old_libs=$enable_static
36409
36410# What type of objects to build.
36411pic_mode=$pic_mode
36412
36413# Whether or not to optimize for fast installation.
36414fast_install=$enable_fast_install
36415
36416# The host system.
36417host_alias=$host_alias
36418host=$host
36419host_os=$host_os
36420
36421# The build system.
36422build_alias=$build_alias
36423build=$build
36424build_os=$build_os
36425
36426# A BSD- or MS-compatible name lister.
36427NM=$lt_NM
36428
36429# Whether we need soft or hard links.
36430LN_S=$lt_LN_S
36431
36432# What is the maximum length of a command?
36433max_cmd_len=$max_cmd_len
36434
36435# Object file suffix (normally "o").
36436objext=$ac_objext
36437
36438# Executable file suffix (normally "").
36439exeext=$exeext
36440
36441# whether the shell understands "unset".
36442lt_unset=$lt_unset
36443
36444# turn spaces into newlines.
36445SP2NL=$lt_lt_SP2NL
36446
36447# turn newlines into spaces.
36448NL2SP=$lt_lt_NL2SP
36449
cristyda16f162011-02-19 23:52:17 +000036450# convert \$build file names to \$host format.
36451to_host_file_cmd=$lt_cv_to_host_file_cmd
36452
36453# convert \$build files to toolchain format.
36454to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36455
cristy73bd4a52010-10-05 11:24:23 +000036456# Method to check whether dependent libraries are shared objects.
36457deplibs_check_method=$lt_deplibs_check_method
36458
cristyda16f162011-02-19 23:52:17 +000036459# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000036460file_magic_cmd=$lt_file_magic_cmd
36461
cristyda16f162011-02-19 23:52:17 +000036462# How to find potential files when deplibs_check_method = "file_magic".
36463file_magic_glob=$lt_file_magic_glob
36464
36465# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36466want_nocaseglob=$lt_want_nocaseglob
36467
36468# Command to associate shared and link libraries.
36469sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36470
cristy73bd4a52010-10-05 11:24:23 +000036471# The archiver.
36472AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000036473
36474# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000036475AR_FLAGS=$lt_AR_FLAGS
36476
cristyda16f162011-02-19 23:52:17 +000036477# How to feed a file listing to the archiver.
36478archiver_list_spec=$lt_archiver_list_spec
36479
cristy73bd4a52010-10-05 11:24:23 +000036480# A symbol stripping program.
36481STRIP=$lt_STRIP
36482
36483# Commands used to install an old-style archive.
36484RANLIB=$lt_RANLIB
36485old_postinstall_cmds=$lt_old_postinstall_cmds
36486old_postuninstall_cmds=$lt_old_postuninstall_cmds
36487
cristy0c60a692010-11-04 01:09:47 +000036488# Whether to use a lock for old archive extraction.
36489lock_old_archive_extraction=$lock_old_archive_extraction
36490
cristy73bd4a52010-10-05 11:24:23 +000036491# A C compiler.
36492LTCC=$lt_CC
36493
36494# LTCC compiler flags.
36495LTCFLAGS=$lt_CFLAGS
36496
36497# Take the output of nm and produce a listing of raw symbols and C names.
36498global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36499
36500# Transform the output of nm in a proper C declaration.
36501global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36502
36503# Transform the output of nm in a C name address pair.
36504global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36505
36506# Transform the output of nm in a C name address pair when lib prefix is needed.
36507global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36508
cristyda16f162011-02-19 23:52:17 +000036509# Specify filename containing input files for \$NM.
36510nm_file_list_spec=$lt_nm_file_list_spec
36511
36512# The root where to search for dependent libraries,and in which our libraries should be installed.
36513lt_sysroot=$lt_sysroot
36514
cristy73bd4a52010-10-05 11:24:23 +000036515# The name of the directory that contains temporary libtool files.
36516objdir=$objdir
36517
cristy73bd4a52010-10-05 11:24:23 +000036518# Used to examine libraries when file_magic_cmd begins with "file".
36519MAGIC_CMD=$MAGIC_CMD
36520
36521# Must we lock files when doing compilation?
36522need_locks=$lt_need_locks
36523
cristyda16f162011-02-19 23:52:17 +000036524# Manifest tool.
36525MANIFEST_TOOL=$lt_MANIFEST_TOOL
36526
cristy73bd4a52010-10-05 11:24:23 +000036527# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36528DSYMUTIL=$lt_DSYMUTIL
36529
36530# Tool to change global to local symbols on Mac OS X.
36531NMEDIT=$lt_NMEDIT
36532
36533# Tool to manipulate fat objects and archives on Mac OS X.
36534LIPO=$lt_LIPO
36535
36536# ldd/readelf like tool for Mach-O binaries on Mac OS X.
36537OTOOL=$lt_OTOOL
36538
36539# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36540OTOOL64=$lt_OTOOL64
36541
36542# Old archive suffix (normally "a").
36543libext=$libext
36544
36545# Shared library suffix (normally ".so").
36546shrext_cmds=$lt_shrext_cmds
36547
36548# The commands to extract the exported symbol list from a shared archive.
36549extract_expsyms_cmds=$lt_extract_expsyms_cmds
36550
36551# Variables whose values should be saved in libtool wrapper scripts and
36552# restored at link time.
36553variables_saved_for_relink=$lt_variables_saved_for_relink
36554
36555# Do we need the "lib" prefix for modules?
36556need_lib_prefix=$need_lib_prefix
36557
36558# Do we need a version for libraries?
36559need_version=$need_version
36560
36561# Library versioning type.
36562version_type=$version_type
36563
36564# Shared library runtime path variable.
36565runpath_var=$runpath_var
36566
36567# Shared library path variable.
36568shlibpath_var=$shlibpath_var
36569
36570# Is shlibpath searched before the hard-coded library search path?
36571shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36572
36573# Format of library name prefix.
36574libname_spec=$lt_libname_spec
36575
36576# List of archive names. First name is the real one, the rest are links.
36577# The last name is the one that the linker finds with -lNAME
36578library_names_spec=$lt_library_names_spec
36579
36580# The coded name of the library, if different from the real name.
36581soname_spec=$lt_soname_spec
36582
cristy0c60a692010-11-04 01:09:47 +000036583# Permission mode override for installation of shared libraries.
36584install_override_mode=$lt_install_override_mode
36585
cristy73bd4a52010-10-05 11:24:23 +000036586# Command to use after installation of a shared archive.
36587postinstall_cmds=$lt_postinstall_cmds
36588
36589# Command to use after uninstallation of a shared archive.
36590postuninstall_cmds=$lt_postuninstall_cmds
36591
36592# Commands used to finish a libtool library installation in a directory.
36593finish_cmds=$lt_finish_cmds
36594
36595# As "finish_cmds", except a single script fragment to be evaled but
36596# not shown.
36597finish_eval=$lt_finish_eval
36598
36599# Whether we should hardcode library paths into libraries.
36600hardcode_into_libs=$hardcode_into_libs
36601
36602# Compile-time system search path for libraries.
36603sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36604
36605# Run-time system search path for libraries.
36606sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36607
36608# Whether dlopen is supported.
36609dlopen_support=$enable_dlopen
36610
36611# Whether dlopen of programs is supported.
36612dlopen_self=$enable_dlopen_self
36613
36614# Whether dlopen of statically linked programs is supported.
36615dlopen_self_static=$enable_dlopen_self_static
36616
36617# Commands to strip libraries.
36618old_striplib=$lt_old_striplib
36619striplib=$lt_striplib
36620
36621
36622# The linker used to build libraries.
36623LD=$lt_LD
36624
cristy0c60a692010-11-04 01:09:47 +000036625# How to create reloadable object files.
36626reload_flag=$lt_reload_flag
36627reload_cmds=$lt_reload_cmds
36628
cristy73bd4a52010-10-05 11:24:23 +000036629# Commands used to build an old-style archive.
36630old_archive_cmds=$lt_old_archive_cmds
36631
36632# A language specific compiler.
36633CC=$lt_compiler
36634
36635# Is the compiler the GNU compiler?
36636with_gcc=$GCC
36637
36638# Compiler flag to turn off builtin functions.
36639no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36640
cristy73bd4a52010-10-05 11:24:23 +000036641# Additional compiler flags for building library objects.
36642pic_flag=$lt_lt_prog_compiler_pic
36643
cristyda16f162011-02-19 23:52:17 +000036644# How to pass a linker flag through the compiler.
36645wl=$lt_lt_prog_compiler_wl
36646
cristy73bd4a52010-10-05 11:24:23 +000036647# Compiler flag to prevent dynamic linking.
36648link_static_flag=$lt_lt_prog_compiler_static
36649
36650# Does compiler simultaneously support -c and -o options?
36651compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36652
36653# Whether or not to add -lc for building shared libraries.
36654build_libtool_need_lc=$archive_cmds_need_lc
36655
36656# Whether or not to disallow shared libs when runtime libs are static.
36657allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36658
36659# Compiler flag to allow reflexive dlopens.
36660export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36661
36662# Compiler flag to generate shared objects directly from archives.
36663whole_archive_flag_spec=$lt_whole_archive_flag_spec
36664
36665# Whether the compiler copes with passing no objects directly.
36666compiler_needs_object=$lt_compiler_needs_object
36667
36668# Create an old-style archive from a shared archive.
36669old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36670
36671# Create a temporary old-style archive to link instead of a shared archive.
36672old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36673
36674# Commands used to build a shared archive.
36675archive_cmds=$lt_archive_cmds
36676archive_expsym_cmds=$lt_archive_expsym_cmds
36677
36678# Commands used to build a loadable module if different from building
36679# a shared archive.
36680module_cmds=$lt_module_cmds
36681module_expsym_cmds=$lt_module_expsym_cmds
36682
36683# Whether we are building with GNU ld or not.
36684with_gnu_ld=$lt_with_gnu_ld
36685
36686# Flag that allows shared libraries with undefined symbols to be built.
36687allow_undefined_flag=$lt_allow_undefined_flag
36688
36689# Flag that enforces no undefined symbols.
36690no_undefined_flag=$lt_no_undefined_flag
36691
36692# Flag to hardcode \$libdir into a binary during linking.
36693# This must work even if \$libdir does not exist
36694hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36695
36696# If ld is used when linking, flag to hardcode \$libdir into a binary
36697# during linking. This must work even if \$libdir does not exist.
36698hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36699
36700# Whether we need a single "-rpath" flag with a separated argument.
36701hardcode_libdir_separator=$lt_hardcode_libdir_separator
36702
36703# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36704# DIR into the resulting binary.
36705hardcode_direct=$hardcode_direct
36706
36707# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36708# DIR into the resulting binary and the resulting library dependency is
36709# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36710# library is relocated.
36711hardcode_direct_absolute=$hardcode_direct_absolute
36712
36713# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36714# into the resulting binary.
36715hardcode_minus_L=$hardcode_minus_L
36716
36717# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36718# into the resulting binary.
36719hardcode_shlibpath_var=$hardcode_shlibpath_var
36720
36721# Set to "yes" if building a shared library automatically hardcodes DIR
36722# into the library and all subsequent libraries and executables linked
36723# against it.
36724hardcode_automatic=$hardcode_automatic
36725
36726# Set to yes if linker adds runtime paths of dependent libraries
36727# to runtime path list.
36728inherit_rpath=$inherit_rpath
36729
36730# Whether libtool must link a program against all its dependency libraries.
36731link_all_deplibs=$link_all_deplibs
36732
cristy73bd4a52010-10-05 11:24:23 +000036733# Set to "yes" if exported symbols are required.
36734always_export_symbols=$always_export_symbols
36735
36736# The commands to list exported symbols.
36737export_symbols_cmds=$lt_export_symbols_cmds
36738
36739# Symbols that should not be listed in the preloaded symbols.
36740exclude_expsyms=$lt_exclude_expsyms
36741
36742# Symbols that must always be exported.
36743include_expsyms=$lt_include_expsyms
36744
36745# Commands necessary for linking programs (against libraries) with templates.
36746prelink_cmds=$lt_prelink_cmds
36747
cristyda16f162011-02-19 23:52:17 +000036748# Commands necessary for finishing linking programs.
36749postlink_cmds=$lt_postlink_cmds
36750
cristy73bd4a52010-10-05 11:24:23 +000036751# Specify filename containing input files.
36752file_list_spec=$lt_file_list_spec
36753
36754# How to hardcode a shared library path into an executable.
36755hardcode_action=$hardcode_action
36756
36757# The directories searched by this compiler when creating a shared library.
36758compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36759
36760# Dependencies to place before and after the objects being linked to
36761# create a shared library.
36762predep_objects=$lt_predep_objects
36763postdep_objects=$lt_postdep_objects
36764predeps=$lt_predeps
36765postdeps=$lt_postdeps
36766
36767# The library search path used internally by the compiler when linking
36768# a shared library.
36769compiler_lib_search_path=$lt_compiler_lib_search_path
36770
36771# ### END LIBTOOL CONFIG
36772
36773_LT_EOF
36774
36775 case $host_os in
36776 aix3*)
36777 cat <<\_LT_EOF >> "$cfgfile"
36778# AIX sometimes has problems with the GCC collect2 program. For some
36779# reason, if we set the COLLECT_NAMES environment variable, the problems
36780# vanish in a puff of smoke.
36781if test "X${COLLECT_NAMES+set}" != Xset; then
36782 COLLECT_NAMES=
36783 export COLLECT_NAMES
36784fi
36785_LT_EOF
36786 ;;
36787 esac
36788
36789
36790ltmain="$ac_aux_dir/ltmain.sh"
36791
36792
36793 # We use sed instead of cat because bash on DJGPP gets confused if
36794 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36795 # text mode, it properly converts lines to CR/LF. This bash problem
36796 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036797 sed '$q' "$ltmain" >> "$cfgfile" \
36798 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036799
cristyda16f162011-02-19 23:52:17 +000036800 if test x"$xsi_shell" = xyes; then
36801 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36802func_dirname ()\
36803{\
36804\ case ${1} in\
36805\ */*) func_dirname_result="${1%/*}${2}" ;;\
36806\ * ) func_dirname_result="${3}" ;;\
36807\ esac\
36808} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36809 && mv -f "$cfgfile.tmp" "$cfgfile" \
36810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36811test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036812
36813
cristyda16f162011-02-19 23:52:17 +000036814 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36815func_basename ()\
36816{\
36817\ func_basename_result="${1##*/}"\
36818} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36819 && mv -f "$cfgfile.tmp" "$cfgfile" \
36820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36821test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036822
36823
cristyda16f162011-02-19 23:52:17 +000036824 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36825func_dirname_and_basename ()\
36826{\
36827\ case ${1} in\
36828\ */*) func_dirname_result="${1%/*}${2}" ;;\
36829\ * ) func_dirname_result="${3}" ;;\
36830\ esac\
36831\ func_basename_result="${1##*/}"\
36832} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36833 && mv -f "$cfgfile.tmp" "$cfgfile" \
36834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36835test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036836
cristyda16f162011-02-19 23:52:17 +000036837
36838 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36839func_stripname ()\
36840{\
36841\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36842\ # positional parameters, so assign one to ordinary parameter first.\
36843\ func_stripname_result=${3}\
36844\ func_stripname_result=${func_stripname_result#"${1}"}\
36845\ func_stripname_result=${func_stripname_result%"${2}"}\
36846} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36847 && mv -f "$cfgfile.tmp" "$cfgfile" \
36848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36849test 0 -eq $? || _lt_function_replace_fail=:
36850
36851
36852 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36853func_split_long_opt ()\
36854{\
36855\ func_split_long_opt_name=${1%%=*}\
36856\ func_split_long_opt_arg=${1#*=}\
36857} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36858 && mv -f "$cfgfile.tmp" "$cfgfile" \
36859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36860test 0 -eq $? || _lt_function_replace_fail=:
36861
36862
36863 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36864func_split_short_opt ()\
36865{\
36866\ func_split_short_opt_arg=${1#??}\
36867\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36868} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36869 && mv -f "$cfgfile.tmp" "$cfgfile" \
36870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36871test 0 -eq $? || _lt_function_replace_fail=:
36872
36873
36874 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36875func_lo2o ()\
36876{\
36877\ case ${1} in\
36878\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36879\ *) func_lo2o_result=${1} ;;\
36880\ esac\
36881} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36882 && mv -f "$cfgfile.tmp" "$cfgfile" \
36883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36884test 0 -eq $? || _lt_function_replace_fail=:
36885
36886
36887 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36888func_xform ()\
36889{\
36890 func_xform_result=${1%.*}.lo\
36891} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36892 && mv -f "$cfgfile.tmp" "$cfgfile" \
36893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36894test 0 -eq $? || _lt_function_replace_fail=:
36895
36896
36897 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36898func_arith ()\
36899{\
36900 func_arith_result=$(( $* ))\
36901} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36902 && mv -f "$cfgfile.tmp" "$cfgfile" \
36903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36904test 0 -eq $? || _lt_function_replace_fail=:
36905
36906
36907 sed -e '/^func_len ()$/,/^} # func_len /c\
36908func_len ()\
36909{\
36910 func_len_result=${#1}\
36911} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36912 && mv -f "$cfgfile.tmp" "$cfgfile" \
36913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36914test 0 -eq $? || _lt_function_replace_fail=:
36915
36916fi
36917
36918if test x"$lt_shell_append" = xyes; then
36919 sed -e '/^func_append ()$/,/^} # func_append /c\
36920func_append ()\
36921{\
36922 eval "${1}+=\\${2}"\
36923} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36924 && mv -f "$cfgfile.tmp" "$cfgfile" \
36925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36926test 0 -eq $? || _lt_function_replace_fail=:
36927
36928
36929 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36930func_append_quoted ()\
36931{\
36932\ func_quote_for_eval "${2}"\
36933\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36934} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36935 && mv -f "$cfgfile.tmp" "$cfgfile" \
36936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36937test 0 -eq $? || _lt_function_replace_fail=:
36938
36939
36940 # Save a `func_append' function call where possible by direct use of '+='
36941 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36942 && mv -f "$cfgfile.tmp" "$cfgfile" \
36943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36944 test 0 -eq $? || _lt_function_replace_fail=:
36945else
36946 # Save a `func_append' function call even when '+=' is not available
36947 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36948 && mv -f "$cfgfile.tmp" "$cfgfile" \
36949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36950 test 0 -eq $? || _lt_function_replace_fail=:
36951fi
36952
36953if test x"$_lt_function_replace_fail" = x":"; then
36954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36955$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36956fi
36957
36958
36959 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000036960 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36961 chmod +x "$ofile"
36962
36963
36964 cat <<_LT_EOF >> "$ofile"
36965
36966# ### BEGIN LIBTOOL TAG CONFIG: CXX
36967
36968# The linker used to build libraries.
36969LD=$lt_LD_CXX
36970
cristy0c60a692010-11-04 01:09:47 +000036971# How to create reloadable object files.
36972reload_flag=$lt_reload_flag_CXX
36973reload_cmds=$lt_reload_cmds_CXX
36974
cristy73bd4a52010-10-05 11:24:23 +000036975# Commands used to build an old-style archive.
36976old_archive_cmds=$lt_old_archive_cmds_CXX
36977
36978# A language specific compiler.
36979CC=$lt_compiler_CXX
36980
36981# Is the compiler the GNU compiler?
36982with_gcc=$GCC_CXX
36983
36984# Compiler flag to turn off builtin functions.
36985no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36986
cristy73bd4a52010-10-05 11:24:23 +000036987# Additional compiler flags for building library objects.
36988pic_flag=$lt_lt_prog_compiler_pic_CXX
36989
cristyda16f162011-02-19 23:52:17 +000036990# How to pass a linker flag through the compiler.
36991wl=$lt_lt_prog_compiler_wl_CXX
36992
cristy73bd4a52010-10-05 11:24:23 +000036993# Compiler flag to prevent dynamic linking.
36994link_static_flag=$lt_lt_prog_compiler_static_CXX
36995
36996# Does compiler simultaneously support -c and -o options?
36997compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36998
36999# Whether or not to add -lc for building shared libraries.
37000build_libtool_need_lc=$archive_cmds_need_lc_CXX
37001
37002# Whether or not to disallow shared libs when runtime libs are static.
37003allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37004
37005# Compiler flag to allow reflexive dlopens.
37006export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37007
37008# Compiler flag to generate shared objects directly from archives.
37009whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37010
37011# Whether the compiler copes with passing no objects directly.
37012compiler_needs_object=$lt_compiler_needs_object_CXX
37013
37014# Create an old-style archive from a shared archive.
37015old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37016
37017# Create a temporary old-style archive to link instead of a shared archive.
37018old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37019
37020# Commands used to build a shared archive.
37021archive_cmds=$lt_archive_cmds_CXX
37022archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37023
37024# Commands used to build a loadable module if different from building
37025# a shared archive.
37026module_cmds=$lt_module_cmds_CXX
37027module_expsym_cmds=$lt_module_expsym_cmds_CXX
37028
37029# Whether we are building with GNU ld or not.
37030with_gnu_ld=$lt_with_gnu_ld_CXX
37031
37032# Flag that allows shared libraries with undefined symbols to be built.
37033allow_undefined_flag=$lt_allow_undefined_flag_CXX
37034
37035# Flag that enforces no undefined symbols.
37036no_undefined_flag=$lt_no_undefined_flag_CXX
37037
37038# Flag to hardcode \$libdir into a binary during linking.
37039# This must work even if \$libdir does not exist
37040hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37041
37042# If ld is used when linking, flag to hardcode \$libdir into a binary
37043# during linking. This must work even if \$libdir does not exist.
37044hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37045
37046# Whether we need a single "-rpath" flag with a separated argument.
37047hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37048
37049# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37050# DIR into the resulting binary.
37051hardcode_direct=$hardcode_direct_CXX
37052
37053# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37054# DIR into the resulting binary and the resulting library dependency is
37055# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37056# library is relocated.
37057hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37058
37059# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37060# into the resulting binary.
37061hardcode_minus_L=$hardcode_minus_L_CXX
37062
37063# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37064# into the resulting binary.
37065hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37066
37067# Set to "yes" if building a shared library automatically hardcodes DIR
37068# into the library and all subsequent libraries and executables linked
37069# against it.
37070hardcode_automatic=$hardcode_automatic_CXX
37071
37072# Set to yes if linker adds runtime paths of dependent libraries
37073# to runtime path list.
37074inherit_rpath=$inherit_rpath_CXX
37075
37076# Whether libtool must link a program against all its dependency libraries.
37077link_all_deplibs=$link_all_deplibs_CXX
37078
cristy73bd4a52010-10-05 11:24:23 +000037079# Set to "yes" if exported symbols are required.
37080always_export_symbols=$always_export_symbols_CXX
37081
37082# The commands to list exported symbols.
37083export_symbols_cmds=$lt_export_symbols_cmds_CXX
37084
37085# Symbols that should not be listed in the preloaded symbols.
37086exclude_expsyms=$lt_exclude_expsyms_CXX
37087
37088# Symbols that must always be exported.
37089include_expsyms=$lt_include_expsyms_CXX
37090
37091# Commands necessary for linking programs (against libraries) with templates.
37092prelink_cmds=$lt_prelink_cmds_CXX
37093
cristyda16f162011-02-19 23:52:17 +000037094# Commands necessary for finishing linking programs.
37095postlink_cmds=$lt_postlink_cmds_CXX
37096
cristy73bd4a52010-10-05 11:24:23 +000037097# Specify filename containing input files.
37098file_list_spec=$lt_file_list_spec_CXX
37099
37100# How to hardcode a shared library path into an executable.
37101hardcode_action=$hardcode_action_CXX
37102
37103# The directories searched by this compiler when creating a shared library.
37104compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37105
37106# Dependencies to place before and after the objects being linked to
37107# create a shared library.
37108predep_objects=$lt_predep_objects_CXX
37109postdep_objects=$lt_postdep_objects_CXX
37110predeps=$lt_predeps_CXX
37111postdeps=$lt_postdeps_CXX
37112
37113# The library search path used internally by the compiler when linking
37114# a shared library.
37115compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37116
37117# ### END LIBTOOL TAG CONFIG: CXX
37118_LT_EOF
37119
37120 ;;
cristy4c08aed2011-07-01 19:47:50 +000037121 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037122 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037123 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37124 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37125
37126 esac
37127done # for ac_tag
37128
37129
cristy8b350f62009-11-15 23:12:43 +000037130as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037131_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037132ac_clean_files=$ac_clean_files_save
37133
37134test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037135 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037136
37137
37138# configure is writing to config.log, and then calls config.status.
37139# config.status does its own redirection, appending to config.log.
37140# Unfortunately, on DOS this fails, as config.log is still kept open
37141# by configure, so config.status won't be able to write to it; its
37142# output is simply discarded. So we exec the FD to /dev/null,
37143# effectively closing config.log, so it can be properly (re)opened and
37144# appended to by config.status. When coming back to configure, we
37145# need to make the FD available again.
37146if test "$no_create" != yes; then
37147 ac_cs_success=:
37148 ac_config_status_args=
37149 test "$silent" = yes &&
37150 ac_config_status_args="$ac_config_status_args --quiet"
37151 exec 5>/dev/null
37152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37153 exec 5>>config.log
37154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37155 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037156 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037157fi
37158if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037160$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37161fi
37162
37163
37164rm -f magick-version
37165
cristy430a7312010-01-21 20:44:04 +000037166result_dejavu_font_dir='none'
37167if test "${dejavu_font_dir}x" != 'x'; then
37168 result_dejavu_font_dir=$dejavu_font_dir
37169fi
37170
cristy3ed852e2009-09-05 21:47:34 +000037171result_ghostscript_font_dir='none'
37172if test "${ghostscript_font_dir}x" != 'x'; then
37173 result_ghostscript_font_dir=$ghostscript_font_dir
37174fi
37175
37176result_windows_font_dir='none'
37177if test "${windows_font_dir}x" != 'x'; then
37178 result_windows_font_dir=${windows_font_dir}
37179fi
37180
cristy8b350f62009-11-15 23:12:43 +000037181{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000037182ImageMagick is configured as follows. Please verify that this configuration
37183matches your expectations.
37184
37185Host system type: $host
37186Build system type: $build
37187
37188 Option Value
37189-------------------------------------------------------------------------------
37190Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37191Static libraries --enable-static=$enable_static $libtool_build_static_libs
37192Module support --with-modules=$with_modules $with_modules
37193GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37194Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37195High Dynamic Range Imagery
37196 --enable-hdri=$enable_hdri $enable_hdri
37197
37198Delegate Configuration:
37199BZLIB --with-bzlib=$with_bzlib $have_bzlib
37200Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037201Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037202DJVU --with-djvu=$with_djvu $have_djvu
37203DPS --with-dps=$with_dps $have_dps
37204FFTW --with-fftw=$with_fftw $have_fftw
37205FlashPIX --with-fpx=$with_fpx $have_fpx
37206FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37207FreeType --with-freetype=$with_freetype $have_freetype
37208GhostPCL None $PCLDelegate ($PCLVersion)
37209GhostXPS None $XPSDelegate ($XPSVersion)
37210Ghostscript None $PSDelegate ($GSVersion)
37211Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37212Ghostscript lib --with-gslib=$with_gslib $have_gslib
37213Graphviz --with-gvc=$with_gvc $have_gvc
37214JBIG --with-jbig=$with_jbig $have_jbig
37215JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37216JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037217LCMS v1 --with-lcms=$with_lcms $have_lcms
37218LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037219LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037220LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037221Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37222OpenEXR --with-openexr=$with_openexr $have_openexr
37223PERL --with-perl=$with_perl $have_perl
37224PNG --with-png=$with_png $have_png
37225RSVG --with-rsvg=$with_rsvg $have_rsvg
37226TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037227WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037228Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37229WMF --with-wmf=$with_wmf $have_wmf
37230X11 --with-x=$with_x $have_x
37231XML --with-xml=$with_xml $have_xml
37232ZLIB --with-zlib=$with_zlib $have_zlib
37233
37234X11 Configuration:
37235 X_CFLAGS = $X_CFLAGS
37236 X_PRE_LIBS = $X_PRE_LIBS
37237 X_LIBS = $X_LIBS
37238 X_EXTRA_LIBS = $X_EXTRA_LIBS
37239
37240Options used to compile and link:
37241 PREFIX = $PREFIX_DIR
37242 EXEC-PREFIX = $EXEC_PREFIX_DIR
37243 VERSION = $PACKAGE_VERSION
37244 CC = $CC
37245 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037246 CPPFLAGS = $MAGICK_CPPFLAGS
37247 PCFLAGS = $MAGICK_PCFLAGS
37248 DEFS = $DEFS
37249 LDFLAGS = $LDFLAGS
37250 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37251 LIBS = $MAGICK_LIBS
37252 CXX = $CXX
37253 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037254 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037255" >&5
37256$as_echo "
37257ImageMagick is configured as follows. Please verify that this configuration
37258matches your expectations.
37259
37260Host system type: $host
37261Build system type: $build
37262
37263 Option Value
37264-------------------------------------------------------------------------------
37265Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37266Static libraries --enable-static=$enable_static $libtool_build_static_libs
37267Module support --with-modules=$with_modules $with_modules
37268GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37269Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37270High Dynamic Range Imagery
37271 --enable-hdri=$enable_hdri $enable_hdri
37272
37273Delegate Configuration:
37274BZLIB --with-bzlib=$with_bzlib $have_bzlib
37275Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037276Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037277DJVU --with-djvu=$with_djvu $have_djvu
37278DPS --with-dps=$with_dps $have_dps
37279FFTW --with-fftw=$with_fftw $have_fftw
37280FlashPIX --with-fpx=$with_fpx $have_fpx
37281FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37282FreeType --with-freetype=$with_freetype $have_freetype
37283GhostPCL None $PCLDelegate ($PCLVersion)
37284GhostXPS None $XPSDelegate ($XPSVersion)
37285Ghostscript None $PSDelegate ($GSVersion)
37286Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37287Ghostscript lib --with-gslib=$with_gslib $have_gslib
37288Graphviz --with-gvc=$with_gvc $have_gvc
37289JBIG --with-jbig=$with_jbig $have_jbig
37290JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37291JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037292LCMS v1 --with-lcms=$with_lcms $have_lcms
37293LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037294LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037295LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037296Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37297OpenEXR --with-openexr=$with_openexr $have_openexr
37298PERL --with-perl=$with_perl $have_perl
37299PNG --with-png=$with_png $have_png
37300RSVG --with-rsvg=$with_rsvg $have_rsvg
37301TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037302WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037303Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37304WMF --with-wmf=$with_wmf $have_wmf
37305X11 --with-x=$with_x $have_x
37306XML --with-xml=$with_xml $have_xml
37307ZLIB --with-zlib=$with_zlib $have_zlib
37308
37309X11 Configuration:
37310 X_CFLAGS = $X_CFLAGS
37311 X_PRE_LIBS = $X_PRE_LIBS
37312 X_LIBS = $X_LIBS
37313 X_EXTRA_LIBS = $X_EXTRA_LIBS
37314
37315Options used to compile and link:
37316 PREFIX = $PREFIX_DIR
37317 EXEC-PREFIX = $EXEC_PREFIX_DIR
37318 VERSION = $PACKAGE_VERSION
37319 CC = $CC
37320 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037321 CPPFLAGS = $MAGICK_CPPFLAGS
37322 PCFLAGS = $MAGICK_PCFLAGS
37323 DEFS = $DEFS
37324 LDFLAGS = $LDFLAGS
37325 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37326 LIBS = $MAGICK_LIBS
37327 CXX = $CXX
37328 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037329 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037330" >&6; }