blob: 5ae82f1557e3a434ba5b8a4684d467421d8bf068 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000724SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000725SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000726CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000732INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000733PERLMAINCC
734XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735XML_DELEGATE_FALSE
736XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000737xml2_config
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
cristy81beccd2011-10-03 18:17:24 +0000755PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000756PNG_DELEGATE_FALSE
757PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000758PANGOFT2_DELEGATE_FALSE
759PANGOFT2_DELEGATE_TRUE
760PANGO_DELEGATE_FALSE
761PANGO_DELEGATE_TRUE
762PANGO_LIBS
763PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000764OPENEXR_DELEGATE_FALSE
765OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000766OPENEXR_LIBS
767OPENEXR_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000768LZMA_LIBS
cristyfbb0ef02010-12-19 02:32:11 +0000769LZMA_DELEGATE_FALSE
770LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000771LQR_DELEGATE_FALSE
772LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773LQR_LIBS
774LQR_CFLAGS
775LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000776LCMS_DELEGATE_FALSE
777LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000778JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000779JP2_DELEGATE_FALSE
780JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000782JPEG_DELEGATE_FALSE
783JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000784JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785JBIG_DELEGATE_FALSE
786JBIG_DELEGATE_TRUE
787GVC_DELEGATE_FALSE
788GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789GVC_LIBS
790GVC_CFLAGS
791GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000792GS_DELEGATE_FALSE
793GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000794FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FREETYPE_DELEGATE_FALSE
796FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000797freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000798FONTCONFIG_DELEGATE_FALSE
799FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800FONTCONFIG_LIBS
801FONTCONFIG_CFLAGS
802FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000803FPX_DELEGATE_FALSE
804FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000805FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000806FFTW_DELEGATE_FALSE
807FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000809DJVU_DELEGATE_FALSE
810DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812DPS_DELEGATE_FALSE
813DPS_DELEGATE_TRUE
814AUTOTRACE_DELEGATE_FALSE
815AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816AUTOTRACE_LIBS
817AUTOTRACE_CFLAGS
818LIB_DL
819ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820ZLIB_DELEGATE_FALSE
821ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822XEXT_LIBS
823X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824X11_DELEGATE_FALSE
825X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826X_EXTRA_LIBS
827X_LIBS
828X_PRE_LIBS
829X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000830XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000831BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832BZLIB_DELEGATE_FALSE
833BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834CCMALLOCDelegate
835UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000836HasUMEM_FALSE
837HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838THREAD_LIBS
839GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840WITH_MAGICK_PLUS_PLUS_FALSE
841WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000843MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000844POW_LIB
845LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000846UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000848UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000850UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000851UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000852INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000853INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000854UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000855UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000856INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000857INT32_T
858UINT16_T
859INT16_T
860UINT8_T
861INT8_T
862LIBRARY_EXTRA_CPPFLAGS
863MODULE_EXTRA_CPPFLAGS
864LIBSTDCLDFLAGS
865PERL_MAKE_OPTIONS
866QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000867MAINT
868MAINTAINER_MODE_FALSE
869MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000870MAGICK_HDRI
871DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000872WITH_LTDL_FALSE
873WITH_LTDL_TRUE
874WITH_MODULES_FALSE
875WITH_MODULES_TRUE
876WITH_SHARED_LIBS_FALSE
877WITH_SHARED_LIBS_TRUE
878LTDLOPEN
879LT_CONFIG_H
880CONVENIENCE_LTDL_FALSE
881CONVENIENCE_LTDL_TRUE
882INSTALL_LTDL_FALSE
883INSTALL_LTDL_TRUE
884ARGZ_H
885sys_symbol_underscore
886LIBADD_DL
887LT_DLPREOPEN
888LIBADD_DLD_LINK
889LIBADD_SHL_LOAD
890LIBADD_DLOPEN
891LT_DLLOADERS
892INCLTDL
893LTDLINCL
894LTDLDEPS
895LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000896LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000897CXXCPP
898OTOOL64
899OTOOL
900LIPO
901NMEDIT
902DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000903MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000904RANLIB
cristyda16f162011-02-19 23:52:17 +0000905ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000906AR
907NM
908ac_ct_DUMPBIN
909DUMPBIN
910LIBTOOL
911OBJDUMP
912DLLTOOL
913AS
cristy3ed852e2009-09-05 21:47:34 +0000914LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000915CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000916CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000917OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000918PTHREAD_CFLAGS
919PTHREAD_LIBS
920PTHREAD_CC
921ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000922SHAREARCH_DIR
923INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000924WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000925USING_CL_FALSE
926USING_CL_TRUE
927CYGWIN_BUILD_FALSE
928CYGWIN_BUILD_TRUE
929WIN32_NATIVE_BUILD_FALSE
930WIN32_NATIVE_BUILD_TRUE
931WINGDI32_DELEGATE_FALSE
932WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000933GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000934PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000935LN_S
cristy3ed852e2009-09-05 21:47:34 +0000936LD
cristy73bd4a52010-10-05 11:24:23 +0000937FGREP
938SED
939am__fastdepCXX_FALSE
940am__fastdepCXX_TRUE
941CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000942ac_ct_CXX
943CXXFLAGS
944CXX
cristya0b81c32010-01-22 02:54:33 +0000945EGREP
946GREP
947CPP
cristy73bd4a52010-10-05 11:24:23 +0000948am__fastdepCC_FALSE
949am__fastdepCC_TRUE
950CCDEPMODE
951AMDEPBACKSLASH
952AMDEP_FALSE
953AMDEP_TRUE
954am__quote
955am__include
956DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000957OBJEXT
958EXEEXT
959ac_ct_CC
960CPPFLAGS
961LDFLAGS
962CFLAGS
963CC
964DIRSEP
965MAGICK_FILTER_MODULE_PATH
966MAGICK_CONFIGURE_BUILD_PATH
967MAGICK_CONFIGURE_SRC_PATH
968MAGICK_CODER_MODULE_PATH
969MAN_DIR
970INFO_DIR
971PERSISTINCLUDE_DIR
972INCLUDE_DIR
973LIB_DIR
974LOCALSTATE_DIR
975SHAREDSTATE_DIR
976SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000977DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000978DATA_DIR
979LIBEXEC_DIR
980SBIN_DIR
981BIN_DIR
982EXEC_PREFIX_DIR
983PREFIX_DIR
984CONFIG_STATUS_DEPENDENCIES
985MAGICK_LIB_VERSION_NUMBER
986MAGICK_LIB_VERSION_TEXT
987MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000988AM_BACKSLASH
989AM_DEFAULT_VERBOSITY
990am__untar
991am__tar
992AMTAR
993am__leading_dot
994SET_MAKE
995AWK
996mkdir_p
997MKDIR_P
998INSTALL_STRIP_PROGRAM
999STRIP
1000install_sh
1001MAKEINFO
1002AUTOHEADER
1003AUTOMAKE
1004AUTOCONF
1005ACLOCAL
1006VERSION
1007PACKAGE
1008CYGPATH_W
1009am__isrc
1010INSTALL_DATA
1011INSTALL_SCRIPT
1012INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001013PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001014PACKAGE_RELEASE_DATE
1015PACKAGE_LIB_VERSION_NUMBER
1016PACKAGE_LIB_VERSION
1017PACKAGE_CHANGE_DATE
1018PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001019PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001020MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001021MAGICK_LIBRARY_VERSION_INFO
1022MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001023MAGICK_LIBRARY_AGE
1024MAGICK_LIBRARY_REVISION
1025MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001026MAGICK_TARGET_OS
1027MAGICK_TARGET_VENDOR
1028MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001029target_os
1030target_vendor
1031target_cpu
1032target
1033host_os
1034host_vendor
1035host_cpu
1036host
1037build_os
1038build_vendor
1039build_cpu
1040build
1041CONFIGURE_ARGS
1042DISTCHECK_CONFIG_FLAGS
1043target_alias
1044host_alias
1045build_alias
1046LIBS
1047ECHO_T
1048ECHO_N
1049ECHO_C
1050DEFS
1051mandir
1052localedir
1053libdir
1054psdir
1055pdfdir
1056dvidir
1057htmldir
1058infodir
1059docdir
1060oldincludedir
1061includedir
1062localstatedir
1063sharedstatedir
1064sysconfdir
1065datadir
1066datarootdir
1067libexecdir
1068sbindir
1069bindir
1070program_transform_name
1071prefix
1072exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001073PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001074PACKAGE_BUGREPORT
1075PACKAGE_STRING
1076PACKAGE_VERSION
1077PACKAGE_TARNAME
1078PACKAGE_NAME
1079PATH_SEPARATOR
1080SHELL'
1081ac_subst_files=''
1082ac_user_opts='
1083enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001084enable_silent_rules
1085enable_dependency_tracking
1086with_gnu_ld
1087with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001088enable_bounds_checking
1089enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001090with_includearch_dir
1091with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001092with_threads
1093enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001094enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001095enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001096enable_shared
1097enable_static
1098with_pic
1099enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001100with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001101enable_libtool_lock
1102with_included_ltdl
1103with_ltdl_include
1104with_ltdl_lib
1105enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001106with_modules
1107enable_delegate_build
1108enable_deprecated
1109enable_installed
1110enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001111enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001112enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001113enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001114enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001115enable_ccmalloc
1116enable_efence
1117enable_prof
1118enable_gprof
1119enable_gcov
1120with_method_prefix
1121with_quantum_depth
1122with_cache
1123with_frozenpaths
1124with_magick_plus_plus
1125with_perl
1126with_perl_options
1127with_umem
1128with_libstdc
1129with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001130with_x
cristy3ed852e2009-09-05 21:47:34 +00001131with_zlib
1132with_autotrace
1133with_dps
1134with_djvu
cristy430a7312010-01-21 20:44:04 +00001135with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001136with_fftw
1137with_fpx
1138with_fontconfig
1139with_freetype
1140with_gslib
1141with_fontpath
1142with_gs_font_dir
1143with_gvc
1144with_jbig
1145with_jpeg
1146with_jp2
1147with_lcms
cristy71203402010-06-18 13:12:03 +00001148with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001149with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001150with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001151with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001152with_pango
cristy3ed852e2009-09-05 21:47:34 +00001153with_png
1154with_rsvg
1155with_tiff
cristyb1860752011-03-14 00:27:46 +00001156with_webp
cristy3ed852e2009-09-05 21:47:34 +00001157with_windows_font_dir
1158with_wmf
1159with_xml
1160'
1161 ac_precious_vars='build_alias
1162host_alias
1163target_alias
1164CC
1165CFLAGS
1166LDFLAGS
1167LIBS
1168CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001169CPP
cristy3ed852e2009-09-05 21:47:34 +00001170CXX
1171CXXFLAGS
1172CCC
cristy73bd4a52010-10-05 11:24:23 +00001173PKG_CONFIG
1174CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001175XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001176AUTOTRACE_CFLAGS
1177AUTOTRACE_LIBS
1178FONTCONFIG_CFLAGS
1179FONTCONFIG_LIBS
1180GVC_CFLAGS
1181GVC_LIBS
1182LQR_CFLAGS
1183LQR_LIBS
1184OPENEXR_CFLAGS
1185OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001186PANGO_CFLAGS
1187PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001188RSVG_CFLAGS
1189RSVG_LIBS
1190CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001191CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001192
1193
1194# Initialize some variables set by options.
1195ac_init_help=
1196ac_init_version=false
1197ac_unrecognized_opts=
1198ac_unrecognized_sep=
1199# The variables have the same names as the options, with
1200# dashes changed to underlines.
1201cache_file=/dev/null
1202exec_prefix=NONE
1203no_create=
1204no_recursion=
1205prefix=NONE
1206program_prefix=NONE
1207program_suffix=NONE
1208program_transform_name=s,x,x,
1209silent=
1210site=
1211srcdir=
1212verbose=
1213x_includes=NONE
1214x_libraries=NONE
1215
1216# Installation directory options.
1217# These are left unexpanded so users can "make install exec_prefix=/foo"
1218# and all the variables that are supposed to be based on exec_prefix
1219# by default will actually change.
1220# Use braces instead of parens because sh, perl, etc. also accept them.
1221# (The list follows the same order as the GNU Coding Standards.)
1222bindir='${exec_prefix}/bin'
1223sbindir='${exec_prefix}/sbin'
1224libexecdir='${exec_prefix}/libexec'
1225datarootdir='${prefix}/share'
1226datadir='${datarootdir}'
1227sysconfdir='${prefix}/etc'
1228sharedstatedir='${prefix}/com'
1229localstatedir='${prefix}/var'
1230includedir='${prefix}/include'
1231oldincludedir='/usr/include'
1232docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1233infodir='${datarootdir}/info'
1234htmldir='${docdir}'
1235dvidir='${docdir}'
1236pdfdir='${docdir}'
1237psdir='${docdir}'
1238libdir='${exec_prefix}/lib'
1239localedir='${datarootdir}/locale'
1240mandir='${datarootdir}/man'
1241
1242ac_prev=
1243ac_dashdash=
1244for ac_option
1245do
1246 # If the previous option needs an argument, assign it.
1247 if test -n "$ac_prev"; then
1248 eval $ac_prev=\$ac_option
1249 ac_prev=
1250 continue
1251 fi
1252
1253 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001254 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1255 *=) ac_optarg= ;;
1256 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001257 esac
1258
1259 # Accept the important Cygnus configure options, so we can diagnose typos.
1260
1261 case $ac_dashdash$ac_option in
1262 --)
1263 ac_dashdash=yes ;;
1264
1265 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1266 ac_prev=bindir ;;
1267 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1268 bindir=$ac_optarg ;;
1269
1270 -build | --build | --buil | --bui | --bu)
1271 ac_prev=build_alias ;;
1272 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1273 build_alias=$ac_optarg ;;
1274
1275 -cache-file | --cache-file | --cache-fil | --cache-fi \
1276 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1277 ac_prev=cache_file ;;
1278 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1279 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1280 cache_file=$ac_optarg ;;
1281
1282 --config-cache | -C)
1283 cache_file=config.cache ;;
1284
1285 -datadir | --datadir | --datadi | --datad)
1286 ac_prev=datadir ;;
1287 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1288 datadir=$ac_optarg ;;
1289
1290 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1291 | --dataroo | --dataro | --datar)
1292 ac_prev=datarootdir ;;
1293 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1294 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1295 datarootdir=$ac_optarg ;;
1296
1297 -disable-* | --disable-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001301 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306"enable_$ac_useropt"
1307"*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval enable_$ac_useropt=no ;;
1312
1313 -docdir | --docdir | --docdi | --doc | --do)
1314 ac_prev=docdir ;;
1315 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1316 docdir=$ac_optarg ;;
1317
1318 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1319 ac_prev=dvidir ;;
1320 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1321 dvidir=$ac_optarg ;;
1322
1323 -enable-* | --enable-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001327 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1331 *"
1332"enable_$ac_useropt"
1333"*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval enable_$ac_useropt=\$ac_optarg ;;
1338
1339 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1340 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1341 | --exec | --exe | --ex)
1342 ac_prev=exec_prefix ;;
1343 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1344 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1345 | --exec=* | --exe=* | --ex=*)
1346 exec_prefix=$ac_optarg ;;
1347
1348 -gas | --gas | --ga | --g)
1349 # Obsolete; use --with-gas.
1350 with_gas=yes ;;
1351
1352 -help | --help | --hel | --he | -h)
1353 ac_init_help=long ;;
1354 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1355 ac_init_help=recursive ;;
1356 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1357 ac_init_help=short ;;
1358
1359 -host | --host | --hos | --ho)
1360 ac_prev=host_alias ;;
1361 -host=* | --host=* | --hos=* | --ho=*)
1362 host_alias=$ac_optarg ;;
1363
1364 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1365 ac_prev=htmldir ;;
1366 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1367 | --ht=*)
1368 htmldir=$ac_optarg ;;
1369
1370 -includedir | --includedir | --includedi | --included | --include \
1371 | --includ | --inclu | --incl | --inc)
1372 ac_prev=includedir ;;
1373 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1374 | --includ=* | --inclu=* | --incl=* | --inc=*)
1375 includedir=$ac_optarg ;;
1376
1377 -infodir | --infodir | --infodi | --infod | --info | --inf)
1378 ac_prev=infodir ;;
1379 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1380 infodir=$ac_optarg ;;
1381
1382 -libdir | --libdir | --libdi | --libd)
1383 ac_prev=libdir ;;
1384 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1385 libdir=$ac_optarg ;;
1386
1387 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1388 | --libexe | --libex | --libe)
1389 ac_prev=libexecdir ;;
1390 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1391 | --libexe=* | --libex=* | --libe=*)
1392 libexecdir=$ac_optarg ;;
1393
1394 -localedir | --localedir | --localedi | --localed | --locale)
1395 ac_prev=localedir ;;
1396 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1397 localedir=$ac_optarg ;;
1398
1399 -localstatedir | --localstatedir | --localstatedi | --localstated \
1400 | --localstate | --localstat | --localsta | --localst | --locals)
1401 ac_prev=localstatedir ;;
1402 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1403 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1404 localstatedir=$ac_optarg ;;
1405
1406 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1407 ac_prev=mandir ;;
1408 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1409 mandir=$ac_optarg ;;
1410
1411 -nfp | --nfp | --nf)
1412 # Obsolete; use --without-fp.
1413 with_fp=no ;;
1414
1415 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1416 | --no-cr | --no-c | -n)
1417 no_create=yes ;;
1418
1419 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1420 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1421 no_recursion=yes ;;
1422
1423 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1424 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1425 | --oldin | --oldi | --old | --ol | --o)
1426 ac_prev=oldincludedir ;;
1427 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1428 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1429 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1430 oldincludedir=$ac_optarg ;;
1431
1432 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1433 ac_prev=prefix ;;
1434 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1435 prefix=$ac_optarg ;;
1436
1437 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1438 | --program-pre | --program-pr | --program-p)
1439 ac_prev=program_prefix ;;
1440 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1441 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1442 program_prefix=$ac_optarg ;;
1443
1444 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1445 | --program-suf | --program-su | --program-s)
1446 ac_prev=program_suffix ;;
1447 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1448 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1449 program_suffix=$ac_optarg ;;
1450
1451 -program-transform-name | --program-transform-name \
1452 | --program-transform-nam | --program-transform-na \
1453 | --program-transform-n | --program-transform- \
1454 | --program-transform | --program-transfor \
1455 | --program-transfo | --program-transf \
1456 | --program-trans | --program-tran \
1457 | --progr-tra | --program-tr | --program-t)
1458 ac_prev=program_transform_name ;;
1459 -program-transform-name=* | --program-transform-name=* \
1460 | --program-transform-nam=* | --program-transform-na=* \
1461 | --program-transform-n=* | --program-transform-=* \
1462 | --program-transform=* | --program-transfor=* \
1463 | --program-transfo=* | --program-transf=* \
1464 | --program-trans=* | --program-tran=* \
1465 | --progr-tra=* | --program-tr=* | --program-t=*)
1466 program_transform_name=$ac_optarg ;;
1467
1468 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1469 ac_prev=pdfdir ;;
1470 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1471 pdfdir=$ac_optarg ;;
1472
1473 -psdir | --psdir | --psdi | --psd | --ps)
1474 ac_prev=psdir ;;
1475 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1476 psdir=$ac_optarg ;;
1477
1478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1479 | -silent | --silent | --silen | --sile | --sil)
1480 silent=yes ;;
1481
1482 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1483 ac_prev=sbindir ;;
1484 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1485 | --sbi=* | --sb=*)
1486 sbindir=$ac_optarg ;;
1487
1488 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1489 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1490 | --sharedst | --shareds | --shared | --share | --shar \
1491 | --sha | --sh)
1492 ac_prev=sharedstatedir ;;
1493 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1494 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1495 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1496 | --sha=* | --sh=*)
1497 sharedstatedir=$ac_optarg ;;
1498
1499 -site | --site | --sit)
1500 ac_prev=site ;;
1501 -site=* | --site=* | --sit=*)
1502 site=$ac_optarg ;;
1503
1504 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1505 ac_prev=srcdir ;;
1506 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1507 srcdir=$ac_optarg ;;
1508
1509 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1510 | --syscon | --sysco | --sysc | --sys | --sy)
1511 ac_prev=sysconfdir ;;
1512 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1513 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1514 sysconfdir=$ac_optarg ;;
1515
1516 -target | --target | --targe | --targ | --tar | --ta | --t)
1517 ac_prev=target_alias ;;
1518 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1519 target_alias=$ac_optarg ;;
1520
1521 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1522 verbose=yes ;;
1523
1524 -version | --version | --versio | --versi | --vers | -V)
1525 ac_init_version=: ;;
1526
1527 -with-* | --with-*)
1528 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1529 # Reject names that are not valid shell variable names.
1530 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001531 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001532 ac_useropt_orig=$ac_useropt
1533 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1534 case $ac_user_opts in
1535 *"
1536"with_$ac_useropt"
1537"*) ;;
1538 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1539 ac_unrecognized_sep=', ';;
1540 esac
1541 eval with_$ac_useropt=\$ac_optarg ;;
1542
1543 -without-* | --without-*)
1544 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1545 # Reject names that are not valid shell variable names.
1546 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001547 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001548 ac_useropt_orig=$ac_useropt
1549 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1550 case $ac_user_opts in
1551 *"
1552"with_$ac_useropt"
1553"*) ;;
1554 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1555 ac_unrecognized_sep=', ';;
1556 esac
1557 eval with_$ac_useropt=no ;;
1558
1559 --x)
1560 # Obsolete; use --with-x.
1561 with_x=yes ;;
1562
1563 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1564 | --x-incl | --x-inc | --x-in | --x-i)
1565 ac_prev=x_includes ;;
1566 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1567 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1568 x_includes=$ac_optarg ;;
1569
1570 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1571 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1572 ac_prev=x_libraries ;;
1573 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1574 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1575 x_libraries=$ac_optarg ;;
1576
cristy98dddb52010-11-04 00:30:15 +00001577 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1578Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001579 ;;
1580
1581 *=*)
1582 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1583 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001584 case $ac_envvar in #(
1585 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001586 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001587 esac
cristy3ed852e2009-09-05 21:47:34 +00001588 eval $ac_envvar=\$ac_optarg
1589 export $ac_envvar ;;
1590
1591 *)
1592 # FIXME: should be removed in autoconf 3.0.
1593 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1594 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1595 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001596 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001597 ;;
1598
1599 esac
1600done
1601
1602if test -n "$ac_prev"; then
1603 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001604 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001605fi
1606
1607if test -n "$ac_unrecognized_opts"; then
1608 case $enable_option_checking in
1609 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001610 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001611 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1612 esac
1613fi
1614
1615# Check all directory arguments for consistency.
1616for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1617 datadir sysconfdir sharedstatedir localstatedir includedir \
1618 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1619 libdir localedir mandir
1620do
1621 eval ac_val=\$$ac_var
1622 # Remove trailing slashes.
1623 case $ac_val in
1624 */ )
1625 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1626 eval $ac_var=\$ac_val;;
1627 esac
1628 # Be sure to have absolute directory names.
1629 case $ac_val in
1630 [\\/$]* | ?:[\\/]* ) continue;;
1631 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1632 esac
cristy98dddb52010-11-04 00:30:15 +00001633 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001634done
1635
1636# There might be people who depend on the old broken behavior: `$host'
1637# used to hold the argument of --host etc.
1638# FIXME: To remove some day.
1639build=$build_alias
1640host=$host_alias
1641target=$target_alias
1642
1643# FIXME: To remove some day.
1644if test "x$host_alias" != x; then
1645 if test "x$build_alias" = x; then
1646 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001647 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1648 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001649 elif test "x$build_alias" != "x$host_alias"; then
1650 cross_compiling=yes
1651 fi
1652fi
1653
1654ac_tool_prefix=
1655test -n "$host_alias" && ac_tool_prefix=$host_alias-
1656
1657test "$silent" = yes && exec 6>/dev/null
1658
1659
1660ac_pwd=`pwd` && test -n "$ac_pwd" &&
1661ac_ls_di=`ls -di .` &&
1662ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001663 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001664test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001665 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001666
1667
1668# Find the source files, if location was not specified.
1669if test -z "$srcdir"; then
1670 ac_srcdir_defaulted=yes
1671 # Try the directory containing this script, then the parent directory.
1672 ac_confdir=`$as_dirname -- "$as_myself" ||
1673$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1674 X"$as_myself" : 'X\(//\)[^/]' \| \
1675 X"$as_myself" : 'X\(//\)$' \| \
1676 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1677$as_echo X"$as_myself" |
1678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1679 s//\1/
1680 q
1681 }
1682 /^X\(\/\/\)[^/].*/{
1683 s//\1/
1684 q
1685 }
1686 /^X\(\/\/\)$/{
1687 s//\1/
1688 q
1689 }
1690 /^X\(\/\).*/{
1691 s//\1/
1692 q
1693 }
1694 s/.*/./; q'`
1695 srcdir=$ac_confdir
1696 if test ! -r "$srcdir/$ac_unique_file"; then
1697 srcdir=..
1698 fi
1699else
1700 ac_srcdir_defaulted=no
1701fi
1702if test ! -r "$srcdir/$ac_unique_file"; then
1703 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001704 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001705fi
1706ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1707ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001708 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001709 pwd)`
1710# When building in place, set srcdir=.
1711if test "$ac_abs_confdir" = "$ac_pwd"; then
1712 srcdir=.
1713fi
1714# Remove unnecessary trailing slashes from srcdir.
1715# Double slashes in file names in object file debugging info
1716# mess up M-x gdb in Emacs.
1717case $srcdir in
1718*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1719esac
1720for ac_var in $ac_precious_vars; do
1721 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1722 eval ac_env_${ac_var}_value=\$${ac_var}
1723 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1724 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1725done
1726
1727#
1728# Report the --help message.
1729#
1730if test "$ac_init_help" = "long"; then
1731 # Omit some internal or obsolete options to make the list less imposing.
1732 # This message is too long to be a string in the A/UX 3.1 sh.
1733 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001734\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001735
1736Usage: $0 [OPTION]... [VAR=VALUE]...
1737
1738To assign environment variables (e.g., CC, CFLAGS...), specify them as
1739VAR=VALUE. See below for descriptions of some of the useful variables.
1740
1741Defaults for the options are specified in brackets.
1742
1743Configuration:
1744 -h, --help display this help and exit
1745 --help=short display options specific to this package
1746 --help=recursive display the short help of all the included packages
1747 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001748 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001749 --cache-file=FILE cache test results in FILE [disabled]
1750 -C, --config-cache alias for \`--cache-file=config.cache'
1751 -n, --no-create do not create output files
1752 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1753
1754Installation directories:
1755 --prefix=PREFIX install architecture-independent files in PREFIX
1756 [$ac_default_prefix]
1757 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1758 [PREFIX]
1759
1760By default, \`make install' will install all the files in
1761\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1762an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1763for instance \`--prefix=\$HOME'.
1764
1765For better control, use the options below.
1766
1767Fine tuning of the installation directories:
1768 --bindir=DIR user executables [EPREFIX/bin]
1769 --sbindir=DIR system admin executables [EPREFIX/sbin]
1770 --libexecdir=DIR program executables [EPREFIX/libexec]
1771 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1772 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1773 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1774 --libdir=DIR object code libraries [EPREFIX/lib]
1775 --includedir=DIR C header files [PREFIX/include]
1776 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1777 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1778 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1779 --infodir=DIR info documentation [DATAROOTDIR/info]
1780 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1781 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001782 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001783 --htmldir=DIR html documentation [DOCDIR]
1784 --dvidir=DIR dvi documentation [DOCDIR]
1785 --pdfdir=DIR pdf documentation [DOCDIR]
1786 --psdir=DIR ps documentation [DOCDIR]
1787_ACEOF
1788
1789 cat <<\_ACEOF
1790
cristy73bd4a52010-10-05 11:24:23 +00001791Program names:
1792 --program-prefix=PREFIX prepend PREFIX to installed program names
1793 --program-suffix=SUFFIX append SUFFIX to installed program names
1794 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1795
cristy3ed852e2009-09-05 21:47:34 +00001796X features:
1797 --x-includes=DIR X include files are in DIR
1798 --x-libraries=DIR X library files are in DIR
1799
1800System types:
1801 --build=BUILD configure for building on BUILD [guessed]
1802 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1803 --target=TARGET configure for building compilers for TARGET [HOST]
1804_ACEOF
1805fi
1806
1807if test -n "$ac_init_help"; then
1808 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001809 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001810 esac
1811 cat <<\_ACEOF
1812
1813Optional Features:
1814 --disable-option-checking ignore unrecognized --enable/--with options
1815 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1816 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001817 --enable-silent-rules less verbose build output (undo: `make V=1')
1818 --disable-silent-rules verbose build output (undo: `make V=0')
1819 --disable-dependency-tracking speeds up one-time build
1820 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001821 --bounds-checking enable run-time bounds-checking
1822 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001823 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001824 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001825 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001826 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001827 --enable-shared[=PKGS] build shared libraries [default=yes]
1828 --enable-static[=PKGS] build static libraries [default=yes]
1829 --enable-fast-install[=PKGS]
1830 optimize for fast installation [default=yes]
1831 --disable-libtool-lock avoid locking (might break parallel builds)
1832 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001833 --enable-delegate-build look for delegate libraries in build directory
1834 --disable-deprecated exclude deprecated methods in MagickCore and
1835 MagickWand API's
1836 --disable-installed Formally install ImageMagick under PREFIX
1837 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001838 --enable-zero-configuration
1839 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001840 zero-configuration ImageMagick
1841 --enable-hdri accurately represent the wide range of intensity
1842 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001843 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001844 --enable-maintainer-mode enable make rules and dependencies not useful
1845 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001846 --enable-ccmalloc enable 'ccmalloc' memory debug support
1847 --enable-efence enable 'efence' memory debug support
1848 --enable-prof enable 'prof' profiling support
1849 --enable-gprof enable 'gprof' profiling support
1850 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001851 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001852
1853Optional Packages:
1854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001856 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1857 --with-dmalloc use dmalloc, as in
1858 http://www.dmalloc.com/dmalloc.tar.gz
cristy670aa3c2011-11-03 00:54:00 +00001859 --includearch-dir=DIR ARCH specific include directory
1860 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001861 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001862 --with-pic try to use only PIC/non-PIC objects [default=use
1863 both]
cristyda16f162011-02-19 23:52:17 +00001864 --with-sysroot=DIR Search for dependent libraries within DIR
1865 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001866 --with-included-ltdl use the GNU ltdl sources included here
1867 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1868 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001869 --with-modules enable building dynamically loadable modules
1870 --with-method-prefix=PREFIX
1871 prefix MagickCore API methods
1872 --with-quantum-depth=DEPTH
1873 number of bits in a pixel quantum (default 16)
1874 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1875 memory)
1876 --with-frozenpaths freeze delegate paths
1877 --without-magick-plus-plus
1878 disable build/install of Magick++
1879 --with-perl enable build/install of PerlMagick
1880 --with-perl-options=OPTIONS
1881 options to pass on command-line when generating
1882 PerlMagick's build file
1883 --with-umem enable umem memory allocation library support
1884 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1885 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001886 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001887 --without-zlib disable ZLIB support
1888 --with-autotrace enable autotrace support
1889 --without-dps disable Display Postscript support
1890 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001891 --with-dejavu-font-dir=DIR
1892 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001893 --without-fftw disable FFTW support
1894 --without-fpx disable FlashPIX support
1895 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001896 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001897 --without-gslib enable Ghostscript library support
1898 --with-fontpath=DIR prepend to default font search path
1899 --with-gs-font-dir=DIR Ghostscript font directory
1900 --without-gvc disable GVC support
1901 --without-jbig disable JBIG support
1902 --without-jpeg disable JPEG support
1903 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001904 --without-lcms disable lcms (v1.1X) support
1905 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001906 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001907 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001908 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001909 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001910 --without-png disable PNG support
1911 --without-rsvg disable RSVG support
1912 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001913 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001914 --with-windows-font-dir=DIR
1915 directory containing MS-Windows fonts
1916 --without-wmf disable WMF support
1917 --without-xml disable XML support
1918
1919Some influential environment variables:
1920 CC C compiler command
1921 CFLAGS C compiler flags
1922 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1923 nonstandard directory <lib dir>
1924 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001925 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001926 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001927 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001928 CXX C++ compiler command
1929 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001930 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001931 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001932 XMKMF Path to xmkmf, Makefile generator for X Window System
1933 AUTOTRACE_CFLAGS
1934 C compiler flags for AUTOTRACE, overriding pkg-config
1935 AUTOTRACE_LIBS
1936 linker flags for AUTOTRACE, overriding pkg-config
1937 FONTCONFIG_CFLAGS
1938 C compiler flags for FONTCONFIG, overriding pkg-config
1939 FONTCONFIG_LIBS
1940 linker flags for FONTCONFIG, overriding pkg-config
1941 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1942 GVC_LIBS linker flags for GVC, overriding pkg-config
1943 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1944 LQR_LIBS linker flags for LQR, overriding pkg-config
1945 OPENEXR_CFLAGS
1946 C compiler flags for OPENEXR, overriding pkg-config
1947 OPENEXR_LIBS
1948 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001949 PANGO_CFLAGS
1950 C compiler flags for PANGO, overriding pkg-config
1951 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001952 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1953 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1954 CAIRO_SVG_CFLAGS
1955 C compiler flags for CAIRO_SVG, overriding pkg-config
1956 CAIRO_SVG_LIBS
1957 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001958
1959Use these variables to override the choices made by `configure' or to help
1960it to find libraries and programs with nonstandard names/locations.
1961
1962Report bugs to <http://www.imagemagick.org>.
1963_ACEOF
1964ac_status=$?
1965fi
1966
1967if test "$ac_init_help" = "recursive"; then
1968 # If there are subdirs, report their specific --help.
1969 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1970 test -d "$ac_dir" ||
1971 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1972 continue
1973 ac_builddir=.
1974
1975case "$ac_dir" in
1976.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1977*)
1978 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1979 # A ".." for each directory in $ac_dir_suffix.
1980 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1981 case $ac_top_builddir_sub in
1982 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1983 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1984 esac ;;
1985esac
1986ac_abs_top_builddir=$ac_pwd
1987ac_abs_builddir=$ac_pwd$ac_dir_suffix
1988# for backward compatibility:
1989ac_top_builddir=$ac_top_build_prefix
1990
1991case $srcdir in
1992 .) # We are building in place.
1993 ac_srcdir=.
1994 ac_top_srcdir=$ac_top_builddir_sub
1995 ac_abs_top_srcdir=$ac_pwd ;;
1996 [\\/]* | ?:[\\/]* ) # Absolute name.
1997 ac_srcdir=$srcdir$ac_dir_suffix;
1998 ac_top_srcdir=$srcdir
1999 ac_abs_top_srcdir=$srcdir ;;
2000 *) # Relative name.
2001 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2002 ac_top_srcdir=$ac_top_build_prefix$srcdir
2003 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2004esac
2005ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2006
2007 cd "$ac_dir" || { ac_status=$?; continue; }
2008 # Check for guested configure.
2009 if test -f "$ac_srcdir/configure.gnu"; then
2010 echo &&
2011 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2012 elif test -f "$ac_srcdir/configure"; then
2013 echo &&
2014 $SHELL "$ac_srcdir/configure" --help=recursive
2015 else
2016 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2017 fi || ac_status=$?
2018 cd "$ac_pwd" || { ac_status=$?; break; }
2019 done
2020fi
2021
2022test -n "$ac_init_help" && exit $ac_status
2023if $ac_init_version; then
2024 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002025ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002026generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002027
cristy98dddb52010-11-04 00:30:15 +00002028Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002029This configure script is free software; the Free Software Foundation
2030gives unlimited permission to copy, distribute and modify it.
2031_ACEOF
2032 exit
2033fi
cristy8b350f62009-11-15 23:12:43 +00002034
2035## ------------------------ ##
2036## Autoconf initialization. ##
2037## ------------------------ ##
2038
2039# ac_fn_c_try_compile LINENO
2040# --------------------------
2041# Try to compile conftest.$ac_ext, and return whether this succeeded.
2042ac_fn_c_try_compile ()
2043{
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 rm -f conftest.$ac_objext
2046 if { { ac_try="$ac_compile"
2047case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050esac
2051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052$as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_compile") 2>conftest.err
2054 ac_status=$?
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2059 fi
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && {
2062 test -z "$ac_c_werror_flag" ||
2063 test ! -s conftest.err
2064 } && test -s conftest.$ac_objext; then :
2065 ac_retval=0
2066else
2067 $as_echo "$as_me: failed program was:" >&5
2068sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 ac_retval=1
2071fi
cristyda16f162011-02-19 23:52:17 +00002072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002073 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002074
2075} # ac_fn_c_try_compile
2076
cristy95646052009-11-28 23:05:30 +00002077# ac_fn_c_try_cpp LINENO
2078# ----------------------
2079# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2080ac_fn_c_try_cpp ()
2081{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if { { ac_try="$ac_cpp conftest.$ac_ext"
2084case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087esac
2088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089$as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2091 ac_status=$?
2092 if test -s conftest.err; then
2093 grep -v '^ *+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2096 fi
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002098 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2100 test ! -s conftest.err
2101 }; then :
2102 ac_retval=0
2103else
2104 $as_echo "$as_me: failed program was:" >&5
2105sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 ac_retval=1
2108fi
cristyda16f162011-02-19 23:52:17 +00002109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002110 as_fn_set_status $ac_retval
2111
2112} # ac_fn_c_try_cpp
2113
cristy8b350f62009-11-15 23:12:43 +00002114# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2115# -------------------------------------------------------
2116# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2117# the include files in INCLUDES and setting the cache variable VAR
2118# accordingly.
2119ac_fn_c_check_header_mongrel ()
2120{
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002122 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002125if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002126 $as_echo_n "(cached) " >&6
2127fi
2128eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130$as_echo "$ac_res" >&6; }
2131else
2132 # Is the header compilable?
2133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2134$as_echo_n "checking $2 usability... " >&6; }
2135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138#include <$2>
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_header_compiler=yes
2142else
2143 ac_header_compiler=no
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2147$as_echo "$ac_header_compiler" >&6; }
2148
2149# Is the header present?
2150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2151$as_echo_n "checking $2 presence... " >&6; }
2152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h. */
2154#include <$2>
2155_ACEOF
2156if ac_fn_c_try_cpp "$LINENO"; then :
2157 ac_header_preproc=yes
2158else
2159 ac_header_preproc=no
2160fi
cristyda16f162011-02-19 23:52:17 +00002161rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2163$as_echo "$ac_header_preproc" >&6; }
2164
2165# So? What about this header?
2166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2167 yes:no: )
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2169$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2171$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2172 ;;
2173 no:yes:* )
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2175$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2177$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2179$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2181$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;}
cristy98dddb52010-11-04 00:30:15 +00002184( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002185## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002186## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002187 ) | sed "s/^/$as_me: WARNING: /" >&2
2188 ;;
2189esac
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002192if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002193 $as_echo_n "(cached) " >&6
2194else
2195 eval "$3=\$ac_header_compiler"
2196fi
2197eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199$as_echo "$ac_res" >&6; }
2200fi
cristyda16f162011-02-19 23:52:17 +00002201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002202
2203} # ac_fn_c_check_header_mongrel
2204
2205# ac_fn_c_try_run LINENO
2206# ----------------------
2207# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2208# that executables *can* be run.
2209ac_fn_c_try_run ()
2210{
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 if { { ac_try="$ac_link"
2213case "(($ac_try" in
2214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215 *) ac_try_echo=$ac_try;;
2216esac
2217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218$as_echo "$ac_try_echo"; } >&5
2219 (eval "$ac_link") 2>&5
2220 ac_status=$?
2221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2223 { { case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226esac
2227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228$as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_try") 2>&5
2230 ac_status=$?
2231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232 test $ac_status = 0; }; }; then :
2233 ac_retval=0
2234else
2235 $as_echo "$as_me: program exited with status $ac_status" >&5
2236 $as_echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239 ac_retval=$ac_status
2240fi
2241 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002243 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002244
2245} # ac_fn_c_try_run
2246
2247# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2248# -------------------------------------------------------
2249# Tests whether HEADER exists and can be compiled using the include files in
2250# INCLUDES, setting the cache variable VAR accordingly.
2251ac_fn_c_check_header_compile ()
2252{
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2255$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002256if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002257 $as_echo_n "(cached) " >&6
2258else
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260/* end confdefs.h. */
2261$4
2262#include <$2>
2263_ACEOF
2264if ac_fn_c_try_compile "$LINENO"; then :
2265 eval "$3=yes"
2266else
2267 eval "$3=no"
2268fi
2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270fi
2271eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002275
2276} # ac_fn_c_check_header_compile
2277
cristya0b81c32010-01-22 02:54:33 +00002278# ac_fn_cxx_try_compile LINENO
2279# ----------------------------
2280# Try to compile conftest.$ac_ext, and return whether this succeeded.
2281ac_fn_cxx_try_compile ()
2282{
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 rm -f conftest.$ac_objext
2285 if { { ac_try="$ac_compile"
2286case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289esac
2290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291$as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_compile") 2>conftest.err
2293 ac_status=$?
2294 if test -s conftest.err; then
2295 grep -v '^ *+' conftest.err >conftest.er1
2296 cat conftest.er1 >&5
2297 mv -f conftest.er1 conftest.err
2298 fi
2299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300 test $ac_status = 0; } && {
2301 test -z "$ac_cxx_werror_flag" ||
2302 test ! -s conftest.err
2303 } && test -s conftest.$ac_objext; then :
2304 ac_retval=0
2305else
2306 $as_echo "$as_me: failed program was:" >&5
2307sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 ac_retval=1
2310fi
cristyda16f162011-02-19 23:52:17 +00002311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002312 as_fn_set_status $ac_retval
2313
2314} # ac_fn_cxx_try_compile
2315
cristy8b350f62009-11-15 23:12:43 +00002316# ac_fn_c_try_link LINENO
2317# -----------------------
2318# Try to link conftest.$ac_ext, and return whether this succeeded.
2319ac_fn_c_try_link ()
2320{
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 rm -f conftest.$ac_objext conftest$ac_exeext
2323 if { { ac_try="$ac_link"
2324case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2327esac
2328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2329$as_echo "$ac_try_echo"; } >&5
2330 (eval "$ac_link") 2>conftest.err
2331 ac_status=$?
2332 if test -s conftest.err; then
2333 grep -v '^ *+' conftest.err >conftest.er1
2334 cat conftest.er1 >&5
2335 mv -f conftest.er1 conftest.err
2336 fi
2337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2338 test $ac_status = 0; } && {
2339 test -z "$ac_c_werror_flag" ||
2340 test ! -s conftest.err
2341 } && test -s conftest$ac_exeext && {
2342 test "$cross_compiling" = yes ||
2343 $as_test_x conftest$ac_exeext
2344 }; then :
2345 ac_retval=0
2346else
2347 $as_echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 ac_retval=1
2351fi
2352 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2353 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2354 # interfere with the next link command; also delete a directory that is
2355 # left behind by Apple's compiler. We do this before executing the actions.
2356 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002357 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002358 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002359
2360} # ac_fn_c_try_link
2361
cristy73bd4a52010-10-05 11:24:23 +00002362# ac_fn_c_check_func LINENO FUNC VAR
2363# ----------------------------------
2364# Tests whether FUNC exists, setting the cache variable VAR accordingly
2365ac_fn_c_check_func ()
2366{
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002370if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002371 $as_echo_n "(cached) " >&6
2372else
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374/* end confdefs.h. */
2375/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2377#define $2 innocuous_$2
2378
2379/* System header to define __stub macros and hopefully few prototypes,
2380 which can conflict with char $2 (); below.
2381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2382 <limits.h> exists even on freestanding compilers. */
2383
2384#ifdef __STDC__
2385# include <limits.h>
2386#else
2387# include <assert.h>
2388#endif
2389
2390#undef $2
2391
2392/* Override any GCC internal prototype to avoid an error.
2393 Use char because int might match the return type of a GCC
2394 builtin and then its argument prototype would still apply. */
2395#ifdef __cplusplus
2396extern "C"
2397#endif
2398char $2 ();
2399/* The GNU C library defines this for functions which it implements
2400 to always fail with ENOSYS. Some functions are actually named
2401 something starting with __ and the normal name is an alias. */
2402#if defined __stub_$2 || defined __stub___$2
2403choke me
2404#endif
2405
2406int
2407main ()
2408{
2409return $2 ();
2410 ;
2411 return 0;
2412}
2413_ACEOF
2414if ac_fn_c_try_link "$LINENO"; then :
2415 eval "$3=yes"
2416else
2417 eval "$3=no"
2418fi
2419rm -f core conftest.err conftest.$ac_objext \
2420 conftest$ac_exeext conftest.$ac_ext
2421fi
2422eval ac_res=\$$3
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002426
2427} # ac_fn_c_check_func
2428
2429# ac_fn_cxx_try_cpp LINENO
2430# ------------------------
2431# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2432ac_fn_cxx_try_cpp ()
2433{
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 if { { ac_try="$ac_cpp conftest.$ac_ext"
2436case "(($ac_try" in
2437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438 *) ac_try_echo=$ac_try;;
2439esac
2440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2441$as_echo "$ac_try_echo"; } >&5
2442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2443 ac_status=$?
2444 if test -s conftest.err; then
2445 grep -v '^ *+' conftest.err >conftest.er1
2446 cat conftest.er1 >&5
2447 mv -f conftest.er1 conftest.err
2448 fi
2449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002450 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002451 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2452 test ! -s conftest.err
2453 }; then :
2454 ac_retval=0
2455else
2456 $as_echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 ac_retval=1
2460fi
cristyda16f162011-02-19 23:52:17 +00002461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002462 as_fn_set_status $ac_retval
2463
2464} # ac_fn_cxx_try_cpp
2465
2466# ac_fn_cxx_try_link LINENO
2467# -------------------------
2468# Try to link conftest.$ac_ext, and return whether this succeeded.
2469ac_fn_cxx_try_link ()
2470{
2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472 rm -f conftest.$ac_objext conftest$ac_exeext
2473 if { { ac_try="$ac_link"
2474case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477esac
2478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2479$as_echo "$ac_try_echo"; } >&5
2480 (eval "$ac_link") 2>conftest.err
2481 ac_status=$?
2482 if test -s conftest.err; then
2483 grep -v '^ *+' conftest.err >conftest.er1
2484 cat conftest.er1 >&5
2485 mv -f conftest.er1 conftest.err
2486 fi
2487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2488 test $ac_status = 0; } && {
2489 test -z "$ac_cxx_werror_flag" ||
2490 test ! -s conftest.err
2491 } && test -s conftest$ac_exeext && {
2492 test "$cross_compiling" = yes ||
2493 $as_test_x conftest$ac_exeext
2494 }; then :
2495 ac_retval=0
2496else
2497 $as_echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 ac_retval=1
2501fi
2502 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2503 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2504 # interfere with the next link command; also delete a directory that is
2505 # left behind by Apple's compiler. We do this before executing the actions.
2506 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002508 as_fn_set_status $ac_retval
2509
2510} # ac_fn_cxx_try_link
2511
cristy98dddb52010-11-04 00:30:15 +00002512# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2513# ---------------------------------------------
2514# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2515# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002516ac_fn_c_check_decl ()
2517{
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002519 as_decl_name=`echo $2|sed 's/ *(.*//'`
2520 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2522$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002523if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002524 $as_echo_n "(cached) " >&6
2525else
2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527/* end confdefs.h. */
2528$4
2529int
2530main ()
2531{
cristy98dddb52010-11-04 00:30:15 +00002532#ifndef $as_decl_name
2533#ifdef __cplusplus
2534 (void) $as_decl_use;
2535#else
2536 (void) $as_decl_name;
2537#endif
cristy73bd4a52010-10-05 11:24:23 +00002538#endif
2539
2540 ;
2541 return 0;
2542}
2543_ACEOF
2544if ac_fn_c_try_compile "$LINENO"; then :
2545 eval "$3=yes"
2546else
2547 eval "$3=no"
2548fi
2549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551eval ac_res=\$$3
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002555
2556} # ac_fn_c_check_decl
2557
cristy8b350f62009-11-15 23:12:43 +00002558# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2559# -------------------------------------------
2560# Tests whether TYPE exists after having included INCLUDES, setting cache
2561# variable VAR accordingly.
2562ac_fn_c_check_type ()
2563{
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002567if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002568 $as_echo_n "(cached) " >&6
2569else
2570 eval "$3=no"
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572/* end confdefs.h. */
2573$4
2574int
2575main ()
2576{
2577if (sizeof ($2))
2578 return 0;
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"; then :
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585/* end confdefs.h. */
2586$4
2587int
2588main ()
2589{
2590if (sizeof (($2)))
2591 return 0;
2592 ;
2593 return 0;
2594}
2595_ACEOF
2596if ac_fn_c_try_compile "$LINENO"; then :
2597
2598else
2599 eval "$3=yes"
2600fi
2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602fi
2603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604fi
2605eval ac_res=\$$3
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002609
2610} # ac_fn_c_check_type
2611
cristy92703d82010-04-26 00:18:18 +00002612# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2613# ----------------------------------------------------
2614# Tries to find if the field MEMBER exists in type AGGR, after including
2615# INCLUDES, setting cache variable VAR accordingly.
2616ac_fn_c_check_member ()
2617{
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2620$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002621if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002622 $as_echo_n "(cached) " >&6
2623else
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625/* end confdefs.h. */
2626$5
2627int
2628main ()
2629{
2630static $2 ac_aggr;
2631if (ac_aggr.$3)
2632return 0;
2633 ;
2634 return 0;
2635}
2636_ACEOF
2637if ac_fn_c_try_compile "$LINENO"; then :
2638 eval "$4=yes"
2639else
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641/* end confdefs.h. */
2642$5
2643int
2644main ()
2645{
2646static $2 ac_aggr;
2647if (sizeof ac_aggr.$3)
2648return 0;
2649 ;
2650 return 0;
2651}
2652_ACEOF
2653if ac_fn_c_try_compile "$LINENO"; then :
2654 eval "$4=yes"
2655else
2656 eval "$4=no"
2657fi
2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659fi
2660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661fi
2662eval ac_res=\$$4
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2664$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002666
2667} # ac_fn_c_check_member
2668
cristy501c8042011-05-26 17:46:28 +00002669# ac_fn_c_find_intX_t LINENO BITS VAR
2670# -----------------------------------
2671# Finds a signed integer type with width BITS, setting cache variable VAR
2672# accordingly.
2673ac_fn_c_find_intX_t ()
2674{
2675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2677$as_echo_n "checking for int$2_t... " >&6; }
2678if eval \${$3+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680else
2681 eval "$3=no"
2682 # Order is important - never check a type that is potentially smaller
2683 # than half of the expected target width.
2684 for ac_type in int$2_t 'int' 'long int' \
2685 'long long int' 'short int' 'signed char'; do
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687/* end confdefs.h. */
2688$ac_includes_default
2689 enum { N = $2 / 2 - 1 };
2690int
2691main ()
2692{
2693static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2694test_array [0] = 0
2695
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700if ac_fn_c_try_compile "$LINENO"; then :
2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702/* end confdefs.h. */
2703$ac_includes_default
2704 enum { N = $2 / 2 - 1 };
2705int
2706main ()
2707{
2708static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2709 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2710test_array [0] = 0
2711
2712 ;
2713 return 0;
2714}
2715_ACEOF
2716if ac_fn_c_try_compile "$LINENO"; then :
2717
2718else
2719 case $ac_type in #(
2720 int$2_t) :
2721 eval "$3=yes" ;; #(
2722 *) :
2723 eval "$3=\$ac_type" ;;
2724esac
2725fi
2726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727fi
2728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 if eval test \"x\$"$3"\" = x"no"; then :
2730
2731else
2732 break
2733fi
2734 done
2735fi
2736eval ac_res=\$$3
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2738$as_echo "$ac_res" >&6; }
2739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2740
2741} # ac_fn_c_find_intX_t
2742
2743# ac_fn_c_find_uintX_t LINENO BITS VAR
2744# ------------------------------------
2745# Finds an unsigned integer type with width BITS, setting cache variable VAR
2746# accordingly.
2747ac_fn_c_find_uintX_t ()
2748{
2749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2751$as_echo_n "checking for uint$2_t... " >&6; }
2752if eval \${$3+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754else
2755 eval "$3=no"
2756 # Order is important - never check a type that is potentially smaller
2757 # than half of the expected target width.
2758 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2759 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761/* end confdefs.h. */
2762$ac_includes_default
2763int
2764main ()
2765{
2766static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2767test_array [0] = 0
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773if ac_fn_c_try_compile "$LINENO"; then :
2774 case $ac_type in #(
2775 uint$2_t) :
2776 eval "$3=yes" ;; #(
2777 *) :
2778 eval "$3=\$ac_type" ;;
2779esac
2780fi
2781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 if eval test \"x\$"$3"\" = x"no"; then :
2783
2784else
2785 break
2786fi
2787 done
2788fi
2789eval ac_res=\$$3
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2791$as_echo "$ac_res" >&6; }
2792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2793
2794} # ac_fn_c_find_uintX_t
2795
cristy8b350f62009-11-15 23:12:43 +00002796# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2797# --------------------------------------------
2798# Tries to find the compile-time value of EXPR in a program that includes
2799# INCLUDES, setting VAR accordingly. Returns whether the value could be
2800# computed
2801ac_fn_c_compute_int ()
2802{
2803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2804 if test "$cross_compiling" = yes; then
2805 # Depending upon the size, compute the lo and hi bounds.
2806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
2808$4
2809int
2810main ()
2811{
2812static int test_array [1 - 2 * !(($2) >= 0)];
2813test_array [0] = 0
2814
2815 ;
2816 return 0;
2817}
2818_ACEOF
2819if ac_fn_c_try_compile "$LINENO"; then :
2820 ac_lo=0 ac_mid=0
2821 while :; do
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823/* end confdefs.h. */
2824$4
2825int
2826main ()
2827{
2828static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2829test_array [0] = 0
2830
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835if ac_fn_c_try_compile "$LINENO"; then :
2836 ac_hi=$ac_mid; break
2837else
2838 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2839 if test $ac_lo -le $ac_mid; then
2840 ac_lo= ac_hi=
2841 break
2842 fi
2843 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2844fi
2845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 done
2847else
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849/* end confdefs.h. */
2850$4
2851int
2852main ()
2853{
2854static int test_array [1 - 2 * !(($2) < 0)];
2855test_array [0] = 0
2856
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861if ac_fn_c_try_compile "$LINENO"; then :
2862 ac_hi=-1 ac_mid=-1
2863 while :; do
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865/* end confdefs.h. */
2866$4
2867int
2868main ()
2869{
2870static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2871test_array [0] = 0
2872
2873 ;
2874 return 0;
2875}
2876_ACEOF
2877if ac_fn_c_try_compile "$LINENO"; then :
2878 ac_lo=$ac_mid; break
2879else
2880 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2881 if test $ac_mid -le $ac_hi; then
2882 ac_lo= ac_hi=
2883 break
2884 fi
2885 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2886fi
2887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 done
2889else
2890 ac_lo= ac_hi=
2891fi
2892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893fi
2894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895# Binary search between lo and hi bounds.
2896while test "x$ac_lo" != "x$ac_hi"; do
2897 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2899/* end confdefs.h. */
2900$4
2901int
2902main ()
2903{
2904static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2905test_array [0] = 0
2906
2907 ;
2908 return 0;
2909}
2910_ACEOF
2911if ac_fn_c_try_compile "$LINENO"; then :
2912 ac_hi=$ac_mid
2913else
2914 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2915fi
2916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917done
2918case $ac_lo in #((
2919?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2920'') ac_retval=1 ;;
2921esac
2922 else
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924/* end confdefs.h. */
2925$4
2926static long int longval () { return $2; }
2927static unsigned long int ulongval () { return $2; }
2928#include <stdio.h>
2929#include <stdlib.h>
2930int
2931main ()
2932{
2933
2934 FILE *f = fopen ("conftest.val", "w");
2935 if (! f)
2936 return 1;
2937 if (($2) < 0)
2938 {
2939 long int i = longval ();
2940 if (i != ($2))
2941 return 1;
2942 fprintf (f, "%ld", i);
2943 }
2944 else
2945 {
2946 unsigned long int i = ulongval ();
2947 if (i != ($2))
2948 return 1;
2949 fprintf (f, "%lu", i);
2950 }
2951 /* Do not output a trailing newline, as this causes \r\n confusion
2952 on some platforms. */
2953 return ferror (f) || fclose (f) != 0;
2954
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959if ac_fn_c_try_run "$LINENO"; then :
2960 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2961else
2962 ac_retval=1
2963fi
2964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2965 conftest.$ac_objext conftest.beam conftest.$ac_ext
2966rm -f conftest.val
2967
2968 fi
cristyda16f162011-02-19 23:52:17 +00002969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002970 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002971
2972} # ac_fn_c_compute_int
2973
2974# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2975# ---------------------------------------------------------
2976# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2977# the include files in INCLUDES and setting the cache variable VAR
2978# accordingly.
2979ac_fn_cxx_check_header_mongrel ()
2980{
2981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002982 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2984$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002985if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002986 $as_echo_n "(cached) " >&6
2987fi
2988eval ac_res=\$$3
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2990$as_echo "$ac_res" >&6; }
2991else
2992 # Is the header compilable?
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2994$as_echo_n "checking $2 usability... " >&6; }
2995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996/* end confdefs.h. */
2997$4
2998#include <$2>
2999_ACEOF
3000if ac_fn_cxx_try_compile "$LINENO"; then :
3001 ac_header_compiler=yes
3002else
3003 ac_header_compiler=no
3004fi
3005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3007$as_echo "$ac_header_compiler" >&6; }
3008
3009# Is the header present?
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3011$as_echo_n "checking $2 presence... " >&6; }
3012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013/* end confdefs.h. */
3014#include <$2>
3015_ACEOF
3016if ac_fn_cxx_try_cpp "$LINENO"; then :
3017 ac_header_preproc=yes
3018else
3019 ac_header_preproc=no
3020fi
cristyda16f162011-02-19 23:52:17 +00003021rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3023$as_echo "$ac_header_preproc" >&6; }
3024
3025# So? What about this header?
3026case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3027 yes:no: )
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3029$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3031$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3032 ;;
3033 no:yes:* )
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3035$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3037$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3039$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3041$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;}
cristy98dddb52010-11-04 00:30:15 +00003044( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003045## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003046## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003047 ) | sed "s/^/$as_me: WARNING: /" >&2
3048 ;;
3049esac
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3051$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003052if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003053 $as_echo_n "(cached) " >&6
3054else
3055 eval "$3=\$ac_header_compiler"
3056fi
3057eval ac_res=\$$3
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3059$as_echo "$ac_res" >&6; }
3060fi
cristyda16f162011-02-19 23:52:17 +00003061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003062
3063} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003064cat >config.log <<_ACEOF
3065This file contains any messages produced by compilers while
3066running configure, to aid debugging if configure makes a mistake.
3067
cristy29eb34e2011-10-16 00:46:08 +00003068It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003069generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003070
3071 $ $0 $@
3072
3073_ACEOF
3074exec 5>>config.log
3075{
3076cat <<_ASUNAME
3077## --------- ##
3078## Platform. ##
3079## --------- ##
3080
3081hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3082uname -m = `(uname -m) 2>/dev/null || echo unknown`
3083uname -r = `(uname -r) 2>/dev/null || echo unknown`
3084uname -s = `(uname -s) 2>/dev/null || echo unknown`
3085uname -v = `(uname -v) 2>/dev/null || echo unknown`
3086
3087/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3088/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3089
3090/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3091/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3092/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3093/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3094/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3095/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3096/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3097
3098_ASUNAME
3099
3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101for as_dir in $PATH
3102do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003105 $as_echo "PATH: $as_dir"
3106 done
cristy3ed852e2009-09-05 21:47:34 +00003107IFS=$as_save_IFS
3108
3109} >&5
3110
3111cat >&5 <<_ACEOF
3112
3113
3114## ----------- ##
3115## Core tests. ##
3116## ----------- ##
3117
3118_ACEOF
3119
3120
3121# Keep a trace of the command line.
3122# Strip out --no-create and --no-recursion so they do not pile up.
3123# Strip out --silent because we don't want to record it for future runs.
3124# Also quote any args containing shell meta-characters.
3125# Make two passes to allow for proper duplicate-argument suppression.
3126ac_configure_args=
3127ac_configure_args0=
3128ac_configure_args1=
3129ac_must_keep_next=false
3130for ac_pass in 1 2
3131do
3132 for ac_arg
3133 do
3134 case $ac_arg in
3135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3137 | -silent | --silent | --silen | --sile | --sil)
3138 continue ;;
3139 *\'*)
3140 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3141 esac
3142 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003143 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003144 2)
cristy8b350f62009-11-15 23:12:43 +00003145 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003146 if test $ac_must_keep_next = true; then
3147 ac_must_keep_next=false # Got value, back to normal.
3148 else
3149 case $ac_arg in
3150 *=* | --config-cache | -C | -disable-* | --disable-* \
3151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3153 | -with-* | --with-* | -without-* | --without-* | --x)
3154 case "$ac_configure_args0 " in
3155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3156 esac
3157 ;;
3158 -* ) ac_must_keep_next=true ;;
3159 esac
3160 fi
cristy8b350f62009-11-15 23:12:43 +00003161 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003162 ;;
3163 esac
3164 done
3165done
cristy8b350f62009-11-15 23:12:43 +00003166{ ac_configure_args0=; unset ac_configure_args0;}
3167{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003168
3169# When interrupted or exit'd, cleanup temporary files, and complete
3170# config.log. We remove comments because anyway the quotes in there
3171# would cause problems or look ugly.
3172# WARNING: Use '\'' to represent an apostrophe within the trap.
3173# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3174trap 'exit_status=$?
3175 # Save into config.log some information that might help in debugging.
3176 {
3177 echo
3178
cristy98dddb52010-11-04 00:30:15 +00003179 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003180## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003181## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003182 echo
3183 # The following way of writing the cache mishandles newlines in values,
3184(
3185 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3186 eval ac_val=\$$ac_var
3187 case $ac_val in #(
3188 *${as_nl}*)
3189 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003190 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003191$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3192 esac
3193 case $ac_var in #(
3194 _ | IFS | as_nl) ;; #(
3195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003196 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003197 esac ;;
3198 esac
3199 done
3200 (set) 2>&1 |
3201 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3202 *${as_nl}ac_space=\ *)
3203 sed -n \
3204 "s/'\''/'\''\\\\'\'''\''/g;
3205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3206 ;; #(
3207 *)
3208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3209 ;;
3210 esac |
3211 sort
3212)
3213 echo
3214
cristy98dddb52010-11-04 00:30:15 +00003215 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003216## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003217## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003218 echo
3219 for ac_var in $ac_subst_vars
3220 do
3221 eval ac_val=\$$ac_var
3222 case $ac_val in
3223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3224 esac
3225 $as_echo "$ac_var='\''$ac_val'\''"
3226 done | sort
3227 echo
3228
3229 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003230 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003231## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003232## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003233 echo
3234 for ac_var in $ac_subst_files
3235 do
3236 eval ac_val=\$$ac_var
3237 case $ac_val in
3238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3239 esac
3240 $as_echo "$ac_var='\''$ac_val'\''"
3241 done | sort
3242 echo
3243 fi
3244
3245 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003246 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003247## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003248## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003249 echo
3250 cat confdefs.h
3251 echo
3252 fi
3253 test "$ac_signal" != 0 &&
3254 $as_echo "$as_me: caught signal $ac_signal"
3255 $as_echo "$as_me: exit $exit_status"
3256 } >&5
3257 rm -f core *.core core.conftest.* &&
3258 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3259 exit $exit_status
3260' 0
3261for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003262 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003263done
3264ac_signal=0
3265
3266# confdefs.h avoids OS command line length limits that DEFS can exceed.
3267rm -f -r conftest* confdefs.h
3268
cristy8b350f62009-11-15 23:12:43 +00003269$as_echo "/* confdefs.h */" > confdefs.h
3270
cristy3ed852e2009-09-05 21:47:34 +00003271# Predefined preprocessor variables.
3272
3273cat >>confdefs.h <<_ACEOF
3274#define PACKAGE_NAME "$PACKAGE_NAME"
3275_ACEOF
3276
cristy3ed852e2009-09-05 21:47:34 +00003277cat >>confdefs.h <<_ACEOF
3278#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3279_ACEOF
3280
cristy3ed852e2009-09-05 21:47:34 +00003281cat >>confdefs.h <<_ACEOF
3282#define PACKAGE_VERSION "$PACKAGE_VERSION"
3283_ACEOF
3284
cristy3ed852e2009-09-05 21:47:34 +00003285cat >>confdefs.h <<_ACEOF
3286#define PACKAGE_STRING "$PACKAGE_STRING"
3287_ACEOF
3288
cristy3ed852e2009-09-05 21:47:34 +00003289cat >>confdefs.h <<_ACEOF
3290#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3291_ACEOF
3292
cristy8b350f62009-11-15 23:12:43 +00003293cat >>confdefs.h <<_ACEOF
3294#define PACKAGE_URL "$PACKAGE_URL"
3295_ACEOF
3296
cristy3ed852e2009-09-05 21:47:34 +00003297
3298# Let the site file select an alternate cache file if it wants to.
3299# Prefer an explicitly selected file to automatically selected ones.
3300ac_site_file1=NONE
3301ac_site_file2=NONE
3302if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003303 # We do not want a PATH search for config.site.
3304 case $CONFIG_SITE in #((
3305 -*) ac_site_file1=./$CONFIG_SITE;;
3306 */*) ac_site_file1=$CONFIG_SITE;;
3307 *) ac_site_file1=./$CONFIG_SITE;;
3308 esac
cristy3ed852e2009-09-05 21:47:34 +00003309elif test "x$prefix" != xNONE; then
3310 ac_site_file1=$prefix/share/config.site
3311 ac_site_file2=$prefix/etc/config.site
3312else
3313 ac_site_file1=$ac_default_prefix/share/config.site
3314 ac_site_file2=$ac_default_prefix/etc/config.site
3315fi
3316for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3317do
3318 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003319 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003321$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3322 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003323 . "$ac_site_file" \
3324 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326as_fn_error $? "failed to load site script $ac_site_file
3327See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003328 fi
3329done
3330
3331if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003332 # Some versions of bash will fail to source /dev/null (special files
3333 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3334 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003335 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003336$as_echo "$as_me: loading cache $cache_file" >&6;}
3337 case $cache_file in
3338 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3339 *) . "./$cache_file";;
3340 esac
3341 fi
3342else
cristy8b350f62009-11-15 23:12:43 +00003343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003344$as_echo "$as_me: creating cache $cache_file" >&6;}
3345 >$cache_file
3346fi
3347
cristycd4c5312009-11-22 01:19:08 +00003348as_fn_append ac_header_list " stdlib.h"
3349as_fn_append ac_header_list " unistd.h"
3350as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003351# Check that the precious variables saved in the cache have kept the same
3352# value.
3353ac_cache_corrupted=false
3354for ac_var in $ac_precious_vars; do
3355 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3356 eval ac_new_set=\$ac_env_${ac_var}_set
3357 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3358 eval ac_new_val=\$ac_env_${ac_var}_value
3359 case $ac_old_set,$ac_new_set in
3360 set,)
cristy8b350f62009-11-15 23:12:43 +00003361 { $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 +00003362$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3363 ac_cache_corrupted=: ;;
3364 ,set)
cristy8b350f62009-11-15 23:12:43 +00003365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003366$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3367 ac_cache_corrupted=: ;;
3368 ,);;
3369 *)
3370 if test "x$ac_old_val" != "x$ac_new_val"; then
3371 # differences in whitespace do not lead to failure.
3372 ac_old_val_w=`echo x $ac_old_val`
3373 ac_new_val_w=`echo x $ac_new_val`
3374 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003376$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3377 ac_cache_corrupted=:
3378 else
cristy8b350f62009-11-15 23:12:43 +00003379 { $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 +00003380$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3381 eval $ac_var=\$ac_old_val
3382 fi
cristy8b350f62009-11-15 23:12:43 +00003383 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003385 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003386$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3387 fi;;
3388 esac
3389 # Pass precious variables to config.status.
3390 if test "$ac_new_set" = set; then
3391 case $ac_new_val in
3392 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3393 *) ac_arg=$ac_var=$ac_new_val ;;
3394 esac
3395 case " $ac_configure_args " in
3396 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003397 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003398 esac
3399 fi
3400done
3401if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003405$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003406 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003407fi
cristy8b350f62009-11-15 23:12:43 +00003408## -------------------- ##
3409## Main body of script. ##
3410## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003411
3412ac_ext=c
3413ac_cpp='$CPP $CPPFLAGS'
3414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417
3418
3419
3420ac_aux_dir=
3421for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003422 if test -f "$ac_dir/install-sh"; then
3423 ac_aux_dir=$ac_dir
3424 ac_install_sh="$ac_aux_dir/install-sh -c"
3425 break
3426 elif test -f "$ac_dir/install.sh"; then
3427 ac_aux_dir=$ac_dir
3428 ac_install_sh="$ac_aux_dir/install.sh -c"
3429 break
3430 elif test -f "$ac_dir/shtool"; then
3431 ac_aux_dir=$ac_dir
3432 ac_install_sh="$ac_aux_dir/shtool install -c"
3433 break
3434 fi
cristy3ed852e2009-09-05 21:47:34 +00003435done
3436if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003437 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003438fi
3439
3440# These three variables are undocumented and unsupported,
3441# and are intended to be withdrawn in a future Autoconf release.
3442# They can cause serious problems if a builder's source tree is in a directory
3443# whose full name contains unusual characters.
3444ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3445ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3446ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3447
3448
3449
3450
3451ac_config_headers="$ac_config_headers config/config.h"
3452
cristy24fc1fe2010-10-23 21:13:01 +00003453
cristy4c08aed2011-07-01 19:47:50 +00003454ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003455
cristy4c08aed2011-07-01 19:47:50 +00003456ac_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 +00003457
3458
3459#
3460# Save initial user-tunable values
3461#
3462USER_LIBS=$LIBS
3463for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3464 eval isset=\${$var+set}
3465 if test "$isset" = 'set'; then
3466 eval val=$`echo $var`
3467 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3468 fi
3469done
3470
3471
3472CONFIGURE_ARGS="$0 ${ac_configure_args}"
3473
3474
3475# Source file containing package/library versioning information.
3476. ${srcdir}/version.sh
3477
cristy15a88782010-01-31 23:24:49 +00003478echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003479# Make sure we can run config.sub.
3480$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003481 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003482
cristy8b350f62009-11-15 23:12:43 +00003483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003484$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003485if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003486 $as_echo_n "(cached) " >&6
3487else
3488 ac_build_alias=$build_alias
3489test "x$ac_build_alias" = x &&
3490 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3491test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003492 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003493ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003495
3496fi
cristy8b350f62009-11-15 23:12:43 +00003497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003498$as_echo "$ac_cv_build" >&6; }
3499case $ac_cv_build in
3500*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003501*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003502esac
3503build=$ac_cv_build
3504ac_save_IFS=$IFS; IFS='-'
3505set x $ac_cv_build
3506shift
3507build_cpu=$1
3508build_vendor=$2
3509shift; shift
3510# Remember, the first character of IFS is used to create $*,
3511# except with old shells:
3512build_os=$*
3513IFS=$ac_save_IFS
3514case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3515
3516
cristy8b350f62009-11-15 23:12:43 +00003517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003518$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003519if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003520 $as_echo_n "(cached) " >&6
3521else
3522 if test "x$host_alias" = x; then
3523 ac_cv_host=$ac_cv_build
3524else
3525 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003526 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003527fi
3528
3529fi
cristy8b350f62009-11-15 23:12:43 +00003530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003531$as_echo "$ac_cv_host" >&6; }
3532case $ac_cv_host in
3533*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003534*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003535esac
3536host=$ac_cv_host
3537ac_save_IFS=$IFS; IFS='-'
3538set x $ac_cv_host
3539shift
3540host_cpu=$1
3541host_vendor=$2
3542shift; shift
3543# Remember, the first character of IFS is used to create $*,
3544# except with old shells:
3545host_os=$*
3546IFS=$ac_save_IFS
3547case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3548
3549
cristy8b350f62009-11-15 23:12:43 +00003550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003551$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003552if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003553 $as_echo_n "(cached) " >&6
3554else
3555 if test "x$target_alias" = x; then
3556 ac_cv_target=$ac_cv_host
3557else
3558 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003559 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003560fi
3561
3562fi
cristy8b350f62009-11-15 23:12:43 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003564$as_echo "$ac_cv_target" >&6; }
3565case $ac_cv_target in
3566*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003567*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003568esac
3569target=$ac_cv_target
3570ac_save_IFS=$IFS; IFS='-'
3571set x $ac_cv_target
3572shift
3573target_cpu=$1
3574target_vendor=$2
3575shift; shift
3576# Remember, the first character of IFS is used to create $*,
3577# except with old shells:
3578target_os=$*
3579IFS=$ac_save_IFS
3580case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3581
3582
3583# The aliases save the names the user supplied, while $host etc.
3584# will get canonicalized.
3585test -n "$target_alias" &&
3586 test "$program_prefix$program_suffix$program_transform_name" = \
3587 NONENONEs,x,x, &&
3588 program_prefix=${target_alias}-
3589
cristy837d6dc2010-02-27 01:16:57 +00003590
3591
3592
cristy19615b82011-04-13 20:02:01 +00003593MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003594
3595
cristy19615b82011-04-13 20:02:01 +00003596MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003597
3598
cristy19615b82011-04-13 20:02:01 +00003599MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003600
3601
cristy3ed852e2009-09-05 21:47:34 +00003602# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003603MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3604
3605MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3606
cristy408ebcd2011-11-14 01:36:57 +00003607MAGICK_SVN_REVISION=5951
cristyd694ca32011-03-27 21:42:54 +00003608
3609
cristy3ed852e2009-09-05 21:47:34 +00003610
3611
3612# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3614$as_echo_n "checking whether build environment is sane... " >&6; }
3615# Just in case
3616sleep 1
3617echo timestamp > conftest.file
3618# Reject unsafe characters in $srcdir or the absolute working directory
3619# name. Accept space and tab only in the latter.
3620am_lf='
3621'
3622case `pwd` in
3623 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003624 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003625esac
3626case $srcdir in
3627 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003628 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003629esac
cristy3ed852e2009-09-05 21:47:34 +00003630
cristy73bd4a52010-10-05 11:24:23 +00003631# Do `set' in a subshell so we don't clobber the current shell's
3632# arguments. Must try -L first in case configure is actually a
3633# symlink; some systems play weird games with the mod time of symlinks
3634# (eg FreeBSD returns the mod time of the symlink's containing
3635# directory).
3636if (
3637 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3638 if test "$*" = "X"; then
3639 # -L didn't work.
3640 set X `ls -t "$srcdir/configure" conftest.file`
3641 fi
3642 rm -f conftest.file
3643 if test "$*" != "X $srcdir/configure conftest.file" \
3644 && test "$*" != "X conftest.file $srcdir/configure"; then
3645
3646 # If neither matched, then we have a broken ls. This can happen
3647 # if, for instance, CONFIG_SHELL is bash and it inherits a
3648 # broken ls alias from the environment. This has actually
3649 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003650 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003651alias in your environment" "$LINENO" 5
3652 fi
3653
3654 test "$2" = conftest.file
3655 )
3656then
3657 # Ok.
3658 :
3659else
cristy98dddb52010-11-04 00:30:15 +00003660 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003661Check your system clock" "$LINENO" 5
3662fi
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3664$as_echo "yes" >&6; }
3665
3666am__api_version='1.11'
3667
3668# Find a good install program. We prefer a C program (faster),
3669# so one script is as good as another. But avoid the broken or
3670# incompatible versions:
3671# SysV /etc/install, /usr/sbin/install
3672# SunOS /usr/etc/install
3673# IRIX /sbin/install
3674# AIX /bin/install
3675# AmigaOS /C/install, which installs bootblocks on floppy discs
3676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3677# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3679# OS/2's system install, which has a completely different semantic
3680# ./install, which can be erroneously created by make from ./install.sh.
3681# Reject install programs that cannot install multiple files.
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3683$as_echo_n "checking for a BSD-compatible install... " >&6; }
3684if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003685if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003686 $as_echo_n "(cached) " >&6
3687else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH
3690do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 # Account for people who put trailing slashes in PATH elements.
3694case $as_dir/ in #((
3695 ./ | .// | /[cC]/* | \
3696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3698 /usr/ucb/* ) ;;
3699 *)
3700 # OSF1 and SCO ODT 3.0 have their own names for install.
3701 # Don't use installbsd from OSF since it installs stuff as root
3702 # by default.
3703 for ac_prog in ginstall scoinst install; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3706 if test $ac_prog = install &&
3707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3708 # AIX install. It has an incompatible calling convention.
3709 :
3710 elif test $ac_prog = install &&
3711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3712 # program-specific install script used by HP pwplus--don't use.
3713 :
3714 else
3715 rm -rf conftest.one conftest.two conftest.dir
3716 echo one > conftest.one
3717 echo two > conftest.two
3718 mkdir conftest.dir
3719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3720 test -s conftest.one && test -s conftest.two &&
3721 test -s conftest.dir/conftest.one &&
3722 test -s conftest.dir/conftest.two
3723 then
3724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3725 break 3
3726 fi
3727 fi
3728 fi
3729 done
3730 done
3731 ;;
3732esac
3733
3734 done
3735IFS=$as_save_IFS
3736
3737rm -rf conftest.one conftest.two conftest.dir
3738
3739fi
3740 if test "${ac_cv_path_install+set}" = set; then
3741 INSTALL=$ac_cv_path_install
3742 else
3743 # As a last resort, use the slow shell script. Don't cache a
3744 # value for INSTALL within a source directory, because that will
3745 # break other packages using the cache if that directory is
3746 # removed, or if the value is a relative name.
3747 INSTALL=$ac_install_sh
3748 fi
3749fi
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3751$as_echo "$INSTALL" >&6; }
3752
3753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3754# It thinks the first close brace ends the variable substitution.
3755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3756
3757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3758
3759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3760
3761test "$program_prefix" != NONE &&
3762 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3763# Use a double $ so make ignores it.
3764test "$program_suffix" != NONE &&
3765 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3766# Double any \ or $.
3767# By default was `s,x,x', remove it if useless.
3768ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3769program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3770
3771# expand $ac_aux_dir to an absolute path
3772am_aux_dir=`cd $ac_aux_dir && pwd`
3773
3774if test x"${MISSING+set}" != xset; then
3775 case $am_aux_dir in
3776 *\ * | *\ *)
3777 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3778 *)
3779 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3780 esac
3781fi
3782# Use eval to expand $SHELL
3783if eval "$MISSING --run true"; then
3784 am_missing_run="$MISSING --run "
3785else
3786 am_missing_run=
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3788$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3789fi
3790
3791if test x"${install_sh}" != xset; then
3792 case $am_aux_dir in
3793 *\ * | *\ *)
3794 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3795 *)
3796 install_sh="\${SHELL} $am_aux_dir/install-sh"
3797 esac
3798fi
3799
3800# Installed binaries are usually stripped using `strip' when the user
3801# run `make install-strip'. However `strip' might not be the right
3802# tool to use in cross-compilation environments, therefore Automake
3803# will honor the `STRIP' environment variable to overrule this program.
3804if test "$cross_compiling" != no; then
3805 if test -n "$ac_tool_prefix"; then
3806 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3807set dummy ${ac_tool_prefix}strip; ac_word=$2
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003810if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003811 $as_echo_n "(cached) " >&6
3812else
3813 if test -n "$STRIP"; then
3814 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3815else
3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827done
3828 done
3829IFS=$as_save_IFS
3830
3831fi
3832fi
3833STRIP=$ac_cv_prog_STRIP
3834if test -n "$STRIP"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3836$as_echo "$STRIP" >&6; }
3837else
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839$as_echo "no" >&6; }
3840fi
3841
3842
3843fi
3844if test -z "$ac_cv_prog_STRIP"; then
3845 ac_ct_STRIP=$STRIP
3846 # Extract the first word of "strip", so it can be a program name with args.
3847set dummy strip; ac_word=$2
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003850if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003851 $as_echo_n "(cached) " >&6
3852else
3853 if test -n "$ac_ct_STRIP"; then
3854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3855else
3856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857for as_dir in $PATH
3858do
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863 ac_cv_prog_ac_ct_STRIP="strip"
3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3866 fi
3867done
3868 done
3869IFS=$as_save_IFS
3870
3871fi
3872fi
3873ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3874if test -n "$ac_ct_STRIP"; then
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3876$as_echo "$ac_ct_STRIP" >&6; }
3877else
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879$as_echo "no" >&6; }
3880fi
3881
3882 if test "x$ac_ct_STRIP" = x; then
3883 STRIP=":"
3884 else
3885 case $cross_compiling:$ac_tool_warned in
3886yes:)
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3889ac_tool_warned=yes ;;
3890esac
3891 STRIP=$ac_ct_STRIP
3892 fi
3893else
3894 STRIP="$ac_cv_prog_STRIP"
3895fi
3896
3897fi
3898INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3899
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3901$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3902if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003903 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003904 $as_echo_n "(cached) " >&6
3905else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in mkdir gmkdir; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3914 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3915 'mkdir (GNU coreutils) '* | \
3916 'mkdir (coreutils) '* | \
3917 'mkdir (fileutils) '4.1*)
3918 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3919 break 3;;
3920 esac
3921 done
3922 done
3923 done
3924IFS=$as_save_IFS
3925
3926fi
3927
3928 test -d ./--version && rmdir ./--version
3929 if test "${ac_cv_path_mkdir+set}" = set; then
3930 MKDIR_P="$ac_cv_path_mkdir -p"
3931 else
3932 # As a last resort, use the slow shell script. Don't cache a
3933 # value for MKDIR_P within a source directory, because that will
3934 # break other packages using the cache if that directory is
3935 # removed, or if the value is a relative name.
3936 MKDIR_P="$ac_install_sh -d"
3937 fi
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3940$as_echo "$MKDIR_P" >&6; }
3941
3942mkdir_p="$MKDIR_P"
3943case $mkdir_p in
3944 [\\/$]* | ?:[\\/]*) ;;
3945 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3946esac
3947
3948for ac_prog in gawk mawk nawk awk
3949do
3950 # Extract the first word of "$ac_prog", so it can be a program name with args.
3951set dummy $ac_prog; ac_word=$2
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003954if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003955 $as_echo_n "(cached) " >&6
3956else
3957 if test -n "$AWK"; then
3958 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3959else
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967 ac_cv_prog_AWK="$ac_prog"
3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971done
3972 done
3973IFS=$as_save_IFS
3974
3975fi
3976fi
3977AWK=$ac_cv_prog_AWK
3978if test -n "$AWK"; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3980$as_echo "$AWK" >&6; }
3981else
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983$as_echo "no" >&6; }
3984fi
3985
3986
3987 test -n "$AWK" && break
3988done
3989
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3991$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3992set x ${MAKE-make}
3993ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003994if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003995 $as_echo_n "(cached) " >&6
3996else
3997 cat >conftest.make <<\_ACEOF
3998SHELL = /bin/sh
3999all:
4000 @echo '@@@%%%=$(MAKE)=@@@%%%'
4001_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004002# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004003case `${MAKE-make} -f conftest.make 2>/dev/null` in
4004 *@@@%%%=?*=@@@%%%*)
4005 eval ac_cv_prog_make_${ac_make}_set=yes;;
4006 *)
4007 eval ac_cv_prog_make_${ac_make}_set=no;;
4008esac
4009rm -f conftest.make
4010fi
4011if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013$as_echo "yes" >&6; }
4014 SET_MAKE=
4015else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017$as_echo "no" >&6; }
4018 SET_MAKE="MAKE=${MAKE-make}"
4019fi
4020
4021rm -rf .tst 2>/dev/null
4022mkdir .tst 2>/dev/null
4023if test -d .tst; then
4024 am__leading_dot=.
4025else
4026 am__leading_dot=_
4027fi
4028rmdir .tst 2>/dev/null
4029
cristya448bd22011-10-14 12:38:13 +00004030# Check whether --enable-silent-rules was given.
4031if test "${enable_silent_rules+set}" = set; then :
4032 enableval=$enable_silent_rules;
4033fi
4034
4035case $enable_silent_rules in
4036yes) AM_DEFAULT_VERBOSITY=0;;
4037no) AM_DEFAULT_VERBOSITY=1;;
4038*) AM_DEFAULT_VERBOSITY=1;;
4039esac
4040AM_BACKSLASH='\'
4041
cristy73bd4a52010-10-05 11:24:23 +00004042if 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.
cristy09b53e12011-10-14 12:47:22 +00004063 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004064 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004065
4066
cristya448bd22011-10-14 12:38:13 +00004067cat >>confdefs.h <<_ACEOF
4068#define PACKAGE "$PACKAGE"
4069_ACEOF
4070
4071
4072cat >>confdefs.h <<_ACEOF
4073#define VERSION "$VERSION"
4074_ACEOF
4075
cristy73bd4a52010-10-05 11:24:23 +00004076# Some tools Automake needs.
4077
4078ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4079
4080
4081AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4082
4083
4084AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4085
4086
4087AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4088
4089
4090MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4091
4092# We need awk for the "check" target. The system "awk" is bad on
4093# some platforms.
4094# Always define AMTAR for backward compatibility.
4095
4096AMTAR=${AMTAR-"${am_missing_run}tar"}
4097
4098am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4099
4100
4101
4102
4103
cristy3ed852e2009-09-05 21:47:34 +00004104
4105# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004106# Check whether --enable-silent-rules was given.
4107if test "${enable_silent_rules+set}" = set; then :
4108 enableval=$enable_silent_rules;
4109fi
4110
4111case $enable_silent_rules in
4112yes) AM_DEFAULT_VERBOSITY=0;;
4113no) AM_DEFAULT_VERBOSITY=1;;
4114*) AM_DEFAULT_VERBOSITY=0;;
4115esac
4116AM_BACKSLASH='\'
4117
cristy3ed852e2009-09-05 21:47:34 +00004118
4119MAGICK_LIB_VERSION="0x"
4120if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4121 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4122fi
4123MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4124if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4125 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4126fi
4127MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4128if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4129 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4130fi
4131MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4132
4133
4134# Definition used to define MagickLibVersionText in version.h
4135MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4136
4137
4138# Definition used to define MagickLibVersionNumber in version.h
4139MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4140
4141
4142# Regenerate config.status if ChangeLog or version.sh is updated.
4143CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4144
4145
4146PERLMAINCC=$CC
4147
4148MAGICK_CFLAGS=''
4149MAGICK_CPPFLAGS=$CPPFLAGS_USER
4150MAGICK_PCFLAGS=$CPPFLAGS_USER
4151MAGICK_LDFLAGS=''
4152MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004153MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004154
4155#
4156# Evaluate shell variable equivalents to Makefile directory variables
4157#
4158if test "x$prefix" = xNONE; then
4159 prefix=$ac_default_prefix
4160fi
4161# Let make expand exec_prefix.
4162if test "x$exec_prefix" = xNONE; then
4163 exec_prefix='${prefix}'
4164fi
4165
4166#
4167eval "eval PREFIX_DIR=${prefix}"
4168
4169eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4170
4171eval "eval BIN_DIR=$bindir"
4172
4173eval "eval SBIN_DIR=$sbindir"
4174
4175eval "eval LIBEXEC_DIR=$libexecdir"
4176
4177eval "eval DATA_DIR=$datadir"
4178
cristyd55889c2011-03-27 00:50:24 +00004179eval "eval DOC_DIR=$docdir"
4180
cristy3ed852e2009-09-05 21:47:34 +00004181eval "eval SYSCONF_DIR=$sysconfdir"
4182
4183eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4184
4185eval "eval LOCALSTATE_DIR=$localstatedir"
4186
4187eval "eval LIB_DIR=$libdir"
4188
4189eval "eval INCLUDE_DIR=$includedir"
4190
4191eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4192
4193eval "eval INFO_DIR=$infodir"
4194
4195eval "eval MAN_DIR=$mandir"
4196
4197
4198# Get full paths to source and build directories
4199srcdirfull="`cd $srcdir && pwd`"
4200builddir="`pwd`"
4201
4202#
4203# Compute variables useful for running uninstalled software.
4204#
4205MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4206MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4207MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4208MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4209DIRSEP=':'
4210case "${build_os}" in
4211 mingw* )
4212 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4213 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4214 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4215 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4216 DIRSEP=';'
4217 ;;
4218esac
4219case "${host_os}" in
4220 mingw* )
4221 DIRSEP=';'
4222 ;;
4223esac
4224
4225
4226
4227
4228
4229
cristya0b81c32010-01-22 02:54:33 +00004230
4231#
4232# Enable OS features.
4233#
cristy73bd4a52010-10-05 11:24:23 +00004234DEPDIR="${am__leading_dot}deps"
4235
4236ac_config_commands="$ac_config_commands depfiles"
4237
4238
4239am_make=${MAKE-make}
4240cat > confinc << 'END'
4241am__doit:
4242 @echo this is the am__doit target
4243.PHONY: am__doit
4244END
4245# If we don't find an include directive, just comment out the code.
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4247$as_echo_n "checking for style of include used by $am_make... " >&6; }
4248am__include="#"
4249am__quote=
4250_am_result=none
4251# First try GNU make style include.
4252echo "include confinc" > confmf
4253# Ignore all kinds of additional output from `make'.
4254case `$am_make -s -f confmf 2> /dev/null` in #(
4255*the\ am__doit\ target*)
4256 am__include=include
4257 am__quote=
4258 _am_result=GNU
4259 ;;
4260esac
4261# Now try BSD make style include.
4262if test "$am__include" = "#"; then
4263 echo '.include "confinc"' > confmf
4264 case `$am_make -s -f confmf 2> /dev/null` in #(
4265 *the\ am__doit\ target*)
4266 am__include=.include
4267 am__quote="\""
4268 _am_result=BSD
4269 ;;
4270 esac
4271fi
4272
4273
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4275$as_echo "$_am_result" >&6; }
4276rm -f confinc confmf
4277
4278# Check whether --enable-dependency-tracking was given.
4279if test "${enable_dependency_tracking+set}" = set; then :
4280 enableval=$enable_dependency_tracking;
4281fi
4282
4283if test "x$enable_dependency_tracking" != xno; then
4284 am_depcomp="$ac_aux_dir/depcomp"
4285 AMDEPBACKSLASH='\'
4286fi
4287 if test "x$enable_dependency_tracking" != xno; then
4288 AMDEP_TRUE=
4289 AMDEP_FALSE='#'
4290else
4291 AMDEP_TRUE='#'
4292 AMDEP_FALSE=
4293fi
4294
4295
cristy3ed852e2009-09-05 21:47:34 +00004296ac_ext=c
4297ac_cpp='$CPP $CPPFLAGS'
4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301if test -n "$ac_tool_prefix"; then
4302 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4303set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004306if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004307 $as_echo_n "(cached) " >&6
4308else
4309 if test -n "$CC"; then
4310 ac_cv_prog_CC="$CC" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004321 break 2
4322 fi
4323done
cristy8b350f62009-11-15 23:12:43 +00004324 done
cristy3ed852e2009-09-05 21:47:34 +00004325IFS=$as_save_IFS
4326
4327fi
4328fi
4329CC=$ac_cv_prog_CC
4330if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004332$as_echo "$CC" >&6; }
4333else
cristy8b350f62009-11-15 23:12:43 +00004334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004335$as_echo "no" >&6; }
4336fi
4337
4338
4339fi
4340if test -z "$ac_cv_prog_CC"; then
4341 ac_ct_CC=$CC
4342 # Extract the first word of "gcc", so it can be a program name with args.
4343set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004345$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004346if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004347 $as_echo_n "(cached) " >&6
4348else
4349 if test -n "$ac_ct_CC"; then
4350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4351else
4352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004361 break 2
4362 fi
4363done
cristy8b350f62009-11-15 23:12:43 +00004364 done
cristy3ed852e2009-09-05 21:47:34 +00004365IFS=$as_save_IFS
4366
4367fi
4368fi
4369ac_ct_CC=$ac_cv_prog_ac_ct_CC
4370if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004372$as_echo "$ac_ct_CC" >&6; }
4373else
cristy8b350f62009-11-15 23:12:43 +00004374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004375$as_echo "no" >&6; }
4376fi
4377
4378 if test "x$ac_ct_CC" = x; then
4379 CC=""
4380 else
4381 case $cross_compiling:$ac_tool_warned in
4382yes:)
cristy8b350f62009-11-15 23:12:43 +00004383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4385ac_tool_warned=yes ;;
4386esac
4387 CC=$ac_ct_CC
4388 fi
4389else
4390 CC="$ac_cv_prog_CC"
4391fi
4392
4393if test -z "$CC"; then
4394 if test -n "$ac_tool_prefix"; then
4395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4396set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004398$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004399if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004400 $as_echo_n "(cached) " >&6
4401else
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC="$CC" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004410 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004414 break 2
4415 fi
4416done
cristy8b350f62009-11-15 23:12:43 +00004417 done
cristy3ed852e2009-09-05 21:47:34 +00004418IFS=$as_save_IFS
4419
4420fi
4421fi
4422CC=$ac_cv_prog_CC
4423if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004425$as_echo "$CC" >&6; }
4426else
cristy8b350f62009-11-15 23:12:43 +00004427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004428$as_echo "no" >&6; }
4429fi
4430
4431
4432 fi
4433fi
4434if test -z "$CC"; then
4435 # Extract the first word of "cc", so it can be a program name with args.
4436set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004439if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004440 $as_echo_n "(cached) " >&6
4441else
4442 if test -n "$CC"; then
4443 ac_cv_prog_CC="$CC" # Let the user override the test.
4444else
4445 ac_prog_rejected=no
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4454 ac_prog_rejected=yes
4455 continue
4456 fi
4457 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004459 break 2
4460 fi
4461done
cristy8b350f62009-11-15 23:12:43 +00004462 done
cristy3ed852e2009-09-05 21:47:34 +00004463IFS=$as_save_IFS
4464
4465if test $ac_prog_rejected = yes; then
4466 # We found a bogon in the path, so make sure we never use it.
4467 set dummy $ac_cv_prog_CC
4468 shift
4469 if test $# != 0; then
4470 # We chose a different compiler from the bogus one.
4471 # However, it has the same basename, so the bogon will be chosen
4472 # first if we set CC to just the basename; use the full file name.
4473 shift
4474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4475 fi
4476fi
4477fi
4478fi
4479CC=$ac_cv_prog_CC
4480if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004482$as_echo "$CC" >&6; }
4483else
cristy8b350f62009-11-15 23:12:43 +00004484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004485$as_echo "no" >&6; }
4486fi
4487
4488
4489fi
4490if test -z "$CC"; then
4491 if test -n "$ac_tool_prefix"; then
4492 for ac_prog in cl.exe
4493 do
4494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004498if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004499 $as_echo_n "(cached) " >&6
4500else
4501 if test -n "$CC"; then
4502 ac_cv_prog_CC="$CC" # Let the user override the test.
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004513 break 2
4514 fi
4515done
cristy8b350f62009-11-15 23:12:43 +00004516 done
cristy3ed852e2009-09-05 21:47:34 +00004517IFS=$as_save_IFS
4518
4519fi
4520fi
4521CC=$ac_cv_prog_CC
4522if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004524$as_echo "$CC" >&6; }
4525else
cristy8b350f62009-11-15 23:12:43 +00004526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004527$as_echo "no" >&6; }
4528fi
4529
4530
4531 test -n "$CC" && break
4532 done
4533fi
4534if test -z "$CC"; then
4535 ac_ct_CC=$CC
4536 for ac_prog in cl.exe
4537do
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004542if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004543 $as_echo_n "(cached) " >&6
4544else
4545 if test -n "$ac_ct_CC"; then
4546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4547else
4548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004553 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004557 break 2
4558 fi
4559done
cristy8b350f62009-11-15 23:12:43 +00004560 done
cristy3ed852e2009-09-05 21:47:34 +00004561IFS=$as_save_IFS
4562
4563fi
4564fi
4565ac_ct_CC=$ac_cv_prog_ac_ct_CC
4566if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004568$as_echo "$ac_ct_CC" >&6; }
4569else
cristy8b350f62009-11-15 23:12:43 +00004570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004571$as_echo "no" >&6; }
4572fi
4573
4574
4575 test -n "$ac_ct_CC" && break
4576done
4577
4578 if test "x$ac_ct_CC" = x; then
4579 CC=""
4580 else
4581 case $cross_compiling:$ac_tool_warned in
4582yes:)
cristy8b350f62009-11-15 23:12:43 +00004583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4585ac_tool_warned=yes ;;
4586esac
4587 CC=$ac_ct_CC
4588 fi
4589fi
4590
4591fi
4592
4593
cristy8b350f62009-11-15 23:12:43 +00004594test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004596as_fn_error $? "no acceptable C compiler found in \$PATH
4597See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004598
4599# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004600$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004601set X $ac_compile
4602ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004603for ac_option in --version -v -V -qversion; do
4604 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004605case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608esac
cristy8b350f62009-11-15 23:12:43 +00004609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4610$as_echo "$ac_try_echo"; } >&5
4611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004612 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004613 if test -s conftest.err; then
4614 sed '10a\
4615... rest of stderr output deleted ...
4616 10q' conftest.err >conftest.er1
4617 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004618 fi
cristycd4c5312009-11-22 01:19:08 +00004619 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4621 test $ac_status = 0; }
4622done
cristy3ed852e2009-09-05 21:47:34 +00004623
cristy8b350f62009-11-15 23:12:43 +00004624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004625/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004626
cristy3ed852e2009-09-05 21:47:34 +00004627int
4628main ()
4629{
4630
4631 ;
4632 return 0;
4633}
4634_ACEOF
4635ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004636ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004637# Try to create an executable without -o first, disregard a.out.
4638# It will help us diagnose broken compilers, and finding out an intuition
4639# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4641$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004642ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4643
4644# The possible output files:
4645ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4646
4647ac_rmfiles=
4648for ac_file in $ac_files
4649do
4650 case $ac_file in
4651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4652 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4653 esac
4654done
4655rm -f $ac_rmfiles
4656
cristy8b350f62009-11-15 23:12:43 +00004657if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004658case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661esac
cristy8b350f62009-11-15 23:12:43 +00004662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004664 (eval "$ac_link_default") 2>&5
4665 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4667 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004668 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4669# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4670# in a Makefile. We should not override ac_cv_exeext if it was cached,
4671# so that the user can short-circuit this test for compilers unknown to
4672# Autoconf.
4673for ac_file in $ac_files ''
4674do
4675 test -f "$ac_file" || continue
4676 case $ac_file in
4677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4678 ;;
4679 [ab].out )
4680 # We found the default executable, but exeext='' is most
4681 # certainly right.
4682 break;;
4683 *.* )
cristy8b350f62009-11-15 23:12:43 +00004684 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004685 then :; else
4686 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4687 fi
4688 # We set ac_cv_exeext here because the later test for it is not
4689 # safe: cross compilers may not add the suffix if given an `-o'
4690 # argument, so we may need to know it at that point already.
4691 # Even if this section looks crufty: it has the advantage of
4692 # actually working.
4693 break;;
4694 * )
4695 break;;
4696 esac
4697done
4698test "$ac_cv_exeext" = no && ac_cv_exeext=
4699
4700else
4701 ac_file=''
4702fi
cristy8b350f62009-11-15 23:12:43 +00004703if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705$as_echo "no" >&6; }
4706$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004707sed 's/^/| /' conftest.$ac_ext >&5
4708
cristy8b350f62009-11-15 23:12:43 +00004709{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004711as_fn_error 77 "C compiler cannot create executables
4712See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004713else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4715$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004716fi
cristycd4c5312009-11-22 01:19:08 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4718$as_echo_n "checking for C compiler default output file name... " >&6; }
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4720$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004721ac_exeext=$ac_cv_exeext
4722
cristycd4c5312009-11-22 01:19:08 +00004723rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004724ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004726$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004727if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004728case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731esac
cristy8b350f62009-11-15 23:12:43 +00004732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4733$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004734 (eval "$ac_link") 2>&5
4735 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004738 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4739# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4740# work properly (i.e., refer to `conftest.exe'), while it won't with
4741# `rm'.
4742for ac_file in conftest.exe conftest conftest.*; do
4743 test -f "$ac_file" || continue
4744 case $ac_file in
4745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4747 break;;
4748 * ) break;;
4749 esac
4750done
4751else
cristy8b350f62009-11-15 23:12:43 +00004752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004754as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4755See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004756fi
cristycd4c5312009-11-22 01:19:08 +00004757rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004759$as_echo "$ac_cv_exeext" >&6; }
4760
4761rm -f conftest.$ac_ext
4762EXEEXT=$ac_cv_exeext
4763ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h. */
4766#include <stdio.h>
4767int
4768main ()
4769{
4770FILE *f = fopen ("conftest.out", "w");
4771 return ferror (f) || fclose (f) != 0;
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777ac_clean_files="$ac_clean_files conftest.out"
4778# Check that the compiler produces executables we can run. If not, either
4779# the compiler is broken, or we cross compile.
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4781$as_echo_n "checking whether we are cross compiling... " >&6; }
4782if test "$cross_compiling" != yes; then
4783 { { ac_try="$ac_link"
4784case "(($ac_try" in
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4787esac
4788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4789$as_echo "$ac_try_echo"; } >&5
4790 (eval "$ac_link") 2>&5
4791 ac_status=$?
4792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4793 test $ac_status = 0; }
4794 if { ac_try='./conftest$ac_cv_exeext'
4795 { { case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798esac
4799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4800$as_echo "$ac_try_echo"; } >&5
4801 (eval "$ac_try") 2>&5
4802 ac_status=$?
4803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4804 test $ac_status = 0; }; }; then
4805 cross_compiling=no
4806 else
4807 if test "$cross_compiling" = maybe; then
4808 cross_compiling=yes
4809 else
4810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004812as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004813If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004814See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004815 fi
4816 fi
4817fi
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4819$as_echo "$cross_compiling" >&6; }
4820
4821rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4822ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004824$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004825if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004826 $as_echo_n "(cached) " >&6
4827else
cristy8b350f62009-11-15 23:12:43 +00004828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004829/* end confdefs.h. */
4830
4831int
4832main ()
4833{
4834
4835 ;
4836 return 0;
4837}
4838_ACEOF
4839rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004840if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004841case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844esac
cristy8b350f62009-11-15 23:12:43 +00004845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004847 (eval "$ac_compile") 2>&5
4848 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4850 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004851 for ac_file in conftest.o conftest.obj conftest.*; do
4852 test -f "$ac_file" || continue;
4853 case $ac_file in
4854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4856 break;;
4857 esac
4858done
4859else
4860 $as_echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
cristy8b350f62009-11-15 23:12:43 +00004863{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004865as_fn_error $? "cannot compute suffix of object files: cannot compile
4866See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004867fi
cristy3ed852e2009-09-05 21:47:34 +00004868rm -f conftest.$ac_cv_objext conftest.$ac_ext
4869fi
cristy8b350f62009-11-15 23:12:43 +00004870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004871$as_echo "$ac_cv_objext" >&6; }
4872OBJEXT=$ac_cv_objext
4873ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004875$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004876if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004877 $as_echo_n "(cached) " >&6
4878else
cristy8b350f62009-11-15 23:12:43 +00004879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004880/* end confdefs.h. */
4881
4882int
4883main ()
4884{
4885#ifndef __GNUC__
4886 choke me
4887#endif
4888
4889 ;
4890 return 0;
4891}
4892_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004893if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004894 ac_compiler_gnu=yes
4895else
cristy8b350f62009-11-15 23:12:43 +00004896 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004897fi
cristy3ed852e2009-09-05 21:47:34 +00004898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899ac_cv_c_compiler_gnu=$ac_compiler_gnu
4900
4901fi
cristy8b350f62009-11-15 23:12:43 +00004902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004903$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4904if test $ac_compiler_gnu = yes; then
4905 GCC=yes
4906else
4907 GCC=
4908fi
4909ac_test_CFLAGS=${CFLAGS+set}
4910ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004912$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004913if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004914 $as_echo_n "(cached) " >&6
4915else
4916 ac_save_c_werror_flag=$ac_c_werror_flag
4917 ac_c_werror_flag=yes
4918 ac_cv_prog_cc_g=no
4919 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004921/* end confdefs.h. */
4922
4923int
4924main ()
4925{
4926
4927 ;
4928 return 0;
4929}
4930_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004931if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004932 ac_cv_prog_cc_g=yes
4933else
cristy8b350f62009-11-15 23:12:43 +00004934 CFLAGS=""
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004936/* end confdefs.h. */
4937
4938int
4939main ()
4940{
4941
4942 ;
4943 return 0;
4944}
4945_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004946if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004947
cristy8b350f62009-11-15 23:12:43 +00004948else
4949 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004950 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004952/* end confdefs.h. */
4953
4954int
4955main ()
4956{
4957
4958 ;
4959 return 0;
4960}
4961_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004962if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004963 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004964fi
cristy3ed852e2009-09-05 21:47:34 +00004965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966fi
cristy3ed852e2009-09-05 21:47:34 +00004967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968fi
cristy3ed852e2009-09-05 21:47:34 +00004969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 ac_c_werror_flag=$ac_save_c_werror_flag
4971fi
cristy8b350f62009-11-15 23:12:43 +00004972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004973$as_echo "$ac_cv_prog_cc_g" >&6; }
4974if test "$ac_test_CFLAGS" = set; then
4975 CFLAGS=$ac_save_CFLAGS
4976elif test $ac_cv_prog_cc_g = yes; then
4977 if test "$GCC" = yes; then
4978 CFLAGS="-g -O2"
4979 else
4980 CFLAGS="-g"
4981 fi
4982else
4983 if test "$GCC" = yes; then
4984 CFLAGS="-O2"
4985 else
4986 CFLAGS=
4987 fi
4988fi
cristy8b350f62009-11-15 23:12:43 +00004989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004990$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004991if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004992 $as_echo_n "(cached) " >&6
4993else
4994 ac_cv_prog_cc_c89=no
4995ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004997/* end confdefs.h. */
4998#include <stdarg.h>
4999#include <stdio.h>
5000#include <sys/types.h>
5001#include <sys/stat.h>
5002/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5003struct buf { int x; };
5004FILE * (*rcsopen) (struct buf *, struct stat *, int);
5005static char *e (p, i)
5006 char **p;
5007 int i;
5008{
5009 return p[i];
5010}
5011static char *f (char * (*g) (char **, int), char **p, ...)
5012{
5013 char *s;
5014 va_list v;
5015 va_start (v,p);
5016 s = g (p, va_arg (v,int));
5017 va_end (v);
5018 return s;
5019}
5020
5021/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5022 function prototypes and stuff, but not '\xHH' hex character constants.
5023 These don't provoke an error unfortunately, instead are silently treated
5024 as 'x'. The following induces an error, until -std is added to get
5025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5026 array size at least. It's necessary to write '\x00'==0 to get something
5027 that's true only with -std. */
5028int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5029
5030/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5031 inside strings and character constants. */
5032#define FOO(x) 'x'
5033int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5034
5035int test (int i, double x);
5036struct s1 {int (*f) (int a);};
5037struct s2 {int (*f) (double a);};
5038int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5039int argc;
5040char **argv;
5041int
5042main ()
5043{
5044return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5045 ;
5046 return 0;
5047}
5048_ACEOF
5049for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5051do
5052 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005053 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005054 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005055fi
cristy3ed852e2009-09-05 21:47:34 +00005056rm -f core conftest.err conftest.$ac_objext
5057 test "x$ac_cv_prog_cc_c89" != "xno" && break
5058done
5059rm -f conftest.$ac_ext
5060CC=$ac_save_CC
5061
5062fi
5063# AC_CACHE_VAL
5064case "x$ac_cv_prog_cc_c89" in
5065 x)
cristy8b350f62009-11-15 23:12:43 +00005066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005067$as_echo "none needed" >&6; } ;;
5068 xno)
cristy8b350f62009-11-15 23:12:43 +00005069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005070$as_echo "unsupported" >&6; } ;;
5071 *)
5072 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005074$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5075esac
cristy8b350f62009-11-15 23:12:43 +00005076if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005077
cristy8b350f62009-11-15 23:12:43 +00005078fi
cristy3ed852e2009-09-05 21:47:34 +00005079
5080ac_ext=c
5081ac_cpp='$CPP $CPPFLAGS'
5082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005085
cristy73bd4a52010-10-05 11:24:23 +00005086depcc="$CC" am_compiler_list=
5087
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5089$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005090if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005091 $as_echo_n "(cached) " >&6
5092else
5093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5094 # We make a subdir and do the tests there. Otherwise we can end up
5095 # making bogus files that we don't know about and never remove. For
5096 # instance it was reported that on HP-UX the gcc test will end up
5097 # making a dummy file named `D' -- because `-MD' means `put the output
5098 # in D'.
5099 mkdir conftest.dir
5100 # Copy depcomp to subdir because otherwise we won't find it if we're
5101 # using a relative directory.
5102 cp "$am_depcomp" conftest.dir
5103 cd conftest.dir
5104 # We will build objects and dependencies in a subdirectory because
5105 # it helps to detect inapplicable dependency modes. For instance
5106 # both Tru64's cc and ICC support -MD to output dependencies as a
5107 # side effect of compilation, but ICC will put the dependencies in
5108 # the current directory while Tru64 will put them in the object
5109 # directory.
5110 mkdir sub
5111
5112 am_cv_CC_dependencies_compiler_type=none
5113 if test "$am_compiler_list" = ""; then
5114 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5115 fi
5116 am__universal=false
5117 case " $depcc " in #(
5118 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5119 esac
5120
5121 for depmode in $am_compiler_list; do
5122 # Setup a source with many dependencies, because some compilers
5123 # like to wrap large dependency lists on column 80 (with \), and
5124 # we should not choose a depcomp mode which is confused by this.
5125 #
5126 # We need to recreate these files for each test, as the compiler may
5127 # overwrite some of them when testing with obscure command lines.
5128 # This happens at least with the AIX C compiler.
5129 : > sub/conftest.c
5130 for i in 1 2 3 4 5 6; do
5131 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5132 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5133 # Solaris 8's {/usr,}/bin/sh.
5134 touch sub/conftst$i.h
5135 done
5136 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5137
5138 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5139 # mode. It turns out that the SunPro C++ compiler does not properly
5140 # handle `-M -o', and we need to detect this. Also, some Intel
5141 # versions had trouble with output in subdirs
5142 am__obj=sub/conftest.${OBJEXT-o}
5143 am__minus_obj="-o $am__obj"
5144 case $depmode in
5145 gcc)
5146 # This depmode causes a compiler race in universal mode.
5147 test "$am__universal" = false || continue
5148 ;;
5149 nosideeffect)
5150 # after this tag, mechanisms are not by side-effect, so they'll
5151 # only be used when explicitly requested
5152 if test "x$enable_dependency_tracking" = xyes; then
5153 continue
5154 else
5155 break
5156 fi
5157 ;;
5158 msvisualcpp | msvcmsys)
5159 # This compiler won't grok `-c -o', but also, the minuso test has
5160 # not run yet. These depmodes are late enough in the game, and
5161 # so weak that their functioning should not be impacted.
5162 am__obj=conftest.${OBJEXT-o}
5163 am__minus_obj=
5164 ;;
5165 none) break ;;
5166 esac
5167 if depmode=$depmode \
5168 source=sub/conftest.c object=$am__obj \
5169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5170 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5171 >/dev/null 2>conftest.err &&
5172 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5173 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5174 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5175 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5176 # icc doesn't choke on unknown options, it will just issue warnings
5177 # or remarks (even with -Werror). So we grep stderr for any message
5178 # that says an option was ignored or not supported.
5179 # When given -MP, icc 7.0 and 7.1 complain thusly:
5180 # icc: Command line warning: ignoring option '-M'; no argument required
5181 # The diagnosis changed in icc 8.0:
5182 # icc: Command line remark: option '-MP' not supported
5183 if (grep 'ignoring option' conftest.err ||
5184 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5185 am_cv_CC_dependencies_compiler_type=$depmode
5186 break
5187 fi
5188 fi
5189 done
5190
5191 cd ..
5192 rm -rf conftest.dir
5193else
5194 am_cv_CC_dependencies_compiler_type=none
5195fi
5196
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5199$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5200CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5201
5202 if
5203 test "x$enable_dependency_tracking" != xno \
5204 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5205 am__fastdepCC_TRUE=
5206 am__fastdepCC_FALSE='#'
5207else
5208 am__fastdepCC_TRUE='#'
5209 am__fastdepCC_FALSE=
5210fi
5211
5212
cristy3ed852e2009-09-05 21:47:34 +00005213
cristya0b81c32010-01-22 02:54:33 +00005214ac_ext=c
5215ac_cpp='$CPP $CPPFLAGS'
5216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218ac_compiler_gnu=$ac_cv_c_compiler_gnu
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5220$as_echo_n "checking how to run the C preprocessor... " >&6; }
5221# On Suns, sometimes $CPP names a directory.
5222if test -n "$CPP" && test -d "$CPP"; then
5223 CPP=
5224fi
5225if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005226 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005227 $as_echo_n "(cached) " >&6
5228else
5229 # Double quotes because CPP needs to be expanded
5230 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5231 do
5232 ac_preproc_ok=false
5233for ac_c_preproc_warn_flag in '' yes
5234do
5235 # Use a header file that comes with gcc, so configuring glibc
5236 # with a fresh cross-compiler works.
5237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5238 # <limits.h> exists even on freestanding compilers.
5239 # On the NeXT, cc -E runs the code through the compiler's parser,
5240 # not just through cpp. "Syntax error" is here to catch this case.
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242/* end confdefs.h. */
5243#ifdef __STDC__
5244# include <limits.h>
5245#else
5246# include <assert.h>
5247#endif
5248 Syntax error
5249_ACEOF
5250if ac_fn_c_try_cpp "$LINENO"; then :
5251
5252else
5253 # Broken: fails on valid input.
5254continue
5255fi
cristyda16f162011-02-19 23:52:17 +00005256rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005257
5258 # OK, works on sane cases. Now check whether nonexistent headers
5259 # can be detected and how.
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261/* end confdefs.h. */
5262#include <ac_nonexistent.h>
5263_ACEOF
5264if ac_fn_c_try_cpp "$LINENO"; then :
5265 # Broken: success on invalid input.
5266continue
5267else
5268 # Passes both tests.
5269ac_preproc_ok=:
5270break
5271fi
cristyda16f162011-02-19 23:52:17 +00005272rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005273
5274done
5275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005276rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005277if $ac_preproc_ok; then :
5278 break
5279fi
5280
5281 done
5282 ac_cv_prog_CPP=$CPP
5283
5284fi
5285 CPP=$ac_cv_prog_CPP
5286else
5287 ac_cv_prog_CPP=$CPP
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5290$as_echo "$CPP" >&6; }
5291ac_preproc_ok=false
5292for ac_c_preproc_warn_flag in '' yes
5293do
5294 # Use a header file that comes with gcc, so configuring glibc
5295 # with a fresh cross-compiler works.
5296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5297 # <limits.h> exists even on freestanding compilers.
5298 # On the NeXT, cc -E runs the code through the compiler's parser,
5299 # not just through cpp. "Syntax error" is here to catch this case.
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301/* end confdefs.h. */
5302#ifdef __STDC__
5303# include <limits.h>
5304#else
5305# include <assert.h>
5306#endif
5307 Syntax error
5308_ACEOF
5309if ac_fn_c_try_cpp "$LINENO"; then :
5310
5311else
5312 # Broken: fails on valid input.
5313continue
5314fi
cristyda16f162011-02-19 23:52:17 +00005315rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005316
5317 # OK, works on sane cases. Now check whether nonexistent headers
5318 # can be detected and how.
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h. */
5321#include <ac_nonexistent.h>
5322_ACEOF
5323if ac_fn_c_try_cpp "$LINENO"; then :
5324 # Broken: success on invalid input.
5325continue
5326else
5327 # Passes both tests.
5328ac_preproc_ok=:
5329break
5330fi
cristyda16f162011-02-19 23:52:17 +00005331rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005332
5333done
5334# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005335rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005336if $ac_preproc_ok; then :
5337
5338else
5339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005341as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5342See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005343fi
5344
5345ac_ext=c
5346ac_cpp='$CPP $CPPFLAGS'
5347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350
5351
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5353$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005354if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005355 $as_echo_n "(cached) " >&6
5356else
5357 if test -z "$GREP"; then
5358 ac_path_GREP_found=false
5359 # Loop through the user's path and test for each of PROGNAME-LIST
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_prog in grep ggrep; do
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5368 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5369# Check for GNU ac_path_GREP and select it if it is found.
5370 # Check for GNU $ac_path_GREP
5371case `"$ac_path_GREP" --version 2>&1` in
5372*GNU*)
5373 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5374*)
5375 ac_count=0
5376 $as_echo_n 0123456789 >"conftest.in"
5377 while :
5378 do
5379 cat "conftest.in" "conftest.in" >"conftest.tmp"
5380 mv "conftest.tmp" "conftest.in"
5381 cp "conftest.in" "conftest.nl"
5382 $as_echo 'GREP' >> "conftest.nl"
5383 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5385 as_fn_arith $ac_count + 1 && ac_count=$as_val
5386 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5387 # Best one so far, save it but keep looking for a better one
5388 ac_cv_path_GREP="$ac_path_GREP"
5389 ac_path_GREP_max=$ac_count
5390 fi
5391 # 10*(2^10) chars as input seems more than enough
5392 test $ac_count -gt 10 && break
5393 done
5394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5395esac
5396
5397 $ac_path_GREP_found && break 3
5398 done
5399 done
5400 done
5401IFS=$as_save_IFS
5402 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005403 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005404 fi
5405else
5406 ac_cv_path_GREP=$GREP
5407fi
5408
5409fi
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5411$as_echo "$ac_cv_path_GREP" >&6; }
5412 GREP="$ac_cv_path_GREP"
5413
5414
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5416$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005417if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005418 $as_echo_n "(cached) " >&6
5419else
5420 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5421 then ac_cv_path_EGREP="$GREP -E"
5422 else
5423 if test -z "$EGREP"; then
5424 ac_path_EGREP_found=false
5425 # Loop through the user's path and test for each of PROGNAME-LIST
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5428do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_prog in egrep; do
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5434 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5435# Check for GNU ac_path_EGREP and select it if it is found.
5436 # Check for GNU $ac_path_EGREP
5437case `"$ac_path_EGREP" --version 2>&1` in
5438*GNU*)
5439 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5440*)
5441 ac_count=0
5442 $as_echo_n 0123456789 >"conftest.in"
5443 while :
5444 do
5445 cat "conftest.in" "conftest.in" >"conftest.tmp"
5446 mv "conftest.tmp" "conftest.in"
5447 cp "conftest.in" "conftest.nl"
5448 $as_echo 'EGREP' >> "conftest.nl"
5449 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5450 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5451 as_fn_arith $ac_count + 1 && ac_count=$as_val
5452 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5453 # Best one so far, save it but keep looking for a better one
5454 ac_cv_path_EGREP="$ac_path_EGREP"
5455 ac_path_EGREP_max=$ac_count
5456 fi
5457 # 10*(2^10) chars as input seems more than enough
5458 test $ac_count -gt 10 && break
5459 done
5460 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5461esac
5462
5463 $ac_path_EGREP_found && break 3
5464 done
5465 done
5466 done
5467IFS=$as_save_IFS
5468 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005469 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005470 fi
5471else
5472 ac_cv_path_EGREP=$EGREP
5473fi
5474
5475 fi
5476fi
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5478$as_echo "$ac_cv_path_EGREP" >&6; }
5479 EGREP="$ac_cv_path_EGREP"
5480
5481
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5483$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005484if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005485 $as_echo_n "(cached) " >&6
5486else
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488/* end confdefs.h. */
5489#include <stdlib.h>
5490#include <stdarg.h>
5491#include <string.h>
5492#include <float.h>
5493
5494int
5495main ()
5496{
5497
5498 ;
5499 return 0;
5500}
5501_ACEOF
5502if ac_fn_c_try_compile "$LINENO"; then :
5503 ac_cv_header_stdc=yes
5504else
5505 ac_cv_header_stdc=no
5506fi
5507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508
5509if test $ac_cv_header_stdc = yes; then
5510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h. */
5513#include <string.h>
5514
5515_ACEOF
5516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5517 $EGREP "memchr" >/dev/null 2>&1; then :
5518
5519else
5520 ac_cv_header_stdc=no
5521fi
5522rm -f conftest*
5523
5524fi
5525
5526if test $ac_cv_header_stdc = yes; then
5527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529/* end confdefs.h. */
5530#include <stdlib.h>
5531
5532_ACEOF
5533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5534 $EGREP "free" >/dev/null 2>&1; then :
5535
5536else
5537 ac_cv_header_stdc=no
5538fi
5539rm -f conftest*
5540
5541fi
5542
5543if test $ac_cv_header_stdc = yes; then
5544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5545 if test "$cross_compiling" = yes; then :
5546 :
5547else
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h. */
5550#include <ctype.h>
5551#include <stdlib.h>
5552#if ((' ' & 0x0FF) == 0x020)
5553# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5554# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5555#else
5556# define ISLOWER(c) \
5557 (('a' <= (c) && (c) <= 'i') \
5558 || ('j' <= (c) && (c) <= 'r') \
5559 || ('s' <= (c) && (c) <= 'z'))
5560# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5561#endif
5562
5563#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5564int
5565main ()
5566{
5567 int i;
5568 for (i = 0; i < 256; i++)
5569 if (XOR (islower (i), ISLOWER (i))
5570 || toupper (i) != TOUPPER (i))
5571 return 2;
5572 return 0;
5573}
5574_ACEOF
5575if ac_fn_c_try_run "$LINENO"; then :
5576
5577else
5578 ac_cv_header_stdc=no
5579fi
5580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5581 conftest.$ac_objext conftest.beam conftest.$ac_ext
5582fi
5583
5584fi
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5587$as_echo "$ac_cv_header_stdc" >&6; }
5588if test $ac_cv_header_stdc = yes; then
5589
5590$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5591
5592fi
5593
5594# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5595for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5596 inttypes.h stdint.h unistd.h
5597do :
5598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5599ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5600"
cristy98dddb52010-11-04 00:30:15 +00005601if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005602 cat >>confdefs.h <<_ACEOF
5603#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5604_ACEOF
5605
5606fi
5607
5608done
5609
5610
5611
5612 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 +00005613if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005614 MINIX=yes
5615else
5616 MINIX=
5617fi
5618
5619
5620 if test "$MINIX" = yes; then
5621
5622$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5623
5624
5625$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5626
5627
5628$as_echo "#define _MINIX 1" >>confdefs.h
5629
5630 fi
5631
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5634$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005635if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005636 $as_echo_n "(cached) " >&6
5637else
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h. */
5640
5641# define __EXTENSIONS__ 1
5642 $ac_includes_default
5643int
5644main ()
5645{
5646
5647 ;
5648 return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_compile "$LINENO"; then :
5652 ac_cv_safe_to_define___extensions__=yes
5653else
5654 ac_cv_safe_to_define___extensions__=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5659$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5660 test $ac_cv_safe_to_define___extensions__ = yes &&
5661 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5662
5663 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5664
5665 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5666
5667 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5668
5669 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5670
5671
5672
5673# Check for programs
5674ac_ext=c
5675ac_cpp='$CPP $CPPFLAGS'
5676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678ac_compiler_gnu=$ac_cv_c_compiler_gnu
5679if test -n "$ac_tool_prefix"; then
5680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5681set dummy ${ac_tool_prefix}gcc; ac_word=$2
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005684if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005685 $as_echo_n "(cached) " >&6
5686else
5687 if test -n "$CC"; then
5688 ac_cv_prog_CC="$CC" # Let the user override the test.
5689else
5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5700 fi
5701done
5702 done
5703IFS=$as_save_IFS
5704
5705fi
5706fi
5707CC=$ac_cv_prog_CC
5708if test -n "$CC"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5710$as_echo "$CC" >&6; }
5711else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714fi
5715
5716
5717fi
5718if test -z "$ac_cv_prog_CC"; then
5719 ac_ct_CC=$CC
5720 # Extract the first word of "gcc", so it can be a program name with args.
5721set dummy gcc; ac_word=$2
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005724if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005725 $as_echo_n "(cached) " >&6
5726else
5727 if test -n "$ac_ct_CC"; then
5728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5729else
5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in $PATH
5732do
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737 ac_cv_prog_ac_ct_CC="gcc"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5740 fi
5741done
5742 done
5743IFS=$as_save_IFS
5744
5745fi
5746fi
5747ac_ct_CC=$ac_cv_prog_ac_ct_CC
5748if test -n "$ac_ct_CC"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5750$as_echo "$ac_ct_CC" >&6; }
5751else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753$as_echo "no" >&6; }
5754fi
5755
5756 if test "x$ac_ct_CC" = x; then
5757 CC=""
5758 else
5759 case $cross_compiling:$ac_tool_warned in
5760yes:)
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5763ac_tool_warned=yes ;;
5764esac
5765 CC=$ac_ct_CC
5766 fi
5767else
5768 CC="$ac_cv_prog_CC"
5769fi
5770
5771if test -z "$CC"; then
5772 if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5774set dummy ${ac_tool_prefix}cc; ac_word=$2
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005777if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005778 $as_echo_n "(cached) " >&6
5779else
5780 if test -n "$CC"; then
5781 ac_cv_prog_CC="$CC" # Let the user override the test.
5782else
5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784for as_dir in $PATH
5785do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790 ac_cv_prog_CC="${ac_tool_prefix}cc"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794done
5795 done
5796IFS=$as_save_IFS
5797
5798fi
5799fi
5800CC=$ac_cv_prog_CC
5801if test -n "$CC"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5803$as_echo "$CC" >&6; }
5804else
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806$as_echo "no" >&6; }
5807fi
5808
5809
5810 fi
5811fi
5812if test -z "$CC"; then
5813 # Extract the first word of "cc", so it can be a program name with args.
5814set dummy cc; ac_word=$2
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005817if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005818 $as_echo_n "(cached) " >&6
5819else
5820 if test -n "$CC"; then
5821 ac_cv_prog_CC="$CC" # Let the user override the test.
5822else
5823 ac_prog_rejected=no
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5832 ac_prog_rejected=yes
5833 continue
5834 fi
5835 ac_cv_prog_CC="cc"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839done
5840 done
5841IFS=$as_save_IFS
5842
5843if test $ac_prog_rejected = yes; then
5844 # We found a bogon in the path, so make sure we never use it.
5845 set dummy $ac_cv_prog_CC
5846 shift
5847 if test $# != 0; then
5848 # We chose a different compiler from the bogus one.
5849 # However, it has the same basename, so the bogon will be chosen
5850 # first if we set CC to just the basename; use the full file name.
5851 shift
5852 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5853 fi
5854fi
5855fi
5856fi
5857CC=$ac_cv_prog_CC
5858if test -n "$CC"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5860$as_echo "$CC" >&6; }
5861else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863$as_echo "no" >&6; }
5864fi
5865
5866
5867fi
5868if test -z "$CC"; then
5869 if test -n "$ac_tool_prefix"; then
5870 for ac_prog in cl.exe
5871 do
5872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5873set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005876if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005877 $as_echo_n "(cached) " >&6
5878else
5879 if test -n "$CC"; then
5880 ac_cv_prog_CC="$CC" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893done
5894 done
5895IFS=$as_save_IFS
5896
5897fi
5898fi
5899CC=$ac_cv_prog_CC
5900if test -n "$CC"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5902$as_echo "$CC" >&6; }
5903else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905$as_echo "no" >&6; }
5906fi
5907
5908
5909 test -n "$CC" && break
5910 done
5911fi
5912if test -z "$CC"; then
5913 ac_ct_CC=$CC
5914 for ac_prog in cl.exe
5915do
5916 # Extract the first word of "$ac_prog", so it can be a program name with args.
5917set dummy $ac_prog; ac_word=$2
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005920if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005921 $as_echo_n "(cached) " >&6
5922else
5923 if test -n "$ac_ct_CC"; then
5924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_ac_ct_CC="$ac_prog"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937done
5938 done
5939IFS=$as_save_IFS
5940
5941fi
5942fi
5943ac_ct_CC=$ac_cv_prog_ac_ct_CC
5944if test -n "$ac_ct_CC"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5946$as_echo "$ac_ct_CC" >&6; }
5947else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949$as_echo "no" >&6; }
5950fi
5951
5952
5953 test -n "$ac_ct_CC" && break
5954done
5955
5956 if test "x$ac_ct_CC" = x; then
5957 CC=""
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960yes:)
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963ac_tool_warned=yes ;;
5964esac
5965 CC=$ac_ct_CC
5966 fi
5967fi
5968
5969fi
5970
5971
5972test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005974as_fn_error $? "no acceptable C compiler found in \$PATH
5975See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005976
5977# Provide some information about the compiler.
5978$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5979set X $ac_compile
5980ac_compiler=$2
5981for ac_option in --version -v -V -qversion; do
5982 { { ac_try="$ac_compiler $ac_option >&5"
5983case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986esac
5987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5988$as_echo "$ac_try_echo"; } >&5
5989 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5990 ac_status=$?
5991 if test -s conftest.err; then
5992 sed '10a\
5993... rest of stderr output deleted ...
5994 10q' conftest.err >conftest.er1
5995 cat conftest.er1 >&5
5996 fi
5997 rm -f conftest.er1 conftest.err
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }
6000done
6001
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6003$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006004if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006005 $as_echo_n "(cached) " >&6
6006else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h. */
6009
6010int
6011main ()
6012{
6013#ifndef __GNUC__
6014 choke me
6015#endif
6016
6017 ;
6018 return 0;
6019}
6020_ACEOF
6021if ac_fn_c_try_compile "$LINENO"; then :
6022 ac_compiler_gnu=yes
6023else
6024 ac_compiler_gnu=no
6025fi
6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027ac_cv_c_compiler_gnu=$ac_compiler_gnu
6028
6029fi
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6031$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6032if test $ac_compiler_gnu = yes; then
6033 GCC=yes
6034else
6035 GCC=
6036fi
6037ac_test_CFLAGS=${CFLAGS+set}
6038ac_save_CFLAGS=$CFLAGS
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6040$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006041if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006042 $as_echo_n "(cached) " >&6
6043else
6044 ac_save_c_werror_flag=$ac_c_werror_flag
6045 ac_c_werror_flag=yes
6046 ac_cv_prog_cc_g=no
6047 CFLAGS="-g"
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h. */
6050
6051int
6052main ()
6053{
6054
6055 ;
6056 return 0;
6057}
6058_ACEOF
6059if ac_fn_c_try_compile "$LINENO"; then :
6060 ac_cv_prog_cc_g=yes
6061else
6062 CFLAGS=""
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h. */
6065
6066int
6067main ()
6068{
6069
6070 ;
6071 return 0;
6072}
6073_ACEOF
6074if ac_fn_c_try_compile "$LINENO"; then :
6075
6076else
6077 ac_c_werror_flag=$ac_save_c_werror_flag
6078 CFLAGS="-g"
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h. */
6081
6082int
6083main ()
6084{
6085
6086 ;
6087 return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_compile "$LINENO"; then :
6091 ac_cv_prog_cc_g=yes
6092fi
6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094fi
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 ac_c_werror_flag=$ac_save_c_werror_flag
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6101$as_echo "$ac_cv_prog_cc_g" >&6; }
6102if test "$ac_test_CFLAGS" = set; then
6103 CFLAGS=$ac_save_CFLAGS
6104elif test $ac_cv_prog_cc_g = yes; then
6105 if test "$GCC" = yes; then
6106 CFLAGS="-g -O2"
6107 else
6108 CFLAGS="-g"
6109 fi
6110else
6111 if test "$GCC" = yes; then
6112 CFLAGS="-O2"
6113 else
6114 CFLAGS=
6115 fi
6116fi
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6118$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006119if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006120 $as_echo_n "(cached) " >&6
6121else
6122 ac_cv_prog_cc_c89=no
6123ac_save_CC=$CC
6124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h. */
6126#include <stdarg.h>
6127#include <stdio.h>
6128#include <sys/types.h>
6129#include <sys/stat.h>
6130/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6131struct buf { int x; };
6132FILE * (*rcsopen) (struct buf *, struct stat *, int);
6133static char *e (p, i)
6134 char **p;
6135 int i;
6136{
6137 return p[i];
6138}
6139static char *f (char * (*g) (char **, int), char **p, ...)
6140{
6141 char *s;
6142 va_list v;
6143 va_start (v,p);
6144 s = g (p, va_arg (v,int));
6145 va_end (v);
6146 return s;
6147}
6148
6149/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6150 function prototypes and stuff, but not '\xHH' hex character constants.
6151 These don't provoke an error unfortunately, instead are silently treated
6152 as 'x'. The following induces an error, until -std is added to get
6153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6154 array size at least. It's necessary to write '\x00'==0 to get something
6155 that's true only with -std. */
6156int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6157
6158/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6159 inside strings and character constants. */
6160#define FOO(x) 'x'
6161int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6162
6163int test (int i, double x);
6164struct s1 {int (*f) (int a);};
6165struct s2 {int (*f) (double a);};
6166int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6167int argc;
6168char **argv;
6169int
6170main ()
6171{
6172return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6173 ;
6174 return 0;
6175}
6176_ACEOF
6177for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6178 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6179do
6180 CC="$ac_save_CC $ac_arg"
6181 if ac_fn_c_try_compile "$LINENO"; then :
6182 ac_cv_prog_cc_c89=$ac_arg
6183fi
6184rm -f core conftest.err conftest.$ac_objext
6185 test "x$ac_cv_prog_cc_c89" != "xno" && break
6186done
6187rm -f conftest.$ac_ext
6188CC=$ac_save_CC
6189
6190fi
6191# AC_CACHE_VAL
6192case "x$ac_cv_prog_cc_c89" in
6193 x)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6195$as_echo "none needed" >&6; } ;;
6196 xno)
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6198$as_echo "unsupported" >&6; } ;;
6199 *)
6200 CC="$CC $ac_cv_prog_cc_c89"
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6202$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6203esac
6204if test "x$ac_cv_prog_cc_c89" != xno; then :
6205
6206fi
6207
6208ac_ext=c
6209ac_cpp='$CPP $CPPFLAGS'
6210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213
cristy73bd4a52010-10-05 11:24:23 +00006214depcc="$CC" am_compiler_list=
6215
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6217$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006218if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006219 $as_echo_n "(cached) " >&6
6220else
6221 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6222 # We make a subdir and do the tests there. Otherwise we can end up
6223 # making bogus files that we don't know about and never remove. For
6224 # instance it was reported that on HP-UX the gcc test will end up
6225 # making a dummy file named `D' -- because `-MD' means `put the output
6226 # in D'.
6227 mkdir conftest.dir
6228 # Copy depcomp to subdir because otherwise we won't find it if we're
6229 # using a relative directory.
6230 cp "$am_depcomp" conftest.dir
6231 cd conftest.dir
6232 # We will build objects and dependencies in a subdirectory because
6233 # it helps to detect inapplicable dependency modes. For instance
6234 # both Tru64's cc and ICC support -MD to output dependencies as a
6235 # side effect of compilation, but ICC will put the dependencies in
6236 # the current directory while Tru64 will put them in the object
6237 # directory.
6238 mkdir sub
6239
6240 am_cv_CC_dependencies_compiler_type=none
6241 if test "$am_compiler_list" = ""; then
6242 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6243 fi
6244 am__universal=false
6245 case " $depcc " in #(
6246 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6247 esac
6248
6249 for depmode in $am_compiler_list; do
6250 # Setup a source with many dependencies, because some compilers
6251 # like to wrap large dependency lists on column 80 (with \), and
6252 # we should not choose a depcomp mode which is confused by this.
6253 #
6254 # We need to recreate these files for each test, as the compiler may
6255 # overwrite some of them when testing with obscure command lines.
6256 # This happens at least with the AIX C compiler.
6257 : > sub/conftest.c
6258 for i in 1 2 3 4 5 6; do
6259 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6260 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6261 # Solaris 8's {/usr,}/bin/sh.
6262 touch sub/conftst$i.h
6263 done
6264 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6265
6266 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6267 # mode. It turns out that the SunPro C++ compiler does not properly
6268 # handle `-M -o', and we need to detect this. Also, some Intel
6269 # versions had trouble with output in subdirs
6270 am__obj=sub/conftest.${OBJEXT-o}
6271 am__minus_obj="-o $am__obj"
6272 case $depmode in
6273 gcc)
6274 # This depmode causes a compiler race in universal mode.
6275 test "$am__universal" = false || continue
6276 ;;
6277 nosideeffect)
6278 # after this tag, mechanisms are not by side-effect, so they'll
6279 # only be used when explicitly requested
6280 if test "x$enable_dependency_tracking" = xyes; then
6281 continue
6282 else
6283 break
6284 fi
6285 ;;
6286 msvisualcpp | msvcmsys)
6287 # This compiler won't grok `-c -o', but also, the minuso test has
6288 # not run yet. These depmodes are late enough in the game, and
6289 # so weak that their functioning should not be impacted.
6290 am__obj=conftest.${OBJEXT-o}
6291 am__minus_obj=
6292 ;;
6293 none) break ;;
6294 esac
6295 if depmode=$depmode \
6296 source=sub/conftest.c object=$am__obj \
6297 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6298 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6299 >/dev/null 2>conftest.err &&
6300 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6301 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6302 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6303 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6304 # icc doesn't choke on unknown options, it will just issue warnings
6305 # or remarks (even with -Werror). So we grep stderr for any message
6306 # that says an option was ignored or not supported.
6307 # When given -MP, icc 7.0 and 7.1 complain thusly:
6308 # icc: Command line warning: ignoring option '-M'; no argument required
6309 # The diagnosis changed in icc 8.0:
6310 # icc: Command line remark: option '-MP' not supported
6311 if (grep 'ignoring option' conftest.err ||
6312 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6313 am_cv_CC_dependencies_compiler_type=$depmode
6314 break
6315 fi
6316 fi
6317 done
6318
6319 cd ..
6320 rm -rf conftest.dir
6321else
6322 am_cv_CC_dependencies_compiler_type=none
6323fi
6324
6325fi
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6327$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6328CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6329
6330 if
6331 test "x$enable_dependency_tracking" != xno \
6332 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6333 am__fastdepCC_TRUE=
6334 am__fastdepCC_FALSE='#'
6335else
6336 am__fastdepCC_TRUE='#'
6337 am__fastdepCC_FALSE=
6338fi
6339
6340
cristy95646052009-11-28 23:05:30 +00006341ac_ext=cpp
6342ac_cpp='$CXXCPP $CPPFLAGS'
6343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6346if test -z "$CXX"; then
6347 if test -n "$CCC"; then
6348 CXX=$CCC
6349 else
6350 if test -n "$ac_tool_prefix"; then
6351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6352 do
6353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6354set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006357if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006358 $as_echo_n "(cached) " >&6
6359else
6360 if test -n "$CXX"; then
6361 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6362else
6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
6365do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374done
6375 done
6376IFS=$as_save_IFS
6377
6378fi
6379fi
6380CXX=$ac_cv_prog_CXX
6381if test -n "$CXX"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6383$as_echo "$CXX" >&6; }
6384else
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386$as_echo "no" >&6; }
6387fi
6388
6389
6390 test -n "$CXX" && break
6391 done
6392fi
6393if test -z "$CXX"; then
6394 ac_ct_CXX=$CXX
6395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6396do
6397 # Extract the first word of "$ac_prog", so it can be a program name with args.
6398set dummy $ac_prog; ac_word=$2
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006401if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006402 $as_echo_n "(cached) " >&6
6403else
6404 if test -n "$ac_ct_CXX"; then
6405 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6406else
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_ac_ct_CXX="$ac_prog"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418done
6419 done
6420IFS=$as_save_IFS
6421
6422fi
6423fi
6424ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6425if test -n "$ac_ct_CXX"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6427$as_echo "$ac_ct_CXX" >&6; }
6428else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430$as_echo "no" >&6; }
6431fi
6432
6433
6434 test -n "$ac_ct_CXX" && break
6435done
6436
6437 if test "x$ac_ct_CXX" = x; then
6438 CXX="g++"
6439 else
6440 case $cross_compiling:$ac_tool_warned in
6441yes:)
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444ac_tool_warned=yes ;;
6445esac
6446 CXX=$ac_ct_CXX
6447 fi
6448fi
6449
6450 fi
6451fi
6452# Provide some information about the compiler.
6453$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6454set X $ac_compile
6455ac_compiler=$2
6456for ac_option in --version -v -V -qversion; do
6457 { { ac_try="$ac_compiler $ac_option >&5"
6458case "(($ac_try" in
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6461esac
6462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6463$as_echo "$ac_try_echo"; } >&5
6464 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6465 ac_status=$?
6466 if test -s conftest.err; then
6467 sed '10a\
6468... rest of stderr output deleted ...
6469 10q' conftest.err >conftest.er1
6470 cat conftest.er1 >&5
6471 fi
6472 rm -f conftest.er1 conftest.err
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; }
6475done
6476
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6478$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006479if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006480 $as_echo_n "(cached) " >&6
6481else
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h. */
6484
6485int
6486main ()
6487{
6488#ifndef __GNUC__
6489 choke me
6490#endif
6491
6492 ;
6493 return 0;
6494}
6495_ACEOF
6496if ac_fn_cxx_try_compile "$LINENO"; then :
6497 ac_compiler_gnu=yes
6498else
6499 ac_compiler_gnu=no
6500fi
6501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6503
6504fi
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6506$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6507if test $ac_compiler_gnu = yes; then
6508 GXX=yes
6509else
6510 GXX=
6511fi
6512ac_test_CXXFLAGS=${CXXFLAGS+set}
6513ac_save_CXXFLAGS=$CXXFLAGS
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6515$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006516if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006517 $as_echo_n "(cached) " >&6
6518else
6519 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6520 ac_cxx_werror_flag=yes
6521 ac_cv_prog_cxx_g=no
6522 CXXFLAGS="-g"
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524/* end confdefs.h. */
6525
6526int
6527main ()
6528{
6529
6530 ;
6531 return 0;
6532}
6533_ACEOF
6534if ac_fn_cxx_try_compile "$LINENO"; then :
6535 ac_cv_prog_cxx_g=yes
6536else
6537 CXXFLAGS=""
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h. */
6540
6541int
6542main ()
6543{
6544
6545 ;
6546 return 0;
6547}
6548_ACEOF
6549if ac_fn_cxx_try_compile "$LINENO"; then :
6550
6551else
6552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6553 CXXFLAGS="-g"
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h. */
6556
6557int
6558main ()
6559{
6560
6561 ;
6562 return 0;
6563}
6564_ACEOF
6565if ac_fn_cxx_try_compile "$LINENO"; then :
6566 ac_cv_prog_cxx_g=yes
6567fi
6568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569fi
6570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571fi
6572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6576$as_echo "$ac_cv_prog_cxx_g" >&6; }
6577if test "$ac_test_CXXFLAGS" = set; then
6578 CXXFLAGS=$ac_save_CXXFLAGS
6579elif test $ac_cv_prog_cxx_g = yes; then
6580 if test "$GXX" = yes; then
6581 CXXFLAGS="-g -O2"
6582 else
6583 CXXFLAGS="-g"
6584 fi
6585else
6586 if test "$GXX" = yes; then
6587 CXXFLAGS="-O2"
6588 else
6589 CXXFLAGS=
6590 fi
6591fi
6592ac_ext=c
6593ac_cpp='$CPP $CPPFLAGS'
6594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597
cristy73bd4a52010-10-05 11:24:23 +00006598depcc="$CXX" am_compiler_list=
6599
6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6601$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006602if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006603 $as_echo_n "(cached) " >&6
6604else
6605 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6606 # We make a subdir and do the tests there. Otherwise we can end up
6607 # making bogus files that we don't know about and never remove. For
6608 # instance it was reported that on HP-UX the gcc test will end up
6609 # making a dummy file named `D' -- because `-MD' means `put the output
6610 # in D'.
6611 mkdir conftest.dir
6612 # Copy depcomp to subdir because otherwise we won't find it if we're
6613 # using a relative directory.
6614 cp "$am_depcomp" conftest.dir
6615 cd conftest.dir
6616 # We will build objects and dependencies in a subdirectory because
6617 # it helps to detect inapplicable dependency modes. For instance
6618 # both Tru64's cc and ICC support -MD to output dependencies as a
6619 # side effect of compilation, but ICC will put the dependencies in
6620 # the current directory while Tru64 will put them in the object
6621 # directory.
6622 mkdir sub
6623
6624 am_cv_CXX_dependencies_compiler_type=none
6625 if test "$am_compiler_list" = ""; then
6626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6627 fi
6628 am__universal=false
6629 case " $depcc " in #(
6630 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6631 esac
6632
6633 for depmode in $am_compiler_list; do
6634 # Setup a source with many dependencies, because some compilers
6635 # like to wrap large dependency lists on column 80 (with \), and
6636 # we should not choose a depcomp mode which is confused by this.
6637 #
6638 # We need to recreate these files for each test, as the compiler may
6639 # overwrite some of them when testing with obscure command lines.
6640 # This happens at least with the AIX C compiler.
6641 : > sub/conftest.c
6642 for i in 1 2 3 4 5 6; do
6643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6644 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6645 # Solaris 8's {/usr,}/bin/sh.
6646 touch sub/conftst$i.h
6647 done
6648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6649
6650 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6651 # mode. It turns out that the SunPro C++ compiler does not properly
6652 # handle `-M -o', and we need to detect this. Also, some Intel
6653 # versions had trouble with output in subdirs
6654 am__obj=sub/conftest.${OBJEXT-o}
6655 am__minus_obj="-o $am__obj"
6656 case $depmode in
6657 gcc)
6658 # This depmode causes a compiler race in universal mode.
6659 test "$am__universal" = false || continue
6660 ;;
6661 nosideeffect)
6662 # after this tag, mechanisms are not by side-effect, so they'll
6663 # only be used when explicitly requested
6664 if test "x$enable_dependency_tracking" = xyes; then
6665 continue
6666 else
6667 break
6668 fi
6669 ;;
6670 msvisualcpp | msvcmsys)
6671 # This compiler won't grok `-c -o', but also, the minuso test has
6672 # not run yet. These depmodes are late enough in the game, and
6673 # so weak that their functioning should not be impacted.
6674 am__obj=conftest.${OBJEXT-o}
6675 am__minus_obj=
6676 ;;
6677 none) break ;;
6678 esac
6679 if depmode=$depmode \
6680 source=sub/conftest.c object=$am__obj \
6681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6683 >/dev/null 2>conftest.err &&
6684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6688 # icc doesn't choke on unknown options, it will just issue warnings
6689 # or remarks (even with -Werror). So we grep stderr for any message
6690 # that says an option was ignored or not supported.
6691 # When given -MP, icc 7.0 and 7.1 complain thusly:
6692 # icc: Command line warning: ignoring option '-M'; no argument required
6693 # The diagnosis changed in icc 8.0:
6694 # icc: Command line remark: option '-MP' not supported
6695 if (grep 'ignoring option' conftest.err ||
6696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6697 am_cv_CXX_dependencies_compiler_type=$depmode
6698 break
6699 fi
6700 fi
6701 done
6702
6703 cd ..
6704 rm -rf conftest.dir
6705else
6706 am_cv_CXX_dependencies_compiler_type=none
6707fi
6708
6709fi
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6711$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6712CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6713
6714 if
6715 test "x$enable_dependency_tracking" != xno \
6716 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6717 am__fastdepCXX_TRUE=
6718 am__fastdepCXX_FALSE='#'
6719else
6720 am__fastdepCXX_TRUE='#'
6721 am__fastdepCXX_FALSE=
6722fi
6723
6724
cristy8b350f62009-11-15 23:12:43 +00006725 case $ac_cv_prog_cc_stdc in #(
6726 no) :
6727 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6728 *) :
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006730$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006731if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006732 $as_echo_n "(cached) " >&6
6733else
6734 ac_cv_prog_cc_c99=no
6735ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006737/* end confdefs.h. */
6738#include <stdarg.h>
6739#include <stdbool.h>
6740#include <stdlib.h>
6741#include <wchar.h>
6742#include <stdio.h>
6743
6744// Check varargs macros. These examples are taken from C99 6.10.3.5.
6745#define debug(...) fprintf (stderr, __VA_ARGS__)
6746#define showlist(...) puts (#__VA_ARGS__)
6747#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6748static void
6749test_varargs_macros (void)
6750{
6751 int x = 1234;
6752 int y = 5678;
6753 debug ("Flag");
6754 debug ("X = %d\n", x);
6755 showlist (The first, second, and third items.);
6756 report (x>y, "x is %d but y is %d", x, y);
6757}
6758
6759// Check long long types.
6760#define BIG64 18446744073709551615ull
6761#define BIG32 4294967295ul
6762#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6763#if !BIG_OK
6764 your preprocessor is broken;
6765#endif
6766#if BIG_OK
6767#else
6768 your preprocessor is broken;
6769#endif
6770static long long int bignum = -9223372036854775807LL;
6771static unsigned long long int ubignum = BIG64;
6772
6773struct incomplete_array
6774{
6775 int datasize;
6776 double data[];
6777};
6778
6779struct named_init {
6780 int number;
6781 const wchar_t *name;
6782 double average;
6783};
6784
6785typedef const char *ccp;
6786
6787static inline int
6788test_restrict (ccp restrict text)
6789{
6790 // See if C++-style comments work.
6791 // Iterate through items via the restricted pointer.
6792 // Also check for declarations in for loops.
6793 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6794 continue;
6795 return 0;
6796}
6797
6798// Check varargs and va_copy.
6799static void
6800test_varargs (const char *format, ...)
6801{
6802 va_list args;
6803 va_start (args, format);
6804 va_list args_copy;
6805 va_copy (args_copy, args);
6806
6807 const char *str;
6808 int number;
6809 float fnumber;
6810
6811 while (*format)
6812 {
6813 switch (*format++)
6814 {
6815 case 's': // string
6816 str = va_arg (args_copy, const char *);
6817 break;
6818 case 'd': // int
6819 number = va_arg (args_copy, int);
6820 break;
6821 case 'f': // float
6822 fnumber = va_arg (args_copy, double);
6823 break;
6824 default:
6825 break;
6826 }
6827 }
6828 va_end (args_copy);
6829 va_end (args);
6830}
6831
6832int
6833main ()
6834{
6835
6836 // Check bool.
6837 _Bool success = false;
6838
6839 // Check restrict.
6840 if (test_restrict ("String literal") == 0)
6841 success = true;
6842 char *restrict newvar = "Another string";
6843
6844 // Check varargs.
6845 test_varargs ("s, d' f .", "string", 65, 34.234);
6846 test_varargs_macros ();
6847
6848 // Check flexible array members.
6849 struct incomplete_array *ia =
6850 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6851 ia->datasize = 10;
6852 for (int i = 0; i < ia->datasize; ++i)
6853 ia->data[i] = i * 1.234;
6854
6855 // Check named initializers.
6856 struct named_init ni = {
6857 .number = 34,
6858 .name = L"Test wide string",
6859 .average = 543.34343,
6860 };
6861
6862 ni.number = 58;
6863
6864 int dynamic_array[ni.number];
6865 dynamic_array[ni.number - 1] = 543;
6866
6867 // work around unused variable warnings
6868 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6869 || dynamic_array[ni.number - 1] != 543);
6870
6871 ;
6872 return 0;
6873}
6874_ACEOF
6875for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6876do
6877 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006878 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006879 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006880fi
cristy3ed852e2009-09-05 21:47:34 +00006881rm -f core conftest.err conftest.$ac_objext
6882 test "x$ac_cv_prog_cc_c99" != "xno" && break
6883done
6884rm -f conftest.$ac_ext
6885CC=$ac_save_CC
6886
6887fi
6888# AC_CACHE_VAL
6889case "x$ac_cv_prog_cc_c99" in
6890 x)
cristy8b350f62009-11-15 23:12:43 +00006891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006892$as_echo "none needed" >&6; } ;;
6893 xno)
cristy8b350f62009-11-15 23:12:43 +00006894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006895$as_echo "unsupported" >&6; } ;;
6896 *)
6897 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006899$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6900esac
cristy8b350f62009-11-15 23:12:43 +00006901if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006902 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6903else
cristy8b350f62009-11-15 23:12:43 +00006904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006905$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006906if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006907 $as_echo_n "(cached) " >&6
6908else
6909 ac_cv_prog_cc_c89=no
6910ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006912/* end confdefs.h. */
6913#include <stdarg.h>
6914#include <stdio.h>
6915#include <sys/types.h>
6916#include <sys/stat.h>
6917/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6918struct buf { int x; };
6919FILE * (*rcsopen) (struct buf *, struct stat *, int);
6920static char *e (p, i)
6921 char **p;
6922 int i;
6923{
6924 return p[i];
6925}
6926static char *f (char * (*g) (char **, int), char **p, ...)
6927{
6928 char *s;
6929 va_list v;
6930 va_start (v,p);
6931 s = g (p, va_arg (v,int));
6932 va_end (v);
6933 return s;
6934}
6935
6936/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6937 function prototypes and stuff, but not '\xHH' hex character constants.
6938 These don't provoke an error unfortunately, instead are silently treated
6939 as 'x'. The following induces an error, until -std is added to get
6940 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6941 array size at least. It's necessary to write '\x00'==0 to get something
6942 that's true only with -std. */
6943int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6944
6945/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6946 inside strings and character constants. */
6947#define FOO(x) 'x'
6948int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6949
6950int test (int i, double x);
6951struct s1 {int (*f) (int a);};
6952struct s2 {int (*f) (double a);};
6953int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6954int argc;
6955char **argv;
6956int
6957main ()
6958{
6959return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6960 ;
6961 return 0;
6962}
6963_ACEOF
6964for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6965 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6966do
6967 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006968 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006969 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006970fi
cristy3ed852e2009-09-05 21:47:34 +00006971rm -f core conftest.err conftest.$ac_objext
6972 test "x$ac_cv_prog_cc_c89" != "xno" && break
6973done
6974rm -f conftest.$ac_ext
6975CC=$ac_save_CC
6976
6977fi
6978# AC_CACHE_VAL
6979case "x$ac_cv_prog_cc_c89" in
6980 x)
cristy8b350f62009-11-15 23:12:43 +00006981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006982$as_echo "none needed" >&6; } ;;
6983 xno)
cristy8b350f62009-11-15 23:12:43 +00006984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006985$as_echo "unsupported" >&6; } ;;
6986 *)
6987 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006989$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6990esac
cristy8b350f62009-11-15 23:12:43 +00006991if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006992 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6993else
6994 ac_cv_prog_cc_stdc=no
6995fi
6996
cristy3ed852e2009-09-05 21:47:34 +00006997fi
cristy3ed852e2009-09-05 21:47:34 +00006998 ;;
6999esac
cristy8b350f62009-11-15 23:12:43 +00007000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007001$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007002 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007003 $as_echo_n "(cached) " >&6
7004fi
7005
cristy8b350f62009-11-15 23:12:43 +00007006 case $ac_cv_prog_cc_stdc in #(
7007 no) :
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7009$as_echo "unsupported" >&6; } ;; #(
7010 '') :
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7012$as_echo "none needed" >&6; } ;; #(
7013 *) :
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007015$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7016esac
7017
cristy3ed852e2009-09-05 21:47:34 +00007018ac_ext=c
7019ac_cpp='$CPP $CPPFLAGS'
7020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007024$as_echo_n "checking how to run the C preprocessor... " >&6; }
7025# On Suns, sometimes $CPP names a directory.
7026if test -n "$CPP" && test -d "$CPP"; then
7027 CPP=
7028fi
7029if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007030 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007031 $as_echo_n "(cached) " >&6
7032else
7033 # Double quotes because CPP needs to be expanded
7034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7035 do
7036 ac_preproc_ok=false
7037for ac_c_preproc_warn_flag in '' yes
7038do
7039 # Use a header file that comes with gcc, so configuring glibc
7040 # with a fresh cross-compiler works.
7041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7042 # <limits.h> exists even on freestanding compilers.
7043 # On the NeXT, cc -E runs the code through the compiler's parser,
7044 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007046/* end confdefs.h. */
7047#ifdef __STDC__
7048# include <limits.h>
7049#else
7050# include <assert.h>
7051#endif
7052 Syntax error
7053_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007054if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007055
cristy8b350f62009-11-15 23:12:43 +00007056else
cristy3ed852e2009-09-05 21:47:34 +00007057 # Broken: fails on valid input.
7058continue
7059fi
cristyda16f162011-02-19 23:52:17 +00007060rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007061
7062 # OK, works on sane cases. Now check whether nonexistent headers
7063 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007065/* end confdefs.h. */
7066#include <ac_nonexistent.h>
7067_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007068if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007069 # Broken: success on invalid input.
7070continue
7071else
cristy3ed852e2009-09-05 21:47:34 +00007072 # Passes both tests.
7073ac_preproc_ok=:
7074break
7075fi
cristyda16f162011-02-19 23:52:17 +00007076rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007077
7078done
7079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007080rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007081if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007082 break
7083fi
7084
7085 done
7086 ac_cv_prog_CPP=$CPP
7087
7088fi
7089 CPP=$ac_cv_prog_CPP
7090else
7091 ac_cv_prog_CPP=$CPP
7092fi
cristy8b350f62009-11-15 23:12:43 +00007093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007094$as_echo "$CPP" >&6; }
7095ac_preproc_ok=false
7096for ac_c_preproc_warn_flag in '' yes
7097do
7098 # Use a header file that comes with gcc, so configuring glibc
7099 # with a fresh cross-compiler works.
7100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7101 # <limits.h> exists even on freestanding compilers.
7102 # On the NeXT, cc -E runs the code through the compiler's parser,
7103 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007105/* end confdefs.h. */
7106#ifdef __STDC__
7107# include <limits.h>
7108#else
7109# include <assert.h>
7110#endif
7111 Syntax error
7112_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007113if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007114
cristy8b350f62009-11-15 23:12:43 +00007115else
cristy3ed852e2009-09-05 21:47:34 +00007116 # Broken: fails on valid input.
7117continue
7118fi
cristyda16f162011-02-19 23:52:17 +00007119rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007120
7121 # OK, works on sane cases. Now check whether nonexistent headers
7122 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007124/* end confdefs.h. */
7125#include <ac_nonexistent.h>
7126_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007127if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007128 # Broken: success on invalid input.
7129continue
7130else
cristy3ed852e2009-09-05 21:47:34 +00007131 # Passes both tests.
7132ac_preproc_ok=:
7133break
7134fi
cristyda16f162011-02-19 23:52:17 +00007135rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007136
7137done
7138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007139rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007140if $ac_preproc_ok; then :
7141
cristy3ed852e2009-09-05 21:47:34 +00007142else
cristy8b350f62009-11-15 23:12:43 +00007143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007145as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7146See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007147fi
7148
7149ac_ext=c
7150ac_cpp='$CPP $CPPFLAGS'
7151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153ac_compiler_gnu=$ac_cv_c_compiler_gnu
7154
cristy73bd4a52010-10-05 11:24:23 +00007155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7156$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007157if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007158 $as_echo_n "(cached) " >&6
7159else
7160 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7161 for ac_i in 1 2 3 4 5 6 7; do
7162 ac_script="$ac_script$as_nl$ac_script"
7163 done
7164 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7165 { ac_script=; unset ac_script;}
7166 if test -z "$SED"; then
7167 ac_path_SED_found=false
7168 # Loop through the user's path and test for each of PROGNAME-LIST
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_prog in sed gsed; do
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7177 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7178# Check for GNU ac_path_SED and select it if it is found.
7179 # Check for GNU $ac_path_SED
7180case `"$ac_path_SED" --version 2>&1` in
7181*GNU*)
7182 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7183*)
7184 ac_count=0
7185 $as_echo_n 0123456789 >"conftest.in"
7186 while :
7187 do
7188 cat "conftest.in" "conftest.in" >"conftest.tmp"
7189 mv "conftest.tmp" "conftest.in"
7190 cp "conftest.in" "conftest.nl"
7191 $as_echo '' >> "conftest.nl"
7192 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7194 as_fn_arith $ac_count + 1 && ac_count=$as_val
7195 if test $ac_count -gt ${ac_path_SED_max-0}; then
7196 # Best one so far, save it but keep looking for a better one
7197 ac_cv_path_SED="$ac_path_SED"
7198 ac_path_SED_max=$ac_count
7199 fi
7200 # 10*(2^10) chars as input seems more than enough
7201 test $ac_count -gt 10 && break
7202 done
7203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7204esac
7205
7206 $ac_path_SED_found && break 3
7207 done
7208 done
7209 done
7210IFS=$as_save_IFS
7211 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007212 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007213 fi
7214else
7215 ac_cv_path_SED=$SED
7216fi
7217
7218fi
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7220$as_echo "$ac_cv_path_SED" >&6; }
7221 SED="$ac_cv_path_SED"
7222 rm -f conftest.sed
7223
7224test -z "$SED" && SED=sed
7225Xsed="$SED -e 1s/^X//"
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7238$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007239if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007240 $as_echo_n "(cached) " >&6
7241else
7242 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7243 then ac_cv_path_FGREP="$GREP -F"
7244 else
7245 if test -z "$FGREP"; then
7246 ac_path_FGREP_found=false
7247 # Loop through the user's path and test for each of PROGNAME-LIST
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7250do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_prog in fgrep; do
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7256 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7257# Check for GNU ac_path_FGREP and select it if it is found.
7258 # Check for GNU $ac_path_FGREP
7259case `"$ac_path_FGREP" --version 2>&1` in
7260*GNU*)
7261 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7262*)
7263 ac_count=0
7264 $as_echo_n 0123456789 >"conftest.in"
7265 while :
7266 do
7267 cat "conftest.in" "conftest.in" >"conftest.tmp"
7268 mv "conftest.tmp" "conftest.in"
7269 cp "conftest.in" "conftest.nl"
7270 $as_echo 'FGREP' >> "conftest.nl"
7271 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7273 as_fn_arith $ac_count + 1 && ac_count=$as_val
7274 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7275 # Best one so far, save it but keep looking for a better one
7276 ac_cv_path_FGREP="$ac_path_FGREP"
7277 ac_path_FGREP_max=$ac_count
7278 fi
7279 # 10*(2^10) chars as input seems more than enough
7280 test $ac_count -gt 10 && break
7281 done
7282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7283esac
7284
7285 $ac_path_FGREP_found && break 3
7286 done
7287 done
7288 done
7289IFS=$as_save_IFS
7290 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007291 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007292 fi
7293else
7294 ac_cv_path_FGREP=$FGREP
7295fi
7296
7297 fi
7298fi
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7300$as_echo "$ac_cv_path_FGREP" >&6; }
7301 FGREP="$ac_cv_path_FGREP"
7302
7303
7304test -z "$GREP" && GREP=grep
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
cristy0c60a692010-11-04 01:09:47 +00007322ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7323ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7324ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7325
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7327$as_echo_n "checking how to print strings... " >&6; }
7328# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007329if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007330 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7331 ECHO='print -r --'
7332elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7333 ECHO='printf %s\n'
7334else
7335 # Use this function as a fallback that always works.
7336 func_fallback_echo ()
7337 {
7338 eval 'cat <<_LTECHO_EOF
7339$1
7340_LTECHO_EOF'
7341 }
7342 ECHO='func_fallback_echo'
7343fi
7344
7345# func_echo_all arg...
7346# Invoke $ECHO with all args, space-separated.
7347func_echo_all ()
7348{
7349 $ECHO ""
7350}
7351
7352case "$ECHO" in
7353 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7354$as_echo "printf" >&6; } ;;
7355 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7356$as_echo "print -r" >&6; } ;;
7357 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7358$as_echo "cat" >&6; } ;;
7359esac
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
cristy73bd4a52010-10-05 11:24:23 +00007374
7375
7376# Check whether --with-gnu-ld was given.
7377if test "${with_gnu_ld+set}" = set; then :
7378 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7379else
7380 with_gnu_ld=no
7381fi
7382
7383ac_prog=ld
7384if test "$GCC" = yes; then
7385 # Check if gcc -print-prog-name=ld gives a path.
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7387$as_echo_n "checking for ld used by $CC... " >&6; }
7388 case $host in
7389 *-*-mingw*)
7390 # gcc leaves a trailing carriage return which upsets mingw
7391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7392 *)
7393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7394 esac
7395 case $ac_prog in
7396 # Accept absolute paths.
7397 [\\/]* | ?:[\\/]*)
7398 re_direlt='/[^/][^/]*/\.\./'
7399 # Canonicalize the pathname of ld
7400 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7401 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7402 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7403 done
7404 test -z "$LD" && LD="$ac_prog"
7405 ;;
7406 "")
7407 # If it fails, then pretend we aren't using GCC.
7408 ac_prog=ld
7409 ;;
7410 *)
7411 # If it is relative, then search for the first ld in PATH.
7412 with_gnu_ld=unknown
7413 ;;
7414 esac
7415elif test "$with_gnu_ld" = yes; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7417$as_echo_n "checking for GNU ld... " >&6; }
7418else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7420$as_echo_n "checking for non-GNU ld... " >&6; }
7421fi
cristyda16f162011-02-19 23:52:17 +00007422if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007423 $as_echo_n "(cached) " >&6
7424else
7425 if test -z "$LD"; then
7426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7427 for ac_dir in $PATH; do
7428 IFS="$lt_save_ifs"
7429 test -z "$ac_dir" && ac_dir=.
7430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7431 lt_cv_path_LD="$ac_dir/$ac_prog"
7432 # Check to see if the program is GNU ld. I'd rather use --version,
7433 # but apparently some variants of GNU ld only accept -v.
7434 # Break only if it was the GNU/non-GNU ld that we prefer.
7435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7436 *GNU* | *'with BFD'*)
7437 test "$with_gnu_ld" != no && break
7438 ;;
7439 *)
7440 test "$with_gnu_ld" != yes && break
7441 ;;
7442 esac
7443 fi
7444 done
7445 IFS="$lt_save_ifs"
7446else
7447 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7448fi
7449fi
7450
7451LD="$lt_cv_path_LD"
7452if test -n "$LD"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7454$as_echo "$LD" >&6; }
7455else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457$as_echo "no" >&6; }
7458fi
cristy98dddb52010-11-04 00:30:15 +00007459test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7461$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007462if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007463 $as_echo_n "(cached) " >&6
7464else
7465 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7466case `$LD -v 2>&1 </dev/null` in
7467*GNU* | *'with BFD'*)
7468 lt_cv_prog_gnu_ld=yes
7469 ;;
7470*)
7471 lt_cv_prog_gnu_ld=no
7472 ;;
7473esac
7474fi
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7476$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7477with_gnu_ld=$lt_cv_prog_gnu_ld
7478
7479
7480
7481
7482
7483
7484
7485
7486
cristy3ed852e2009-09-05 21:47:34 +00007487
cristy837d6dc2010-02-27 01:16:57 +00007488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7489$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007490if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007491 $as_echo_n "(cached) " >&6
7492else
7493 ac_cv_prog_cc_c99=no
7494ac_save_CC=$CC
7495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h. */
7497#include <stdarg.h>
7498#include <stdbool.h>
7499#include <stdlib.h>
7500#include <wchar.h>
7501#include <stdio.h>
7502
7503// Check varargs macros. These examples are taken from C99 6.10.3.5.
7504#define debug(...) fprintf (stderr, __VA_ARGS__)
7505#define showlist(...) puts (#__VA_ARGS__)
7506#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7507static void
7508test_varargs_macros (void)
7509{
7510 int x = 1234;
7511 int y = 5678;
7512 debug ("Flag");
7513 debug ("X = %d\n", x);
7514 showlist (The first, second, and third items.);
7515 report (x>y, "x is %d but y is %d", x, y);
7516}
7517
7518// Check long long types.
7519#define BIG64 18446744073709551615ull
7520#define BIG32 4294967295ul
7521#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7522#if !BIG_OK
7523 your preprocessor is broken;
7524#endif
7525#if BIG_OK
7526#else
7527 your preprocessor is broken;
7528#endif
7529static long long int bignum = -9223372036854775807LL;
7530static unsigned long long int ubignum = BIG64;
7531
7532struct incomplete_array
7533{
7534 int datasize;
7535 double data[];
7536};
7537
7538struct named_init {
7539 int number;
7540 const wchar_t *name;
7541 double average;
7542};
7543
7544typedef const char *ccp;
7545
7546static inline int
7547test_restrict (ccp restrict text)
7548{
7549 // See if C++-style comments work.
7550 // Iterate through items via the restricted pointer.
7551 // Also check for declarations in for loops.
7552 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7553 continue;
7554 return 0;
7555}
7556
7557// Check varargs and va_copy.
7558static void
7559test_varargs (const char *format, ...)
7560{
7561 va_list args;
7562 va_start (args, format);
7563 va_list args_copy;
7564 va_copy (args_copy, args);
7565
7566 const char *str;
7567 int number;
7568 float fnumber;
7569
7570 while (*format)
7571 {
7572 switch (*format++)
7573 {
7574 case 's': // string
7575 str = va_arg (args_copy, const char *);
7576 break;
7577 case 'd': // int
7578 number = va_arg (args_copy, int);
7579 break;
7580 case 'f': // float
7581 fnumber = va_arg (args_copy, double);
7582 break;
7583 default:
7584 break;
7585 }
7586 }
7587 va_end (args_copy);
7588 va_end (args);
7589}
7590
7591int
7592main ()
7593{
7594
7595 // Check bool.
7596 _Bool success = false;
7597
7598 // Check restrict.
7599 if (test_restrict ("String literal") == 0)
7600 success = true;
7601 char *restrict newvar = "Another string";
7602
7603 // Check varargs.
7604 test_varargs ("s, d' f .", "string", 65, 34.234);
7605 test_varargs_macros ();
7606
7607 // Check flexible array members.
7608 struct incomplete_array *ia =
7609 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7610 ia->datasize = 10;
7611 for (int i = 0; i < ia->datasize; ++i)
7612 ia->data[i] = i * 1.234;
7613
7614 // Check named initializers.
7615 struct named_init ni = {
7616 .number = 34,
7617 .name = L"Test wide string",
7618 .average = 543.34343,
7619 };
7620
7621 ni.number = 58;
7622
7623 int dynamic_array[ni.number];
7624 dynamic_array[ni.number - 1] = 543;
7625
7626 // work around unused variable warnings
7627 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7628 || dynamic_array[ni.number - 1] != 543);
7629
7630 ;
7631 return 0;
7632}
7633_ACEOF
7634for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7635do
7636 CC="$ac_save_CC $ac_arg"
7637 if ac_fn_c_try_compile "$LINENO"; then :
7638 ac_cv_prog_cc_c99=$ac_arg
7639fi
7640rm -f core conftest.err conftest.$ac_objext
7641 test "x$ac_cv_prog_cc_c99" != "xno" && break
7642done
7643rm -f conftest.$ac_ext
7644CC=$ac_save_CC
7645
7646fi
7647# AC_CACHE_VAL
7648case "x$ac_cv_prog_cc_c99" in
7649 x)
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7651$as_echo "none needed" >&6; } ;;
7652 xno)
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7654$as_echo "unsupported" >&6; } ;;
7655 *)
7656 CC="$CC $ac_cv_prog_cc_c99"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7658$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7659esac
7660if test "x$ac_cv_prog_cc_c99" != xno; then :
7661
7662fi
7663
7664
cristy73bd4a52010-10-05 11:24:23 +00007665if test "x$CC" != xcc; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7667$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7668else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7670$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7671fi
7672set dummy $CC; ac_cc=`$as_echo "$2" |
7673 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007674if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007675 $as_echo_n "(cached) " >&6
7676else
cristy73bd4a52010-10-05 11:24:23 +00007677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h. */
7679
7680int
7681main ()
7682{
7683
7684 ;
7685 return 0;
7686}
7687_ACEOF
7688# Make sure it works both with $CC and with simple cc.
7689# We do the test twice because some compilers refuse to overwrite an
7690# existing .o file with -o, though they will create one.
7691ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7692rm -f conftest2.*
7693if { { case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696esac
7697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7698$as_echo "$ac_try_echo"; } >&5
7699 (eval "$ac_try") 2>&5
7700 ac_status=$?
7701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7702 test $ac_status = 0; } &&
7703 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706esac
7707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7708$as_echo "$ac_try_echo"; } >&5
7709 (eval "$ac_try") 2>&5
7710 ac_status=$?
7711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712 test $ac_status = 0; };
7713then
7714 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7715 if test "x$CC" != xcc; then
7716 # Test first that cc exists at all.
7717 if { ac_try='cc -c conftest.$ac_ext >&5'
7718 { { case "(($ac_try" in
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7721esac
7722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7723$as_echo "$ac_try_echo"; } >&5
7724 (eval "$ac_try") 2>&5
7725 ac_status=$?
7726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727 test $ac_status = 0; }; }; then
7728 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7729 rm -f conftest2.*
7730 if { { case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733esac
7734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7735$as_echo "$ac_try_echo"; } >&5
7736 (eval "$ac_try") 2>&5
7737 ac_status=$?
7738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739 test $ac_status = 0; } &&
7740 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743esac
7744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7745$as_echo "$ac_try_echo"; } >&5
7746 (eval "$ac_try") 2>&5
7747 ac_status=$?
7748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7749 test $ac_status = 0; };
7750 then
7751 # cc works too.
7752 :
7753 else
7754 # cc exists but doesn't like -o.
7755 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7756 fi
7757 fi
7758 fi
7759else
7760 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7761fi
7762rm -f core conftest*
7763
7764fi
7765if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7767$as_echo "yes" >&6; }
7768else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
7771
7772$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7773
7774fi
7775
7776# FIXME: we rely on the cache variable name because
7777# there is no other way.
7778set dummy $CC
7779am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7780eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7781if test "$am_t" != yes; then
7782 # Losing compiler, so override with the script.
7783 # FIXME: It is wrong to rewrite CC.
7784 # But if we don't then we get into trouble of one sort or another.
7785 # A longer-term fix would be to have automake use am__CC in this case,
7786 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7787 CC="$am_aux_dir/compile $CC"
7788fi
7789
7790
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7792$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007793if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007794 $as_echo_n "(cached) " >&6
7795else
7796 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007797 ac_ext=c
7798ac_cpp='$CPP $CPPFLAGS'
7799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801ac_compiler_gnu=$ac_cv_c_compiler_gnu
7802
7803 ac_save_CFLAGS="$CFLAGS"
7804for 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" #
7805do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h. */
7808
7809int
7810main ()
7811{
cristy24fc1fe2010-10-23 21:13:01 +00007812
cristy73bd4a52010-10-05 11:24:23 +00007813 ;
7814 return 0;
7815}
7816_ACEOF
7817if ac_fn_c_try_compile "$LINENO"; then :
7818 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7819fi
7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821done
7822 CFLAGS="$ac_save_CFLAGS"
7823 ac_ext=c
7824ac_cpp='$CPP $CPPFLAGS'
7825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828
7829
7830fi
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7832$as_echo "$ac_cv_cflags_warn_all" >&6; }
7833case ".$ac_cv_cflags_warn_all" in
7834 .ok|.ok,*) ;;
7835 .|.no|.no,*)
7836 ;;
7837 *)
7838 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7839 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7840 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7841 ac_status=$?
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; }
7844 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7845 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7846 ac_status=$?
7847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; }
7849 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7850 fi
7851 ;;
nicolas6237c462010-10-05 06:11:49 +00007852esac
cristy3ed852e2009-09-05 21:47:34 +00007853
cristya0b81c32010-01-22 02:54:33 +00007854
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7856$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7857set x ${MAKE-make}
7858ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007859if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007860 $as_echo_n "(cached) " >&6
7861else
7862 cat >conftest.make <<\_ACEOF
7863SHELL = /bin/sh
7864all:
7865 @echo '@@@%%%=$(MAKE)=@@@%%%'
7866_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007867# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007868case `${MAKE-make} -f conftest.make 2>/dev/null` in
7869 *@@@%%%=?*=@@@%%%*)
7870 eval ac_cv_prog_make_${ac_make}_set=yes;;
7871 *)
7872 eval ac_cv_prog_make_${ac_make}_set=no;;
7873esac
7874rm -f conftest.make
7875fi
7876if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7878$as_echo "yes" >&6; }
7879 SET_MAKE=
7880else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882$as_echo "no" >&6; }
7883 SET_MAKE="MAKE=${MAKE-make}"
7884fi
7885
cristy8b350f62009-11-15 23:12:43 +00007886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007887$as_echo_n "checking whether ln -s works... " >&6; }
7888LN_S=$as_ln_s
7889if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007891$as_echo "yes" >&6; }
7892else
cristy8b350f62009-11-15 23:12:43 +00007893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007894$as_echo "no, using $LN_S" >&6; }
7895fi
7896
cristy73bd4a52010-10-05 11:24:23 +00007897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7898$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7899
7900# Check whether --with-dmalloc was given.
7901if test "${with_dmalloc+set}" = set; then :
7902 withval=$with_dmalloc; if test "$withval" = yes; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7904$as_echo "yes" >&6; }
7905
7906$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7907
7908 LIBS="$LIBS -ldmalloc"
7909 LDFLAGS="$LDFLAGS -g"
7910else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912$as_echo "no" >&6; }
7913fi
7914else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7922$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007923if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007924 $as_echo_n "(cached) " >&6
7925else
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927/* end confdefs.h. */
7928#include <stdlib.h>
7929 static void foo(void) __attribute__ ((unused));
7930 static void
7931 foo(void) {
7932 exit(1);
7933 }
7934
7935int
7936main ()
7937{
7938
7939 ;
7940 return 0;
7941}
7942_ACEOF
7943if ac_fn_c_try_compile "$LINENO"; then :
7944 ax_cv___attribute__=yes
7945else
7946 ax_cv___attribute__=no
7947
7948fi
7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7953$as_echo "$ax_cv___attribute__" >&6; }
7954 if test "$ax_cv___attribute__" = "yes"; then
7955
7956$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7957
7958 fi
7959
7960
7961
7962if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7963 if test -n "$ac_tool_prefix"; then
7964 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7965set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007968if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007969 $as_echo_n "(cached) " >&6
7970else
7971 case $PKG_CONFIG in
7972 [\\/]* | ?:[\\/]*)
7973 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7974 ;;
7975 *)
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7986 fi
7987done
7988 done
7989IFS=$as_save_IFS
7990
7991 ;;
7992esac
7993fi
7994PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7995if test -n "$PKG_CONFIG"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7997$as_echo "$PKG_CONFIG" >&6; }
7998else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000$as_echo "no" >&6; }
8001fi
8002
8003
8004fi
8005if test -z "$ac_cv_path_PKG_CONFIG"; then
8006 ac_pt_PKG_CONFIG=$PKG_CONFIG
8007 # Extract the first word of "pkg-config", so it can be a program name with args.
8008set dummy pkg-config; ac_word=$2
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008011if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008012 $as_echo_n "(cached) " >&6
8013else
8014 case $ac_pt_PKG_CONFIG in
8015 [\\/]* | ?:[\\/]*)
8016 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8017 ;;
8018 *)
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020for as_dir in $PATH
8021do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8029 fi
8030done
8031 done
8032IFS=$as_save_IFS
8033
8034 ;;
8035esac
8036fi
8037ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8038if test -n "$ac_pt_PKG_CONFIG"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8040$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8041else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043$as_echo "no" >&6; }
8044fi
8045
8046 if test "x$ac_pt_PKG_CONFIG" = x; then
8047 PKG_CONFIG=""
8048 else
8049 case $cross_compiling:$ac_tool_warned in
8050yes:)
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8053ac_tool_warned=yes ;;
8054esac
8055 PKG_CONFIG=$ac_pt_PKG_CONFIG
8056 fi
8057else
8058 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8059fi
8060
8061fi
8062if test -n "$PKG_CONFIG"; then
8063 _pkg_min_version=0.9.0
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8065$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8066 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8068$as_echo "yes" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071$as_echo "no" >&6; }
8072 PKG_CONFIG=""
8073 fi
8074
8075fi
cristy3ed852e2009-09-05 21:47:34 +00008076
8077#
cristy3ed852e2009-09-05 21:47:34 +00008078# Enable run-time checking.
8079#
8080# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008081if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008082 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8083else
8084 enable_bounds_checking='no'
8085fi
8086
8087
8088if test "$enable_bounds_checking" = yes; then
8089
cristy8b350f62009-11-15 23:12:43 +00008090$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008091
8092fi
8093
8094#
8095# Tests for Windows
8096#
8097
8098
cristy73bd4a52010-10-05 11:24:23 +00008099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8100$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008101if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008102 $as_echo_n "(cached) " >&6
8103else
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105/* end confdefs.h. */
8106
8107int
8108main ()
8109{
8110#ifndef _MSC_VER
8111 choke me
8112#endif
8113
8114 ;
8115 return 0;
8116}
8117_ACEOF
8118if ac_fn_c_try_compile "$LINENO"; then :
8119 ax_compiler_ms=yes
8120else
8121 ax_compiler_ms=no
8122fi
8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124ax_cv_c_compiler_ms=$ax_compiler_ms
8125
8126fi
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8128$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008129
8130GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008131native_win32_build='no'
8132cygwin_build='no'
8133case "${host_os}" in
8134 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008135 cygwin_build='yes'
8136 GDI32_LIBS='-lgdi32'
8137 ;;
8138 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008139 native_win32_build='yes'
8140 GDI32_LIBS='-lgdi32'
8141 ;;
8142esac
8143if test "${GDI32_LIBS}x" != 'x'; then
8144
cristy8b350f62009-11-15 23:12:43 +00008145$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008146
8147fi
8148
cristy73bd4a52010-10-05 11:24:23 +00008149 if test "${GDI32_LIBS}x" != 'x' ; then
8150 WINGDI32_DELEGATE_TRUE=
8151 WINGDI32_DELEGATE_FALSE='#'
8152else
8153 WINGDI32_DELEGATE_TRUE='#'
8154 WINGDI32_DELEGATE_FALSE=
8155fi
8156
8157 if test "${native_win32_build}" = 'yes' ; then
8158 WIN32_NATIVE_BUILD_TRUE=
8159 WIN32_NATIVE_BUILD_FALSE='#'
8160else
8161 WIN32_NATIVE_BUILD_TRUE='#'
8162 WIN32_NATIVE_BUILD_FALSE=
8163fi
8164
8165 if test "${cygwin_build}" = 'yes' ; then
8166 CYGWIN_BUILD_TRUE=
8167 CYGWIN_BUILD_FALSE='#'
8168else
8169 CYGWIN_BUILD_TRUE='#'
8170 CYGWIN_BUILD_FALSE=
8171fi
8172
8173 if test "x${CC}" = 'xcl.exe' ; then
8174 USING_CL_TRUE=
8175 USING_CL_FALSE='#'
8176else
8177 USING_CL_TRUE='#'
8178 USING_CL_FALSE=
8179fi
8180
cristy3ed852e2009-09-05 21:47:34 +00008181
8182WinPathScript="${srcdirfull}/winpath.sh"
8183
8184
8185#
8186# Compiler flags tweaks
8187#
8188if test "${GCC}" != "yes"; then
8189 case "${host}" in
8190 *-*-hpux* )
8191 # aCC: HP ANSI C++ B3910B A.03.34
8192 CFLAGS="${CFLAGS} -Wp,-H30000"
8193 if test -n "${CXXFLAGS}"; then
8194 CXXFLAGS='-AA'
8195 else
8196 CXXFLAGS="${CXXFLAGS} -AA"
8197 fi
8198 ;;
8199 *-dec-osf5.* )
8200 # Compaq alphaev68-dec-osf5.1 compiler
8201 if test -n "${CXXFLAGS}"; then
8202 CXXFLAGS='-std strict_ansi -noimplicit_include'
8203 else
8204 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8205 fi
8206 esac
8207fi
8208
8209# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008211$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008212if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008213 $as_echo_n "(cached) " >&6
8214else
8215
8216im_cv_ld_lazyload='none'
8217case "${host}" in
8218 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8219 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8220 im_cv_ld_lazyload='-Wl,-zlazyload'
8221 fi
8222 ;;
8223esac
8224
8225fi
cristy8b350f62009-11-15 23:12:43 +00008226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008227$as_echo "$im_cv_ld_lazyload" >&6; }
8228if test "${im_cv_ld_lazyload}" != 'none' ; then
8229 if test -z "${LDFLAGS}" ; then
8230 LDFLAGS="${im_cv_ld_lazyload}"
8231 else
8232 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8233 fi
8234fi
8235
8236case "$host" in
8237*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008238 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008239if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008240 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8241else
8242 build_osxuniversal=no
8243fi
8244
8245
8246 if test "${build_osxuniversal}" != no ; then
8247 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008248 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008249Please re-run configure with these options:
8250 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008251 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008252 fi
8253 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8254 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8255 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8256 fi
8257 ;;
8258esac
8259
cristy0151ae12011-10-28 16:32:29 +00008260#
8261# ARCH specific include directory
8262#
8263
cristy670aa3c2011-11-03 00:54:00 +00008264# Check whether --with-includearch-dir was given.
8265if test "${with_includearch_dir+set}" = set; then :
8266 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008267else
cristy670aa3c2011-11-03 00:54:00 +00008268 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008269fi
8270
8271
cristy670aa3c2011-11-03 00:54:00 +00008272eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008273
cristy0151ae12011-10-28 16:32:29 +00008274
8275#
8276# ARCH specific configuration directory
8277#
8278
cristy670aa3c2011-11-03 00:54:00 +00008279# Check whether --with-sharearch-dir was given.
8280if test "${with_sharearch_dir+set}" = set; then :
8281 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008282else
cristy408ebcd2011-11-14 01:36:57 +00008283 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008284fi
8285
8286
cristy670aa3c2011-11-03 00:54:00 +00008287eval "eval SHAREARCH_DIR=$sharearch_dir"
8288SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008289
cristy0151ae12011-10-28 16:32:29 +00008290
8291#
cristy3ed852e2009-09-05 21:47:34 +00008292# Enable support for threads
8293
8294# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008295if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008296 withval=$with_threads; with_threads=$withval
8297else
8298 with_threads='yes'
8299fi
8300
8301
8302have_threads=no
8303if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008304
8305
cristy73bd4a52010-10-05 11:24:23 +00008306ac_ext=c
8307ac_cpp='$CPP $CPPFLAGS'
8308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8310ac_compiler_gnu=$ac_cv_c_compiler_gnu
8311
8312ax_pthread_ok=no
8313
8314# We used to check for pthread.h first, but this fails if pthread.h
8315# requires special compiler flags (e.g. on True64 or Sequent).
8316# It gets checked for in the link test anyway.
8317
8318# First of all, check if the user has set any of the PTHREAD_LIBS,
8319# etcetera environment variables, and if threads linking works using
8320# them:
8321if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8322 save_CFLAGS="$CFLAGS"
8323 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8324 save_LIBS="$LIBS"
8325 LIBS="$PTHREAD_LIBS $LIBS"
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8327$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329/* end confdefs.h. */
8330
8331/* Override any GCC internal prototype to avoid an error.
8332 Use char because int might match the return type of a GCC
8333 builtin and then its argument prototype would still apply. */
8334#ifdef __cplusplus
8335extern "C"
8336#endif
8337char pthread_join ();
8338int
8339main ()
8340{
8341return pthread_join ();
8342 ;
8343 return 0;
8344}
8345_ACEOF
8346if ac_fn_c_try_link "$LINENO"; then :
8347 ax_pthread_ok=yes
8348fi
8349rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8352$as_echo "$ax_pthread_ok" >&6; }
8353 if test x"$ax_pthread_ok" = xno; then
8354 PTHREAD_LIBS=""
8355 PTHREAD_CFLAGS=""
8356 fi
8357 LIBS="$save_LIBS"
8358 CFLAGS="$save_CFLAGS"
8359fi
8360
8361# We must check for the threads library under a number of different
8362# names; the ordering is very important because some systems
8363# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8364# libraries is broken (non-POSIX).
8365
8366# Create a list of thread flags to try. Items starting with a "-" are
8367# C compiler flags, and other items are library names, except for "none"
8368# which indicates that we try without any flags at all, and "pthread-config"
8369# which is a program returning the flags for the Pth emulation library.
8370
8371ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8372
8373# The ordering *is* (sometimes) important. Some notes on the
8374# individual items follow:
8375
8376# pthreads: AIX (must check this before -lpthread)
8377# none: in case threads are in libc; should be tried before -Kthread and
8378# other compiler flags to prevent continual compiler warnings
8379# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8380# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8381# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8382# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8383# -pthreads: Solaris/gcc
8384# -mthreads: Mingw32/gcc, Lynx/gcc
8385# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8386# doesn't hurt to check since this sometimes defines pthreads too;
8387# also defines -D_REENTRANT)
8388# ... -mt is also the pthreads flag for HP/aCC
8389# pthread: Linux, etcetera
8390# --thread-safe: KAI C++
8391# pthread-config: use pthread-config program (for GNU Pth library)
8392
8393case "${host_cpu}-${host_os}" in
8394 *solaris*)
8395
8396 # On Solaris (at least, for some versions), libc contains stubbed
8397 # (non-functional) versions of the pthreads routines, so link-based
8398 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8399 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8400 # a function called by this macro, so we could check for that, but
8401 # who knows whether they'll stub that too in a future libc.) So,
8402 # we'll just look for -pthreads and -lpthread first:
8403
8404 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8405 ;;
8406
cristya316db12011-10-24 00:49:45 +00008407 *-darwin*)
8408 ax_pthread_flags="-pthread $ax_pthread_flags"
8409 ;;
cristy73bd4a52010-10-05 11:24:23 +00008410esac
8411
8412if test x"$ax_pthread_ok" = xno; then
8413for flag in $ax_pthread_flags; do
8414
8415 case $flag in
8416 none)
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8418$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8419 ;;
8420
8421 -*)
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8423$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8424 PTHREAD_CFLAGS="$flag"
8425 ;;
8426
cristya316db12011-10-24 00:49:45 +00008427 pthread-config)
8428 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008429set dummy pthread-config; ac_word=$2
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008432if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008433 $as_echo_n "(cached) " >&6
8434else
8435 if test -n "$ax_pthread_config"; then
8436 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8437else
8438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_prog_ax_pthread_config="yes"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449done
8450 done
8451IFS=$as_save_IFS
8452
8453 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8454fi
8455fi
8456ax_pthread_config=$ac_cv_prog_ax_pthread_config
8457if test -n "$ax_pthread_config"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8459$as_echo "$ax_pthread_config" >&6; }
8460else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462$as_echo "no" >&6; }
8463fi
8464
8465
cristya316db12011-10-24 00:49:45 +00008466 if test x"$ax_pthread_config" = xno; then continue; fi
8467 PTHREAD_CFLAGS="`pthread-config --cflags`"
8468 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8469 ;;
cristy73bd4a52010-10-05 11:24:23 +00008470
8471 *)
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8473$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8474 PTHREAD_LIBS="-l$flag"
8475 ;;
8476 esac
8477
8478 save_LIBS="$LIBS"
8479 save_CFLAGS="$CFLAGS"
8480 LIBS="$PTHREAD_LIBS $LIBS"
8481 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8482
8483 # Check for various functions. We must include pthread.h,
8484 # since some functions may be macros. (On the Sequent, we
8485 # need a special flag -Kthread to make this header compile.)
8486 # We check for pthread_join because it is in -lpthread on IRIX
8487 # while pthread_create is in libc. We check for pthread_attr_init
8488 # due to DEC craziness with -lpthreads. We check for
8489 # pthread_cleanup_push because it is one of the few pthread
8490 # functions on Solaris that doesn't have a non-functional libc stub.
8491 # We try pthread_create on general principles.
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h. */
8494#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008495 static void routine(void *a) { a = 0; }
8496 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008497int
8498main ()
8499{
8500pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008501 pthread_create(&th, 0, start_routine, 0);
8502 pthread_join(th, 0);
8503 pthread_attr_init(&attr);
8504 pthread_cleanup_push(routine, 0);
8505 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008506 ;
8507 return 0;
8508}
8509_ACEOF
8510if ac_fn_c_try_link "$LINENO"; then :
8511 ax_pthread_ok=yes
8512fi
8513rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8515
8516 LIBS="$save_LIBS"
8517 CFLAGS="$save_CFLAGS"
8518
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8520$as_echo "$ax_pthread_ok" >&6; }
8521 if test "x$ax_pthread_ok" = xyes; then
8522 break;
8523 fi
8524
8525 PTHREAD_LIBS=""
8526 PTHREAD_CFLAGS=""
8527done
8528fi
8529
8530# Various other checks:
8531if test "x$ax_pthread_ok" = xyes; then
8532 save_LIBS="$LIBS"
8533 LIBS="$PTHREAD_LIBS $LIBS"
8534 save_CFLAGS="$CFLAGS"
8535 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8536
8537 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008539$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008540 attr_name=unknown
8541 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008543/* end confdefs.h. */
8544#include <pthread.h>
8545int
8546main ()
8547{
cristya316db12011-10-24 00:49:45 +00008548int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008549 ;
8550 return 0;
8551}
8552_ACEOF
8553if ac_fn_c_try_link "$LINENO"; then :
8554 attr_name=$attr; break
8555fi
8556rm -f core conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008558 done
cristy73bd4a52010-10-05 11:24:23 +00008559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8560$as_echo "$attr_name" >&6; }
8561 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8562
8563cat >>confdefs.h <<_ACEOF
8564#define PTHREAD_CREATE_JOINABLE $attr_name
8565_ACEOF
8566
8567 fi
8568
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8570$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8571 flag=no
8572 case "${host_cpu}-${host_os}" in
8573 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8574 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8575 esac
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8577$as_echo "${flag}" >&6; }
8578 if test "x$flag" != xno; then
8579 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8580 fi
8581
cristya316db12011-10-24 00:49:45 +00008582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8583$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8584if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8585 $as_echo_n "(cached) " >&6
8586else
8587
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589/* end confdefs.h. */
8590
8591 #include <pthread.h>
8592int
8593main ()
8594{
8595int i = PTHREAD_PRIO_INHERIT;
8596 ;
8597 return 0;
8598}
8599_ACEOF
8600if ac_fn_c_try_link "$LINENO"; then :
8601 ax_cv_PTHREAD_PRIO_INHERIT=yes
8602else
8603 ax_cv_PTHREAD_PRIO_INHERIT=no
8604fi
8605rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8607
8608fi
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8610$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8611 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8612
8613$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8614
8615fi
8616
cristy73bd4a52010-10-05 11:24:23 +00008617 LIBS="$save_LIBS"
8618 CFLAGS="$save_CFLAGS"
8619
8620 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008621 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008622 for ac_prog in xlc_r cc_r
8623do
8624 # Extract the first word of "$ac_prog", so it can be a program name with args.
8625set dummy $ac_prog; ac_word=$2
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008628if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008629 $as_echo_n "(cached) " >&6
8630else
8631 if test -n "$PTHREAD_CC"; then
8632 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8633else
8634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635for as_dir in $PATH
8636do
8637 IFS=$as_save_IFS
8638 test -z "$as_dir" && as_dir=.
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641 ac_cv_prog_PTHREAD_CC="$ac_prog"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 break 2
8644 fi
8645done
8646 done
8647IFS=$as_save_IFS
8648
8649fi
8650fi
8651PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8652if test -n "$PTHREAD_CC"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8654$as_echo "$PTHREAD_CC" >&6; }
8655else
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657$as_echo "no" >&6; }
8658fi
8659
8660
8661 test -n "$PTHREAD_CC" && break
8662done
8663test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8664
8665 else
8666 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008667 fi
cristy73bd4a52010-10-05 11:24:23 +00008668else
8669 PTHREAD_CC="$CC"
8670fi
8671
8672
8673
8674
8675
8676# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8677if test x"$ax_pthread_ok" = xyes; then
8678
8679$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8680
8681 :
8682else
8683 ax_pthread_ok=no
8684
8685fi
8686ac_ext=c
8687ac_cpp='$CPP $CPPFLAGS'
8688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690ac_compiler_gnu=$ac_cv_c_compiler_gnu
8691
8692
cristy7acf8fb2010-09-23 19:58:53 +00008693 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008694 have_threads=yes
8695 DEF_THREAD="$PTHREAD_CFLAGS"
8696 CFLAGS="$CFLAGS $DEF_THREAD"
8697 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8698 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008699 { $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 +00008700$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8701 CC="$PTHREAD_CC"
8702 fi
cristy55bf91c2010-09-24 00:29:41 +00008703
8704$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8705
cristy3ed852e2009-09-05 21:47:34 +00008706 fi
8707fi
8708
8709# Enable support for OpenMP
8710if test "$have_threads" != 'yes'; then
8711 ac_cv_prog_c_openmp=unsupported
8712fi
8713
8714 OPENMP_CFLAGS=
8715 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008716if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008717 enableval=$enable_openmp;
8718fi
8719
8720 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008722$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008723if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008724 $as_echo_n "(cached) " >&6
8725else
cristy8b350f62009-11-15 23:12:43 +00008726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008728
8729#ifndef _OPENMP
8730 choke me
8731#endif
8732#include <omp.h>
8733int main () { return omp_get_num_threads (); }
8734
8735_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008736if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008737 ac_cv_prog_c_openmp='none needed'
8738else
cristy8b350f62009-11-15 23:12:43 +00008739 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008740 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8741 ac_save_CFLAGS=$CFLAGS
8742 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008745
8746#ifndef _OPENMP
8747 choke me
8748#endif
8749#include <omp.h>
8750int main () { return omp_get_num_threads (); }
8751
8752_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008753if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008754 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008755fi
cristy8b350f62009-11-15 23:12:43 +00008756rm -f core conftest.err conftest.$ac_objext \
8757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008758 CFLAGS=$ac_save_CFLAGS
8759 if test "$ac_cv_prog_c_openmp" != unsupported; then
8760 break
8761 fi
8762 done
8763fi
cristy8b350f62009-11-15 23:12:43 +00008764rm -f core conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008766fi
cristy8b350f62009-11-15 23:12:43 +00008767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008768$as_echo "$ac_cv_prog_c_openmp" >&6; }
8769 case $ac_cv_prog_c_openmp in #(
8770 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008771 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008772 *)
cristy8b350f62009-11-15 23:12:43 +00008773 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008774 esac
8775 fi
8776
8777
8778CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8779MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8780
cristy391f1ce2010-09-09 17:23:28 +00008781if test "$enable_openmp" != no; then
8782 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8783 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8784 fi
8785fi
cristy3ed852e2009-09-05 21:47:34 +00008786
cristy736173a2009-09-20 21:18:22 +00008787# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008788
8789
cristy73bd4a52010-10-05 11:24:23 +00008790ac_ext=c
8791ac_cpp='$CPP $CPPFLAGS'
8792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8794ac_compiler_gnu=$ac_cv_c_compiler_gnu
8795
8796ax_pthread_ok=no
8797
8798# We used to check for pthread.h first, but this fails if pthread.h
8799# requires special compiler flags (e.g. on True64 or Sequent).
8800# It gets checked for in the link test anyway.
8801
8802# First of all, check if the user has set any of the PTHREAD_LIBS,
8803# etcetera environment variables, and if threads linking works using
8804# them:
8805if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8806 save_CFLAGS="$CFLAGS"
8807 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8808 save_LIBS="$LIBS"
8809 LIBS="$PTHREAD_LIBS $LIBS"
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8811$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813/* end confdefs.h. */
8814
8815/* Override any GCC internal prototype to avoid an error.
8816 Use char because int might match the return type of a GCC
8817 builtin and then its argument prototype would still apply. */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821char pthread_join ();
8822int
8823main ()
8824{
8825return pthread_join ();
8826 ;
8827 return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_link "$LINENO"; then :
8831 ax_pthread_ok=yes
8832fi
8833rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8836$as_echo "$ax_pthread_ok" >&6; }
8837 if test x"$ax_pthread_ok" = xno; then
8838 PTHREAD_LIBS=""
8839 PTHREAD_CFLAGS=""
8840 fi
8841 LIBS="$save_LIBS"
8842 CFLAGS="$save_CFLAGS"
8843fi
8844
8845# We must check for the threads library under a number of different
8846# names; the ordering is very important because some systems
8847# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8848# libraries is broken (non-POSIX).
8849
8850# Create a list of thread flags to try. Items starting with a "-" are
8851# C compiler flags, and other items are library names, except for "none"
8852# which indicates that we try without any flags at all, and "pthread-config"
8853# which is a program returning the flags for the Pth emulation library.
8854
8855ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8856
8857# The ordering *is* (sometimes) important. Some notes on the
8858# individual items follow:
8859
8860# pthreads: AIX (must check this before -lpthread)
8861# none: in case threads are in libc; should be tried before -Kthread and
8862# other compiler flags to prevent continual compiler warnings
8863# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8864# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8865# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8866# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8867# -pthreads: Solaris/gcc
8868# -mthreads: Mingw32/gcc, Lynx/gcc
8869# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8870# doesn't hurt to check since this sometimes defines pthreads too;
8871# also defines -D_REENTRANT)
8872# ... -mt is also the pthreads flag for HP/aCC
8873# pthread: Linux, etcetera
8874# --thread-safe: KAI C++
8875# pthread-config: use pthread-config program (for GNU Pth library)
8876
8877case "${host_cpu}-${host_os}" in
8878 *solaris*)
8879
8880 # On Solaris (at least, for some versions), libc contains stubbed
8881 # (non-functional) versions of the pthreads routines, so link-based
8882 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8883 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8884 # a function called by this macro, so we could check for that, but
8885 # who knows whether they'll stub that too in a future libc.) So,
8886 # we'll just look for -pthreads and -lpthread first:
8887
8888 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8889 ;;
8890
cristya316db12011-10-24 00:49:45 +00008891 *-darwin*)
8892 ax_pthread_flags="-pthread $ax_pthread_flags"
8893 ;;
cristy73bd4a52010-10-05 11:24:23 +00008894esac
8895
8896if test x"$ax_pthread_ok" = xno; then
8897for flag in $ax_pthread_flags; do
8898
8899 case $flag in
8900 none)
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8902$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8903 ;;
8904
8905 -*)
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8907$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8908 PTHREAD_CFLAGS="$flag"
8909 ;;
8910
cristya316db12011-10-24 00:49:45 +00008911 pthread-config)
8912 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008913set dummy pthread-config; ac_word=$2
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008916if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008917 $as_echo_n "(cached) " >&6
8918else
8919 if test -n "$ax_pthread_config"; then
8920 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8921else
8922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923for as_dir in $PATH
8924do
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8929 ac_cv_prog_ax_pthread_config="yes"
8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 break 2
8932 fi
8933done
8934 done
8935IFS=$as_save_IFS
8936
8937 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8938fi
8939fi
8940ax_pthread_config=$ac_cv_prog_ax_pthread_config
8941if test -n "$ax_pthread_config"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8943$as_echo "$ax_pthread_config" >&6; }
8944else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
8947fi
8948
8949
cristya316db12011-10-24 00:49:45 +00008950 if test x"$ax_pthread_config" = xno; then continue; fi
8951 PTHREAD_CFLAGS="`pthread-config --cflags`"
8952 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8953 ;;
cristy73bd4a52010-10-05 11:24:23 +00008954
8955 *)
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8957$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8958 PTHREAD_LIBS="-l$flag"
8959 ;;
8960 esac
8961
8962 save_LIBS="$LIBS"
8963 save_CFLAGS="$CFLAGS"
8964 LIBS="$PTHREAD_LIBS $LIBS"
8965 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8966
8967 # Check for various functions. We must include pthread.h,
8968 # since some functions may be macros. (On the Sequent, we
8969 # need a special flag -Kthread to make this header compile.)
8970 # We check for pthread_join because it is in -lpthread on IRIX
8971 # while pthread_create is in libc. We check for pthread_attr_init
8972 # due to DEC craziness with -lpthreads. We check for
8973 # pthread_cleanup_push because it is one of the few pthread
8974 # functions on Solaris that doesn't have a non-functional libc stub.
8975 # We try pthread_create on general principles.
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h. */
8978#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008979 static void routine(void *a) { a = 0; }
8980 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008981int
8982main ()
8983{
8984pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008985 pthread_create(&th, 0, start_routine, 0);
8986 pthread_join(th, 0);
8987 pthread_attr_init(&attr);
8988 pthread_cleanup_push(routine, 0);
8989 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008990 ;
8991 return 0;
8992}
8993_ACEOF
8994if ac_fn_c_try_link "$LINENO"; then :
8995 ax_pthread_ok=yes
8996fi
8997rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999
9000 LIBS="$save_LIBS"
9001 CFLAGS="$save_CFLAGS"
9002
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9004$as_echo "$ax_pthread_ok" >&6; }
9005 if test "x$ax_pthread_ok" = xyes; then
9006 break;
9007 fi
9008
9009 PTHREAD_LIBS=""
9010 PTHREAD_CFLAGS=""
9011done
9012fi
9013
9014# Various other checks:
9015if test "x$ax_pthread_ok" = xyes; then
9016 save_LIBS="$LIBS"
9017 LIBS="$PTHREAD_LIBS $LIBS"
9018 save_CFLAGS="$CFLAGS"
9019 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9020
9021 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009023$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009024 attr_name=unknown
9025 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009027/* end confdefs.h. */
9028#include <pthread.h>
9029int
9030main ()
9031{
cristya316db12011-10-24 00:49:45 +00009032int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009033 ;
9034 return 0;
9035}
9036_ACEOF
9037if ac_fn_c_try_link "$LINENO"; then :
9038 attr_name=$attr; break
9039fi
9040rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009042 done
cristy73bd4a52010-10-05 11:24:23 +00009043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9044$as_echo "$attr_name" >&6; }
9045 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9046
9047cat >>confdefs.h <<_ACEOF
9048#define PTHREAD_CREATE_JOINABLE $attr_name
9049_ACEOF
9050
9051 fi
9052
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9054$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9055 flag=no
9056 case "${host_cpu}-${host_os}" in
9057 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9058 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9059 esac
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9061$as_echo "${flag}" >&6; }
9062 if test "x$flag" != xno; then
9063 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9064 fi
9065
cristya316db12011-10-24 00:49:45 +00009066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9067$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9068if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070else
9071
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h. */
9074
9075 #include <pthread.h>
9076int
9077main ()
9078{
9079int i = PTHREAD_PRIO_INHERIT;
9080 ;
9081 return 0;
9082}
9083_ACEOF
9084if ac_fn_c_try_link "$LINENO"; then :
9085 ax_cv_PTHREAD_PRIO_INHERIT=yes
9086else
9087 ax_cv_PTHREAD_PRIO_INHERIT=no
9088fi
9089rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091
9092fi
9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9094$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9095 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9096
9097$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9098
9099fi
9100
cristy73bd4a52010-10-05 11:24:23 +00009101 LIBS="$save_LIBS"
9102 CFLAGS="$save_CFLAGS"
9103
9104 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009105 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009106 for ac_prog in xlc_r cc_r
9107do
9108 # Extract the first word of "$ac_prog", so it can be a program name with args.
9109set dummy $ac_prog; ac_word=$2
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009112if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009113 $as_echo_n "(cached) " >&6
9114else
9115 if test -n "$PTHREAD_CC"; then
9116 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9117else
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125 ac_cv_prog_PTHREAD_CC="$ac_prog"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129done
9130 done
9131IFS=$as_save_IFS
9132
9133fi
9134fi
9135PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9136if test -n "$PTHREAD_CC"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9138$as_echo "$PTHREAD_CC" >&6; }
9139else
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141$as_echo "no" >&6; }
9142fi
9143
9144
9145 test -n "$PTHREAD_CC" && break
9146done
9147test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9148
9149 else
9150 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009151 fi
cristy73bd4a52010-10-05 11:24:23 +00009152else
9153 PTHREAD_CC="$CC"
9154fi
9155
9156
9157
9158
9159
9160# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9161if test x"$ax_pthread_ok" = xyes; then
9162
9163$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9164
9165 :
9166else
9167 ax_pthread_ok=no
9168
9169fi
9170ac_ext=c
9171ac_cpp='$CPP $CPPFLAGS'
9172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9174ac_compiler_gnu=$ac_cv_c_compiler_gnu
9175
9176
9177
9178# Check whether --enable-opencl was given.
9179if test "${enable_opencl+set}" = set; then :
9180 enableval=$enable_opencl; disable_opencl=$enableval
9181else
9182 disable_opencl='yes'
9183fi
9184
9185
9186if test "$disable_opencl" = 'yes'; then
9187 ac_ext=c
9188ac_cpp='$CPP $CPPFLAGS'
9189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9191ac_compiler_gnu=$ac_cv_c_compiler_gnu
9192
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9194$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009195if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009196 $as_echo_n "(cached) " >&6
9197else
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h. */
9200
9201int
9202main ()
9203{
9204#ifndef _MSC_VER
9205 choke me
9206#endif
9207
9208 ;
9209 return 0;
9210}
9211_ACEOF
9212if ac_fn_c_try_compile "$LINENO"; then :
9213 ax_compiler_ms=yes
9214else
9215 ax_compiler_ms=no
9216fi
9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218ax_cv_c_compiler_ms=$ax_compiler_ms
9219
9220fi
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9222$as_echo "$ax_cv_c_compiler_ms" >&6; }
9223 if test X$ax_compiler_ms = Xno; then :
9224 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9225fi
9226
9227 ax_save_CPPFLAGS=$CPPFLAGS
9228 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9229 for ac_header in CL/cl.h OpenCL/cl.h
9230do :
9231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9232ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009233if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009234 cat >>confdefs.h <<_ACEOF
9235#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9236_ACEOF
9237
9238fi
9239
9240done
9241
9242 CPPFLAGS=$ax_save_CPPFLAGS
9243
9244 for ac_header in windows.h
9245do :
9246 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009247if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009248 cat >>confdefs.h <<_ACEOF
9249#define HAVE_WINDOWS_H 1
9250_ACEOF
9251
9252fi
9253
9254done
9255
9256
9257
9258
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9260$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009261if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009262 $as_echo_n "(cached) " >&6
9263else
9264 ax_cv_check_cl_libcl=no
9265 case $host_cpu in
9266 x86_64) ax_check_cl_libdir=lib64 ;;
9267 *) ax_check_cl_libdir=lib ;;
9268 esac
9269 ax_save_CPPFLAGS=$CPPFLAGS
9270 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9271 ax_save_LIBS=$LIBS
9272 LIBS=""
9273 ax_check_libs="-lOpenCL -lCL -lclparser"
9274 for ax_lib in $ax_check_libs; do
9275 if test X$ax_compiler_ms = Xyes; then :
9276 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9277else
9278 ax_try_lib=$ax_lib
9279fi
9280 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h. */
9283
9284 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9285 # include <windows.h>
9286 # endif
9287 # ifdef HAVE_CL_CL_H
9288 # include <CL/cl.h>
9289 # elif defined(HAVE_OPENCL_CL_H)
9290 # include <OpenCL/cl.h>
9291 # else
9292 # error no CL.h
9293 # endif
9294int
9295main ()
9296{
9297clCreateContextFromType(0,0,0,0,0)
9298 ;
9299 return 0;
9300}
9301_ACEOF
9302if ac_fn_c_try_link "$LINENO"; then :
9303 ax_cv_check_cl_libcl=$ax_try_lib; break
9304else
9305 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"
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h. */
9308
9309 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9310 # include <windows.h>
9311 # endif
9312 # ifdef HAVE_CL_CL_H
9313 # include <CL/cl.h>
9314 # elif defined(HAVE_OPENCL_CL_H)
9315 # include <OpenCL/cl.h>
9316 # else
9317 # error no CL.h
9318 # endif
9319int
9320main ()
9321{
9322clCreateContextFromType(0,0,0,0,0)
9323 ;
9324 return 0;
9325}
9326_ACEOF
9327if ac_fn_c_try_link "$LINENO"; then :
9328 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9329else
cristy78c5a0c2010-12-04 20:00:59 +00009330 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 +00009331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332/* end confdefs.h. */
9333
9334 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9335 # include <windows.h>
9336 # endif
9337 # ifdef HAVE_CL_CL_H
9338 # include <CL/cl.h>
9339 # elif defined(HAVE_OPENCL_CL_H)
9340 # include <OpenCL/cl.h>
9341 # else
9342 # error no CL.h
9343 # endif
9344int
9345main ()
9346{
9347clCreateContextFromType(0,0,0,0,0)
9348 ;
9349 return 0;
9350}
9351_ACEOF
9352if ac_fn_c_try_link "$LINENO"; then :
9353 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9354fi
9355rm -f core conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
9357fi
9358rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360fi
9361rm -f core conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9363 done
9364
9365 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009366 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368/* end confdefs.h. */
9369
9370 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9371 # include <windows.h>
9372 # endif
9373 # ifdef HAVE_CL_CL_H
9374 # include <CL/cl.h>
9375 # elif defined(HAVE_OPENCL_CL_H)
9376 # include <OpenCL/cl.h>
9377 # else
9378 # error no CL.h
9379 # endif
9380int
9381main ()
9382{
9383clCreateContextFromType(0,0,0,0,0)
9384 ;
9385 return 0;
9386}
9387_ACEOF
9388if ac_fn_c_try_link "$LINENO"; then :
9389 ax_cv_check_cl_libcl=$LIBS
9390fi
9391rm -f core conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
9393fi
9394
9395 LIBS=$ax_save_LIBS
9396 CPPFLAGS=$ax_save_CPPFLAGS
9397fi
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9399$as_echo "$ax_cv_check_cl_libcl" >&6; }
9400
9401 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9402 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9403else
9404 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9405$as_echo "#define _OPENCL 1" >>confdefs.h
9406
9407fi
9408 ac_ext=c
9409ac_cpp='$CPP $CPPFLAGS'
9410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9412ac_compiler_gnu=$ac_cv_c_compiler_gnu
9413
9414fi
9415
9416
9417
9418
cristyc7083c12009-10-14 03:16:55 +00009419CFLAGS="$CL_CFLAGS $CFLAGS"
9420LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009421
cristy391f1ce2010-09-09 17:23:28 +00009422if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009423 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009424 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9425 fi
cristyfd9dcd42010-08-08 18:07:02 +00009426fi
cristy2e8b51d2009-10-17 18:26:15 +00009427
cristy3ed852e2009-09-05 21:47:34 +00009428########
9429#
9430# Check for large file support
9431#
9432########
9433# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009434if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009435 enableval=$enable_largefile;
9436fi
9437
9438if test "$enable_largefile" != no; then
9439
cristy8b350f62009-11-15 23:12:43 +00009440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009441$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009442if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009443 $as_echo_n "(cached) " >&6
9444else
9445 ac_cv_sys_largefile_CC=no
9446 if test "$GCC" != yes; then
9447 ac_save_CC=$CC
9448 while :; do
9449 # IRIX 6.2 and later do not support large files by default,
9450 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009452/* end confdefs.h. */
9453#include <sys/types.h>
9454 /* Check that off_t can represent 2**63 - 1 correctly.
9455 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9456 since some C++ compilers masquerading as C compilers
9457 incorrectly reject 9223372036854775807. */
9458#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9459 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9460 && LARGE_OFF_T % 2147483647 == 1)
9461 ? 1 : -1];
9462int
9463main ()
9464{
9465
9466 ;
9467 return 0;
9468}
9469_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009470 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009471 break
cristy3ed852e2009-09-05 21:47:34 +00009472fi
cristy3ed852e2009-09-05 21:47:34 +00009473rm -f core conftest.err conftest.$ac_objext
9474 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009475 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009476 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009477fi
cristy3ed852e2009-09-05 21:47:34 +00009478rm -f core conftest.err conftest.$ac_objext
9479 break
9480 done
9481 CC=$ac_save_CC
9482 rm -f conftest.$ac_ext
9483 fi
9484fi
cristy8b350f62009-11-15 23:12:43 +00009485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009486$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9487 if test "$ac_cv_sys_largefile_CC" != no; then
9488 CC=$CC$ac_cv_sys_largefile_CC
9489 fi
9490
cristy8b350f62009-11-15 23:12:43 +00009491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009492$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009493if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009494 $as_echo_n "(cached) " >&6
9495else
9496 while :; do
cristy8b350f62009-11-15 23:12:43 +00009497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009498/* end confdefs.h. */
9499#include <sys/types.h>
9500 /* Check that off_t can represent 2**63 - 1 correctly.
9501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9502 since some C++ compilers masquerading as C compilers
9503 incorrectly reject 9223372036854775807. */
9504#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9506 && LARGE_OFF_T % 2147483647 == 1)
9507 ? 1 : -1];
9508int
9509main ()
9510{
9511
9512 ;
9513 return 0;
9514}
9515_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009516if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009517 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009518fi
cristy3ed852e2009-09-05 21:47:34 +00009519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009521/* end confdefs.h. */
9522#define _FILE_OFFSET_BITS 64
9523#include <sys/types.h>
9524 /* Check that off_t can represent 2**63 - 1 correctly.
9525 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9526 since some C++ compilers masquerading as C compilers
9527 incorrectly reject 9223372036854775807. */
9528#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9529 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9530 && LARGE_OFF_T % 2147483647 == 1)
9531 ? 1 : -1];
9532int
9533main ()
9534{
9535
9536 ;
9537 return 0;
9538}
9539_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009540if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009541 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009542fi
cristy3ed852e2009-09-05 21:47:34 +00009543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9544 ac_cv_sys_file_offset_bits=unknown
9545 break
9546done
9547fi
cristy8b350f62009-11-15 23:12:43 +00009548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009549$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9550case $ac_cv_sys_file_offset_bits in #(
9551 no | unknown) ;;
9552 *)
9553cat >>confdefs.h <<_ACEOF
9554#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9555_ACEOF
9556;;
9557esac
9558rm -rf conftest*
9559 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009561$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009562if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009563 $as_echo_n "(cached) " >&6
9564else
9565 while :; do
cristy8b350f62009-11-15 23:12:43 +00009566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009567/* end confdefs.h. */
9568#include <sys/types.h>
9569 /* Check that off_t can represent 2**63 - 1 correctly.
9570 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9571 since some C++ compilers masquerading as C compilers
9572 incorrectly reject 9223372036854775807. */
9573#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9575 && LARGE_OFF_T % 2147483647 == 1)
9576 ? 1 : -1];
9577int
9578main ()
9579{
9580
9581 ;
9582 return 0;
9583}
9584_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009585if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009586 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009587fi
cristy3ed852e2009-09-05 21:47:34 +00009588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009590/* end confdefs.h. */
9591#define _LARGE_FILES 1
9592#include <sys/types.h>
9593 /* Check that off_t can represent 2**63 - 1 correctly.
9594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9595 since some C++ compilers masquerading as C compilers
9596 incorrectly reject 9223372036854775807. */
9597#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9599 && LARGE_OFF_T % 2147483647 == 1)
9600 ? 1 : -1];
9601int
9602main ()
9603{
9604
9605 ;
9606 return 0;
9607}
9608_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009609if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009610 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009611fi
cristy3ed852e2009-09-05 21:47:34 +00009612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613 ac_cv_sys_large_files=unknown
9614 break
9615done
9616fi
cristy8b350f62009-11-15 23:12:43 +00009617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009618$as_echo "$ac_cv_sys_large_files" >&6; }
9619case $ac_cv_sys_large_files in #(
9620 no | unknown) ;;
9621 *)
9622cat >>confdefs.h <<_ACEOF
9623#define _LARGE_FILES $ac_cv_sys_large_files
9624_ACEOF
9625;;
9626esac
9627rm -rf conftest*
9628 fi
9629fi
9630
cristy8b350f62009-11-15 23:12:43 +00009631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009632$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009633if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009634 $as_echo_n "(cached) " >&6
9635else
9636 while :; do
cristy8b350f62009-11-15 23:12:43 +00009637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009638/* end confdefs.h. */
9639#include <sys/types.h> /* for off_t */
9640 #include <stdio.h>
9641int
9642main ()
9643{
9644int (*fp) (FILE *, off_t, int) = fseeko;
9645 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9646 ;
9647 return 0;
9648}
9649_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009650if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009651 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009652fi
cristy8b350f62009-11-15 23:12:43 +00009653rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009656/* end confdefs.h. */
9657#define _LARGEFILE_SOURCE 1
9658#include <sys/types.h> /* for off_t */
9659 #include <stdio.h>
9660int
9661main ()
9662{
9663int (*fp) (FILE *, off_t, int) = fseeko;
9664 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9665 ;
9666 return 0;
9667}
9668_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009669if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009670 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009671fi
cristy8b350f62009-11-15 23:12:43 +00009672rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009674 ac_cv_sys_largefile_source=unknown
9675 break
9676done
9677fi
cristy8b350f62009-11-15 23:12:43 +00009678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009679$as_echo "$ac_cv_sys_largefile_source" >&6; }
9680case $ac_cv_sys_largefile_source in #(
9681 no | unknown) ;;
9682 *)
9683cat >>confdefs.h <<_ACEOF
9684#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9685_ACEOF
9686;;
9687esac
9688rm -rf conftest*
9689
9690# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9691# in glibc 2.1.3, but that breaks too many other things.
9692# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9693if test $ac_cv_sys_largefile_source != unknown; then
9694
cristy8b350f62009-11-15 23:12:43 +00009695$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009696
9697fi
9698
9699LFS_CPPFLAGS=''
9700if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009701 case $ac_cv_sys_file_offset_bits in
9702 no)
9703 # nothing to do here as the host supports LFS fine
9704 ;;
9705 unknown)
cristy8b350f62009-11-15 23:12:43 +00009706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009707$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009708 if test "$cross_compiling" = yes; then :
9709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009711as_fn_error $? "cannot run test program while cross compiling
9712See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009713else
cristy8b350f62009-11-15 23:12:43 +00009714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009716#include <unistd.h>
9717 main () {
9718 exit(!(sizeof(off_t) == 8));
9719 }
cristyda16f162011-02-19 23:52:17 +00009720int
9721main ()
9722{
9723
9724 ;
9725 return 0;
9726}
cristy3ed852e2009-09-05 21:47:34 +00009727_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009728if ac_fn_c_try_run "$LINENO"; then :
9729 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009730
cristy09b53e12011-10-14 12:47:22 +00009731 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9732$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009733else
cristy09b53e12011-10-14 12:47:22 +00009734 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9735$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009736fi
cristy8b350f62009-11-15 23:12:43 +00009737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9738 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009739fi
9740
cristyc1e0cc12011-09-21 16:41:16 +00009741 ;;
9742 *)
9743 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9744 ;;
9745 esac
cristy3ed852e2009-09-05 21:47:34 +00009746 if test "$ac_cv_sys_large_files" != 'no'; then
9747 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9748 fi
9749 if test "$ac_cv_sys_largefile_source" != 'no'; then
9750 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9751 fi
9752fi
9753
9754
cristy3ed852e2009-09-05 21:47:34 +00009755# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009756enable_dlopen=yes
9757
9758
9759
9760case `pwd` in
9761 *\ * | *\ *)
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9763$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9764esac
9765
9766
9767
cristyda16f162011-02-19 23:52:17 +00009768macro_version='2.4'
9769macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783ltmain="$ac_aux_dir/ltmain.sh"
9784
cristy0c60a692010-11-04 01:09:47 +00009785# Backslashify metacharacters that are still active within
9786# double-quoted strings.
9787sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9788
9789# Same as above, but do not quote variable references.
9790double_quote_subst='s/\(["`\\]\)/\\\1/g'
9791
9792# Sed substitution to delay expansion of an escaped shell variable in a
9793# double_quote_subst'ed string.
9794delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9795
9796# Sed substitution to delay expansion of an escaped single quote.
9797delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9798
9799# Sed substitution to avoid accidental globbing in evaled expressions
9800no_glob_subst='s/\*/\\\*/g'
9801
cristy73bd4a52010-10-05 11:24:23 +00009802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9803$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009804if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009805 $as_echo_n "(cached) " >&6
9806else
9807 if test -n "$NM"; then
9808 # Let the user override the test.
9809 lt_cv_path_NM="$NM"
9810else
9811 lt_nm_to_check="${ac_tool_prefix}nm"
9812 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9813 lt_nm_to_check="$lt_nm_to_check nm"
9814 fi
9815 for lt_tmp_nm in $lt_nm_to_check; do
9816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9817 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9818 IFS="$lt_save_ifs"
9819 test -z "$ac_dir" && ac_dir=.
9820 tmp_nm="$ac_dir/$lt_tmp_nm"
9821 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9822 # Check to see if the nm accepts a BSD-compat flag.
9823 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9824 # nm: unknown option "B" ignored
9825 # Tru64's nm complains that /dev/null is an invalid object file
9826 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9827 */dev/null* | *'Invalid file or object type'*)
9828 lt_cv_path_NM="$tmp_nm -B"
9829 break
9830 ;;
9831 *)
9832 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9833 */dev/null*)
9834 lt_cv_path_NM="$tmp_nm -p"
9835 break
9836 ;;
9837 *)
9838 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9839 continue # so that we can try to find one that supports BSD flags
9840 ;;
9841 esac
9842 ;;
9843 esac
9844 fi
9845 done
9846 IFS="$lt_save_ifs"
9847 done
9848 : ${lt_cv_path_NM=no}
9849fi
9850fi
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9852$as_echo "$lt_cv_path_NM" >&6; }
9853if test "$lt_cv_path_NM" != "no"; then
9854 NM="$lt_cv_path_NM"
9855else
9856 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009857 if test -n "$DUMPBIN"; then :
9858 # Let the user override the test.
9859 else
9860 if test -n "$ac_tool_prefix"; then
9861 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009862 do
9863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9864set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009867if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009868 $as_echo_n "(cached) " >&6
9869else
9870 if test -n "$DUMPBIN"; then
9871 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9872else
9873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874for as_dir in $PATH
9875do
9876 IFS=$as_save_IFS
9877 test -z "$as_dir" && as_dir=.
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 break 2
9883 fi
9884done
9885 done
9886IFS=$as_save_IFS
9887
9888fi
9889fi
9890DUMPBIN=$ac_cv_prog_DUMPBIN
9891if test -n "$DUMPBIN"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9893$as_echo "$DUMPBIN" >&6; }
9894else
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896$as_echo "no" >&6; }
9897fi
9898
9899
9900 test -n "$DUMPBIN" && break
9901 done
9902fi
9903if test -z "$DUMPBIN"; then
9904 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009905 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009906do
9907 # Extract the first word of "$ac_prog", so it can be a program name with args.
9908set dummy $ac_prog; ac_word=$2
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009911if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009912 $as_echo_n "(cached) " >&6
9913else
9914 if test -n "$ac_ct_DUMPBIN"; then
9915 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9916else
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929 done
9930IFS=$as_save_IFS
9931
9932fi
9933fi
9934ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9935if test -n "$ac_ct_DUMPBIN"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9937$as_echo "$ac_ct_DUMPBIN" >&6; }
9938else
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940$as_echo "no" >&6; }
9941fi
9942
9943
9944 test -n "$ac_ct_DUMPBIN" && break
9945done
9946
9947 if test "x$ac_ct_DUMPBIN" = x; then
9948 DUMPBIN=":"
9949 else
9950 case $cross_compiling:$ac_tool_warned in
9951yes:)
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9954ac_tool_warned=yes ;;
9955esac
9956 DUMPBIN=$ac_ct_DUMPBIN
9957 fi
9958fi
9959
cristy0c60a692010-11-04 01:09:47 +00009960 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9961 *COFF*)
9962 DUMPBIN="$DUMPBIN -symbols"
9963 ;;
9964 *)
9965 DUMPBIN=:
9966 ;;
9967 esac
9968 fi
cristy73bd4a52010-10-05 11:24:23 +00009969
9970 if test "$DUMPBIN" != ":"; then
9971 NM="$DUMPBIN"
9972 fi
9973fi
9974test -z "$NM" && NM=nm
9975
9976
9977
9978
9979
9980
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9982$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009983if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009984 $as_echo_n "(cached) " >&6
9985else
9986 lt_cv_nm_interface="BSD nm"
9987 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009988 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009989 (eval "$ac_compile" 2>conftest.err)
9990 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009991 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009992 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9993 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009994 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009995 cat conftest.out >&5
9996 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9997 lt_cv_nm_interface="MS dumpbin"
9998 fi
9999 rm -f conftest*
10000fi
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10002$as_echo "$lt_cv_nm_interface" >&6; }
10003
10004# find the maximum length of command line arguments
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10006$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010007if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010008 $as_echo_n "(cached) " >&6
10009else
10010 i=0
10011 teststring="ABCD"
10012
10013 case $build_os in
10014 msdosdjgpp*)
10015 # On DJGPP, this test can blow up pretty badly due to problems in libc
10016 # (any single argument exceeding 2000 bytes causes a buffer overrun
10017 # during glob expansion). Even if it were fixed, the result of this
10018 # check would be larger than it should be.
10019 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10020 ;;
10021
10022 gnu*)
10023 # Under GNU Hurd, this test is not required because there is
10024 # no limit to the length of command line arguments.
10025 # Libtool will interpret -1 as no limit whatsoever
10026 lt_cv_sys_max_cmd_len=-1;
10027 ;;
10028
10029 cygwin* | mingw* | cegcc*)
10030 # On Win9x/ME, this test blows up -- it succeeds, but takes
10031 # about 5 minutes as the teststring grows exponentially.
10032 # Worse, since 9x/ME are not pre-emptively multitasking,
10033 # you end up with a "frozen" computer, even though with patience
10034 # the test eventually succeeds (with a max line length of 256k).
10035 # Instead, let's just punt: use the minimum linelength reported by
10036 # all of the supported platforms: 8192 (on NT/2K/XP).
10037 lt_cv_sys_max_cmd_len=8192;
10038 ;;
10039
cristy0c60a692010-11-04 01:09:47 +000010040 mint*)
10041 # On MiNT this can take a long time and run out of memory.
10042 lt_cv_sys_max_cmd_len=8192;
10043 ;;
10044
cristy73bd4a52010-10-05 11:24:23 +000010045 amigaos*)
10046 # On AmigaOS with pdksh, this test takes hours, literally.
10047 # So we just punt and use a minimum line length of 8192.
10048 lt_cv_sys_max_cmd_len=8192;
10049 ;;
10050
10051 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10052 # This has been around since 386BSD, at least. Likely further.
10053 if test -x /sbin/sysctl; then
10054 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10055 elif test -x /usr/sbin/sysctl; then
10056 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10057 else
10058 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10059 fi
10060 # And add a safety zone
10061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10063 ;;
10064
10065 interix*)
10066 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10067 lt_cv_sys_max_cmd_len=196608
10068 ;;
10069
10070 osf*)
10071 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10072 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10073 # nice to cause kernel panics so lets avoid the loop below.
10074 # First set a reasonable default.
10075 lt_cv_sys_max_cmd_len=16384
10076 #
10077 if test -x /sbin/sysconfig; then
10078 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10079 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10080 esac
10081 fi
10082 ;;
10083 sco3.2v5*)
10084 lt_cv_sys_max_cmd_len=102400
10085 ;;
10086 sysv5* | sco5v6* | sysv4.2uw2*)
10087 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10088 if test -n "$kargmax"; then
10089 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10090 else
10091 lt_cv_sys_max_cmd_len=32768
10092 fi
10093 ;;
10094 *)
10095 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10096 if test -n "$lt_cv_sys_max_cmd_len"; then
10097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10099 else
10100 # Make teststring a little bigger before we do anything with it.
10101 # a 1K string should be a reasonable start.
10102 for i in 1 2 3 4 5 6 7 8 ; do
10103 teststring=$teststring$teststring
10104 done
10105 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10106 # If test is not a shell built-in, we'll probably end up computing a
10107 # maximum length that is only half of the actual maximum length, but
10108 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +000010109 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10110 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010111 test $i != 17 # 1/2 MB should be enough
10112 do
10113 i=`expr $i + 1`
10114 teststring=$teststring$teststring
10115 done
10116 # Only check the string length outside the loop.
10117 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10118 teststring=
10119 # Add a significant safety factor because C++ compilers can tack on
10120 # massive amounts of additional arguments before passing them to the
10121 # linker. It appears as though 1/2 is a usable value.
10122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10123 fi
10124 ;;
10125 esac
10126
10127fi
10128
10129if test -n $lt_cv_sys_max_cmd_len ; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10131$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10132else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10134$as_echo "none" >&6; }
10135fi
10136max_cmd_len=$lt_cv_sys_max_cmd_len
10137
10138
10139
10140
10141
10142
10143: ${CP="cp -f"}
10144: ${MV="mv -f"}
10145: ${RM="rm -f"}
10146
10147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10148$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10149# Try some XSI features
10150xsi_shell=no
10151( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010152 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10153 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010154 && eval 'test $(( 1 + 1 )) -eq 2 \
10155 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10156 && xsi_shell=yes
10157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10158$as_echo "$xsi_shell" >&6; }
10159
10160
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10162$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10163lt_shell_append=no
10164( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10165 >/dev/null 2>&1 \
10166 && lt_shell_append=yes
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10168$as_echo "$lt_shell_append" >&6; }
10169
10170
10171if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10172 lt_unset=unset
10173else
10174 lt_unset=false
10175fi
10176
10177
10178
10179
10180
10181# test EBCDIC or ASCII
10182case `echo X|tr X '\101'` in
10183 A) # ASCII based system
10184 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10185 lt_SP2NL='tr \040 \012'
10186 lt_NL2SP='tr \015\012 \040\040'
10187 ;;
10188 *) # EBCDIC based system
10189 lt_SP2NL='tr \100 \n'
10190 lt_NL2SP='tr \r\n \100\100'
10191 ;;
10192esac
10193
10194
10195
10196
10197
10198
10199
10200
10201
cristyda16f162011-02-19 23:52:17 +000010202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10203$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10204if ${lt_cv_to_host_file_cmd+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206else
10207 case $host in
10208 *-*-mingw* )
10209 case $build in
10210 *-*-mingw* ) # actually msys
10211 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10212 ;;
10213 *-*-cygwin* )
10214 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10215 ;;
10216 * ) # otherwise, assume *nix
10217 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10218 ;;
10219 esac
10220 ;;
10221 *-*-cygwin* )
10222 case $build in
10223 *-*-mingw* ) # actually msys
10224 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10225 ;;
10226 *-*-cygwin* )
10227 lt_cv_to_host_file_cmd=func_convert_file_noop
10228 ;;
10229 * ) # otherwise, assume *nix
10230 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10231 ;;
10232 esac
10233 ;;
10234 * ) # unhandled hosts (and "normal" native builds)
10235 lt_cv_to_host_file_cmd=func_convert_file_noop
10236 ;;
10237esac
10238
10239fi
10240
10241to_host_file_cmd=$lt_cv_to_host_file_cmd
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10243$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10244
10245
10246
10247
10248
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10250$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10251if ${lt_cv_to_tool_file_cmd+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253else
10254 #assume ordinary cross tools, or native build.
10255lt_cv_to_tool_file_cmd=func_convert_file_noop
10256case $host in
10257 *-*-mingw* )
10258 case $build in
10259 *-*-mingw* ) # actually msys
10260 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10261 ;;
10262 esac
10263 ;;
10264esac
10265
10266fi
10267
10268to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10270$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10271
10272
10273
10274
10275
cristy73bd4a52010-10-05 11:24:23 +000010276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10277$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010278if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010279 $as_echo_n "(cached) " >&6
10280else
10281 lt_cv_ld_reload_flag='-r'
10282fi
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10284$as_echo "$lt_cv_ld_reload_flag" >&6; }
10285reload_flag=$lt_cv_ld_reload_flag
10286case $reload_flag in
10287"" | " "*) ;;
10288*) reload_flag=" $reload_flag" ;;
10289esac
10290reload_cmds='$LD$reload_flag -o $output$reload_objs'
10291case $host_os in
cristyda16f162011-02-19 23:52:17 +000010292 cygwin* | mingw* | pw32* | cegcc*)
10293 if test "$GCC" != yes; then
10294 reload_cmds=false
10295 fi
10296 ;;
cristy73bd4a52010-10-05 11:24:23 +000010297 darwin*)
10298 if test "$GCC" = yes; then
10299 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10300 else
10301 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10302 fi
10303 ;;
10304esac
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314if test -n "$ac_tool_prefix"; then
10315 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10316set dummy ${ac_tool_prefix}objdump; ac_word=$2
10317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010319if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010320 $as_echo_n "(cached) " >&6
10321else
10322 if test -n "$OBJDUMP"; then
10323 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10324else
10325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326for as_dir in $PATH
10327do
10328 IFS=$as_save_IFS
10329 test -z "$as_dir" && as_dir=.
10330 for ac_exec_ext in '' $ac_executable_extensions; do
10331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10332 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 break 2
10335 fi
10336done
10337 done
10338IFS=$as_save_IFS
10339
10340fi
10341fi
10342OBJDUMP=$ac_cv_prog_OBJDUMP
10343if test -n "$OBJDUMP"; then
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10345$as_echo "$OBJDUMP" >&6; }
10346else
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348$as_echo "no" >&6; }
10349fi
10350
10351
10352fi
10353if test -z "$ac_cv_prog_OBJDUMP"; then
10354 ac_ct_OBJDUMP=$OBJDUMP
10355 # Extract the first word of "objdump", so it can be a program name with args.
10356set dummy objdump; ac_word=$2
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010359if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010360 $as_echo_n "(cached) " >&6
10361else
10362 if test -n "$ac_ct_OBJDUMP"; then
10363 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10364else
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10372 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377 done
10378IFS=$as_save_IFS
10379
10380fi
10381fi
10382ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10383if test -n "$ac_ct_OBJDUMP"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10385$as_echo "$ac_ct_OBJDUMP" >&6; }
10386else
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388$as_echo "no" >&6; }
10389fi
10390
10391 if test "x$ac_ct_OBJDUMP" = x; then
10392 OBJDUMP="false"
10393 else
10394 case $cross_compiling:$ac_tool_warned in
10395yes:)
10396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10398ac_tool_warned=yes ;;
10399esac
10400 OBJDUMP=$ac_ct_OBJDUMP
10401 fi
10402else
10403 OBJDUMP="$ac_cv_prog_OBJDUMP"
10404fi
10405
10406test -z "$OBJDUMP" && OBJDUMP=objdump
10407
10408
10409
10410
10411
10412
10413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10414$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010415if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010416 $as_echo_n "(cached) " >&6
10417else
10418 lt_cv_file_magic_cmd='$MAGIC_CMD'
10419lt_cv_file_magic_test_file=
10420lt_cv_deplibs_check_method='unknown'
10421# Need to set the preceding variable on all platforms that support
10422# interlibrary dependencies.
10423# 'none' -- dependencies not supported.
10424# `unknown' -- same as none, but documents that we really don't know.
10425# 'pass_all' -- all dependencies passed with no checks.
10426# 'test_compile' -- check by making test program.
10427# 'file_magic [[regex]]' -- check by looking for files in library path
10428# which responds to the $file_magic_cmd with a given extended regex.
10429# If you have `file' or equivalent on your system and you're not sure
10430# whether `pass_all' will *always* work, you probably want this one.
10431
10432case $host_os in
10433aix[4-9]*)
10434 lt_cv_deplibs_check_method=pass_all
10435 ;;
10436
10437beos*)
10438 lt_cv_deplibs_check_method=pass_all
10439 ;;
10440
10441bsdi[45]*)
10442 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10443 lt_cv_file_magic_cmd='/usr/bin/file -L'
10444 lt_cv_file_magic_test_file=/shlib/libc.so
10445 ;;
10446
10447cygwin*)
10448 # func_win32_libid is a shell function defined in ltmain.sh
10449 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10450 lt_cv_file_magic_cmd='func_win32_libid'
10451 ;;
10452
10453mingw* | pw32*)
10454 # Base MSYS/MinGW do not provide the 'file' command needed by
10455 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10456 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010457 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10458 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10460 lt_cv_file_magic_cmd='func_win32_libid'
10461 else
cristy0c60a692010-11-04 01:09:47 +000010462 # Keep this pattern in sync with the one in func_win32_libid.
10463 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 +000010464 lt_cv_file_magic_cmd='$OBJDUMP -f'
10465 fi
10466 ;;
10467
cristy0c60a692010-11-04 01:09:47 +000010468cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010469 # use the weaker test based on 'objdump'. See mingw*.
10470 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10471 lt_cv_file_magic_cmd='$OBJDUMP -f'
10472 ;;
10473
10474darwin* | rhapsody*)
10475 lt_cv_deplibs_check_method=pass_all
10476 ;;
10477
10478freebsd* | dragonfly*)
10479 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10480 case $host_cpu in
10481 i*86 )
10482 # Not sure whether the presence of OpenBSD here was a mistake.
10483 # Let's accept both of them until this is cleared up.
10484 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10485 lt_cv_file_magic_cmd=/usr/bin/file
10486 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10487 ;;
10488 esac
10489 else
10490 lt_cv_deplibs_check_method=pass_all
10491 fi
10492 ;;
10493
10494gnu*)
10495 lt_cv_deplibs_check_method=pass_all
10496 ;;
10497
cristy0c60a692010-11-04 01:09:47 +000010498haiku*)
10499 lt_cv_deplibs_check_method=pass_all
10500 ;;
10501
cristy73bd4a52010-10-05 11:24:23 +000010502hpux10.20* | hpux11*)
10503 lt_cv_file_magic_cmd=/usr/bin/file
10504 case $host_cpu in
10505 ia64*)
10506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10507 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10508 ;;
10509 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010510 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 +000010511 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10512 ;;
10513 *)
cristy0c60a692010-11-04 01:09:47 +000010514 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 +000010515 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10516 ;;
10517 esac
10518 ;;
10519
10520interix[3-9]*)
10521 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10523 ;;
10524
10525irix5* | irix6* | nonstopux*)
10526 case $LD in
10527 *-32|*"-32 ") libmagic=32-bit;;
10528 *-n32|*"-n32 ") libmagic=N32;;
10529 *-64|*"-64 ") libmagic=64-bit;;
10530 *) libmagic=never-match;;
10531 esac
10532 lt_cv_deplibs_check_method=pass_all
10533 ;;
10534
10535# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010536linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010537 lt_cv_deplibs_check_method=pass_all
10538 ;;
10539
10540netbsd*)
10541 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10543 else
10544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10545 fi
10546 ;;
10547
10548newos6*)
10549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10550 lt_cv_file_magic_cmd=/usr/bin/file
10551 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10552 ;;
10553
10554*nto* | *qnx*)
10555 lt_cv_deplibs_check_method=pass_all
10556 ;;
10557
10558openbsd*)
10559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10561 else
10562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10563 fi
10564 ;;
10565
10566osf3* | osf4* | osf5*)
10567 lt_cv_deplibs_check_method=pass_all
10568 ;;
10569
10570rdos*)
10571 lt_cv_deplibs_check_method=pass_all
10572 ;;
10573
10574solaris*)
10575 lt_cv_deplibs_check_method=pass_all
10576 ;;
10577
10578sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10579 lt_cv_deplibs_check_method=pass_all
10580 ;;
10581
10582sysv4 | sysv4.3*)
10583 case $host_vendor in
10584 motorola)
10585 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]'
10586 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10587 ;;
10588 ncr)
10589 lt_cv_deplibs_check_method=pass_all
10590 ;;
10591 sequent)
10592 lt_cv_file_magic_cmd='/bin/file'
10593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10594 ;;
10595 sni)
10596 lt_cv_file_magic_cmd='/bin/file'
10597 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10598 lt_cv_file_magic_test_file=/lib/libc.so
10599 ;;
10600 siemens)
10601 lt_cv_deplibs_check_method=pass_all
10602 ;;
10603 pc)
10604 lt_cv_deplibs_check_method=pass_all
10605 ;;
10606 esac
10607 ;;
10608
10609tpf*)
10610 lt_cv_deplibs_check_method=pass_all
10611 ;;
10612esac
10613
10614fi
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10616$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010617
10618file_magic_glob=
10619want_nocaseglob=no
10620if test "$build" = "$host"; then
10621 case $host_os in
10622 mingw* | pw32*)
10623 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10624 want_nocaseglob=yes
10625 else
10626 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10627 fi
10628 ;;
10629 esac
10630fi
10631
cristy73bd4a52010-10-05 11:24:23 +000010632file_magic_cmd=$lt_cv_file_magic_cmd
10633deplibs_check_method=$lt_cv_deplibs_check_method
10634test -z "$deplibs_check_method" && deplibs_check_method=unknown
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
cristyda16f162011-02-19 23:52:17 +000010647
10648
10649
10650
10651
10652
10653
10654
10655
10656
cristy73bd4a52010-10-05 11:24:23 +000010657if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010658 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10659set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010662if ${ac_cv_prog_DLLTOOL+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664else
10665 if test -n "$DLLTOOL"; then
10666 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10667else
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10675 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679done
10680 done
10681IFS=$as_save_IFS
10682
10683fi
10684fi
10685DLLTOOL=$ac_cv_prog_DLLTOOL
10686if test -n "$DLLTOOL"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10688$as_echo "$DLLTOOL" >&6; }
10689else
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691$as_echo "no" >&6; }
10692fi
10693
10694
10695fi
10696if test -z "$ac_cv_prog_DLLTOOL"; then
10697 ac_ct_DLLTOOL=$DLLTOOL
10698 # Extract the first word of "dlltool", so it can be a program name with args.
10699set dummy dlltool; ac_word=$2
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701$as_echo_n "checking for $ac_word... " >&6; }
10702if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704else
10705 if test -n "$ac_ct_DLLTOOL"; then
10706 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10707else
10708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709for as_dir in $PATH
10710do
10711 IFS=$as_save_IFS
10712 test -z "$as_dir" && as_dir=.
10713 for ac_exec_ext in '' $ac_executable_extensions; do
10714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10715 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 break 2
10718 fi
10719done
10720 done
10721IFS=$as_save_IFS
10722
10723fi
10724fi
10725ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10726if test -n "$ac_ct_DLLTOOL"; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10728$as_echo "$ac_ct_DLLTOOL" >&6; }
10729else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731$as_echo "no" >&6; }
10732fi
10733
10734 if test "x$ac_ct_DLLTOOL" = x; then
10735 DLLTOOL="false"
10736 else
10737 case $cross_compiling:$ac_tool_warned in
10738yes:)
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10741ac_tool_warned=yes ;;
10742esac
10743 DLLTOOL=$ac_ct_DLLTOOL
10744 fi
10745else
10746 DLLTOOL="$ac_cv_prog_DLLTOOL"
10747fi
10748
10749test -z "$DLLTOOL" && DLLTOOL=dlltool
10750
10751
10752
10753
10754
10755
10756
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10758$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10759if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761else
10762 lt_cv_sharedlib_from_linklib_cmd='unknown'
10763
10764case $host_os in
10765cygwin* | mingw* | pw32* | cegcc*)
10766 # two different shell functions defined in ltmain.sh
10767 # decide which to use based on capabilities of $DLLTOOL
10768 case `$DLLTOOL --help 2>&1` in
10769 *--identify-strict*)
10770 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10771 ;;
10772 *)
10773 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10774 ;;
10775 esac
10776 ;;
10777*)
10778 # fallback: assume linklib IS sharedlib
10779 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10780 ;;
10781esac
10782
10783fi
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10785$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10786sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10787test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10788
10789
10790
10791
10792
10793
10794
10795if test -n "$ac_tool_prefix"; then
10796 for ac_prog in ar
10797 do
10798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801$as_echo_n "checking for $ac_word... " >&6; }
10802if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010803 $as_echo_n "(cached) " >&6
10804else
10805 if test -n "$AR"; then
10806 ac_cv_prog_AR="$AR" # Let the user override the test.
10807else
10808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809for as_dir in $PATH
10810do
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
10814 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 +000010815 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10818 fi
10819done
10820 done
10821IFS=$as_save_IFS
10822
10823fi
10824fi
10825AR=$ac_cv_prog_AR
10826if test -n "$AR"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10828$as_echo "$AR" >&6; }
10829else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831$as_echo "no" >&6; }
10832fi
10833
10834
cristyda16f162011-02-19 23:52:17 +000010835 test -n "$AR" && break
10836 done
cristy73bd4a52010-10-05 11:24:23 +000010837fi
cristyda16f162011-02-19 23:52:17 +000010838if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010839 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010840 for ac_prog in ar
10841do
10842 # Extract the first word of "$ac_prog", so it can be a program name with args.
10843set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010846if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010847 $as_echo_n "(cached) " >&6
10848else
10849 if test -n "$ac_ct_AR"; then
10850 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10851else
10852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853for as_dir in $PATH
10854do
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 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 +000010859 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10862 fi
10863done
10864 done
10865IFS=$as_save_IFS
10866
10867fi
10868fi
10869ac_ct_AR=$ac_cv_prog_ac_ct_AR
10870if test -n "$ac_ct_AR"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10872$as_echo "$ac_ct_AR" >&6; }
10873else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875$as_echo "no" >&6; }
10876fi
10877
cristyda16f162011-02-19 23:52:17 +000010878
10879 test -n "$ac_ct_AR" && break
10880done
10881
cristy73bd4a52010-10-05 11:24:23 +000010882 if test "x$ac_ct_AR" = x; then
10883 AR="false"
10884 else
10885 case $cross_compiling:$ac_tool_warned in
10886yes:)
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10889ac_tool_warned=yes ;;
10890esac
10891 AR=$ac_ct_AR
10892 fi
cristy73bd4a52010-10-05 11:24:23 +000010893fi
10894
cristyda16f162011-02-19 23:52:17 +000010895: ${AR=ar}
10896: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
cristyda16f162011-02-19 23:52:17 +000010908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10909$as_echo_n "checking for archiver @FILE support... " >&6; }
10910if ${lt_cv_ar_at_file+:} false; then :
10911 $as_echo_n "(cached) " >&6
10912else
10913 lt_cv_ar_at_file=no
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915/* end confdefs.h. */
10916
10917int
10918main ()
10919{
10920
10921 ;
10922 return 0;
10923}
10924_ACEOF
10925if ac_fn_c_try_compile "$LINENO"; then :
10926 echo conftest.$ac_objext > conftest.lst
10927 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10929 (eval $lt_ar_try) 2>&5
10930 ac_status=$?
10931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10932 test $ac_status = 0; }
10933 if test "$ac_status" -eq 0; then
10934 # Ensure the archiver fails upon bogus file names.
10935 rm -f conftest.$ac_objext libconftest.a
10936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10937 (eval $lt_ar_try) 2>&5
10938 ac_status=$?
10939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10940 test $ac_status = 0; }
10941 if test "$ac_status" -ne 0; then
10942 lt_cv_ar_at_file=@
10943 fi
10944 fi
10945 rm -f conftest.* libconftest.a
10946
10947fi
10948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10949
10950fi
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10952$as_echo "$lt_cv_ar_at_file" >&6; }
10953
10954if test "x$lt_cv_ar_at_file" = xno; then
10955 archiver_list_spec=
10956else
10957 archiver_list_spec=$lt_cv_ar_at_file
10958fi
10959
10960
10961
10962
10963
10964
10965
cristy73bd4a52010-10-05 11:24:23 +000010966if test -n "$ac_tool_prefix"; then
10967 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10968set dummy ${ac_tool_prefix}strip; ac_word=$2
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010971if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010972 $as_echo_n "(cached) " >&6
10973else
10974 if test -n "$STRIP"; then
10975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10976else
10977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10984 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10987 fi
10988done
10989 done
10990IFS=$as_save_IFS
10991
10992fi
10993fi
10994STRIP=$ac_cv_prog_STRIP
10995if test -n "$STRIP"; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10997$as_echo "$STRIP" >&6; }
10998else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
11001fi
11002
11003
11004fi
11005if test -z "$ac_cv_prog_STRIP"; then
11006 ac_ct_STRIP=$STRIP
11007 # Extract the first word of "strip", so it can be a program name with args.
11008set dummy strip; ac_word=$2
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011011if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011012 $as_echo_n "(cached) " >&6
11013else
11014 if test -n "$ac_ct_STRIP"; then
11015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11016else
11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018for as_dir in $PATH
11019do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11024 ac_cv_prog_ac_ct_STRIP="strip"
11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11027 fi
11028done
11029 done
11030IFS=$as_save_IFS
11031
11032fi
11033fi
11034ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11035if test -n "$ac_ct_STRIP"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11037$as_echo "$ac_ct_STRIP" >&6; }
11038else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040$as_echo "no" >&6; }
11041fi
11042
11043 if test "x$ac_ct_STRIP" = x; then
11044 STRIP=":"
11045 else
11046 case $cross_compiling:$ac_tool_warned in
11047yes:)
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11050ac_tool_warned=yes ;;
11051esac
11052 STRIP=$ac_ct_STRIP
11053 fi
11054else
11055 STRIP="$ac_cv_prog_STRIP"
11056fi
11057
11058test -z "$STRIP" && STRIP=:
11059
11060
11061
11062
11063
11064
11065if test -n "$ac_tool_prefix"; then
11066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11067set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011070if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011071 $as_echo_n "(cached) " >&6
11072else
11073 if test -n "$RANLIB"; then
11074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11075else
11076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077for as_dir in $PATH
11078do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11086 fi
11087done
11088 done
11089IFS=$as_save_IFS
11090
11091fi
11092fi
11093RANLIB=$ac_cv_prog_RANLIB
11094if test -n "$RANLIB"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11096$as_echo "$RANLIB" >&6; }
11097else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099$as_echo "no" >&6; }
11100fi
11101
11102
11103fi
11104if test -z "$ac_cv_prog_RANLIB"; then
11105 ac_ct_RANLIB=$RANLIB
11106 # Extract the first word of "ranlib", so it can be a program name with args.
11107set dummy ranlib; ac_word=$2
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011110if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011111 $as_echo_n "(cached) " >&6
11112else
11113 if test -n "$ac_ct_RANLIB"; then
11114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11115else
11116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117for as_dir in $PATH
11118do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123 ac_cv_prog_ac_ct_RANLIB="ranlib"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 break 2
11126 fi
11127done
11128 done
11129IFS=$as_save_IFS
11130
11131fi
11132fi
11133ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11134if test -n "$ac_ct_RANLIB"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11136$as_echo "$ac_ct_RANLIB" >&6; }
11137else
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139$as_echo "no" >&6; }
11140fi
11141
11142 if test "x$ac_ct_RANLIB" = x; then
11143 RANLIB=":"
11144 else
11145 case $cross_compiling:$ac_tool_warned in
11146yes:)
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11149ac_tool_warned=yes ;;
11150esac
11151 RANLIB=$ac_ct_RANLIB
11152 fi
11153else
11154 RANLIB="$ac_cv_prog_RANLIB"
11155fi
11156
11157test -z "$RANLIB" && RANLIB=:
11158
11159
11160
11161
11162
11163
11164# Determine commands to create old-style static archives.
11165old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11166old_postinstall_cmds='chmod 644 $oldlib'
11167old_postuninstall_cmds=
11168
11169if test -n "$RANLIB"; then
11170 case $host_os in
11171 openbsd*)
11172 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11173 ;;
11174 *)
11175 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11176 ;;
11177 esac
11178 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11179fi
11180
cristy0c60a692010-11-04 01:09:47 +000011181case $host_os in
11182 darwin*)
11183 lock_old_archive_extraction=yes ;;
11184 *)
11185 lock_old_archive_extraction=no ;;
11186esac
11187
11188
11189
11190
11191
11192
cristy73bd4a52010-10-05 11:24:23 +000011193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226# If no C compiler was specified, use CC.
11227LTCC=${LTCC-"$CC"}
11228
11229# If no C compiler flags were specified, use CFLAGS.
11230LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11231
11232# Allow CC to be a program name with arguments.
11233compiler=$CC
11234
11235
11236# Check for command to grab the raw symbol name followed by C symbol from nm.
11237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11238$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011239if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011240 $as_echo_n "(cached) " >&6
11241else
11242
11243# These are sane defaults that work on at least a few old systems.
11244# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11245
11246# Character class describing NM global symbol codes.
11247symcode='[BCDEGRST]'
11248
11249# Regexp to match symbols that can be accessed directly from C.
11250sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11251
11252# Define system-specific variables.
11253case $host_os in
11254aix*)
11255 symcode='[BCDT]'
11256 ;;
11257cygwin* | mingw* | pw32* | cegcc*)
11258 symcode='[ABCDGISTW]'
11259 ;;
11260hpux*)
11261 if test "$host_cpu" = ia64; then
11262 symcode='[ABCDEGRST]'
11263 fi
11264 ;;
11265irix* | nonstopux*)
11266 symcode='[BCDEGRST]'
11267 ;;
11268osf*)
11269 symcode='[BCDEGQRST]'
11270 ;;
11271solaris*)
11272 symcode='[BDRT]'
11273 ;;
11274sco3.2v5*)
11275 symcode='[DT]'
11276 ;;
11277sysv4.2uw2*)
11278 symcode='[DT]'
11279 ;;
11280sysv5* | sco5v6* | unixware* | OpenUNIX*)
11281 symcode='[ABDT]'
11282 ;;
11283sysv4)
11284 symcode='[DFNSTU]'
11285 ;;
11286esac
11287
11288# If we're using GNU nm, then use its standard symbol codes.
11289case `$NM -V 2>&1` in
11290*GNU* | *'with BFD'*)
11291 symcode='[ABCDGIRSTW]' ;;
11292esac
11293
11294# Transform an extracted symbol line into a proper C declaration.
11295# Some systems (esp. on ia64) link data and code symbols differently,
11296# so use this general approach.
11297lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11298
11299# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011300lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11301lt_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 +000011302
11303# Handle CRLF in mingw tool chain
11304opt_cr=
11305case $build_os in
11306mingw*)
11307 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11308 ;;
11309esac
11310
11311# Try without a prefix underscore, then with it.
11312for ac_symprfx in "" "_"; do
11313
11314 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11315 symxfrm="\\1 $ac_symprfx\\2 \\2"
11316
11317 # Write the raw and C identifiers.
11318 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11319 # Fake it for dumpbin and say T for any non-static function
11320 # and D for any global variable.
11321 # Also find C++ and __fastcall symbols from MSVC++,
11322 # which start with @ or ?.
11323 lt_cv_sys_global_symbol_pipe="$AWK '"\
11324" {last_section=section; section=\$ 3};"\
11325" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11326" \$ 0!~/External *\|/{next};"\
11327" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11328" {if(hide[section]) next};"\
11329" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11330" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11331" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11332" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11333" ' prfx=^$ac_symprfx"
11334 else
11335 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11336 fi
cristyda16f162011-02-19 23:52:17 +000011337 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011338
11339 # Check to see that the pipe works correctly.
11340 pipe_works=no
11341
11342 rm -f conftest*
11343 cat > conftest.$ac_ext <<_LT_EOF
11344#ifdef __cplusplus
11345extern "C" {
11346#endif
11347char nm_test_var;
11348void nm_test_func(void);
11349void nm_test_func(void){}
11350#ifdef __cplusplus
11351}
11352#endif
11353int main(){nm_test_var='a';nm_test_func();return(0);}
11354_LT_EOF
11355
11356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11357 (eval $ac_compile) 2>&5
11358 ac_status=$?
11359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11360 test $ac_status = 0; }; then
11361 # Now try to grab the symbols.
11362 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11364 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011365 ac_status=$?
11366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11367 test $ac_status = 0; } && test -s "$nlist"; then
11368 # Try sorting and uniquifying the output.
11369 if sort "$nlist" | uniq > "$nlist"T; then
11370 mv -f "$nlist"T "$nlist"
11371 else
11372 rm -f "$nlist"T
11373 fi
11374
11375 # Make sure that we snagged all the symbols we need.
11376 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11377 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11378 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011379/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11380#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11381/* DATA imports from DLLs on WIN32 con't be const, because runtime
11382 relocations are performed -- see ld's documentation on pseudo-relocs. */
11383# define LT_DLSYM_CONST
11384#elif defined(__osf__)
11385/* This system does not cope well with relocations in const data. */
11386# define LT_DLSYM_CONST
11387#else
11388# define LT_DLSYM_CONST const
11389#endif
11390
cristy73bd4a52010-10-05 11:24:23 +000011391#ifdef __cplusplus
11392extern "C" {
11393#endif
11394
11395_LT_EOF
11396 # Now generate the symbol file.
11397 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11398
11399 cat <<_LT_EOF >> conftest.$ac_ext
11400
11401/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011402LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011403 const char *name;
11404 void *address;
11405}
11406lt__PROGRAM__LTX_preloaded_symbols[] =
11407{
11408 { "@PROGRAM@", (void *) 0 },
11409_LT_EOF
11410 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11411 cat <<\_LT_EOF >> conftest.$ac_ext
11412 {0, (void *) 0}
11413};
11414
11415/* This works around a problem in FreeBSD linker */
11416#ifdef FREEBSD_WORKAROUND
11417static const void *lt_preloaded_setup() {
11418 return lt__PROGRAM__LTX_preloaded_symbols;
11419}
11420#endif
11421
11422#ifdef __cplusplus
11423}
11424#endif
11425_LT_EOF
11426 # Now try linking the two files.
11427 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011428 lt_globsym_save_LIBS=$LIBS
11429 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011430 LIBS="conftstm.$ac_objext"
11431 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11433 (eval $ac_link) 2>&5
11434 ac_status=$?
11435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11436 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11437 pipe_works=yes
11438 fi
cristyda16f162011-02-19 23:52:17 +000011439 LIBS=$lt_globsym_save_LIBS
11440 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011441 else
11442 echo "cannot find nm_test_func in $nlist" >&5
11443 fi
11444 else
11445 echo "cannot find nm_test_var in $nlist" >&5
11446 fi
11447 else
11448 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11449 fi
11450 else
11451 echo "$progname: failed program was:" >&5
11452 cat conftest.$ac_ext >&5
11453 fi
11454 rm -rf conftest* conftst*
11455
11456 # Do not use the global_symbol_pipe unless it works.
11457 if test "$pipe_works" = yes; then
11458 break
11459 else
11460 lt_cv_sys_global_symbol_pipe=
11461 fi
11462done
11463
11464fi
11465
11466if test -z "$lt_cv_sys_global_symbol_pipe"; then
11467 lt_cv_sys_global_symbol_to_cdecl=
11468fi
11469if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11471$as_echo "failed" >&6; }
11472else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11474$as_echo "ok" >&6; }
11475fi
11476
cristyda16f162011-02-19 23:52:17 +000011477# Response file support.
11478if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11479 nm_file_list_spec='@'
11480elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11481 nm_file_list_spec='@'
11482fi
cristy73bd4a52010-10-05 11:24:23 +000011483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
cristyda16f162011-02-19 23:52:17 +000011504
11505
11506
11507
11508
11509
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11511$as_echo_n "checking for sysroot... " >&6; }
11512
11513# Check whether --with-sysroot was given.
11514if test "${with_sysroot+set}" = set; then :
11515 withval=$with_sysroot;
11516else
11517 with_sysroot=no
11518fi
11519
11520
11521lt_sysroot=
11522case ${with_sysroot} in #(
11523 yes)
11524 if test "$GCC" = yes; then
11525 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11526 fi
11527 ;; #(
11528 /*)
11529 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11530 ;; #(
11531 no|'')
11532 ;; #(
11533 *)
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11535$as_echo "${with_sysroot}" >&6; }
11536 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11537 ;;
11538esac
11539
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11541$as_echo "${lt_sysroot:-no}" >&6; }
11542
11543
11544
11545
11546
cristy73bd4a52010-10-05 11:24:23 +000011547# Check whether --enable-libtool-lock was given.
11548if test "${enable_libtool_lock+set}" = set; then :
11549 enableval=$enable_libtool_lock;
11550fi
11551
11552test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11553
11554# Some flags need to be propagated to the compiler or linker for good
11555# libtool support.
11556case $host in
11557ia64-*-hpux*)
11558 # Find out which ABI we are using.
11559 echo 'int i;' > conftest.$ac_ext
11560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11561 (eval $ac_compile) 2>&5
11562 ac_status=$?
11563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11564 test $ac_status = 0; }; then
11565 case `/usr/bin/file conftest.$ac_objext` in
11566 *ELF-32*)
11567 HPUX_IA64_MODE="32"
11568 ;;
11569 *ELF-64*)
11570 HPUX_IA64_MODE="64"
11571 ;;
11572 esac
11573 fi
11574 rm -rf conftest*
11575 ;;
11576*-*-irix6*)
11577 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011578 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11580 (eval $ac_compile) 2>&5
11581 ac_status=$?
11582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11583 test $ac_status = 0; }; then
11584 if test "$lt_cv_prog_gnu_ld" = yes; then
11585 case `/usr/bin/file conftest.$ac_objext` in
11586 *32-bit*)
11587 LD="${LD-ld} -melf32bsmip"
11588 ;;
11589 *N32*)
11590 LD="${LD-ld} -melf32bmipn32"
11591 ;;
11592 *64-bit*)
11593 LD="${LD-ld} -melf64bmip"
11594 ;;
11595 esac
11596 else
11597 case `/usr/bin/file conftest.$ac_objext` in
11598 *32-bit*)
11599 LD="${LD-ld} -32"
11600 ;;
11601 *N32*)
11602 LD="${LD-ld} -n32"
11603 ;;
11604 *64-bit*)
11605 LD="${LD-ld} -64"
11606 ;;
11607 esac
11608 fi
11609 fi
11610 rm -rf conftest*
11611 ;;
11612
11613x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11614s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11615 # Find out which ABI we are using.
11616 echo 'int i;' > conftest.$ac_ext
11617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11618 (eval $ac_compile) 2>&5
11619 ac_status=$?
11620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11621 test $ac_status = 0; }; then
11622 case `/usr/bin/file conftest.o` in
11623 *32-bit*)
11624 case $host in
11625 x86_64-*kfreebsd*-gnu)
11626 LD="${LD-ld} -m elf_i386_fbsd"
11627 ;;
11628 x86_64-*linux*)
11629 LD="${LD-ld} -m elf_i386"
11630 ;;
11631 ppc64-*linux*|powerpc64-*linux*)
11632 LD="${LD-ld} -m elf32ppclinux"
11633 ;;
11634 s390x-*linux*)
11635 LD="${LD-ld} -m elf_s390"
11636 ;;
11637 sparc64-*linux*)
11638 LD="${LD-ld} -m elf32_sparc"
11639 ;;
11640 esac
11641 ;;
11642 *64-bit*)
11643 case $host in
11644 x86_64-*kfreebsd*-gnu)
11645 LD="${LD-ld} -m elf_x86_64_fbsd"
11646 ;;
11647 x86_64-*linux*)
11648 LD="${LD-ld} -m elf_x86_64"
11649 ;;
11650 ppc*-*linux*|powerpc*-*linux*)
11651 LD="${LD-ld} -m elf64ppc"
11652 ;;
11653 s390*-*linux*|s390*-*tpf*)
11654 LD="${LD-ld} -m elf64_s390"
11655 ;;
11656 sparc*-*linux*)
11657 LD="${LD-ld} -m elf64_sparc"
11658 ;;
11659 esac
11660 ;;
11661 esac
11662 fi
11663 rm -rf conftest*
11664 ;;
11665
11666*-*-sco3.2v5*)
11667 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11668 SAVE_CFLAGS="$CFLAGS"
11669 CFLAGS="$CFLAGS -belf"
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11671$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011672if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011673 $as_echo_n "(cached) " >&6
11674else
11675 ac_ext=c
11676ac_cpp='$CPP $CPPFLAGS'
11677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11679ac_compiler_gnu=$ac_cv_c_compiler_gnu
11680
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682/* end confdefs.h. */
11683
11684int
11685main ()
11686{
11687
11688 ;
11689 return 0;
11690}
11691_ACEOF
11692if ac_fn_c_try_link "$LINENO"; then :
11693 lt_cv_cc_needs_belf=yes
11694else
11695 lt_cv_cc_needs_belf=no
11696fi
11697rm -f core conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext conftest.$ac_ext
11699 ac_ext=c
11700ac_cpp='$CPP $CPPFLAGS'
11701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703ac_compiler_gnu=$ac_cv_c_compiler_gnu
11704
11705fi
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11707$as_echo "$lt_cv_cc_needs_belf" >&6; }
11708 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11709 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11710 CFLAGS="$SAVE_CFLAGS"
11711 fi
11712 ;;
11713sparc*-*solaris*)
11714 # Find out which ABI we are using.
11715 echo 'int i;' > conftest.$ac_ext
11716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11717 (eval $ac_compile) 2>&5
11718 ac_status=$?
11719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11720 test $ac_status = 0; }; then
11721 case `/usr/bin/file conftest.o` in
11722 *64-bit*)
11723 case $lt_cv_prog_gnu_ld in
11724 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11725 *)
11726 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11727 LD="${LD-ld} -64"
11728 fi
11729 ;;
11730 esac
11731 ;;
11732 esac
11733 fi
11734 rm -rf conftest*
11735 ;;
11736esac
11737
11738need_locks="$enable_libtool_lock"
11739
cristyda16f162011-02-19 23:52:17 +000011740if test -n "$ac_tool_prefix"; then
11741 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11742set dummy ${ac_tool_prefix}mt; ac_word=$2
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
11745if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747else
11748 if test -n "$MANIFEST_TOOL"; then
11749 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11750else
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11761 fi
11762done
11763 done
11764IFS=$as_save_IFS
11765
11766fi
11767fi
11768MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11769if test -n "$MANIFEST_TOOL"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11771$as_echo "$MANIFEST_TOOL" >&6; }
11772else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
11775fi
11776
11777
11778fi
11779if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11780 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11781 # Extract the first word of "mt", so it can be a program name with args.
11782set dummy mt; ac_word=$2
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784$as_echo_n "checking for $ac_word... " >&6; }
11785if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11786 $as_echo_n "(cached) " >&6
11787else
11788 if test -n "$ac_ct_MANIFEST_TOOL"; then
11789 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11790else
11791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792for as_dir in $PATH
11793do
11794 IFS=$as_save_IFS
11795 test -z "$as_dir" && as_dir=.
11796 for ac_exec_ext in '' $ac_executable_extensions; do
11797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11798 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800 break 2
11801 fi
11802done
11803 done
11804IFS=$as_save_IFS
11805
11806fi
11807fi
11808ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11809if test -n "$ac_ct_MANIFEST_TOOL"; then
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11811$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11812else
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814$as_echo "no" >&6; }
11815fi
11816
11817 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11818 MANIFEST_TOOL=":"
11819 else
11820 case $cross_compiling:$ac_tool_warned in
11821yes:)
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11824ac_tool_warned=yes ;;
11825esac
11826 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11827 fi
11828else
11829 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11830fi
11831
11832test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11834$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11835if ${lt_cv_path_mainfest_tool+:} false; then :
11836 $as_echo_n "(cached) " >&6
11837else
11838 lt_cv_path_mainfest_tool=no
11839 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11840 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11841 cat conftest.err >&5
11842 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11843 lt_cv_path_mainfest_tool=yes
11844 fi
11845 rm -f conftest*
11846fi
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11848$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11849if test "x$lt_cv_path_mainfest_tool" != xyes; then
11850 MANIFEST_TOOL=:
11851fi
11852
11853
11854
11855
11856
cristy73bd4a52010-10-05 11:24:23 +000011857
11858 case $host_os in
11859 rhapsody* | darwin*)
11860 if test -n "$ac_tool_prefix"; then
11861 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11862set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011865if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011866 $as_echo_n "(cached) " >&6
11867else
11868 if test -n "$DSYMUTIL"; then
11869 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11870else
11871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872for as_dir in $PATH
11873do
11874 IFS=$as_save_IFS
11875 test -z "$as_dir" && as_dir=.
11876 for ac_exec_ext in '' $ac_executable_extensions; do
11877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11878 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880 break 2
11881 fi
11882done
11883 done
11884IFS=$as_save_IFS
11885
11886fi
11887fi
11888DSYMUTIL=$ac_cv_prog_DSYMUTIL
11889if test -n "$DSYMUTIL"; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11891$as_echo "$DSYMUTIL" >&6; }
11892else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894$as_echo "no" >&6; }
11895fi
11896
11897
11898fi
11899if test -z "$ac_cv_prog_DSYMUTIL"; then
11900 ac_ct_DSYMUTIL=$DSYMUTIL
11901 # Extract the first word of "dsymutil", so it can be a program name with args.
11902set dummy dsymutil; ac_word=$2
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011905if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011906 $as_echo_n "(cached) " >&6
11907else
11908 if test -n "$ac_ct_DSYMUTIL"; then
11909 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11910else
11911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912for as_dir in $PATH
11913do
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 break 2
11921 fi
11922done
11923 done
11924IFS=$as_save_IFS
11925
11926fi
11927fi
11928ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11929if test -n "$ac_ct_DSYMUTIL"; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11931$as_echo "$ac_ct_DSYMUTIL" >&6; }
11932else
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934$as_echo "no" >&6; }
11935fi
11936
11937 if test "x$ac_ct_DSYMUTIL" = x; then
11938 DSYMUTIL=":"
11939 else
11940 case $cross_compiling:$ac_tool_warned in
11941yes:)
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11944ac_tool_warned=yes ;;
11945esac
11946 DSYMUTIL=$ac_ct_DSYMUTIL
11947 fi
11948else
11949 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11950fi
11951
11952 if test -n "$ac_tool_prefix"; then
11953 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11954set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011957if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011958 $as_echo_n "(cached) " >&6
11959else
11960 if test -n "$NMEDIT"; then
11961 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11962else
11963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964for as_dir in $PATH
11965do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11970 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11973 fi
11974done
11975 done
11976IFS=$as_save_IFS
11977
11978fi
11979fi
11980NMEDIT=$ac_cv_prog_NMEDIT
11981if test -n "$NMEDIT"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11983$as_echo "$NMEDIT" >&6; }
11984else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
11987fi
11988
11989
11990fi
11991if test -z "$ac_cv_prog_NMEDIT"; then
11992 ac_ct_NMEDIT=$NMEDIT
11993 # Extract the first word of "nmedit", so it can be a program name with args.
11994set dummy nmedit; ac_word=$2
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011997if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011998 $as_echo_n "(cached) " >&6
11999else
12000 if test -n "$ac_ct_NMEDIT"; then
12001 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12002else
12003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004for as_dir in $PATH
12005do
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12010 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 break 2
12013 fi
12014done
12015 done
12016IFS=$as_save_IFS
12017
12018fi
12019fi
12020ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12021if test -n "$ac_ct_NMEDIT"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12023$as_echo "$ac_ct_NMEDIT" >&6; }
12024else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026$as_echo "no" >&6; }
12027fi
12028
12029 if test "x$ac_ct_NMEDIT" = x; then
12030 NMEDIT=":"
12031 else
12032 case $cross_compiling:$ac_tool_warned in
12033yes:)
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12036ac_tool_warned=yes ;;
12037esac
12038 NMEDIT=$ac_ct_NMEDIT
12039 fi
12040else
12041 NMEDIT="$ac_cv_prog_NMEDIT"
12042fi
12043
12044 if test -n "$ac_tool_prefix"; then
12045 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12046set dummy ${ac_tool_prefix}lipo; ac_word=$2
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012049if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012050 $as_echo_n "(cached) " >&6
12051else
12052 if test -n "$LIPO"; then
12053 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12054else
12055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056for as_dir in $PATH
12057do
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12062 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 break 2
12065 fi
12066done
12067 done
12068IFS=$as_save_IFS
12069
12070fi
12071fi
12072LIPO=$ac_cv_prog_LIPO
12073if test -n "$LIPO"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12075$as_echo "$LIPO" >&6; }
12076else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078$as_echo "no" >&6; }
12079fi
12080
12081
12082fi
12083if test -z "$ac_cv_prog_LIPO"; then
12084 ac_ct_LIPO=$LIPO
12085 # Extract the first word of "lipo", so it can be a program name with args.
12086set dummy lipo; ac_word=$2
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012089if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012090 $as_echo_n "(cached) " >&6
12091else
12092 if test -n "$ac_ct_LIPO"; then
12093 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12094else
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12102 ac_cv_prog_ac_ct_LIPO="lipo"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106done
12107 done
12108IFS=$as_save_IFS
12109
12110fi
12111fi
12112ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12113if test -n "$ac_ct_LIPO"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12115$as_echo "$ac_ct_LIPO" >&6; }
12116else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
12119fi
12120
12121 if test "x$ac_ct_LIPO" = x; then
12122 LIPO=":"
12123 else
12124 case $cross_compiling:$ac_tool_warned in
12125yes:)
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12128ac_tool_warned=yes ;;
12129esac
12130 LIPO=$ac_ct_LIPO
12131 fi
12132else
12133 LIPO="$ac_cv_prog_LIPO"
12134fi
12135
12136 if test -n "$ac_tool_prefix"; then
12137 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12138set dummy ${ac_tool_prefix}otool; ac_word=$2
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012141if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012142 $as_echo_n "(cached) " >&6
12143else
12144 if test -n "$OTOOL"; then
12145 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12146else
12147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH
12149do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12154 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 break 2
12157 fi
12158done
12159 done
12160IFS=$as_save_IFS
12161
12162fi
12163fi
12164OTOOL=$ac_cv_prog_OTOOL
12165if test -n "$OTOOL"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12167$as_echo "$OTOOL" >&6; }
12168else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170$as_echo "no" >&6; }
12171fi
12172
12173
12174fi
12175if test -z "$ac_cv_prog_OTOOL"; then
12176 ac_ct_OTOOL=$OTOOL
12177 # Extract the first word of "otool", so it can be a program name with args.
12178set dummy otool; ac_word=$2
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012181if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012182 $as_echo_n "(cached) " >&6
12183else
12184 if test -n "$ac_ct_OTOOL"; then
12185 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12186else
12187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188for as_dir in $PATH
12189do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12194 ac_cv_prog_ac_ct_OTOOL="otool"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198done
12199 done
12200IFS=$as_save_IFS
12201
12202fi
12203fi
12204ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12205if test -n "$ac_ct_OTOOL"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12207$as_echo "$ac_ct_OTOOL" >&6; }
12208else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
12211fi
12212
12213 if test "x$ac_ct_OTOOL" = x; then
12214 OTOOL=":"
12215 else
12216 case $cross_compiling:$ac_tool_warned in
12217yes:)
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12220ac_tool_warned=yes ;;
12221esac
12222 OTOOL=$ac_ct_OTOOL
12223 fi
12224else
12225 OTOOL="$ac_cv_prog_OTOOL"
12226fi
12227
12228 if test -n "$ac_tool_prefix"; then
12229 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12230set dummy ${ac_tool_prefix}otool64; ac_word=$2
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012233if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012234 $as_echo_n "(cached) " >&6
12235else
12236 if test -n "$OTOOL64"; then
12237 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12238else
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 break 2
12249 fi
12250done
12251 done
12252IFS=$as_save_IFS
12253
12254fi
12255fi
12256OTOOL64=$ac_cv_prog_OTOOL64
12257if test -n "$OTOOL64"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12259$as_echo "$OTOOL64" >&6; }
12260else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
12263fi
12264
12265
12266fi
12267if test -z "$ac_cv_prog_OTOOL64"; then
12268 ac_ct_OTOOL64=$OTOOL64
12269 # Extract the first word of "otool64", so it can be a program name with args.
12270set dummy otool64; ac_word=$2
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012273if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012274 $as_echo_n "(cached) " >&6
12275else
12276 if test -n "$ac_ct_OTOOL64"; then
12277 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12278else
12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_prog_ac_ct_OTOOL64="otool64"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12289 fi
12290done
12291 done
12292IFS=$as_save_IFS
12293
12294fi
12295fi
12296ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12297if test -n "$ac_ct_OTOOL64"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12299$as_echo "$ac_ct_OTOOL64" >&6; }
12300else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
12303fi
12304
12305 if test "x$ac_ct_OTOOL64" = x; then
12306 OTOOL64=":"
12307 else
12308 case $cross_compiling:$ac_tool_warned in
12309yes:)
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12312ac_tool_warned=yes ;;
12313esac
12314 OTOOL64=$ac_ct_OTOOL64
12315 fi
12316else
12317 OTOOL64="$ac_cv_prog_OTOOL64"
12318fi
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12347$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012348if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012349 $as_echo_n "(cached) " >&6
12350else
12351 lt_cv_apple_cc_single_mod=no
12352 if test -z "${LT_MULTI_MODULE}"; then
12353 # By default we will add the -single_module flag. You can override
12354 # by either setting the environment variable LT_MULTI_MODULE
12355 # non-empty at configure time, or by adding -multi_module to the
12356 # link flags.
12357 rm -rf libconftest.dylib*
12358 echo "int foo(void){return 1;}" > conftest.c
12359 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12360-dynamiclib -Wl,-single_module conftest.c" >&5
12361 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12362 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12363 _lt_result=$?
12364 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12365 lt_cv_apple_cc_single_mod=yes
12366 else
12367 cat conftest.err >&5
12368 fi
12369 rm -rf libconftest.dylib*
12370 rm -f conftest.*
12371 fi
12372fi
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12374$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12376$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012377if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012378 $as_echo_n "(cached) " >&6
12379else
12380 lt_cv_ld_exported_symbols_list=no
12381 save_LDFLAGS=$LDFLAGS
12382 echo "_main" > conftest.sym
12383 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h. */
12386
12387int
12388main ()
12389{
12390
12391 ;
12392 return 0;
12393}
12394_ACEOF
12395if ac_fn_c_try_link "$LINENO"; then :
12396 lt_cv_ld_exported_symbols_list=yes
12397else
12398 lt_cv_ld_exported_symbols_list=no
12399fi
12400rm -f core conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12402 LDFLAGS="$save_LDFLAGS"
12403
12404fi
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12406$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12408$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012409if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012410 $as_echo_n "(cached) " >&6
12411else
12412 lt_cv_ld_force_load=no
12413 cat > conftest.c << _LT_EOF
12414int forced_loaded() { return 2;}
12415_LT_EOF
12416 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12417 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12418 echo "$AR cru libconftest.a conftest.o" >&5
12419 $AR cru libconftest.a conftest.o 2>&5
12420 echo "$RANLIB libconftest.a" >&5
12421 $RANLIB libconftest.a 2>&5
12422 cat > conftest.c << _LT_EOF
12423int main() { return 0;}
12424_LT_EOF
12425 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12426 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12427 _lt_result=$?
12428 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12429 lt_cv_ld_force_load=yes
12430 else
12431 cat conftest.err >&5
12432 fi
12433 rm -f conftest.err libconftest.a conftest conftest.c
12434 rm -rf conftest.dSYM
12435
12436fi
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12438$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012439 case $host_os in
12440 rhapsody* | darwin1.[012])
12441 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12442 darwin1.*)
12443 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12444 darwin*) # darwin 5.x on
12445 # if running on 10.5 or later, the deployment target defaults
12446 # to the OS version, if on x86, and 10.4, the deployment
12447 # target defaults to 10.4. Don't you love it?
12448 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12449 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12450 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12451 10.[012]*)
12452 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12453 10.*)
12454 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12455 esac
12456 ;;
12457 esac
12458 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12459 _lt_dar_single_mod='$single_module'
12460 fi
12461 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12462 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12463 else
12464 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12465 fi
cristy0c60a692010-11-04 01:09:47 +000012466 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012467 _lt_dsymutil='~$DSYMUTIL $lib || :'
12468 else
12469 _lt_dsymutil=
12470 fi
12471 ;;
12472 esac
12473
12474for ac_header in dlfcn.h
12475do :
12476 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12477"
cristyda16f162011-02-19 23:52:17 +000012478if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012479 cat >>confdefs.h <<_ACEOF
12480#define HAVE_DLFCN_H 1
12481_ACEOF
12482
12483fi
12484
12485done
12486
12487
12488
cristy73bd4a52010-10-05 11:24:23 +000012489
cristyda16f162011-02-19 23:52:17 +000012490func_stripname_cnf ()
12491{
12492 case ${2} in
12493 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12494 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12495 esac
12496} # func_stripname_cnf
12497
12498
12499
cristy73bd4a52010-10-05 11:24:23 +000012500
12501
12502# Set options
12503enable_win32_dll=yes
12504
12505case $host in
cristy0c60a692010-11-04 01:09:47 +000012506*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012507 if test -n "$ac_tool_prefix"; then
12508 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12509set dummy ${ac_tool_prefix}as; ac_word=$2
12510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012512if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012513 $as_echo_n "(cached) " >&6
12514else
12515 if test -n "$AS"; then
12516 ac_cv_prog_AS="$AS" # Let the user override the test.
12517else
12518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519for as_dir in $PATH
12520do
12521 IFS=$as_save_IFS
12522 test -z "$as_dir" && as_dir=.
12523 for ac_exec_ext in '' $ac_executable_extensions; do
12524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12525 ac_cv_prog_AS="${ac_tool_prefix}as"
12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527 break 2
12528 fi
12529done
12530 done
12531IFS=$as_save_IFS
12532
12533fi
12534fi
12535AS=$ac_cv_prog_AS
12536if test -n "$AS"; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12538$as_echo "$AS" >&6; }
12539else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541$as_echo "no" >&6; }
12542fi
12543
12544
12545fi
12546if test -z "$ac_cv_prog_AS"; then
12547 ac_ct_AS=$AS
12548 # Extract the first word of "as", so it can be a program name with args.
12549set dummy as; ac_word=$2
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012552if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012553 $as_echo_n "(cached) " >&6
12554else
12555 if test -n "$ac_ct_AS"; then
12556 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12557else
12558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12565 ac_cv_prog_ac_ct_AS="as"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569done
12570 done
12571IFS=$as_save_IFS
12572
12573fi
12574fi
12575ac_ct_AS=$ac_cv_prog_ac_ct_AS
12576if test -n "$ac_ct_AS"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12578$as_echo "$ac_ct_AS" >&6; }
12579else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582fi
12583
12584 if test "x$ac_ct_AS" = x; then
12585 AS="false"
12586 else
12587 case $cross_compiling:$ac_tool_warned in
12588yes:)
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12591ac_tool_warned=yes ;;
12592esac
12593 AS=$ac_ct_AS
12594 fi
12595else
12596 AS="$ac_cv_prog_AS"
12597fi
12598
12599 if test -n "$ac_tool_prefix"; then
12600 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12601set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012604if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012605 $as_echo_n "(cached) " >&6
12606else
12607 if test -n "$DLLTOOL"; then
12608 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12609else
12610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611for as_dir in $PATH
12612do
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12617 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 break 2
12620 fi
12621done
12622 done
12623IFS=$as_save_IFS
12624
12625fi
12626fi
12627DLLTOOL=$ac_cv_prog_DLLTOOL
12628if test -n "$DLLTOOL"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12630$as_echo "$DLLTOOL" >&6; }
12631else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633$as_echo "no" >&6; }
12634fi
12635
12636
12637fi
12638if test -z "$ac_cv_prog_DLLTOOL"; then
12639 ac_ct_DLLTOOL=$DLLTOOL
12640 # Extract the first word of "dlltool", so it can be a program name with args.
12641set dummy dlltool; ac_word=$2
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012644if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012645 $as_echo_n "(cached) " >&6
12646else
12647 if test -n "$ac_ct_DLLTOOL"; then
12648 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12649else
12650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651for as_dir in $PATH
12652do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12657 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 break 2
12660 fi
12661done
12662 done
12663IFS=$as_save_IFS
12664
12665fi
12666fi
12667ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12668if test -n "$ac_ct_DLLTOOL"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12670$as_echo "$ac_ct_DLLTOOL" >&6; }
12671else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
12674fi
12675
12676 if test "x$ac_ct_DLLTOOL" = x; then
12677 DLLTOOL="false"
12678 else
12679 case $cross_compiling:$ac_tool_warned in
12680yes:)
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12683ac_tool_warned=yes ;;
12684esac
12685 DLLTOOL=$ac_ct_DLLTOOL
12686 fi
12687else
12688 DLLTOOL="$ac_cv_prog_DLLTOOL"
12689fi
12690
12691 if test -n "$ac_tool_prefix"; then
12692 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12693set dummy ${ac_tool_prefix}objdump; ac_word=$2
12694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012696if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012697 $as_echo_n "(cached) " >&6
12698else
12699 if test -n "$OBJDUMP"; then
12700 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12701else
12702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703for as_dir in $PATH
12704do
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12709 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12712 fi
12713done
12714 done
12715IFS=$as_save_IFS
12716
12717fi
12718fi
12719OBJDUMP=$ac_cv_prog_OBJDUMP
12720if test -n "$OBJDUMP"; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12722$as_echo "$OBJDUMP" >&6; }
12723else
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725$as_echo "no" >&6; }
12726fi
12727
12728
12729fi
12730if test -z "$ac_cv_prog_OBJDUMP"; then
12731 ac_ct_OBJDUMP=$OBJDUMP
12732 # Extract the first word of "objdump", so it can be a program name with args.
12733set dummy objdump; ac_word=$2
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012736if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012737 $as_echo_n "(cached) " >&6
12738else
12739 if test -n "$ac_ct_OBJDUMP"; then
12740 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12741else
12742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743for as_dir in $PATH
12744do
12745 IFS=$as_save_IFS
12746 test -z "$as_dir" && as_dir=.
12747 for ac_exec_ext in '' $ac_executable_extensions; do
12748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12749 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12751 break 2
12752 fi
12753done
12754 done
12755IFS=$as_save_IFS
12756
12757fi
12758fi
12759ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12760if test -n "$ac_ct_OBJDUMP"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12762$as_echo "$ac_ct_OBJDUMP" >&6; }
12763else
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765$as_echo "no" >&6; }
12766fi
12767
12768 if test "x$ac_ct_OBJDUMP" = x; then
12769 OBJDUMP="false"
12770 else
12771 case $cross_compiling:$ac_tool_warned in
12772yes:)
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12775ac_tool_warned=yes ;;
12776esac
12777 OBJDUMP=$ac_ct_OBJDUMP
12778 fi
12779else
12780 OBJDUMP="$ac_cv_prog_OBJDUMP"
12781fi
12782
12783 ;;
12784esac
12785
12786test -z "$AS" && AS=as
12787
12788
12789
12790
12791
12792test -z "$DLLTOOL" && DLLTOOL=dlltool
12793
12794
12795
12796
12797
12798test -z "$OBJDUMP" && OBJDUMP=objdump
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808 # Check whether --enable-shared was given.
12809if test "${enable_shared+set}" = set; then :
12810 enableval=$enable_shared; p=${PACKAGE-default}
12811 case $enableval in
12812 yes) enable_shared=yes ;;
12813 no) enable_shared=no ;;
12814 *)
12815 enable_shared=no
12816 # Look at the argument we got. We use all the common list separators.
12817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12818 for pkg in $enableval; do
12819 IFS="$lt_save_ifs"
12820 if test "X$pkg" = "X$p"; then
12821 enable_shared=yes
12822 fi
12823 done
12824 IFS="$lt_save_ifs"
12825 ;;
12826 esac
12827else
12828 enable_shared=yes
12829fi
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839 # Check whether --enable-static was given.
12840if test "${enable_static+set}" = set; then :
12841 enableval=$enable_static; p=${PACKAGE-default}
12842 case $enableval in
12843 yes) enable_static=yes ;;
12844 no) enable_static=no ;;
12845 *)
12846 enable_static=no
12847 # Look at the argument we got. We use all the common list separators.
12848 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12849 for pkg in $enableval; do
12850 IFS="$lt_save_ifs"
12851 if test "X$pkg" = "X$p"; then
12852 enable_static=yes
12853 fi
12854 done
12855 IFS="$lt_save_ifs"
12856 ;;
12857 esac
12858else
12859 enable_static=yes
12860fi
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871# Check whether --with-pic was given.
12872if test "${with_pic+set}" = set; then :
12873 withval=$with_pic; pic_mode="$withval"
12874else
12875 pic_mode=default
12876fi
12877
12878
12879test -z "$pic_mode" && pic_mode=default
12880
12881
12882
12883
12884
12885
12886
12887 # Check whether --enable-fast-install was given.
12888if test "${enable_fast_install+set}" = set; then :
12889 enableval=$enable_fast_install; p=${PACKAGE-default}
12890 case $enableval in
12891 yes) enable_fast_install=yes ;;
12892 no) enable_fast_install=no ;;
12893 *)
12894 enable_fast_install=no
12895 # Look at the argument we got. We use all the common list separators.
12896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12897 for pkg in $enableval; do
12898 IFS="$lt_save_ifs"
12899 if test "X$pkg" = "X$p"; then
12900 enable_fast_install=yes
12901 fi
12902 done
12903 IFS="$lt_save_ifs"
12904 ;;
12905 esac
12906else
12907 enable_fast_install=yes
12908fi
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920# This can be used to rebuild libtool when needed
12921LIBTOOL_DEPS="$ltmain"
12922
12923# Always use our own libtool.
12924LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
cristy0c60a692010-11-04 01:09:47 +000012950
cristy73bd4a52010-10-05 11:24:23 +000012951test -z "$LN_S" && LN_S="ln -s"
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966if test -n "${ZSH_VERSION+set}" ; then
12967 setopt NO_GLOB_SUBST
12968fi
12969
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12971$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012972if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012973 $as_echo_n "(cached) " >&6
12974else
12975 rm -f .libs 2>/dev/null
12976mkdir .libs 2>/dev/null
12977if test -d .libs; then
12978 lt_cv_objdir=.libs
12979else
12980 # MS-DOS does not allow filenames that begin with a dot.
12981 lt_cv_objdir=_libs
12982fi
12983rmdir .libs 2>/dev/null
12984fi
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12986$as_echo "$lt_cv_objdir" >&6; }
12987objdir=$lt_cv_objdir
12988
12989
12990
12991
12992
12993cat >>confdefs.h <<_ACEOF
12994#define LT_OBJDIR "$lt_cv_objdir/"
12995_ACEOF
12996
12997
12998
12999
cristy73bd4a52010-10-05 11:24:23 +000013000case $host_os in
13001aix3*)
13002 # AIX sometimes has problems with the GCC collect2 program. For some
13003 # reason, if we set the COLLECT_NAMES environment variable, the problems
13004 # vanish in a puff of smoke.
13005 if test "X${COLLECT_NAMES+set}" != Xset; then
13006 COLLECT_NAMES=
13007 export COLLECT_NAMES
13008 fi
13009 ;;
13010esac
13011
cristy73bd4a52010-10-05 11:24:23 +000013012# Global variables:
13013ofile=libtool
13014can_build_shared=yes
13015
13016# All known linkers require a `.a' archive for static linking (except MSVC,
13017# which needs '.lib').
13018libext=a
13019
13020with_gnu_ld="$lt_cv_prog_gnu_ld"
13021
13022old_CC="$CC"
13023old_CFLAGS="$CFLAGS"
13024
13025# Set sane defaults for various variables
13026test -z "$CC" && CC=cc
13027test -z "$LTCC" && LTCC=$CC
13028test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13029test -z "$LD" && LD=ld
13030test -z "$ac_objext" && ac_objext=o
13031
13032for cc_temp in $compiler""; do
13033 case $cc_temp in
13034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13036 \-*) ;;
13037 *) break;;
13038 esac
13039done
cristy0c60a692010-11-04 01:09:47 +000013040cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013041
13042
13043# Only perform the check for file, if the check method requires it
13044test -z "$MAGIC_CMD" && MAGIC_CMD=file
13045case $deplibs_check_method in
13046file_magic*)
13047 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13049$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013050if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013051 $as_echo_n "(cached) " >&6
13052else
13053 case $MAGIC_CMD in
13054[\\/*] | ?:[\\/]*)
13055 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13056 ;;
13057*)
13058 lt_save_MAGIC_CMD="$MAGIC_CMD"
13059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13061 for ac_dir in $ac_dummy; do
13062 IFS="$lt_save_ifs"
13063 test -z "$ac_dir" && ac_dir=.
13064 if test -f $ac_dir/${ac_tool_prefix}file; then
13065 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13066 if test -n "$file_magic_test_file"; then
13067 case $deplibs_check_method in
13068 "file_magic "*)
13069 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13072 $EGREP "$file_magic_regex" > /dev/null; then
13073 :
13074 else
13075 cat <<_LT_EOF 1>&2
13076
13077*** Warning: the command libtool uses to detect shared libraries,
13078*** $file_magic_cmd, produces output that libtool cannot recognize.
13079*** The result is that libtool may fail to recognize shared libraries
13080*** as such. This will affect the creation of libtool libraries that
13081*** depend on shared libraries, but programs linked with such libtool
13082*** libraries will work regardless of this problem. Nevertheless, you
13083*** may want to report the problem to your system manager and/or to
13084*** bug-libtool@gnu.org
13085
13086_LT_EOF
13087 fi ;;
13088 esac
13089 fi
13090 break
13091 fi
13092 done
13093 IFS="$lt_save_ifs"
13094 MAGIC_CMD="$lt_save_MAGIC_CMD"
13095 ;;
13096esac
13097fi
13098
13099MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13100if test -n "$MAGIC_CMD"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13102$as_echo "$MAGIC_CMD" >&6; }
13103else
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105$as_echo "no" >&6; }
13106fi
13107
13108
13109
13110
13111
13112if test -z "$lt_cv_path_MAGIC_CMD"; then
13113 if test -n "$ac_tool_prefix"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13115$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013116if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013117 $as_echo_n "(cached) " >&6
13118else
13119 case $MAGIC_CMD in
13120[\\/*] | ?:[\\/]*)
13121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13122 ;;
13123*)
13124 lt_save_MAGIC_CMD="$MAGIC_CMD"
13125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13127 for ac_dir in $ac_dummy; do
13128 IFS="$lt_save_ifs"
13129 test -z "$ac_dir" && ac_dir=.
13130 if test -f $ac_dir/file; then
13131 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13132 if test -n "$file_magic_test_file"; then
13133 case $deplibs_check_method in
13134 "file_magic "*)
13135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13138 $EGREP "$file_magic_regex" > /dev/null; then
13139 :
13140 else
13141 cat <<_LT_EOF 1>&2
13142
13143*** Warning: the command libtool uses to detect shared libraries,
13144*** $file_magic_cmd, produces output that libtool cannot recognize.
13145*** The result is that libtool may fail to recognize shared libraries
13146*** as such. This will affect the creation of libtool libraries that
13147*** depend on shared libraries, but programs linked with such libtool
13148*** libraries will work regardless of this problem. Nevertheless, you
13149*** may want to report the problem to your system manager and/or to
13150*** bug-libtool@gnu.org
13151
13152_LT_EOF
13153 fi ;;
13154 esac
13155 fi
13156 break
13157 fi
13158 done
13159 IFS="$lt_save_ifs"
13160 MAGIC_CMD="$lt_save_MAGIC_CMD"
13161 ;;
13162esac
13163fi
13164
13165MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13166if test -n "$MAGIC_CMD"; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13168$as_echo "$MAGIC_CMD" >&6; }
13169else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171$as_echo "no" >&6; }
13172fi
13173
13174
13175 else
13176 MAGIC_CMD=:
13177 fi
13178fi
13179
13180 fi
13181 ;;
13182esac
13183
13184# Use C for the default configuration in the libtool script
13185
13186lt_save_CC="$CC"
13187ac_ext=c
13188ac_cpp='$CPP $CPPFLAGS'
13189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191ac_compiler_gnu=$ac_cv_c_compiler_gnu
13192
13193
13194# Source file extension for C test sources.
13195ac_ext=c
13196
13197# Object file extension for compiled C test sources.
13198objext=o
13199objext=$objext
13200
13201# Code to be used in simple compile tests
13202lt_simple_compile_test_code="int some_variable = 0;"
13203
13204# Code to be used in simple link tests
13205lt_simple_link_test_code='int main(){return(0);}'
13206
13207
13208
13209
13210
13211
13212
13213# If no C compiler was specified, use CC.
13214LTCC=${LTCC-"$CC"}
13215
13216# If no C compiler flags were specified, use CFLAGS.
13217LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13218
13219# Allow CC to be a program name with arguments.
13220compiler=$CC
13221
13222# Save the default compiler, since it gets overwritten when the other
13223# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13224compiler_DEFAULT=$CC
13225
13226# save warnings/boilerplate of simple test code
13227ac_outfile=conftest.$ac_objext
13228echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13229eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13230_lt_compiler_boilerplate=`cat conftest.err`
13231$RM conftest*
13232
13233ac_outfile=conftest.$ac_objext
13234echo "$lt_simple_link_test_code" >conftest.$ac_ext
13235eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13236_lt_linker_boilerplate=`cat conftest.err`
13237$RM -r conftest*
13238
13239
13240## CAVEAT EMPTOR:
13241## There is no encapsulation within the following macros, do not change
13242## the running order or otherwise move them around unless you know exactly
13243## what you are doing...
13244if test -n "$compiler"; then
13245
13246lt_prog_compiler_no_builtin_flag=
13247
13248if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013249 case $cc_basename in
13250 nvcc*)
13251 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13252 *)
13253 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13254 esac
cristy73bd4a52010-10-05 11:24:23 +000013255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13257$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013258if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013259 $as_echo_n "(cached) " >&6
13260else
13261 lt_cv_prog_compiler_rtti_exceptions=no
13262 ac_outfile=conftest.$ac_objext
13263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13264 lt_compiler_flag="-fno-rtti -fno-exceptions"
13265 # Insert the option either (1) after the last *FLAGS variable, or
13266 # (2) before a word containing "conftest.", or (3) at the end.
13267 # Note that $ac_compile itself does not contain backslashes and begins
13268 # with a dollar sign (not a hyphen), so the echo should work correctly.
13269 # The option is referenced via a variable to avoid confusing sed.
13270 lt_compile=`echo "$ac_compile" | $SED \
13271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13273 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013275 (eval "$lt_compile" 2>conftest.err)
13276 ac_status=$?
13277 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013279 if (exit $ac_status) && test -s "$ac_outfile"; then
13280 # The compiler can only warn and ignore the option if not recognized
13281 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13285 lt_cv_prog_compiler_rtti_exceptions=yes
13286 fi
13287 fi
13288 $RM conftest*
13289
13290fi
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13292$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13293
13294if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13295 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13296else
13297 :
13298fi
13299
13300fi
13301
13302
13303
13304
13305
13306
13307 lt_prog_compiler_wl=
13308lt_prog_compiler_pic=
13309lt_prog_compiler_static=
13310
cristy73bd4a52010-10-05 11:24:23 +000013311
13312 if test "$GCC" = yes; then
13313 lt_prog_compiler_wl='-Wl,'
13314 lt_prog_compiler_static='-static'
13315
13316 case $host_os in
13317 aix*)
13318 # All AIX code is PIC.
13319 if test "$host_cpu" = ia64; then
13320 # AIX 5 now supports IA64 processor
13321 lt_prog_compiler_static='-Bstatic'
13322 fi
13323 ;;
13324
13325 amigaos*)
13326 case $host_cpu in
13327 powerpc)
13328 # see comment about AmigaOS4 .so support
13329 lt_prog_compiler_pic='-fPIC'
13330 ;;
13331 m68k)
13332 # FIXME: we need at least 68020 code to build shared libraries, but
13333 # adding the `-m68020' flag to GCC prevents building anything better,
13334 # like `-m68040'.
13335 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13336 ;;
13337 esac
13338 ;;
13339
13340 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13341 # PIC is the default for these OSes.
13342 ;;
13343
13344 mingw* | cygwin* | pw32* | os2* | cegcc*)
13345 # This hack is so that the source file can tell whether it is being
13346 # built for inclusion in a dll (and should export symbols for example).
13347 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13348 # (--disable-auto-import) libraries
13349 lt_prog_compiler_pic='-DDLL_EXPORT'
13350 ;;
13351
13352 darwin* | rhapsody*)
13353 # PIC is the default on this platform
13354 # Common symbols not allowed in MH_DYLIB files
13355 lt_prog_compiler_pic='-fno-common'
13356 ;;
13357
cristy0c60a692010-11-04 01:09:47 +000013358 haiku*)
13359 # PIC is the default for Haiku.
13360 # The "-static" flag exists, but is broken.
13361 lt_prog_compiler_static=
13362 ;;
13363
cristy73bd4a52010-10-05 11:24:23 +000013364 hpux*)
13365 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13366 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13367 # sets the default TLS model and affects inlining.
13368 case $host_cpu in
13369 hppa*64*)
13370 # +Z the default
13371 ;;
13372 *)
13373 lt_prog_compiler_pic='-fPIC'
13374 ;;
13375 esac
13376 ;;
13377
13378 interix[3-9]*)
13379 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13380 # Instead, we relocate shared libraries at runtime.
13381 ;;
13382
13383 msdosdjgpp*)
13384 # Just because we use GCC doesn't mean we suddenly get shared libraries
13385 # on systems that don't support them.
13386 lt_prog_compiler_can_build_shared=no
13387 enable_shared=no
13388 ;;
13389
13390 *nto* | *qnx*)
13391 # QNX uses GNU C++, but need to define -shared option too, otherwise
13392 # it will coredump.
13393 lt_prog_compiler_pic='-fPIC -shared'
13394 ;;
13395
13396 sysv4*MP*)
13397 if test -d /usr/nec; then
13398 lt_prog_compiler_pic=-Kconform_pic
13399 fi
13400 ;;
13401
13402 *)
13403 lt_prog_compiler_pic='-fPIC'
13404 ;;
13405 esac
cristy0c60a692010-11-04 01:09:47 +000013406
13407 case $cc_basename in
13408 nvcc*) # Cuda Compiler Driver 2.2
13409 lt_prog_compiler_wl='-Xlinker '
13410 lt_prog_compiler_pic='-Xcompiler -fPIC'
13411 ;;
13412 esac
cristy73bd4a52010-10-05 11:24:23 +000013413 else
13414 # PORTME Check for flag to pass linker flags through the system compiler.
13415 case $host_os in
13416 aix*)
13417 lt_prog_compiler_wl='-Wl,'
13418 if test "$host_cpu" = ia64; then
13419 # AIX 5 now supports IA64 processor
13420 lt_prog_compiler_static='-Bstatic'
13421 else
13422 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13423 fi
13424 ;;
13425
13426 mingw* | cygwin* | pw32* | os2* | cegcc*)
13427 # This hack is so that the source file can tell whether it is being
13428 # built for inclusion in a dll (and should export symbols for example).
13429 lt_prog_compiler_pic='-DDLL_EXPORT'
13430 ;;
13431
13432 hpux9* | hpux10* | hpux11*)
13433 lt_prog_compiler_wl='-Wl,'
13434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13435 # not for PA HP-UX.
13436 case $host_cpu in
13437 hppa*64*|ia64*)
13438 # +Z the default
13439 ;;
13440 *)
13441 lt_prog_compiler_pic='+Z'
13442 ;;
13443 esac
13444 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13445 lt_prog_compiler_static='${wl}-a ${wl}archive'
13446 ;;
13447
13448 irix5* | irix6* | nonstopux*)
13449 lt_prog_compiler_wl='-Wl,'
13450 # PIC (with -KPIC) is the default.
13451 lt_prog_compiler_static='-non_shared'
13452 ;;
13453
cristy0c60a692010-11-04 01:09:47 +000013454 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013455 case $cc_basename in
13456 # old Intel for x86_64 which still supported -KPIC.
13457 ecc*)
13458 lt_prog_compiler_wl='-Wl,'
13459 lt_prog_compiler_pic='-KPIC'
13460 lt_prog_compiler_static='-static'
13461 ;;
13462 # icc used to be incompatible with GCC.
13463 # ICC 10 doesn't accept -KPIC any more.
13464 icc* | ifort*)
13465 lt_prog_compiler_wl='-Wl,'
13466 lt_prog_compiler_pic='-fPIC'
13467 lt_prog_compiler_static='-static'
13468 ;;
13469 # Lahey Fortran 8.1.
13470 lf95*)
13471 lt_prog_compiler_wl='-Wl,'
13472 lt_prog_compiler_pic='--shared'
13473 lt_prog_compiler_static='--static'
13474 ;;
cristyda16f162011-02-19 23:52:17 +000013475 nagfor*)
13476 # NAG Fortran compiler
13477 lt_prog_compiler_wl='-Wl,-Wl,,'
13478 lt_prog_compiler_pic='-PIC'
13479 lt_prog_compiler_static='-Bstatic'
13480 ;;
cristy0c60a692010-11-04 01:09:47 +000013481 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013482 # Portland Group compilers (*not* the Pentium gcc compiler,
13483 # which looks to be a dead project)
13484 lt_prog_compiler_wl='-Wl,'
13485 lt_prog_compiler_pic='-fpic'
13486 lt_prog_compiler_static='-Bstatic'
13487 ;;
13488 ccc*)
13489 lt_prog_compiler_wl='-Wl,'
13490 # All Alpha code is PIC.
13491 lt_prog_compiler_static='-non_shared'
13492 ;;
cristy0c60a692010-11-04 01:09:47 +000013493 xl* | bgxl* | bgf* | mpixl*)
13494 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013495 lt_prog_compiler_wl='-Wl,'
13496 lt_prog_compiler_pic='-qpic'
13497 lt_prog_compiler_static='-qstaticlink'
13498 ;;
13499 *)
13500 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013501 *Sun\ F* | *Sun*Fortran*)
13502 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13503 lt_prog_compiler_pic='-KPIC'
13504 lt_prog_compiler_static='-Bstatic'
13505 lt_prog_compiler_wl=''
13506 ;;
cristy73bd4a52010-10-05 11:24:23 +000013507 *Sun\ C*)
13508 # Sun C 5.9
13509 lt_prog_compiler_pic='-KPIC'
13510 lt_prog_compiler_static='-Bstatic'
13511 lt_prog_compiler_wl='-Wl,'
13512 ;;
cristy73bd4a52010-10-05 11:24:23 +000013513 esac
13514 ;;
13515 esac
13516 ;;
13517
13518 newsos6)
13519 lt_prog_compiler_pic='-KPIC'
13520 lt_prog_compiler_static='-Bstatic'
13521 ;;
13522
13523 *nto* | *qnx*)
13524 # QNX uses GNU C++, but need to define -shared option too, otherwise
13525 # it will coredump.
13526 lt_prog_compiler_pic='-fPIC -shared'
13527 ;;
13528
13529 osf3* | osf4* | osf5*)
13530 lt_prog_compiler_wl='-Wl,'
13531 # All OSF/1 code is PIC.
13532 lt_prog_compiler_static='-non_shared'
13533 ;;
13534
13535 rdos*)
13536 lt_prog_compiler_static='-non_shared'
13537 ;;
13538
13539 solaris*)
13540 lt_prog_compiler_pic='-KPIC'
13541 lt_prog_compiler_static='-Bstatic'
13542 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013543 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013544 lt_prog_compiler_wl='-Qoption ld ';;
13545 *)
13546 lt_prog_compiler_wl='-Wl,';;
13547 esac
13548 ;;
13549
13550 sunos4*)
13551 lt_prog_compiler_wl='-Qoption ld '
13552 lt_prog_compiler_pic='-PIC'
13553 lt_prog_compiler_static='-Bstatic'
13554 ;;
13555
13556 sysv4 | sysv4.2uw2* | sysv4.3*)
13557 lt_prog_compiler_wl='-Wl,'
13558 lt_prog_compiler_pic='-KPIC'
13559 lt_prog_compiler_static='-Bstatic'
13560 ;;
13561
13562 sysv4*MP*)
13563 if test -d /usr/nec ;then
13564 lt_prog_compiler_pic='-Kconform_pic'
13565 lt_prog_compiler_static='-Bstatic'
13566 fi
13567 ;;
13568
13569 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13570 lt_prog_compiler_wl='-Wl,'
13571 lt_prog_compiler_pic='-KPIC'
13572 lt_prog_compiler_static='-Bstatic'
13573 ;;
13574
13575 unicos*)
13576 lt_prog_compiler_wl='-Wl,'
13577 lt_prog_compiler_can_build_shared=no
13578 ;;
13579
13580 uts4*)
13581 lt_prog_compiler_pic='-pic'
13582 lt_prog_compiler_static='-Bstatic'
13583 ;;
13584
13585 *)
13586 lt_prog_compiler_can_build_shared=no
13587 ;;
13588 esac
13589 fi
13590
13591case $host_os in
13592 # For platforms which do not support PIC, -DPIC is meaningless:
13593 *djgpp*)
13594 lt_prog_compiler_pic=
13595 ;;
13596 *)
13597 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13598 ;;
13599esac
cristy73bd4a52010-10-05 11:24:23 +000013600
cristyda16f162011-02-19 23:52:17 +000013601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13602$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13603if ${lt_cv_prog_compiler_pic+:} false; then :
13604 $as_echo_n "(cached) " >&6
13605else
13606 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13607fi
13608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13609$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13610lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013611
13612#
13613# Check to make sure the PIC flag actually works.
13614#
13615if test -n "$lt_prog_compiler_pic"; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13617$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013618if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013619 $as_echo_n "(cached) " >&6
13620else
13621 lt_cv_prog_compiler_pic_works=no
13622 ac_outfile=conftest.$ac_objext
13623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13624 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13625 # Insert the option either (1) after the last *FLAGS variable, or
13626 # (2) before a word containing "conftest.", or (3) at the end.
13627 # Note that $ac_compile itself does not contain backslashes and begins
13628 # with a dollar sign (not a hyphen), so the echo should work correctly.
13629 # The option is referenced via a variable to avoid confusing sed.
13630 lt_compile=`echo "$ac_compile" | $SED \
13631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13633 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013635 (eval "$lt_compile" 2>conftest.err)
13636 ac_status=$?
13637 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013639 if (exit $ac_status) && test -s "$ac_outfile"; then
13640 # The compiler can only warn and ignore the option if not recognized
13641 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13645 lt_cv_prog_compiler_pic_works=yes
13646 fi
13647 fi
13648 $RM conftest*
13649
13650fi
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13652$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13653
13654if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13655 case $lt_prog_compiler_pic in
13656 "" | " "*) ;;
13657 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13658 esac
13659else
13660 lt_prog_compiler_pic=
13661 lt_prog_compiler_can_build_shared=no
13662fi
13663
13664fi
13665
13666
13667
13668
13669
13670
cristyda16f162011-02-19 23:52:17 +000013671
13672
13673
13674
13675
cristy73bd4a52010-10-05 11:24:23 +000013676#
13677# Check to make sure the static flag actually works.
13678#
13679wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13681$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013682if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013683 $as_echo_n "(cached) " >&6
13684else
13685 lt_cv_prog_compiler_static_works=no
13686 save_LDFLAGS="$LDFLAGS"
13687 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13688 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13690 # The linker can only warn and ignore the option if not recognized
13691 # So say no if there are warnings
13692 if test -s conftest.err; then
13693 # Append any errors to the config.log.
13694 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013695 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13697 if diff conftest.exp conftest.er2 >/dev/null; then
13698 lt_cv_prog_compiler_static_works=yes
13699 fi
13700 else
13701 lt_cv_prog_compiler_static_works=yes
13702 fi
13703 fi
13704 $RM -r conftest*
13705 LDFLAGS="$save_LDFLAGS"
13706
13707fi
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13709$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13710
13711if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13712 :
13713else
13714 lt_prog_compiler_static=
13715fi
13716
13717
13718
13719
13720
13721
13722
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13724$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013725if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013726 $as_echo_n "(cached) " >&6
13727else
13728 lt_cv_prog_compiler_c_o=no
13729 $RM -r conftest 2>/dev/null
13730 mkdir conftest
13731 cd conftest
13732 mkdir out
13733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13734
13735 lt_compiler_flag="-o out/conftest2.$ac_objext"
13736 # Insert the option either (1) after the last *FLAGS variable, or
13737 # (2) before a word containing "conftest.", or (3) at the end.
13738 # Note that $ac_compile itself does not contain backslashes and begins
13739 # with a dollar sign (not a hyphen), so the echo should work correctly.
13740 lt_compile=`echo "$ac_compile" | $SED \
13741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13743 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013745 (eval "$lt_compile" 2>out/conftest.err)
13746 ac_status=$?
13747 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013749 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13750 then
13751 # The compiler can only warn and ignore the option if not recognized
13752 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013753 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013754 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13755 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13756 lt_cv_prog_compiler_c_o=yes
13757 fi
13758 fi
13759 chmod u+w . 2>&5
13760 $RM conftest*
13761 # SGI C++ compiler will create directory out/ii_files/ for
13762 # template instantiation
13763 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13764 $RM out/* && rmdir out
13765 cd ..
13766 $RM -r conftest
13767 $RM conftest*
13768
13769fi
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13771$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13772
13773
13774
13775
13776
13777
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13779$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013780if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013781 $as_echo_n "(cached) " >&6
13782else
13783 lt_cv_prog_compiler_c_o=no
13784 $RM -r conftest 2>/dev/null
13785 mkdir conftest
13786 cd conftest
13787 mkdir out
13788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13789
13790 lt_compiler_flag="-o out/conftest2.$ac_objext"
13791 # Insert the option either (1) after the last *FLAGS variable, or
13792 # (2) before a word containing "conftest.", or (3) at the end.
13793 # Note that $ac_compile itself does not contain backslashes and begins
13794 # with a dollar sign (not a hyphen), so the echo should work correctly.
13795 lt_compile=`echo "$ac_compile" | $SED \
13796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13798 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013799 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013800 (eval "$lt_compile" 2>out/conftest.err)
13801 ac_status=$?
13802 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13805 then
13806 # The compiler can only warn and ignore the option if not recognized
13807 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13811 lt_cv_prog_compiler_c_o=yes
13812 fi
13813 fi
13814 chmod u+w . 2>&5
13815 $RM conftest*
13816 # SGI C++ compiler will create directory out/ii_files/ for
13817 # template instantiation
13818 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13819 $RM out/* && rmdir out
13820 cd ..
13821 $RM -r conftest
13822 $RM conftest*
13823
13824fi
13825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13826$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13827
13828
13829
13830
13831hard_links="nottested"
13832if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13833 # do not overwrite the value of need_locks provided by the user
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13835$as_echo_n "checking if we can lock with hard links... " >&6; }
13836 hard_links=yes
13837 $RM conftest*
13838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13839 touch conftest.a
13840 ln conftest.a conftest.b 2>&5 || hard_links=no
13841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13843$as_echo "$hard_links" >&6; }
13844 if test "$hard_links" = no; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13846$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13847 need_locks=warn
13848 fi
13849else
13850 need_locks=no
13851fi
13852
13853
13854
13855
13856
13857
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13859$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13860
13861 runpath_var=
13862 allow_undefined_flag=
13863 always_export_symbols=no
13864 archive_cmds=
13865 archive_expsym_cmds=
13866 compiler_needs_object=no
13867 enable_shared_with_static_runtimes=no
13868 export_dynamic_flag_spec=
13869 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13870 hardcode_automatic=no
13871 hardcode_direct=no
13872 hardcode_direct_absolute=no
13873 hardcode_libdir_flag_spec=
13874 hardcode_libdir_flag_spec_ld=
13875 hardcode_libdir_separator=
13876 hardcode_minus_L=no
13877 hardcode_shlibpath_var=unsupported
13878 inherit_rpath=no
13879 link_all_deplibs=unknown
13880 module_cmds=
13881 module_expsym_cmds=
13882 old_archive_from_new_cmds=
13883 old_archive_from_expsyms_cmds=
13884 thread_safe_flag_spec=
13885 whole_archive_flag_spec=
13886 # include_expsyms should be a list of space-separated symbols to be *always*
13887 # included in the symbol list
13888 include_expsyms=
13889 # exclude_expsyms can be an extended regexp of symbols to exclude
13890 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13891 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13892 # as well as any symbol that contains `d'.
13893 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13894 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13895 # platforms (ab)use it in PIC code, but their linkers get confused if
13896 # the symbol is explicitly referenced. Since portable code cannot
13897 # rely on this symbol name, it's probably fine to never include it in
13898 # preloaded symbol tables.
13899 # Exclude shared library initialization/finalization symbols.
13900 extract_expsyms_cmds=
13901
13902 case $host_os in
13903 cygwin* | mingw* | pw32* | cegcc*)
13904 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13905 # When not using gcc, we currently assume that we are using
13906 # Microsoft Visual C++.
13907 if test "$GCC" != yes; then
13908 with_gnu_ld=no
13909 fi
13910 ;;
13911 interix*)
13912 # we just hope/assume this is gcc and not c89 (= MSVC++)
13913 with_gnu_ld=yes
13914 ;;
13915 openbsd*)
13916 with_gnu_ld=no
13917 ;;
13918 esac
13919
13920 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013921
13922 # On some targets, GNU ld is compatible enough with the native linker
13923 # that we're better off using the native interface for both.
13924 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013925 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013926 case $host_os in
13927 aix*)
13928 # The AIX port of GNU ld has always aspired to compatibility
13929 # with the native linker. However, as the warning in the GNU ld
13930 # block says, versions before 2.19.5* couldn't really create working
13931 # shared libraries, regardless of the interface used.
13932 case `$LD -v 2>&1` in
13933 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13934 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13935 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13936 *)
13937 lt_use_gnu_ld_interface=yes
13938 ;;
13939 esac
13940 ;;
13941 *)
13942 lt_use_gnu_ld_interface=yes
13943 ;;
13944 esac
13945 fi
13946
13947 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013948 # If archive_cmds runs LD, not CC, wlarc should be empty
13949 wlarc='${wl}'
13950
13951 # Set some defaults for GNU ld with shared library support. These
13952 # are reset later if shared libraries are not supported. Putting them
13953 # here allows them to be overridden if necessary.
13954 runpath_var=LD_RUN_PATH
13955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13956 export_dynamic_flag_spec='${wl}--export-dynamic'
13957 # ancient GNU ld didn't support --whole-archive et. al.
13958 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13959 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13960 else
13961 whole_archive_flag_spec=
13962 fi
13963 supports_anon_versioning=no
13964 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013965 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013966 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13967 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13968 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13969 *\ 2.11.*) ;; # other 2.11 versions
13970 *) supports_anon_versioning=yes ;;
13971 esac
13972
13973 # See if GNU ld supports shared libraries.
13974 case $host_os in
13975 aix[3-9]*)
13976 # On AIX/PPC, the GNU linker is very broken
13977 if test "$host_cpu" != ia64; then
13978 ld_shlibs=no
13979 cat <<_LT_EOF 1>&2
13980
cristy0c60a692010-11-04 01:09:47 +000013981*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013982*** to be unable to reliably create shared libraries on AIX.
13983*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013984*** really care for shared libraries, you may want to install binutils
13985*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13986*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013987
13988_LT_EOF
13989 fi
13990 ;;
13991
13992 amigaos*)
13993 case $host_cpu in
13994 powerpc)
13995 # see comment about AmigaOS4 .so support
13996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13997 archive_expsym_cmds=''
13998 ;;
13999 m68k)
14000 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)'
14001 hardcode_libdir_flag_spec='-L$libdir'
14002 hardcode_minus_L=yes
14003 ;;
14004 esac
14005 ;;
14006
14007 beos*)
14008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14009 allow_undefined_flag=unsupported
14010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14011 # support --undefined. This deserves some investigation. FIXME
14012 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14013 else
14014 ld_shlibs=no
14015 fi
14016 ;;
14017
14018 cygwin* | mingw* | pw32* | cegcc*)
14019 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14020 # as there is no search path for DLLs.
14021 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014022 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014023 allow_undefined_flag=unsupported
14024 always_export_symbols=no
14025 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014026 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'
14027 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 +000014028
14029 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14031 # If the export-symbols file already is a .def file (1st line
14032 # is EXPORTS), use it as is; otherwise, prepend...
14033 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14034 cp $export_symbols $output_objdir/$soname.def;
14035 else
14036 echo EXPORTS > $output_objdir/$soname.def;
14037 cat $export_symbols >> $output_objdir/$soname.def;
14038 fi~
14039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14040 else
14041 ld_shlibs=no
14042 fi
14043 ;;
14044
cristy0c60a692010-11-04 01:09:47 +000014045 haiku*)
14046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14047 link_all_deplibs=yes
14048 ;;
14049
cristy73bd4a52010-10-05 11:24:23 +000014050 interix[3-9]*)
14051 hardcode_direct=no
14052 hardcode_shlibpath_var=no
14053 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14054 export_dynamic_flag_spec='${wl}-E'
14055 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14056 # Instead, shared libraries are loaded at an image base (0x10000000 by
14057 # default) and relocated if they conflict, which is a slow very memory
14058 # consuming and fragmenting process. To avoid this, we pick a random,
14059 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14060 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14061 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14062 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'
14063 ;;
14064
cristy0c60a692010-11-04 01:09:47 +000014065 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014066 tmp_diet=no
14067 if test "$host_os" = linux-dietlibc; then
14068 case $cc_basename in
14069 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14070 esac
14071 fi
14072 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14073 && test "$tmp_diet" = no
14074 then
cristyda16f162011-02-19 23:52:17 +000014075 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014076 tmp_sharedflag='-shared'
14077 case $cc_basename,$host_cpu in
14078 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014079 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 +000014080 tmp_addflag=' $pic_flag'
14081 ;;
cristy0c60a692010-11-04 01:09:47 +000014082 pgf77* | pgf90* | pgf95* | pgfortran*)
14083 # Portland Group f77 and f90 compilers
14084 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 +000014085 tmp_addflag=' $pic_flag -Mnomain' ;;
14086 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14087 tmp_addflag=' -i_dynamic' ;;
14088 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14089 tmp_addflag=' -i_dynamic -nofor_main' ;;
14090 ifc* | ifort*) # Intel Fortran compiler
14091 tmp_addflag=' -nofor_main' ;;
14092 lf95*) # Lahey Fortran 8.1
14093 whole_archive_flag_spec=
14094 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014095 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014096 tmp_sharedflag='-qmkshrobj'
14097 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014098 nvcc*) # Cuda Compiler Driver 2.2
14099 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'
14100 compiler_needs_object=yes
14101 ;;
cristy73bd4a52010-10-05 11:24:23 +000014102 esac
14103 case `$CC -V 2>&1 | sed 5q` in
14104 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014105 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 +000014106 compiler_needs_object=yes
14107 tmp_sharedflag='-G' ;;
14108 *Sun\ F*) # Sun Fortran 8.3
14109 tmp_sharedflag='-G' ;;
14110 esac
14111 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14112
14113 if test "x$supports_anon_versioning" = xyes; then
14114 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14116 echo "local: *; };" >> $output_objdir/$libname.ver~
14117 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14118 fi
14119
14120 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014121 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014122 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14123 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14124 hardcode_libdir_flag_spec=
14125 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014126 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014127 if test "x$supports_anon_versioning" = xyes; then
14128 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14130 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014131 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014132 fi
14133 ;;
14134 esac
14135 else
14136 ld_shlibs=no
14137 fi
14138 ;;
14139
14140 netbsd*)
14141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14142 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14143 wlarc=
14144 else
cristyda16f162011-02-19 23:52:17 +000014145 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14146 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 +000014147 fi
14148 ;;
14149
14150 solaris*)
14151 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14152 ld_shlibs=no
14153 cat <<_LT_EOF 1>&2
14154
14155*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14156*** create shared libraries on Solaris systems. Therefore, libtool
14157*** is disabling shared libraries support. We urge you to upgrade GNU
14158*** binutils to release 2.9.1 or newer. Another option is to modify
14159*** your PATH or compiler configuration so that the native linker is
14160*** used, and then restart.
14161
14162_LT_EOF
14163 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014164 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14165 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 +000014166 else
14167 ld_shlibs=no
14168 fi
14169 ;;
14170
14171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14172 case `$LD -v 2>&1` in
14173 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14174 ld_shlibs=no
14175 cat <<_LT_EOF 1>&2
14176
14177*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14178*** reliably create shared libraries on SCO systems. Therefore, libtool
14179*** is disabling shared libraries support. We urge you to upgrade GNU
14180*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14181*** your PATH or compiler configuration so that the native linker is
14182*** used, and then restart.
14183
14184_LT_EOF
14185 ;;
14186 *)
14187 # For security reasons, it is highly recommended that you always
14188 # use absolute paths for naming shared libraries, and exclude the
14189 # DT_RUNPATH tag from executables and libraries. But doing so
14190 # requires that you compile everything twice, which is a pain.
14191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14195 else
14196 ld_shlibs=no
14197 fi
14198 ;;
14199 esac
14200 ;;
14201
14202 sunos4*)
14203 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14204 wlarc=
14205 hardcode_direct=yes
14206 hardcode_shlibpath_var=no
14207 ;;
14208
14209 *)
14210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014211 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14212 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 +000014213 else
14214 ld_shlibs=no
14215 fi
14216 ;;
14217 esac
14218
14219 if test "$ld_shlibs" = no; then
14220 runpath_var=
14221 hardcode_libdir_flag_spec=
14222 export_dynamic_flag_spec=
14223 whole_archive_flag_spec=
14224 fi
14225 else
14226 # PORTME fill in a description of your system's linker (not GNU ld)
14227 case $host_os in
14228 aix3*)
14229 allow_undefined_flag=unsupported
14230 always_export_symbols=yes
14231 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'
14232 # Note: this linker hardcodes the directories in LIBPATH if there
14233 # are no directories specified by -L.
14234 hardcode_minus_L=yes
14235 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14236 # Neither direct hardcoding nor static linking is supported with a
14237 # broken collect2.
14238 hardcode_direct=unsupported
14239 fi
14240 ;;
14241
14242 aix[4-9]*)
14243 if test "$host_cpu" = ia64; then
14244 # On IA64, the linker does run time linking by default, so we don't
14245 # have to do anything special.
14246 aix_use_runtimelinking=no
14247 exp_sym_flag='-Bexport'
14248 no_entry_flag=""
14249 else
14250 # If we're using GNU nm, then we don't want the "-C" option.
14251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014252 # Also, AIX nm treats weak defined symbols like other global
14253 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014254 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014255 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 +000014256 else
14257 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'
14258 fi
14259 aix_use_runtimelinking=no
14260
14261 # Test if we are trying to use run time linking or normal
14262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14263 # need to do runtime linking.
14264 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14265 for ld_flag in $LDFLAGS; do
14266 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14267 aix_use_runtimelinking=yes
14268 break
14269 fi
14270 done
14271 ;;
14272 esac
14273
14274 exp_sym_flag='-bexport'
14275 no_entry_flag='-bnoentry'
14276 fi
14277
14278 # When large executables or shared objects are built, AIX ld can
14279 # have problems creating the table of contents. If linking a library
14280 # or program results in "error TOC overflow" add -mminimal-toc to
14281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14283
14284 archive_cmds=''
14285 hardcode_direct=yes
14286 hardcode_direct_absolute=yes
14287 hardcode_libdir_separator=':'
14288 link_all_deplibs=yes
14289 file_list_spec='${wl}-f,'
14290
14291 if test "$GCC" = yes; then
14292 case $host_os in aix4.[012]|aix4.[012].*)
14293 # We only want to do this on AIX 4.2 and lower, the check
14294 # below for broken collect2 doesn't work under 4.3+
14295 collect2name=`${CC} -print-prog-name=collect2`
14296 if test -f "$collect2name" &&
14297 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14298 then
14299 # We have reworked collect2
14300 :
14301 else
14302 # We have old collect2
14303 hardcode_direct=unsupported
14304 # It fails to find uninstalled libraries when the uninstalled
14305 # path is not listed in the libpath. Setting hardcode_minus_L
14306 # to unsupported forces relinking
14307 hardcode_minus_L=yes
14308 hardcode_libdir_flag_spec='-L$libdir'
14309 hardcode_libdir_separator=
14310 fi
14311 ;;
14312 esac
14313 shared_flag='-shared'
14314 if test "$aix_use_runtimelinking" = yes; then
14315 shared_flag="$shared_flag "'${wl}-G'
14316 fi
14317 else
14318 # not using gcc
14319 if test "$host_cpu" = ia64; then
14320 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14321 # chokes on -Wl,-G. The following line is correct:
14322 shared_flag='-G'
14323 else
14324 if test "$aix_use_runtimelinking" = yes; then
14325 shared_flag='${wl}-G'
14326 else
14327 shared_flag='${wl}-bM:SRE'
14328 fi
14329 fi
14330 fi
14331
14332 export_dynamic_flag_spec='${wl}-bexpall'
14333 # It seems that -bexpall does not export symbols beginning with
14334 # underscore (_), so it is better to generate a list of symbols to export.
14335 always_export_symbols=yes
14336 if test "$aix_use_runtimelinking" = yes; then
14337 # Warning - without using the other runtime loading flags (-brtl),
14338 # -berok will link without error, but may produce a broken library.
14339 allow_undefined_flag='-berok'
14340 # Determine the default libpath from the value encoded in an
14341 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014342 if test "${lt_cv_aix_libpath+set}" = set; then
14343 aix_libpath=$lt_cv_aix_libpath
14344else
14345 if ${lt_cv_aix_libpath_+:} false; then :
14346 $as_echo_n "(cached) " >&6
14347else
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014349/* end confdefs.h. */
14350
14351int
14352main ()
14353{
14354
14355 ;
14356 return 0;
14357}
14358_ACEOF
14359if ac_fn_c_try_link "$LINENO"; then :
14360
cristyda16f162011-02-19 23:52:17 +000014361 lt_aix_libpath_sed='
14362 /Import File Strings/,/^$/ {
14363 /^0/ {
14364 s/^0 *\([^ ]*\) *$/\1/
14365 p
14366 }
14367 }'
14368 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14369 # Check for a 64-bit object if we didn't find anything.
14370 if test -z "$lt_cv_aix_libpath_"; then
14371 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14372 fi
cristy73bd4a52010-10-05 11:24:23 +000014373fi
14374rm -f core conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014376 if test -z "$lt_cv_aix_libpath_"; then
14377 lt_cv_aix_libpath_="/usr/lib:/lib"
14378 fi
14379
14380fi
14381
14382 aix_libpath=$lt_cv_aix_libpath_
14383fi
cristy73bd4a52010-10-05 11:24:23 +000014384
14385 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014386 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 +000014387 else
14388 if test "$host_cpu" = ia64; then
14389 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14390 allow_undefined_flag="-z nodefs"
14391 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"
14392 else
14393 # Determine the default libpath from the value encoded in an
14394 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014395 if test "${lt_cv_aix_libpath+set}" = set; then
14396 aix_libpath=$lt_cv_aix_libpath
14397else
14398 if ${lt_cv_aix_libpath_+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400else
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014402/* end confdefs.h. */
14403
14404int
14405main ()
14406{
14407
14408 ;
14409 return 0;
14410}
14411_ACEOF
14412if ac_fn_c_try_link "$LINENO"; then :
14413
cristyda16f162011-02-19 23:52:17 +000014414 lt_aix_libpath_sed='
14415 /Import File Strings/,/^$/ {
14416 /^0/ {
14417 s/^0 *\([^ ]*\) *$/\1/
14418 p
14419 }
14420 }'
14421 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14422 # Check for a 64-bit object if we didn't find anything.
14423 if test -z "$lt_cv_aix_libpath_"; then
14424 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14425 fi
cristy73bd4a52010-10-05 11:24:23 +000014426fi
14427rm -f core conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014429 if test -z "$lt_cv_aix_libpath_"; then
14430 lt_cv_aix_libpath_="/usr/lib:/lib"
14431 fi
14432
14433fi
14434
14435 aix_libpath=$lt_cv_aix_libpath_
14436fi
cristy73bd4a52010-10-05 11:24:23 +000014437
14438 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14439 # Warning - without using the other run time loading flags,
14440 # -berok will link without error, but may produce a broken library.
14441 no_undefined_flag=' ${wl}-bernotok'
14442 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014443 if test "$with_gnu_ld" = yes; then
14444 # We only use this code for GNU lds that support --whole-archive.
14445 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14446 else
14447 # Exported symbols can be pulled into shared objects from archives
14448 whole_archive_flag_spec='$convenience'
14449 fi
cristy73bd4a52010-10-05 11:24:23 +000014450 archive_cmds_need_lc=yes
14451 # This is similar to how AIX traditionally builds its shared libraries.
14452 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'
14453 fi
14454 fi
14455 ;;
14456
14457 amigaos*)
14458 case $host_cpu in
14459 powerpc)
14460 # see comment about AmigaOS4 .so support
14461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14462 archive_expsym_cmds=''
14463 ;;
14464 m68k)
14465 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)'
14466 hardcode_libdir_flag_spec='-L$libdir'
14467 hardcode_minus_L=yes
14468 ;;
14469 esac
14470 ;;
14471
14472 bsdi[45]*)
14473 export_dynamic_flag_spec=-rdynamic
14474 ;;
14475
14476 cygwin* | mingw* | pw32* | cegcc*)
14477 # When not using gcc, we currently assume that we are using
14478 # Microsoft Visual C++.
14479 # hardcode_libdir_flag_spec is actually meaningless, as there is
14480 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014481 case $cc_basename in
14482 cl*)
14483 # Native MSVC
14484 hardcode_libdir_flag_spec=' '
14485 allow_undefined_flag=unsupported
14486 always_export_symbols=yes
14487 file_list_spec='@'
14488 # Tell ltmain to make .lib files, not .a files.
14489 libext=lib
14490 # Tell ltmain to make .dll files, not .so files.
14491 shrext_cmds=".dll"
14492 # FIXME: Setting linknames here is a bad hack.
14493 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14494 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14495 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14496 else
14497 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14498 fi~
14499 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14500 linknames='
14501 # The linker will not automatically build a static lib if we build a DLL.
14502 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14503 enable_shared_with_static_runtimes=yes
14504 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14505 # Don't use ranlib
14506 old_postinstall_cmds='chmod 644 $oldlib'
14507 postlink_cmds='lt_outputfile="@OUTPUT@"~
14508 lt_tool_outputfile="@TOOL_OUTPUT@"~
14509 case $lt_outputfile in
14510 *.exe|*.EXE) ;;
14511 *)
14512 lt_outputfile="$lt_outputfile.exe"
14513 lt_tool_outputfile="$lt_tool_outputfile.exe"
14514 ;;
14515 esac~
14516 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14517 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14518 $RM "$lt_outputfile.manifest";
14519 fi'
14520 ;;
14521 *)
14522 # Assume MSVC wrapper
14523 hardcode_libdir_flag_spec=' '
14524 allow_undefined_flag=unsupported
14525 # Tell ltmain to make .lib files, not .a files.
14526 libext=lib
14527 # Tell ltmain to make .dll files, not .so files.
14528 shrext_cmds=".dll"
14529 # FIXME: Setting linknames here is a bad hack.
14530 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14531 # The linker will automatically build a .lib file if we build a DLL.
14532 old_archive_from_new_cmds='true'
14533 # FIXME: Should let the user specify the lib program.
14534 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14535 enable_shared_with_static_runtimes=yes
14536 ;;
14537 esac
cristy73bd4a52010-10-05 11:24:23 +000014538 ;;
14539
14540 darwin* | rhapsody*)
14541
14542
14543 archive_cmds_need_lc=no
14544 hardcode_direct=no
14545 hardcode_automatic=yes
14546 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014547 if test "$lt_cv_ld_force_load" = "yes"; then
14548 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\"`'
14549 else
14550 whole_archive_flag_spec=''
14551 fi
cristy73bd4a52010-10-05 11:24:23 +000014552 link_all_deplibs=yes
14553 allow_undefined_flag="$_lt_dar_allow_undefined"
14554 case $cc_basename in
14555 ifort*) _lt_dar_can_shared=yes ;;
14556 *) _lt_dar_can_shared=$GCC ;;
14557 esac
14558 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014559 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014560 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14561 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14562 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}"
14563 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}"
14564
14565 else
14566 ld_shlibs=no
14567 fi
14568
14569 ;;
14570
14571 dgux*)
14572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14573 hardcode_libdir_flag_spec='-L$libdir'
14574 hardcode_shlibpath_var=no
14575 ;;
14576
14577 freebsd1*)
14578 ld_shlibs=no
14579 ;;
14580
14581 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14582 # support. Future versions do this automatically, but an explicit c++rt0.o
14583 # does not break anything, and helps significantly (at the cost of a little
14584 # extra space).
14585 freebsd2.2*)
14586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14587 hardcode_libdir_flag_spec='-R$libdir'
14588 hardcode_direct=yes
14589 hardcode_shlibpath_var=no
14590 ;;
14591
14592 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14593 freebsd2*)
14594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14595 hardcode_direct=yes
14596 hardcode_minus_L=yes
14597 hardcode_shlibpath_var=no
14598 ;;
14599
14600 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14601 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014602 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014603 hardcode_libdir_flag_spec='-R$libdir'
14604 hardcode_direct=yes
14605 hardcode_shlibpath_var=no
14606 ;;
14607
14608 hpux9*)
14609 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014610 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 +000014611 else
14612 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'
14613 fi
14614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14615 hardcode_libdir_separator=:
14616 hardcode_direct=yes
14617
14618 # hardcode_minus_L: Not really in the search PATH,
14619 # but as the default location of the library.
14620 hardcode_minus_L=yes
14621 export_dynamic_flag_spec='${wl}-E'
14622 ;;
14623
14624 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014625 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014626 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 +000014627 else
14628 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14629 fi
14630 if test "$with_gnu_ld" = no; then
14631 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14632 hardcode_libdir_flag_spec_ld='+b $libdir'
14633 hardcode_libdir_separator=:
14634 hardcode_direct=yes
14635 hardcode_direct_absolute=yes
14636 export_dynamic_flag_spec='${wl}-E'
14637 # hardcode_minus_L: Not really in the search PATH,
14638 # but as the default location of the library.
14639 hardcode_minus_L=yes
14640 fi
14641 ;;
14642
14643 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014644 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014645 case $host_cpu in
14646 hppa*64*)
14647 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14648 ;;
14649 ia64*)
cristyda16f162011-02-19 23:52:17 +000014650 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014651 ;;
14652 *)
cristyda16f162011-02-19 23:52:17 +000014653 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 +000014654 ;;
14655 esac
14656 else
14657 case $host_cpu in
14658 hppa*64*)
14659 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14660 ;;
14661 ia64*)
14662 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14663 ;;
14664 *)
cristy0c60a692010-11-04 01:09:47 +000014665
14666 # Older versions of the 11.00 compiler do not understand -b yet
14667 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14669$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014670if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014671 $as_echo_n "(cached) " >&6
14672else
14673 lt_cv_prog_compiler__b=no
14674 save_LDFLAGS="$LDFLAGS"
14675 LDFLAGS="$LDFLAGS -b"
14676 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14678 # The linker can only warn and ignore the option if not recognized
14679 # So say no if there are warnings
14680 if test -s conftest.err; then
14681 # Append any errors to the config.log.
14682 cat conftest.err 1>&5
14683 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14685 if diff conftest.exp conftest.er2 >/dev/null; then
14686 lt_cv_prog_compiler__b=yes
14687 fi
14688 else
14689 lt_cv_prog_compiler__b=yes
14690 fi
14691 fi
14692 $RM -r conftest*
14693 LDFLAGS="$save_LDFLAGS"
14694
14695fi
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14697$as_echo "$lt_cv_prog_compiler__b" >&6; }
14698
14699if test x"$lt_cv_prog_compiler__b" = xyes; then
14700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14701else
14702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14703fi
14704
cristy73bd4a52010-10-05 11:24:23 +000014705 ;;
14706 esac
14707 fi
14708 if test "$with_gnu_ld" = no; then
14709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14710 hardcode_libdir_separator=:
14711
14712 case $host_cpu in
14713 hppa*64*|ia64*)
14714 hardcode_direct=no
14715 hardcode_shlibpath_var=no
14716 ;;
14717 *)
14718 hardcode_direct=yes
14719 hardcode_direct_absolute=yes
14720 export_dynamic_flag_spec='${wl}-E'
14721
14722 # hardcode_minus_L: Not really in the search PATH,
14723 # but as the default location of the library.
14724 hardcode_minus_L=yes
14725 ;;
14726 esac
14727 fi
14728 ;;
14729
14730 irix5* | irix6* | nonstopux*)
14731 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014732 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 +000014733 # Try to use the -exported_symbol ld option, if it does not
14734 # work, assume that -exports_file does not work either and
14735 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014736 # This should be the same for all languages, so no per-tag cache variable.
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14738$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14739if ${lt_cv_irix_exported_symbol+:} false; then :
14740 $as_echo_n "(cached) " >&6
14741else
14742 save_LDFLAGS="$LDFLAGS"
14743 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014745/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014746int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014747_ACEOF
14748if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014749 lt_cv_irix_exported_symbol=yes
14750else
14751 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014752fi
14753rm -f core conftest.err conftest.$ac_objext \
14754 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014755 LDFLAGS="$save_LDFLAGS"
14756fi
14757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14758$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14759 if test "$lt_cv_irix_exported_symbol" = yes; then
14760 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'
14761 fi
cristy73bd4a52010-10-05 11:24:23 +000014762 else
cristy0c60a692010-11-04 01:09:47 +000014763 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'
14764 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 +000014765 fi
14766 archive_cmds_need_lc='no'
14767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14768 hardcode_libdir_separator=:
14769 inherit_rpath=yes
14770 link_all_deplibs=yes
14771 ;;
14772
14773 netbsd*)
14774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14776 else
14777 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14778 fi
14779 hardcode_libdir_flag_spec='-R$libdir'
14780 hardcode_direct=yes
14781 hardcode_shlibpath_var=no
14782 ;;
14783
14784 newsos6)
14785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14786 hardcode_direct=yes
14787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14788 hardcode_libdir_separator=:
14789 hardcode_shlibpath_var=no
14790 ;;
14791
14792 *nto* | *qnx*)
14793 ;;
14794
14795 openbsd*)
14796 if test -f /usr/libexec/ld.so; then
14797 hardcode_direct=yes
14798 hardcode_shlibpath_var=no
14799 hardcode_direct_absolute=yes
14800 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14802 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14803 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14804 export_dynamic_flag_spec='${wl}-E'
14805 else
14806 case $host_os in
14807 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14809 hardcode_libdir_flag_spec='-R$libdir'
14810 ;;
14811 *)
14812 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14814 ;;
14815 esac
14816 fi
14817 else
14818 ld_shlibs=no
14819 fi
14820 ;;
14821
14822 os2*)
14823 hardcode_libdir_flag_spec='-L$libdir'
14824 hardcode_minus_L=yes
14825 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014826 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 +000014827 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14828 ;;
14829
14830 osf3*)
14831 if test "$GCC" = yes; then
14832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014833 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 +000014834 else
14835 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014836 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 +000014837 fi
14838 archive_cmds_need_lc='no'
14839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14840 hardcode_libdir_separator=:
14841 ;;
14842
14843 osf4* | osf5*) # as osf3* with the addition of -msym flag
14844 if test "$GCC" = yes; then
14845 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014846 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 +000014847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14848 else
14849 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014850 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 +000014851 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 +000014852 $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 +000014853
14854 # Both c and cxx compiler support -rpath directly
14855 hardcode_libdir_flag_spec='-rpath $libdir'
14856 fi
14857 archive_cmds_need_lc='no'
14858 hardcode_libdir_separator=:
14859 ;;
14860
14861 solaris*)
14862 no_undefined_flag=' -z defs'
14863 if test "$GCC" = yes; then
14864 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014865 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 +000014866 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 +000014867 $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 +000014868 else
14869 case `$CC -V 2>&1` in
14870 *"Compilers 5.0"*)
14871 wlarc=''
14872 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14874 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14875 ;;
14876 *)
14877 wlarc='${wl}'
14878 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14880 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14881 ;;
14882 esac
14883 fi
14884 hardcode_libdir_flag_spec='-R$libdir'
14885 hardcode_shlibpath_var=no
14886 case $host_os in
14887 solaris2.[0-5] | solaris2.[0-5].*) ;;
14888 *)
14889 # The compiler driver will combine and reorder linker options,
14890 # but understands `-z linker_flag'. GCC discards it without `$wl',
14891 # but is careful enough not to reorder.
14892 # Supported since Solaris 2.6 (maybe 2.5.1?)
14893 if test "$GCC" = yes; then
14894 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14895 else
14896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14897 fi
14898 ;;
14899 esac
14900 link_all_deplibs=yes
14901 ;;
14902
14903 sunos4*)
14904 if test "x$host_vendor" = xsequent; then
14905 # Use $CC to link under sequent, because it throws in some extra .o
14906 # files that make .init and .fini sections work.
14907 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14908 else
14909 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14910 fi
14911 hardcode_libdir_flag_spec='-L$libdir'
14912 hardcode_direct=yes
14913 hardcode_minus_L=yes
14914 hardcode_shlibpath_var=no
14915 ;;
14916
14917 sysv4)
14918 case $host_vendor in
14919 sni)
14920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14921 hardcode_direct=yes # is this really true???
14922 ;;
14923 siemens)
14924 ## LD is ld it makes a PLAMLIB
14925 ## CC just makes a GrossModule.
14926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14927 reload_cmds='$CC -r -o $output$reload_objs'
14928 hardcode_direct=no
14929 ;;
14930 motorola)
14931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14932 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14933 ;;
14934 esac
14935 runpath_var='LD_RUN_PATH'
14936 hardcode_shlibpath_var=no
14937 ;;
14938
14939 sysv4.3*)
14940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14941 hardcode_shlibpath_var=no
14942 export_dynamic_flag_spec='-Bexport'
14943 ;;
14944
14945 sysv4*MP*)
14946 if test -d /usr/nec; then
14947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948 hardcode_shlibpath_var=no
14949 runpath_var=LD_RUN_PATH
14950 hardcode_runpath_var=yes
14951 ld_shlibs=yes
14952 fi
14953 ;;
14954
14955 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14956 no_undefined_flag='${wl}-z,text'
14957 archive_cmds_need_lc=no
14958 hardcode_shlibpath_var=no
14959 runpath_var='LD_RUN_PATH'
14960
14961 if test "$GCC" = yes; then
14962 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14964 else
14965 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 fi
14968 ;;
14969
14970 sysv5* | sco3.2v5* | sco5v6*)
14971 # Note: We can NOT use -z defs as we might desire, because we do not
14972 # link with -lc, and that would cause any symbols used from libc to
14973 # always be unresolved, which means just about no library would
14974 # ever link correctly. If we're not using GNU ld we use -z text
14975 # though, which does catch some bad symbols but isn't as heavy-handed
14976 # as -z defs.
14977 no_undefined_flag='${wl}-z,text'
14978 allow_undefined_flag='${wl}-z,nodefs'
14979 archive_cmds_need_lc=no
14980 hardcode_shlibpath_var=no
14981 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14982 hardcode_libdir_separator=':'
14983 link_all_deplibs=yes
14984 export_dynamic_flag_spec='${wl}-Bexport'
14985 runpath_var='LD_RUN_PATH'
14986
14987 if test "$GCC" = yes; then
14988 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14989 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14990 else
14991 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993 fi
14994 ;;
14995
14996 uts4*)
14997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14998 hardcode_libdir_flag_spec='-L$libdir'
14999 hardcode_shlibpath_var=no
15000 ;;
15001
15002 *)
15003 ld_shlibs=no
15004 ;;
15005 esac
15006
15007 if test x$host_vendor = xsni; then
15008 case $host in
15009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15010 export_dynamic_flag_spec='${wl}-Blargedynsym'
15011 ;;
15012 esac
15013 fi
15014 fi
15015
15016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15017$as_echo "$ld_shlibs" >&6; }
15018test "$ld_shlibs" = no && can_build_shared=no
15019
15020with_gnu_ld=$with_gnu_ld
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036#
15037# Do we need to explicitly link libc?
15038#
15039case "x$archive_cmds_need_lc" in
15040x|xyes)
15041 # Assume -lc should be added
15042 archive_cmds_need_lc=yes
15043
15044 if test "$enable_shared" = yes && test "$GCC" = yes; then
15045 case $archive_cmds in
15046 *'~'*)
15047 # FIXME: we may have to deal with multi-command sequences.
15048 ;;
15049 '$CC '*)
15050 # Test whether the compiler implicitly links with -lc since on some
15051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15052 # to ld, don't add -lc before -lgcc.
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15054$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015055if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015056 $as_echo_n "(cached) " >&6
15057else
15058 $RM conftest*
15059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015060
cristy0c60a692010-11-04 01:09:47 +000015061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015062 (eval $ac_compile) 2>&5
15063 ac_status=$?
15064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15065 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015066 soname=conftest
15067 lib=conftest
15068 libobjs=conftest.$ac_objext
15069 deplibs=
15070 wl=$lt_prog_compiler_wl
15071 pic_flag=$lt_prog_compiler_pic
15072 compiler_flags=-v
15073 linker_flags=-v
15074 verstring=
15075 output_objdir=.
15076 libname=conftest
15077 lt_save_allow_undefined_flag=$allow_undefined_flag
15078 allow_undefined_flag=
15079 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 +000015080 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15081 ac_status=$?
15082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15083 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015084 then
15085 lt_cv_archive_cmds_need_lc=no
15086 else
15087 lt_cv_archive_cmds_need_lc=yes
15088 fi
15089 allow_undefined_flag=$lt_save_allow_undefined_flag
15090 else
15091 cat conftest.err 1>&5
15092 fi
15093 $RM conftest*
15094
15095fi
15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15097$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15098 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015099 ;;
15100 esac
15101 fi
15102 ;;
15103esac
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
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15262$as_echo_n "checking dynamic linker characteristics... " >&6; }
15263
15264if test "$GCC" = yes; then
15265 case $host_os in
15266 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15267 *) lt_awk_arg="/^libraries:/" ;;
15268 esac
cristy0c60a692010-11-04 01:09:47 +000015269 case $host_os in
15270 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15271 *) lt_sed_strip_eq="s,=/,/,g" ;;
15272 esac
15273 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15274 case $lt_search_path_spec in
15275 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015276 # if the path contains ";" then we assume it to be the separator
15277 # otherwise default to the standard path separator (i.e. ":") - it is
15278 # assumed that no part of a normal pathname contains ";" but that should
15279 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015280 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15281 ;;
15282 *)
15283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15284 ;;
15285 esac
cristy73bd4a52010-10-05 11:24:23 +000015286 # Ok, now we have the path, separated by spaces, we can step through it
15287 # and add multilib dir if necessary.
15288 lt_tmp_lt_search_path_spec=
15289 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15290 for lt_sys_path in $lt_search_path_spec; do
15291 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15292 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15293 else
15294 test -d "$lt_sys_path" && \
15295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15296 fi
15297 done
cristy0c60a692010-11-04 01:09:47 +000015298 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015299BEGIN {RS=" "; FS="/|\n";} {
15300 lt_foo="";
15301 lt_count=0;
15302 for (lt_i = NF; lt_i > 0; lt_i--) {
15303 if ($lt_i != "" && $lt_i != ".") {
15304 if ($lt_i == "..") {
15305 lt_count++;
15306 } else {
15307 if (lt_count == 0) {
15308 lt_foo="/" $lt_i lt_foo;
15309 } else {
15310 lt_count--;
15311 }
15312 }
15313 }
15314 }
15315 if (lt_foo != "") { lt_freq[lt_foo]++; }
15316 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15317}'`
cristy0c60a692010-11-04 01:09:47 +000015318 # AWK program above erroneously prepends '/' to C:/dos/paths
15319 # for these hosts.
15320 case $host_os in
15321 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15322 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15323 esac
15324 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015325else
15326 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15327fi
15328library_names_spec=
15329libname_spec='lib$name'
15330soname_spec=
15331shrext_cmds=".so"
15332postinstall_cmds=
15333postuninstall_cmds=
15334finish_cmds=
15335finish_eval=
15336shlibpath_var=
15337shlibpath_overrides_runpath=unknown
15338version_type=none
15339dynamic_linker="$host_os ld.so"
15340sys_lib_dlsearch_path_spec="/lib /usr/lib"
15341need_lib_prefix=unknown
15342hardcode_into_libs=no
15343
15344# when you set need_version to no, make sure it does not cause -set_version
15345# flags to be left without arguments
15346need_version=unknown
15347
15348case $host_os in
15349aix3*)
15350 version_type=linux
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15352 shlibpath_var=LIBPATH
15353
15354 # AIX 3 has no versioning support, so we append a major version to the name.
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 ;;
15357
15358aix[4-9]*)
15359 version_type=linux
15360 need_lib_prefix=no
15361 need_version=no
15362 hardcode_into_libs=yes
15363 if test "$host_cpu" = ia64; then
15364 # AIX 5 supports IA64
15365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 else
15368 # With GCC up to 2.95.x, collect2 would create an import file
15369 # for dependence libraries. The import file would start with
15370 # the line `#! .'. This would cause the generated library to
15371 # depend on `.', always an invalid library. This was fixed in
15372 # development snapshots of GCC prior to 3.0.
15373 case $host_os in
15374 aix4 | aix4.[01] | aix4.[01].*)
15375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15376 echo ' yes '
15377 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15378 :
15379 else
15380 can_build_shared=no
15381 fi
15382 ;;
15383 esac
15384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15385 # soname into executable. Probably we can add versioning support to
15386 # collect2, so additional links can be useful in future.
15387 if test "$aix_use_runtimelinking" = yes; then
15388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15389 # instead of lib<name>.a to let people know that these are not
15390 # typical AIX shared libraries.
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 else
15393 # We preserve .a as extension for shared libraries through AIX4.2
15394 # and later when we are not doing run time linking.
15395 library_names_spec='${libname}${release}.a $libname.a'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 fi
15398 shlibpath_var=LIBPATH
15399 fi
15400 ;;
15401
15402amigaos*)
15403 case $host_cpu in
15404 powerpc)
15405 # Since July 2007 AmigaOS4 officially supports .so libraries.
15406 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 ;;
15409 m68k)
15410 library_names_spec='$libname.ixlibrary $libname.a'
15411 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015412 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 +000015413 ;;
15414 esac
15415 ;;
15416
15417beos*)
15418 library_names_spec='${libname}${shared_ext}'
15419 dynamic_linker="$host_os ld.so"
15420 shlibpath_var=LIBRARY_PATH
15421 ;;
15422
15423bsdi[45]*)
15424 version_type=linux
15425 need_version=no
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15431 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15432 # the default ld.so.conf also contains /usr/contrib/lib and
15433 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15434 # libtool to hard-code these into programs
15435 ;;
15436
15437cygwin* | mingw* | pw32* | cegcc*)
15438 version_type=windows
15439 shrext_cmds=".dll"
15440 need_version=no
15441 need_lib_prefix=no
15442
cristyda16f162011-02-19 23:52:17 +000015443 case $GCC,$cc_basename in
15444 yes,*)
15445 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015446 library_names_spec='$libname.dll.a'
15447 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15448 postinstall_cmds='base_file=`basename \${file}`~
15449 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15450 dldir=$destdir/`dirname \$dlpath`~
15451 test -d \$dldir || mkdir -p \$dldir~
15452 $install_prog $dir/$dlname \$dldir/$dlname~
15453 chmod a+x \$dldir/$dlname~
15454 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15455 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15456 fi'
15457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15458 dlpath=$dir/\$dldll~
15459 $RM \$dlpath'
15460 shlibpath_overrides_runpath=yes
15461
15462 case $host_os in
15463 cygwin*)
15464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015466
15467 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015468 ;;
15469 mingw* | cegcc*)
15470 # MinGW DLLs use traditional 'lib' prefix
15471 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015472 ;;
15473 pw32*)
15474 # pw32 DLLs use 'pw' prefix rather than 'lib'
15475 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15476 ;;
15477 esac
cristyda16f162011-02-19 23:52:17 +000015478 dynamic_linker='Win32 ld.exe'
15479 ;;
15480
15481 *,cl*)
15482 # Native MSVC
15483 libname_spec='$name'
15484 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15485 library_names_spec='${libname}.dll.lib'
15486
15487 case $build_os in
15488 mingw*)
15489 sys_lib_search_path_spec=
15490 lt_save_ifs=$IFS
15491 IFS=';'
15492 for lt_path in $LIB
15493 do
15494 IFS=$lt_save_ifs
15495 # Let DOS variable expansion print the short 8.3 style file name.
15496 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15497 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15498 done
15499 IFS=$lt_save_ifs
15500 # Convert to MSYS style.
15501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15502 ;;
15503 cygwin*)
15504 # Convert to unix form, then to dos form, then back to unix form
15505 # but this time dos style (no spaces!) so that the unix form looks
15506 # like /cygdrive/c/PROGRA~1:/cygdr...
15507 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15508 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15509 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15510 ;;
15511 *)
15512 sys_lib_search_path_spec="$LIB"
15513 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15514 # It is most probably a Windows format PATH.
15515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15516 else
15517 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15518 fi
15519 # FIXME: find the short name or the path components, as spaces are
15520 # common. (e.g. "Program Files" -> "PROGRA~1")
15521 ;;
15522 esac
15523
15524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15525 postinstall_cmds='base_file=`basename \${file}`~
15526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15527 dldir=$destdir/`dirname \$dlpath`~
15528 test -d \$dldir || mkdir -p \$dldir~
15529 $install_prog $dir/$dlname \$dldir/$dlname'
15530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15531 dlpath=$dir/\$dldll~
15532 $RM \$dlpath'
15533 shlibpath_overrides_runpath=yes
15534 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015535 ;;
15536
15537 *)
cristyda16f162011-02-19 23:52:17 +000015538 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015539 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015540 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015541 ;;
15542 esac
cristy73bd4a52010-10-05 11:24:23 +000015543 # FIXME: first we should search . and the directory the executable is in
15544 shlibpath_var=PATH
15545 ;;
15546
15547darwin* | rhapsody*)
15548 dynamic_linker="$host_os dyld"
15549 version_type=darwin
15550 need_lib_prefix=no
15551 need_version=no
15552 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15553 soname_spec='${libname}${release}${major}$shared_ext'
15554 shlibpath_overrides_runpath=yes
15555 shlibpath_var=DYLD_LIBRARY_PATH
15556 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15557
15558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15559 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15560 ;;
15561
15562dgux*)
15563 version_type=linux
15564 need_lib_prefix=no
15565 need_version=no
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 shlibpath_var=LD_LIBRARY_PATH
15569 ;;
15570
15571freebsd1*)
15572 dynamic_linker=no
15573 ;;
15574
15575freebsd* | dragonfly*)
15576 # DragonFly does not have aout. When/if they implement a new
15577 # versioning mechanism, adjust this.
15578 if test -x /usr/bin/objformat; then
15579 objformat=`/usr/bin/objformat`
15580 else
15581 case $host_os in
15582 freebsd[123]*) objformat=aout ;;
15583 *) objformat=elf ;;
15584 esac
15585 fi
15586 version_type=freebsd-$objformat
15587 case $version_type in
15588 freebsd-elf*)
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15590 need_version=no
15591 need_lib_prefix=no
15592 ;;
15593 freebsd-*)
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15595 need_version=yes
15596 ;;
15597 esac
15598 shlibpath_var=LD_LIBRARY_PATH
15599 case $host_os in
15600 freebsd2*)
15601 shlibpath_overrides_runpath=yes
15602 ;;
15603 freebsd3.[01]* | freebsdelf3.[01]*)
15604 shlibpath_overrides_runpath=yes
15605 hardcode_into_libs=yes
15606 ;;
15607 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15608 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15609 shlibpath_overrides_runpath=no
15610 hardcode_into_libs=yes
15611 ;;
15612 *) # from 4.6 on, and DragonFly
15613 shlibpath_overrides_runpath=yes
15614 hardcode_into_libs=yes
15615 ;;
15616 esac
15617 ;;
15618
15619gnu*)
15620 version_type=linux
15621 need_lib_prefix=no
15622 need_version=no
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 shlibpath_var=LD_LIBRARY_PATH
15626 hardcode_into_libs=yes
15627 ;;
15628
cristy0c60a692010-11-04 01:09:47 +000015629haiku*)
15630 version_type=linux
15631 need_lib_prefix=no
15632 need_version=no
15633 dynamic_linker="$host_os runtime_loader"
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 shlibpath_var=LIBRARY_PATH
15637 shlibpath_overrides_runpath=yes
15638 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15639 hardcode_into_libs=yes
15640 ;;
15641
cristy73bd4a52010-10-05 11:24:23 +000015642hpux9* | hpux10* | hpux11*)
15643 # Give a soname corresponding to the major version so that dld.sl refuses to
15644 # link against other versions.
15645 version_type=sunos
15646 need_lib_prefix=no
15647 need_version=no
15648 case $host_cpu in
15649 ia64*)
15650 shrext_cmds='.so'
15651 hardcode_into_libs=yes
15652 dynamic_linker="$host_os dld.so"
15653 shlibpath_var=LD_LIBRARY_PATH
15654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 if test "X$HPUX_IA64_MODE" = X32; then
15658 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15659 else
15660 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15661 fi
15662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15663 ;;
15664 hppa*64*)
15665 shrext_cmds='.sl'
15666 hardcode_into_libs=yes
15667 dynamic_linker="$host_os dld.sl"
15668 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 soname_spec='${libname}${release}${shared_ext}$major'
15672 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15674 ;;
15675 *)
15676 shrext_cmds='.sl'
15677 dynamic_linker="$host_os dld.sl"
15678 shlibpath_var=SHLIB_PATH
15679 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 ;;
15683 esac
cristy0c60a692010-11-04 01:09:47 +000015684 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015685 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015686 # or fails outright, so override atomically:
15687 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015688 ;;
15689
15690interix[3-9]*)
15691 version_type=linux
15692 need_lib_prefix=no
15693 need_version=no
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15695 soname_spec='${libname}${release}${shared_ext}$major'
15696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=no
15699 hardcode_into_libs=yes
15700 ;;
15701
15702irix5* | irix6* | nonstopux*)
15703 case $host_os in
15704 nonstopux*) version_type=nonstopux ;;
15705 *)
15706 if test "$lt_cv_prog_gnu_ld" = yes; then
15707 version_type=linux
15708 else
15709 version_type=irix
15710 fi ;;
15711 esac
15712 need_lib_prefix=no
15713 need_version=no
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15716 case $host_os in
15717 irix5* | nonstopux*)
15718 libsuff= shlibsuff=
15719 ;;
15720 *)
15721 case $LD in # libtool.m4 will add one of these switches to LD
15722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15723 libsuff= shlibsuff= libmagic=32-bit;;
15724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15725 libsuff=32 shlibsuff=N32 libmagic=N32;;
15726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15727 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15728 *) libsuff= shlibsuff= libmagic=never-match;;
15729 esac
15730 ;;
15731 esac
15732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15733 shlibpath_overrides_runpath=no
15734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15736 hardcode_into_libs=yes
15737 ;;
15738
15739# No shared lib support for Linux oldld, aout, or coff.
15740linux*oldld* | linux*aout* | linux*coff*)
15741 dynamic_linker=no
15742 ;;
15743
15744# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015745linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015746 version_type=linux
15747 need_lib_prefix=no
15748 need_version=no
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015754
cristy73bd4a52010-10-05 11:24:23 +000015755 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015756 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015757 $as_echo_n "(cached) " >&6
15758else
15759 lt_cv_shlibpath_overrides_runpath=no
15760 save_LDFLAGS=$LDFLAGS
15761 save_libdir=$libdir
15762 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15763 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015765/* end confdefs.h. */
15766
15767int
15768main ()
15769{
15770
15771 ;
15772 return 0;
15773}
15774_ACEOF
15775if ac_fn_c_try_link "$LINENO"; then :
15776 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015777 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015778fi
15779fi
15780rm -f core conftest.err conftest.$ac_objext \
15781 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015782 LDFLAGS=$save_LDFLAGS
15783 libdir=$save_libdir
15784
15785fi
15786
15787 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015788
15789 # This implies no fast_install, which is unacceptable.
15790 # Some rework will be needed to allow for fast_install
15791 # before this can be enabled.
15792 hardcode_into_libs=yes
15793
15794 # Add ABI-specific directories to the system library path.
15795 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15796
15797 # Append ld.so.conf contents to the search path
15798 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015799 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 +000015800 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015801
cristy73bd4a52010-10-05 11:24:23 +000015802 fi
15803
15804 # We used to test for /lib/ld.so.1 and disable shared libraries on
15805 # powerpc, because MkLinux only supported shared libraries with the
15806 # GNU dynamic linker. Since this was broken with cross compilers,
15807 # most powerpc-linux boxes support dynamic linking these days and
15808 # people can always --disable-shared, the test was removed, and we
15809 # assume the GNU/Linux dynamic linker is in use.
15810 dynamic_linker='GNU/Linux ld.so'
15811 ;;
15812
15813netbsd*)
15814 version_type=sunos
15815 need_lib_prefix=no
15816 need_version=no
15817 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15820 dynamic_linker='NetBSD (a.out) ld.so'
15821 else
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 dynamic_linker='NetBSD ld.elf_so'
15825 fi
15826 shlibpath_var=LD_LIBRARY_PATH
15827 shlibpath_overrides_runpath=yes
15828 hardcode_into_libs=yes
15829 ;;
15830
15831newsos6)
15832 version_type=linux
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 shlibpath_var=LD_LIBRARY_PATH
15835 shlibpath_overrides_runpath=yes
15836 ;;
15837
15838*nto* | *qnx*)
15839 version_type=qnx
15840 need_lib_prefix=no
15841 need_version=no
15842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843 soname_spec='${libname}${release}${shared_ext}$major'
15844 shlibpath_var=LD_LIBRARY_PATH
15845 shlibpath_overrides_runpath=no
15846 hardcode_into_libs=yes
15847 dynamic_linker='ldqnx.so'
15848 ;;
15849
15850openbsd*)
15851 version_type=sunos
15852 sys_lib_dlsearch_path_spec="/usr/lib"
15853 need_lib_prefix=no
15854 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15855 case $host_os in
15856 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15857 *) need_version=no ;;
15858 esac
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15861 shlibpath_var=LD_LIBRARY_PATH
15862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15863 case $host_os in
15864 openbsd2.[89] | openbsd2.[89].*)
15865 shlibpath_overrides_runpath=no
15866 ;;
15867 *)
15868 shlibpath_overrides_runpath=yes
15869 ;;
15870 esac
15871 else
15872 shlibpath_overrides_runpath=yes
15873 fi
15874 ;;
15875
15876os2*)
15877 libname_spec='$name'
15878 shrext_cmds=".dll"
15879 need_lib_prefix=no
15880 library_names_spec='$libname${shared_ext} $libname.a'
15881 dynamic_linker='OS/2 ld.exe'
15882 shlibpath_var=LIBPATH
15883 ;;
15884
15885osf3* | osf4* | osf5*)
15886 version_type=osf
15887 need_lib_prefix=no
15888 need_version=no
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891 shlibpath_var=LD_LIBRARY_PATH
15892 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15893 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15894 ;;
15895
15896rdos*)
15897 dynamic_linker=no
15898 ;;
15899
15900solaris*)
15901 version_type=linux
15902 need_lib_prefix=no
15903 need_version=no
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905 soname_spec='${libname}${release}${shared_ext}$major'
15906 shlibpath_var=LD_LIBRARY_PATH
15907 shlibpath_overrides_runpath=yes
15908 hardcode_into_libs=yes
15909 # ldd complains unless libraries are executable
15910 postinstall_cmds='chmod +x $lib'
15911 ;;
15912
15913sunos4*)
15914 version_type=sunos
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15916 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15917 shlibpath_var=LD_LIBRARY_PATH
15918 shlibpath_overrides_runpath=yes
15919 if test "$with_gnu_ld" = yes; then
15920 need_lib_prefix=no
15921 fi
15922 need_version=yes
15923 ;;
15924
15925sysv4 | sysv4.3*)
15926 version_type=linux
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 shlibpath_var=LD_LIBRARY_PATH
15930 case $host_vendor in
15931 sni)
15932 shlibpath_overrides_runpath=no
15933 need_lib_prefix=no
15934 runpath_var=LD_RUN_PATH
15935 ;;
15936 siemens)
15937 need_lib_prefix=no
15938 ;;
15939 motorola)
15940 need_lib_prefix=no
15941 need_version=no
15942 shlibpath_overrides_runpath=no
15943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15944 ;;
15945 esac
15946 ;;
15947
15948sysv4*MP*)
15949 if test -d /usr/nec ;then
15950 version_type=linux
15951 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15952 soname_spec='$libname${shared_ext}.$major'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 fi
15955 ;;
15956
15957sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15958 version_type=freebsd-elf
15959 need_lib_prefix=no
15960 need_version=no
15961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15962 soname_spec='${libname}${release}${shared_ext}$major'
15963 shlibpath_var=LD_LIBRARY_PATH
15964 shlibpath_overrides_runpath=yes
15965 hardcode_into_libs=yes
15966 if test "$with_gnu_ld" = yes; then
15967 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15968 else
15969 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15970 case $host_os in
15971 sco3.2v5*)
15972 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15973 ;;
15974 esac
15975 fi
15976 sys_lib_dlsearch_path_spec='/usr/lib'
15977 ;;
15978
15979tpf*)
15980 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15981 version_type=linux
15982 need_lib_prefix=no
15983 need_version=no
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985 shlibpath_var=LD_LIBRARY_PATH
15986 shlibpath_overrides_runpath=no
15987 hardcode_into_libs=yes
15988 ;;
15989
15990uts4*)
15991 version_type=linux
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 ;;
15996
15997*)
15998 dynamic_linker=no
15999 ;;
16000esac
16001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16002$as_echo "$dynamic_linker" >&6; }
16003test "$dynamic_linker" = no && can_build_shared=no
16004
16005variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16006if test "$GCC" = yes; then
16007 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16008fi
16009
16010if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16011 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16012fi
16013if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16014 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16015fi
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
cristy0c60a692010-11-04 01:09:47 +000016103
16104
16105
16106
16107
cristy73bd4a52010-10-05 11:24:23 +000016108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16109$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16110hardcode_action=
16111if test -n "$hardcode_libdir_flag_spec" ||
16112 test -n "$runpath_var" ||
16113 test "X$hardcode_automatic" = "Xyes" ; then
16114
16115 # We can hardcode non-existent directories.
16116 if test "$hardcode_direct" != no &&
16117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16118 # have to relink, otherwise we might link with an installed library
16119 # when we should be linking with a yet-to-be-installed one
16120 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16121 test "$hardcode_minus_L" != no; then
16122 # Linking always hardcodes the temporary library directory.
16123 hardcode_action=relink
16124 else
16125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16126 hardcode_action=immediate
16127 fi
16128else
16129 # We cannot hardcode anything, or else we can only hardcode existing
16130 # directories.
16131 hardcode_action=unsupported
16132fi
16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16134$as_echo "$hardcode_action" >&6; }
16135
16136if test "$hardcode_action" = relink ||
16137 test "$inherit_rpath" = yes; then
16138 # Fast installation is not supported
16139 enable_fast_install=no
16140elif test "$shlibpath_overrides_runpath" = yes ||
16141 test "$enable_shared" = no; then
16142 # Fast installation is not necessary
16143 enable_fast_install=needless
16144fi
16145
16146
16147
16148
16149
16150
16151 if test "x$enable_dlopen" != xyes; then
16152 enable_dlopen=unknown
16153 enable_dlopen_self=unknown
16154 enable_dlopen_self_static=unknown
16155else
16156 lt_cv_dlopen=no
16157 lt_cv_dlopen_libs=
16158
16159 case $host_os in
16160 beos*)
16161 lt_cv_dlopen="load_add_on"
16162 lt_cv_dlopen_libs=
16163 lt_cv_dlopen_self=yes
16164 ;;
16165
16166 mingw* | pw32* | cegcc*)
16167 lt_cv_dlopen="LoadLibrary"
16168 lt_cv_dlopen_libs=
16169 ;;
16170
16171 cygwin*)
16172 lt_cv_dlopen="dlopen"
16173 lt_cv_dlopen_libs=
16174 ;;
16175
16176 darwin*)
16177 # if libdl is installed we need to link against it
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16179$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016180if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016181 $as_echo_n "(cached) " >&6
16182else
16183 ac_check_lib_save_LIBS=$LIBS
16184LIBS="-ldl $LIBS"
16185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186/* end confdefs.h. */
16187
16188/* Override any GCC internal prototype to avoid an error.
16189 Use char because int might match the return type of a GCC
16190 builtin and then its argument prototype would still apply. */
16191#ifdef __cplusplus
16192extern "C"
16193#endif
16194char dlopen ();
16195int
16196main ()
16197{
16198return dlopen ();
16199 ;
16200 return 0;
16201}
16202_ACEOF
16203if ac_fn_c_try_link "$LINENO"; then :
16204 ac_cv_lib_dl_dlopen=yes
16205else
16206 ac_cv_lib_dl_dlopen=no
16207fi
16208rm -f core conftest.err conftest.$ac_objext \
16209 conftest$ac_exeext conftest.$ac_ext
16210LIBS=$ac_check_lib_save_LIBS
16211fi
16212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16213$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016214if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016215 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16216else
16217
16218 lt_cv_dlopen="dyld"
16219 lt_cv_dlopen_libs=
16220 lt_cv_dlopen_self=yes
16221
16222fi
16223
16224 ;;
16225
16226 *)
16227 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016228if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016229 lt_cv_dlopen="shl_load"
16230else
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16232$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016233if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016234 $as_echo_n "(cached) " >&6
16235else
16236 ac_check_lib_save_LIBS=$LIBS
16237LIBS="-ldld $LIBS"
16238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239/* end confdefs.h. */
16240
16241/* Override any GCC internal prototype to avoid an error.
16242 Use char because int might match the return type of a GCC
16243 builtin and then its argument prototype would still apply. */
16244#ifdef __cplusplus
16245extern "C"
16246#endif
16247char shl_load ();
16248int
16249main ()
16250{
16251return shl_load ();
16252 ;
16253 return 0;
16254}
16255_ACEOF
16256if ac_fn_c_try_link "$LINENO"; then :
16257 ac_cv_lib_dld_shl_load=yes
16258else
16259 ac_cv_lib_dld_shl_load=no
16260fi
16261rm -f core conftest.err conftest.$ac_objext \
16262 conftest$ac_exeext conftest.$ac_ext
16263LIBS=$ac_check_lib_save_LIBS
16264fi
16265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16266$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016267if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016268 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16269else
16270 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016271if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016272 lt_cv_dlopen="dlopen"
16273else
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16275$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016276if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016277 $as_echo_n "(cached) " >&6
16278else
16279 ac_check_lib_save_LIBS=$LIBS
16280LIBS="-ldl $LIBS"
16281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282/* end confdefs.h. */
16283
16284/* Override any GCC internal prototype to avoid an error.
16285 Use char because int might match the return type of a GCC
16286 builtin and then its argument prototype would still apply. */
16287#ifdef __cplusplus
16288extern "C"
16289#endif
16290char dlopen ();
16291int
16292main ()
16293{
16294return dlopen ();
16295 ;
16296 return 0;
16297}
16298_ACEOF
16299if ac_fn_c_try_link "$LINENO"; then :
16300 ac_cv_lib_dl_dlopen=yes
16301else
16302 ac_cv_lib_dl_dlopen=no
16303fi
16304rm -f core conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16306LIBS=$ac_check_lib_save_LIBS
16307fi
16308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16309$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016310if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16312else
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16314$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016315if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016316 $as_echo_n "(cached) " >&6
16317else
16318 ac_check_lib_save_LIBS=$LIBS
16319LIBS="-lsvld $LIBS"
16320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321/* end confdefs.h. */
16322
16323/* Override any GCC internal prototype to avoid an error.
16324 Use char because int might match the return type of a GCC
16325 builtin and then its argument prototype would still apply. */
16326#ifdef __cplusplus
16327extern "C"
16328#endif
16329char dlopen ();
16330int
16331main ()
16332{
16333return dlopen ();
16334 ;
16335 return 0;
16336}
16337_ACEOF
16338if ac_fn_c_try_link "$LINENO"; then :
16339 ac_cv_lib_svld_dlopen=yes
16340else
16341 ac_cv_lib_svld_dlopen=no
16342fi
16343rm -f core conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
16345LIBS=$ac_check_lib_save_LIBS
16346fi
16347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16348$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016349if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16351else
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16353$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016354if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016355 $as_echo_n "(cached) " >&6
16356else
16357 ac_check_lib_save_LIBS=$LIBS
16358LIBS="-ldld $LIBS"
16359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360/* end confdefs.h. */
16361
16362/* Override any GCC internal prototype to avoid an error.
16363 Use char because int might match the return type of a GCC
16364 builtin and then its argument prototype would still apply. */
16365#ifdef __cplusplus
16366extern "C"
16367#endif
16368char dld_link ();
16369int
16370main ()
16371{
16372return dld_link ();
16373 ;
16374 return 0;
16375}
16376_ACEOF
16377if ac_fn_c_try_link "$LINENO"; then :
16378 ac_cv_lib_dld_dld_link=yes
16379else
16380 ac_cv_lib_dld_dld_link=no
16381fi
16382rm -f core conftest.err conftest.$ac_objext \
16383 conftest$ac_exeext conftest.$ac_ext
16384LIBS=$ac_check_lib_save_LIBS
16385fi
16386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16387$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016388if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016389 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16390fi
16391
16392
16393fi
16394
16395
16396fi
16397
16398
16399fi
16400
16401
16402fi
16403
16404
16405fi
16406
16407 ;;
16408 esac
16409
16410 if test "x$lt_cv_dlopen" != xno; then
16411 enable_dlopen=yes
16412 else
16413 enable_dlopen=no
16414 fi
16415
16416 case $lt_cv_dlopen in
16417 dlopen)
16418 save_CPPFLAGS="$CPPFLAGS"
16419 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16420
16421 save_LDFLAGS="$LDFLAGS"
16422 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16423
16424 save_LIBS="$LIBS"
16425 LIBS="$lt_cv_dlopen_libs $LIBS"
16426
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16428$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016429if ${lt_cv_dlopen_self+:} 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=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=yes ;;
16516 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16517 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16518 esac
16519 else :
16520 # compilation failed
16521 lt_cv_dlopen_self=no
16522 fi
16523fi
16524rm -fr conftest*
16525
16526
16527fi
16528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16529$as_echo "$lt_cv_dlopen_self" >&6; }
16530
16531 if test "x$lt_cv_dlopen_self" = xyes; then
16532 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16534$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016535if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016536 $as_echo_n "(cached) " >&6
16537else
16538 if test "$cross_compiling" = yes; then :
16539 lt_cv_dlopen_self_static=cross
16540else
16541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16542 lt_status=$lt_dlunknown
16543 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016544#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016545#include "confdefs.h"
16546
16547#if HAVE_DLFCN_H
16548#include <dlfcn.h>
16549#endif
16550
16551#include <stdio.h>
16552
16553#ifdef RTLD_GLOBAL
16554# define LT_DLGLOBAL RTLD_GLOBAL
16555#else
16556# ifdef DL_GLOBAL
16557# define LT_DLGLOBAL DL_GLOBAL
16558# else
16559# define LT_DLGLOBAL 0
16560# endif
16561#endif
16562
16563/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16564 find out it does not work in some platform. */
16565#ifndef LT_DLLAZY_OR_NOW
16566# ifdef RTLD_LAZY
16567# define LT_DLLAZY_OR_NOW RTLD_LAZY
16568# else
16569# ifdef DL_LAZY
16570# define LT_DLLAZY_OR_NOW DL_LAZY
16571# else
16572# ifdef RTLD_NOW
16573# define LT_DLLAZY_OR_NOW RTLD_NOW
16574# else
16575# ifdef DL_NOW
16576# define LT_DLLAZY_OR_NOW DL_NOW
16577# else
16578# define LT_DLLAZY_OR_NOW 0
16579# endif
16580# endif
16581# endif
16582# endif
16583#endif
16584
cristy0c60a692010-11-04 01:09:47 +000016585/* When -fvisbility=hidden is used, assume the code has been annotated
16586 correspondingly for the symbols needed. */
16587#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016588int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016589#endif
16590
cristyda16f162011-02-19 23:52:17 +000016591int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016592int main ()
16593{
16594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16595 int status = $lt_dlunknown;
16596
16597 if (self)
16598 {
16599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016600 else
16601 {
16602 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16603 else puts (dlerror ());
16604 }
cristy73bd4a52010-10-05 11:24:23 +000016605 /* dlclose (self); */
16606 }
16607 else
16608 puts (dlerror ());
16609
16610 return status;
16611}
16612_LT_EOF
16613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16614 (eval $ac_link) 2>&5
16615 ac_status=$?
16616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16617 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16618 (./conftest; exit; ) >&5 2>/dev/null
16619 lt_status=$?
16620 case x$lt_status in
16621 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16622 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16623 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16624 esac
16625 else :
16626 # compilation failed
16627 lt_cv_dlopen_self_static=no
16628 fi
16629fi
16630rm -fr conftest*
16631
16632
16633fi
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16635$as_echo "$lt_cv_dlopen_self_static" >&6; }
16636 fi
16637
16638 CPPFLAGS="$save_CPPFLAGS"
16639 LDFLAGS="$save_LDFLAGS"
16640 LIBS="$save_LIBS"
16641 ;;
16642 esac
16643
16644 case $lt_cv_dlopen_self in
16645 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16646 *) enable_dlopen_self=unknown ;;
16647 esac
16648
16649 case $lt_cv_dlopen_self_static in
16650 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16651 *) enable_dlopen_self_static=unknown ;;
16652 esac
16653fi
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671striplib=
16672old_striplib=
16673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16674$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16675if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16677 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16679$as_echo "yes" >&6; }
16680else
16681# FIXME - insert some real tests, host_os isn't really good enough
16682 case $host_os in
16683 darwin*)
16684 if test -n "$STRIP" ; then
16685 striplib="$STRIP -x"
16686 old_striplib="$STRIP -S"
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16688$as_echo "yes" >&6; }
16689 else
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691$as_echo "no" >&6; }
16692 fi
16693 ;;
16694 *)
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16696$as_echo "no" >&6; }
16697 ;;
16698 esac
16699fi
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712 # Report which library types will actually be built
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16714$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16716$as_echo "$can_build_shared" >&6; }
16717
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16719$as_echo_n "checking whether to build shared libraries... " >&6; }
16720 test "$can_build_shared" = "no" && enable_shared=no
16721
16722 # On AIX, shared libraries and static libraries use the same namespace, and
16723 # are all built from PIC.
16724 case $host_os in
16725 aix3*)
16726 test "$enable_shared" = yes && enable_static=no
16727 if test -n "$RANLIB"; then
16728 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16729 postinstall_cmds='$RANLIB $lib'
16730 fi
16731 ;;
16732
16733 aix[4-9]*)
16734 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16735 test "$enable_shared" = yes && enable_static=no
16736 fi
16737 ;;
16738 esac
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16740$as_echo "$enable_shared" >&6; }
16741
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16743$as_echo_n "checking whether to build static libraries... " >&6; }
16744 # Make sure either enable_shared or enable_static is yes.
16745 test "$enable_shared" = yes || enable_static=yes
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16747$as_echo "$enable_static" >&6; }
16748
16749
16750
16751
16752fi
16753ac_ext=c
16754ac_cpp='$CPP $CPPFLAGS'
16755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16757ac_compiler_gnu=$ac_cv_c_compiler_gnu
16758
16759CC="$lt_save_CC"
16760
cristy0c60a692010-11-04 01:09:47 +000016761 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16762 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16763 (test "X$CXX" != "Xg++"))) ; then
16764 ac_ext=cpp
16765ac_cpp='$CXXCPP $CPPFLAGS'
16766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16770$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16771if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016772 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016773 $as_echo_n "(cached) " >&6
16774else
16775 # Double quotes because CXXCPP needs to be expanded
16776 for CXXCPP in "$CXX -E" "/lib/cpp"
16777 do
16778 ac_preproc_ok=false
16779for ac_cxx_preproc_warn_flag in '' yes
16780do
16781 # Use a header file that comes with gcc, so configuring glibc
16782 # with a fresh cross-compiler works.
16783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16784 # <limits.h> exists even on freestanding compilers.
16785 # On the NeXT, cc -E runs the code through the compiler's parser,
16786 # not just through cpp. "Syntax error" is here to catch this case.
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788/* end confdefs.h. */
16789#ifdef __STDC__
16790# include <limits.h>
16791#else
16792# include <assert.h>
16793#endif
16794 Syntax error
16795_ACEOF
16796if ac_fn_cxx_try_cpp "$LINENO"; then :
16797
16798else
16799 # Broken: fails on valid input.
16800continue
16801fi
cristyda16f162011-02-19 23:52:17 +000016802rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016803
16804 # OK, works on sane cases. Now check whether nonexistent headers
16805 # can be detected and how.
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807/* end confdefs.h. */
16808#include <ac_nonexistent.h>
16809_ACEOF
16810if ac_fn_cxx_try_cpp "$LINENO"; then :
16811 # Broken: success on invalid input.
16812continue
16813else
16814 # Passes both tests.
16815ac_preproc_ok=:
16816break
16817fi
cristyda16f162011-02-19 23:52:17 +000016818rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016819
16820done
16821# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016822rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016823if $ac_preproc_ok; then :
16824 break
16825fi
16826
16827 done
16828 ac_cv_prog_CXXCPP=$CXXCPP
16829
16830fi
16831 CXXCPP=$ac_cv_prog_CXXCPP
16832else
16833 ac_cv_prog_CXXCPP=$CXXCPP
16834fi
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16836$as_echo "$CXXCPP" >&6; }
16837ac_preproc_ok=false
16838for ac_cxx_preproc_warn_flag in '' yes
16839do
16840 # Use a header file that comes with gcc, so configuring glibc
16841 # with a fresh cross-compiler works.
16842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16843 # <limits.h> exists even on freestanding compilers.
16844 # On the NeXT, cc -E runs the code through the compiler's parser,
16845 # not just through cpp. "Syntax error" is here to catch this case.
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847/* end confdefs.h. */
16848#ifdef __STDC__
16849# include <limits.h>
16850#else
16851# include <assert.h>
16852#endif
16853 Syntax error
16854_ACEOF
16855if ac_fn_cxx_try_cpp "$LINENO"; then :
16856
16857else
16858 # Broken: fails on valid input.
16859continue
16860fi
cristyda16f162011-02-19 23:52:17 +000016861rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016862
16863 # OK, works on sane cases. Now check whether nonexistent headers
16864 # can be detected and how.
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866/* end confdefs.h. */
16867#include <ac_nonexistent.h>
16868_ACEOF
16869if ac_fn_cxx_try_cpp "$LINENO"; then :
16870 # Broken: success on invalid input.
16871continue
16872else
16873 # Passes both tests.
16874ac_preproc_ok=:
16875break
16876fi
cristyda16f162011-02-19 23:52:17 +000016877rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016878
16879done
16880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016881rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016882if $ac_preproc_ok; then :
16883
16884else
16885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16887as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16888See \`config.log' for more details" "$LINENO" 5; }
16889fi
16890
16891ac_ext=c
16892ac_cpp='$CPP $CPPFLAGS'
16893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16895ac_compiler_gnu=$ac_cv_c_compiler_gnu
16896
16897else
16898 _lt_caught_CXX_error=yes
16899fi
cristy73bd4a52010-10-05 11:24:23 +000016900
16901ac_ext=cpp
16902ac_cpp='$CXXCPP $CPPFLAGS'
16903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16906
16907archive_cmds_need_lc_CXX=no
16908allow_undefined_flag_CXX=
16909always_export_symbols_CXX=no
16910archive_expsym_cmds_CXX=
16911compiler_needs_object_CXX=no
16912export_dynamic_flag_spec_CXX=
16913hardcode_direct_CXX=no
16914hardcode_direct_absolute_CXX=no
16915hardcode_libdir_flag_spec_CXX=
16916hardcode_libdir_flag_spec_ld_CXX=
16917hardcode_libdir_separator_CXX=
16918hardcode_minus_L_CXX=no
16919hardcode_shlibpath_var_CXX=unsupported
16920hardcode_automatic_CXX=no
16921inherit_rpath_CXX=no
16922module_cmds_CXX=
16923module_expsym_cmds_CXX=
16924link_all_deplibs_CXX=unknown
16925old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016926reload_flag_CXX=$reload_flag
16927reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016928no_undefined_flag_CXX=
16929whole_archive_flag_spec_CXX=
16930enable_shared_with_static_runtimes_CXX=no
16931
16932# Source file extension for C++ test sources.
16933ac_ext=cpp
16934
16935# Object file extension for compiled C++ test sources.
16936objext=o
16937objext_CXX=$objext
16938
16939# No sense in running all these tests if we already determined that
16940# the CXX compiler isn't working. Some variables (like enable_shared)
16941# are currently assumed to apply to all compilers on this platform,
16942# and will be corrupted by setting them based on a non-working compiler.
16943if test "$_lt_caught_CXX_error" != yes; then
16944 # Code to be used in simple compile tests
16945 lt_simple_compile_test_code="int some_variable = 0;"
16946
16947 # Code to be used in simple link tests
16948 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16949
16950 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16951
16952
16953
16954
16955
16956
16957# If no C compiler was specified, use CC.
16958LTCC=${LTCC-"$CC"}
16959
16960# If no C compiler flags were specified, use CFLAGS.
16961LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16962
16963# Allow CC to be a program name with arguments.
16964compiler=$CC
16965
16966
16967 # save warnings/boilerplate of simple test code
16968 ac_outfile=conftest.$ac_objext
16969echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16970eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16971_lt_compiler_boilerplate=`cat conftest.err`
16972$RM conftest*
16973
16974 ac_outfile=conftest.$ac_objext
16975echo "$lt_simple_link_test_code" >conftest.$ac_ext
16976eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16977_lt_linker_boilerplate=`cat conftest.err`
16978$RM -r conftest*
16979
16980
16981 # Allow CC to be a program name with arguments.
16982 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016983 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016984 lt_save_LD=$LD
16985 lt_save_GCC=$GCC
16986 GCC=$GXX
16987 lt_save_with_gnu_ld=$with_gnu_ld
16988 lt_save_path_LD=$lt_cv_path_LD
16989 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16990 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16991 else
16992 $as_unset lt_cv_prog_gnu_ld
16993 fi
16994 if test -n "${lt_cv_path_LDCXX+set}"; then
16995 lt_cv_path_LD=$lt_cv_path_LDCXX
16996 else
16997 $as_unset lt_cv_path_LD
16998 fi
16999 test -z "${LDCXX+set}" || LD=$LDCXX
17000 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017001 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017002 compiler=$CC
17003 compiler_CXX=$CC
17004 for cc_temp in $compiler""; do
17005 case $cc_temp in
17006 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17007 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17008 \-*) ;;
17009 *) break;;
17010 esac
17011done
cristy0c60a692010-11-04 01:09:47 +000017012cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017013
17014
17015 if test -n "$compiler"; then
17016 # We don't want -fno-exception when compiling C++ code, so set the
17017 # no_builtin_flag separately
17018 if test "$GXX" = yes; then
17019 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17020 else
17021 lt_prog_compiler_no_builtin_flag_CXX=
17022 fi
17023
17024 if test "$GXX" = yes; then
17025 # Set up default GNU C++ configuration
17026
17027
17028
17029# Check whether --with-gnu-ld was given.
17030if test "${with_gnu_ld+set}" = set; then :
17031 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17032else
17033 with_gnu_ld=no
17034fi
17035
17036ac_prog=ld
17037if test "$GCC" = yes; then
17038 # Check if gcc -print-prog-name=ld gives a path.
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17040$as_echo_n "checking for ld used by $CC... " >&6; }
17041 case $host in
17042 *-*-mingw*)
17043 # gcc leaves a trailing carriage return which upsets mingw
17044 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17045 *)
17046 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17047 esac
17048 case $ac_prog in
17049 # Accept absolute paths.
17050 [\\/]* | ?:[\\/]*)
17051 re_direlt='/[^/][^/]*/\.\./'
17052 # Canonicalize the pathname of ld
17053 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17054 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17055 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17056 done
17057 test -z "$LD" && LD="$ac_prog"
17058 ;;
17059 "")
17060 # If it fails, then pretend we aren't using GCC.
17061 ac_prog=ld
17062 ;;
17063 *)
17064 # If it is relative, then search for the first ld in PATH.
17065 with_gnu_ld=unknown
17066 ;;
17067 esac
17068elif test "$with_gnu_ld" = yes; then
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17070$as_echo_n "checking for GNU ld... " >&6; }
17071else
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17073$as_echo_n "checking for non-GNU ld... " >&6; }
17074fi
cristyda16f162011-02-19 23:52:17 +000017075if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017076 $as_echo_n "(cached) " >&6
17077else
17078 if test -z "$LD"; then
17079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17080 for ac_dir in $PATH; do
17081 IFS="$lt_save_ifs"
17082 test -z "$ac_dir" && ac_dir=.
17083 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17084 lt_cv_path_LD="$ac_dir/$ac_prog"
17085 # Check to see if the program is GNU ld. I'd rather use --version,
17086 # but apparently some variants of GNU ld only accept -v.
17087 # Break only if it was the GNU/non-GNU ld that we prefer.
17088 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17089 *GNU* | *'with BFD'*)
17090 test "$with_gnu_ld" != no && break
17091 ;;
17092 *)
17093 test "$with_gnu_ld" != yes && break
17094 ;;
17095 esac
17096 fi
17097 done
17098 IFS="$lt_save_ifs"
17099else
17100 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17101fi
17102fi
17103
17104LD="$lt_cv_path_LD"
17105if test -n "$LD"; then
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17107$as_echo "$LD" >&6; }
17108else
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17110$as_echo "no" >&6; }
17111fi
cristy98dddb52010-11-04 00:30:15 +000017112test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17114$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017115if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017116 $as_echo_n "(cached) " >&6
17117else
17118 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17119case `$LD -v 2>&1 </dev/null` in
17120*GNU* | *'with BFD'*)
17121 lt_cv_prog_gnu_ld=yes
17122 ;;
17123*)
17124 lt_cv_prog_gnu_ld=no
17125 ;;
17126esac
17127fi
17128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17129$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17130with_gnu_ld=$lt_cv_prog_gnu_ld
17131
17132
17133
17134
17135
17136
17137
17138 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17139 # archiving commands below assume that GNU ld is being used.
17140 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017141 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17142 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 +000017143
17144 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17145 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17146
17147 # If archive_cmds runs LD, not CC, wlarc should be empty
17148 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17149 # investigate it a little bit more. (MM)
17150 wlarc='${wl}'
17151
17152 # ancient GNU ld didn't support --whole-archive et. al.
17153 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17154 $GREP 'no-whole-archive' > /dev/null; then
17155 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17156 else
17157 whole_archive_flag_spec_CXX=
17158 fi
17159 else
17160 with_gnu_ld=no
17161 wlarc=
17162
17163 # A generic and very simple default shared library creation
17164 # command for GNU C++ for the case where it uses the native
17165 # linker, instead of GNU ld. If possible, this setting should
17166 # overridden to take advantage of the native linker features on
17167 # the platform it is being used on.
17168 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17169 fi
17170
17171 # Commands to make compiler produce verbose output that lists
17172 # what "hidden" libraries, object files and flags are used when
17173 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017174 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017175
17176 else
17177 GXX=no
17178 with_gnu_ld=no
17179 wlarc=
17180 fi
17181
17182 # PORTME: fill in a description of your system's C++ link characteristics
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17184$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17185 ld_shlibs_CXX=yes
17186 case $host_os in
17187 aix3*)
17188 # FIXME: insert proper C++ library support
17189 ld_shlibs_CXX=no
17190 ;;
17191 aix[4-9]*)
17192 if test "$host_cpu" = ia64; then
17193 # On IA64, the linker does run time linking by default, so we don't
17194 # have to do anything special.
17195 aix_use_runtimelinking=no
17196 exp_sym_flag='-Bexport'
17197 no_entry_flag=""
17198 else
17199 aix_use_runtimelinking=no
17200
17201 # Test if we are trying to use run time linking or normal
17202 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17203 # need to do runtime linking.
17204 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17205 for ld_flag in $LDFLAGS; do
17206 case $ld_flag in
17207 *-brtl*)
17208 aix_use_runtimelinking=yes
17209 break
17210 ;;
17211 esac
17212 done
17213 ;;
17214 esac
17215
17216 exp_sym_flag='-bexport'
17217 no_entry_flag='-bnoentry'
17218 fi
17219
17220 # When large executables or shared objects are built, AIX ld can
17221 # have problems creating the table of contents. If linking a library
17222 # or program results in "error TOC overflow" add -mminimal-toc to
17223 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17224 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17225
17226 archive_cmds_CXX=''
17227 hardcode_direct_CXX=yes
17228 hardcode_direct_absolute_CXX=yes
17229 hardcode_libdir_separator_CXX=':'
17230 link_all_deplibs_CXX=yes
17231 file_list_spec_CXX='${wl}-f,'
17232
17233 if test "$GXX" = yes; then
17234 case $host_os in aix4.[012]|aix4.[012].*)
17235 # We only want to do this on AIX 4.2 and lower, the check
17236 # below for broken collect2 doesn't work under 4.3+
17237 collect2name=`${CC} -print-prog-name=collect2`
17238 if test -f "$collect2name" &&
17239 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17240 then
17241 # We have reworked collect2
17242 :
17243 else
17244 # We have old collect2
17245 hardcode_direct_CXX=unsupported
17246 # It fails to find uninstalled libraries when the uninstalled
17247 # path is not listed in the libpath. Setting hardcode_minus_L
17248 # to unsupported forces relinking
17249 hardcode_minus_L_CXX=yes
17250 hardcode_libdir_flag_spec_CXX='-L$libdir'
17251 hardcode_libdir_separator_CXX=
17252 fi
17253 esac
17254 shared_flag='-shared'
17255 if test "$aix_use_runtimelinking" = yes; then
17256 shared_flag="$shared_flag "'${wl}-G'
17257 fi
17258 else
17259 # not using gcc
17260 if test "$host_cpu" = ia64; then
17261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17262 # chokes on -Wl,-G. The following line is correct:
17263 shared_flag='-G'
17264 else
17265 if test "$aix_use_runtimelinking" = yes; then
17266 shared_flag='${wl}-G'
17267 else
17268 shared_flag='${wl}-bM:SRE'
17269 fi
17270 fi
17271 fi
17272
17273 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17274 # It seems that -bexpall does not export symbols beginning with
17275 # underscore (_), so it is better to generate a list of symbols to
17276 # export.
17277 always_export_symbols_CXX=yes
17278 if test "$aix_use_runtimelinking" = yes; then
17279 # Warning - without using the other runtime loading flags (-brtl),
17280 # -berok will link without error, but may produce a broken library.
17281 allow_undefined_flag_CXX='-berok'
17282 # Determine the default libpath from the value encoded in an empty
17283 # executable.
cristyda16f162011-02-19 23:52:17 +000017284 if test "${lt_cv_aix_libpath+set}" = set; then
17285 aix_libpath=$lt_cv_aix_libpath
17286else
17287 if ${lt_cv_aix_libpath__CXX+:} false; then :
17288 $as_echo_n "(cached) " >&6
17289else
17290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017291/* end confdefs.h. */
17292
17293int
17294main ()
17295{
17296
17297 ;
17298 return 0;
17299}
17300_ACEOF
17301if ac_fn_cxx_try_link "$LINENO"; then :
17302
cristyda16f162011-02-19 23:52:17 +000017303 lt_aix_libpath_sed='
17304 /Import File Strings/,/^$/ {
17305 /^0/ {
17306 s/^0 *\([^ ]*\) *$/\1/
17307 p
17308 }
17309 }'
17310 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17311 # Check for a 64-bit object if we didn't find anything.
17312 if test -z "$lt_cv_aix_libpath__CXX"; then
17313 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17314 fi
cristy73bd4a52010-10-05 11:24:23 +000017315fi
17316rm -f core conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017318 if test -z "$lt_cv_aix_libpath__CXX"; then
17319 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17320 fi
17321
17322fi
17323
17324 aix_libpath=$lt_cv_aix_libpath__CXX
17325fi
cristy73bd4a52010-10-05 11:24:23 +000017326
17327 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17328
cristy0c60a692010-11-04 01:09:47 +000017329 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 +000017330 else
17331 if test "$host_cpu" = ia64; then
17332 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17333 allow_undefined_flag_CXX="-z nodefs"
17334 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"
17335 else
17336 # Determine the default libpath from the value encoded in an
17337 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017338 if test "${lt_cv_aix_libpath+set}" = set; then
17339 aix_libpath=$lt_cv_aix_libpath
17340else
17341 if ${lt_cv_aix_libpath__CXX+:} false; then :
17342 $as_echo_n "(cached) " >&6
17343else
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017345/* end confdefs.h. */
17346
17347int
17348main ()
17349{
17350
17351 ;
17352 return 0;
17353}
17354_ACEOF
17355if ac_fn_cxx_try_link "$LINENO"; then :
17356
cristyda16f162011-02-19 23:52:17 +000017357 lt_aix_libpath_sed='
17358 /Import File Strings/,/^$/ {
17359 /^0/ {
17360 s/^0 *\([^ ]*\) *$/\1/
17361 p
17362 }
17363 }'
17364 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17365 # Check for a 64-bit object if we didn't find anything.
17366 if test -z "$lt_cv_aix_libpath__CXX"; then
17367 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17368 fi
cristy73bd4a52010-10-05 11:24:23 +000017369fi
17370rm -f core conftest.err conftest.$ac_objext \
17371 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017372 if test -z "$lt_cv_aix_libpath__CXX"; then
17373 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17374 fi
17375
17376fi
17377
17378 aix_libpath=$lt_cv_aix_libpath__CXX
17379fi
cristy73bd4a52010-10-05 11:24:23 +000017380
17381 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17382 # Warning - without using the other run time loading flags,
17383 # -berok will link without error, but may produce a broken library.
17384 no_undefined_flag_CXX=' ${wl}-bernotok'
17385 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017386 if test "$with_gnu_ld" = yes; then
17387 # We only use this code for GNU lds that support --whole-archive.
17388 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17389 else
17390 # Exported symbols can be pulled into shared objects from archives
17391 whole_archive_flag_spec_CXX='$convenience'
17392 fi
cristy73bd4a52010-10-05 11:24:23 +000017393 archive_cmds_need_lc_CXX=yes
17394 # This is similar to how AIX traditionally builds its shared
17395 # libraries.
17396 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'
17397 fi
17398 fi
17399 ;;
17400
17401 beos*)
17402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17403 allow_undefined_flag_CXX=unsupported
17404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17405 # support --undefined. This deserves some investigation. FIXME
17406 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17407 else
17408 ld_shlibs_CXX=no
17409 fi
17410 ;;
17411
17412 chorus*)
17413 case $cc_basename in
17414 *)
17415 # FIXME: insert proper C++ library support
17416 ld_shlibs_CXX=no
17417 ;;
17418 esac
17419 ;;
17420
17421 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017422 case $GXX,$cc_basename in
17423 ,cl* | no,cl*)
17424 # Native MSVC
17425 # hardcode_libdir_flag_spec is actually meaningless, as there is
17426 # no search path for DLLs.
17427 hardcode_libdir_flag_spec_CXX=' '
17428 allow_undefined_flag_CXX=unsupported
17429 always_export_symbols_CXX=yes
17430 file_list_spec_CXX='@'
17431 # Tell ltmain to make .lib files, not .a files.
17432 libext=lib
17433 # Tell ltmain to make .dll files, not .so files.
17434 shrext_cmds=".dll"
17435 # FIXME: Setting linknames here is a bad hack.
17436 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17437 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17438 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17439 else
17440 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17441 fi~
17442 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17443 linknames='
17444 # The linker will not automatically build a static lib if we build a DLL.
17445 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17446 enable_shared_with_static_runtimes_CXX=yes
17447 # Don't use ranlib
17448 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17449 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17450 lt_tool_outputfile="@TOOL_OUTPUT@"~
17451 case $lt_outputfile in
17452 *.exe|*.EXE) ;;
17453 *)
17454 lt_outputfile="$lt_outputfile.exe"
17455 lt_tool_outputfile="$lt_tool_outputfile.exe"
17456 ;;
17457 esac~
17458 func_to_tool_file "$lt_outputfile"~
17459 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17460 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17461 $RM "$lt_outputfile.manifest";
17462 fi'
17463 ;;
17464 *)
17465 # g++
17466 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17467 # as there is no search path for DLLs.
17468 hardcode_libdir_flag_spec_CXX='-L$libdir'
17469 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17470 allow_undefined_flag_CXX=unsupported
17471 always_export_symbols_CXX=no
17472 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017473
cristyda16f162011-02-19 23:52:17 +000017474 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17475 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'
17476 # If the export-symbols file already is a .def file (1st line
17477 # is EXPORTS), use it as is; otherwise, prepend...
17478 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17479 cp $export_symbols $output_objdir/$soname.def;
17480 else
17481 echo EXPORTS > $output_objdir/$soname.def;
17482 cat $export_symbols >> $output_objdir/$soname.def;
17483 fi~
17484 $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'
17485 else
17486 ld_shlibs_CXX=no
17487 fi
17488 ;;
17489 esac
17490 ;;
cristy73bd4a52010-10-05 11:24:23 +000017491 darwin* | rhapsody*)
17492
17493
17494 archive_cmds_need_lc_CXX=no
17495 hardcode_direct_CXX=no
17496 hardcode_automatic_CXX=yes
17497 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017498 if test "$lt_cv_ld_force_load" = "yes"; then
17499 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\"`'
17500 else
17501 whole_archive_flag_spec_CXX=''
17502 fi
cristy73bd4a52010-10-05 11:24:23 +000017503 link_all_deplibs_CXX=yes
17504 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17505 case $cc_basename in
17506 ifort*) _lt_dar_can_shared=yes ;;
17507 *) _lt_dar_can_shared=$GCC ;;
17508 esac
17509 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017510 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017511 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}"
17512 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17513 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}"
17514 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}"
17515 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17516 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}"
17517 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}"
17518 fi
17519
17520 else
17521 ld_shlibs_CXX=no
17522 fi
17523
17524 ;;
17525
17526 dgux*)
17527 case $cc_basename in
17528 ec++*)
17529 # FIXME: insert proper C++ library support
17530 ld_shlibs_CXX=no
17531 ;;
17532 ghcx*)
17533 # Green Hills C++ Compiler
17534 # FIXME: insert proper C++ library support
17535 ld_shlibs_CXX=no
17536 ;;
17537 *)
17538 # FIXME: insert proper C++ library support
17539 ld_shlibs_CXX=no
17540 ;;
17541 esac
17542 ;;
17543
17544 freebsd[12]*)
17545 # C++ shared libraries reported to be fairly broken before
17546 # switch to ELF
17547 ld_shlibs_CXX=no
17548 ;;
17549
17550 freebsd-elf*)
17551 archive_cmds_need_lc_CXX=no
17552 ;;
17553
17554 freebsd* | dragonfly*)
17555 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17556 # conventions
17557 ld_shlibs_CXX=yes
17558 ;;
17559
17560 gnu*)
17561 ;;
17562
cristy0c60a692010-11-04 01:09:47 +000017563 haiku*)
17564 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17565 link_all_deplibs_CXX=yes
17566 ;;
17567
cristy73bd4a52010-10-05 11:24:23 +000017568 hpux9*)
17569 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17570 hardcode_libdir_separator_CXX=:
17571 export_dynamic_flag_spec_CXX='${wl}-E'
17572 hardcode_direct_CXX=yes
17573 hardcode_minus_L_CXX=yes # Not in the search PATH,
17574 # but as the default
17575 # location of the library.
17576
17577 case $cc_basename in
17578 CC*)
17579 # FIXME: insert proper C++ library support
17580 ld_shlibs_CXX=no
17581 ;;
17582 aCC*)
17583 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'
17584 # Commands to make compiler produce verbose output that lists
17585 # what "hidden" libraries, object files and flags are used when
17586 # linking a shared library.
17587 #
17588 # There doesn't appear to be a way to prevent this compiler from
17589 # explicitly linking system object files so we need to strip them
17590 # from the output so that they don't get included in the library
17591 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017592 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 +000017593 ;;
17594 *)
17595 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017596 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 +000017597 else
17598 # FIXME: insert proper C++ library support
17599 ld_shlibs_CXX=no
17600 fi
17601 ;;
17602 esac
17603 ;;
17604
17605 hpux10*|hpux11*)
17606 if test $with_gnu_ld = no; then
17607 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17608 hardcode_libdir_separator_CXX=:
17609
17610 case $host_cpu in
17611 hppa*64*|ia64*)
17612 ;;
17613 *)
17614 export_dynamic_flag_spec_CXX='${wl}-E'
17615 ;;
17616 esac
17617 fi
17618 case $host_cpu in
17619 hppa*64*|ia64*)
17620 hardcode_direct_CXX=no
17621 hardcode_shlibpath_var_CXX=no
17622 ;;
17623 *)
17624 hardcode_direct_CXX=yes
17625 hardcode_direct_absolute_CXX=yes
17626 hardcode_minus_L_CXX=yes # Not in the search PATH,
17627 # but as the default
17628 # location of the library.
17629 ;;
17630 esac
17631
17632 case $cc_basename in
17633 CC*)
17634 # FIXME: insert proper C++ library support
17635 ld_shlibs_CXX=no
17636 ;;
17637 aCC*)
17638 case $host_cpu in
17639 hppa*64*)
17640 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17641 ;;
17642 ia64*)
17643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17644 ;;
17645 *)
17646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17647 ;;
17648 esac
17649 # Commands to make compiler produce verbose output that lists
17650 # what "hidden" libraries, object files and flags are used when
17651 # linking a shared library.
17652 #
17653 # There doesn't appear to be a way to prevent this compiler from
17654 # explicitly linking system object files so we need to strip them
17655 # from the output so that they don't get included in the library
17656 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017657 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 +000017658 ;;
17659 *)
17660 if test "$GXX" = yes; then
17661 if test $with_gnu_ld = no; then
17662 case $host_cpu in
17663 hppa*64*)
17664 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17665 ;;
17666 ia64*)
cristyda16f162011-02-19 23:52:17 +000017667 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 +000017668 ;;
17669 *)
cristyda16f162011-02-19 23:52:17 +000017670 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 +000017671 ;;
17672 esac
17673 fi
17674 else
17675 # FIXME: insert proper C++ library support
17676 ld_shlibs_CXX=no
17677 fi
17678 ;;
17679 esac
17680 ;;
17681
17682 interix[3-9]*)
17683 hardcode_direct_CXX=no
17684 hardcode_shlibpath_var_CXX=no
17685 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17686 export_dynamic_flag_spec_CXX='${wl}-E'
17687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17688 # Instead, shared libraries are loaded at an image base (0x10000000 by
17689 # default) and relocated if they conflict, which is a slow very memory
17690 # consuming and fragmenting process. To avoid this, we pick a random,
17691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17693 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'
17694 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'
17695 ;;
17696 irix5* | irix6*)
17697 case $cc_basename in
17698 CC*)
17699 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017700 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 +000017701
17702 # Archives containing C++ object files must be created using
17703 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17704 # necessary to make sure instantiated templates are included
17705 # in the archive.
17706 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17707 ;;
17708 *)
17709 if test "$GXX" = yes; then
17710 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017711 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 +000017712 else
cristyda16f162011-02-19 23:52:17 +000017713 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 +000017714 fi
17715 fi
17716 link_all_deplibs_CXX=yes
17717 ;;
17718 esac
17719 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17720 hardcode_libdir_separator_CXX=:
17721 inherit_rpath_CXX=yes
17722 ;;
17723
cristy0c60a692010-11-04 01:09:47 +000017724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017725 case $cc_basename in
17726 KCC*)
17727 # Kuck and Associates, Inc. (KAI) C++ Compiler
17728
17729 # KCC will only create a shared library if the output file
17730 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17731 # to its proper name (with version) after linking.
17732 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'
17733 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'
17734 # Commands to make compiler produce verbose output that lists
17735 # what "hidden" libraries, object files and flags are used when
17736 # linking a shared library.
17737 #
17738 # There doesn't appear to be a way to prevent this compiler from
17739 # explicitly linking system object files so we need to strip them
17740 # from the output so that they don't get included in the library
17741 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017742 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 +000017743
17744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17746
17747 # Archives containing C++ object files must be created using
17748 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17749 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17750 ;;
17751 icpc* | ecpc* )
17752 # Intel C++
17753 with_gnu_ld=yes
17754 # version 8.0 and above of icpc choke on multiply defined symbols
17755 # if we add $predep_objects and $postdep_objects, however 7.1 and
17756 # earlier do not add the objects themselves.
17757 case `$CC -V 2>&1` in
17758 *"Version 7."*)
17759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17760 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'
17761 ;;
17762 *) # Version 8.0 or newer
17763 tmp_idyn=
17764 case $host_cpu in
17765 ia64*) tmp_idyn=' -i_dynamic';;
17766 esac
17767 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17768 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'
17769 ;;
17770 esac
17771 archive_cmds_need_lc_CXX=no
17772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17774 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17775 ;;
17776 pgCC* | pgcpp*)
17777 # Portland Group C++ compiler
17778 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017779 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017780 prelink_cmds_CXX='tpldir=Template.dir~
17781 rm -rf $tpldir~
17782 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017783 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017784 old_archive_cmds_CXX='tpldir=Template.dir~
17785 rm -rf $tpldir~
17786 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017787 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017788 $RANLIB $oldlib'
17789 archive_cmds_CXX='tpldir=Template.dir~
17790 rm -rf $tpldir~
17791 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017792 $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 +000017793 archive_expsym_cmds_CXX='tpldir=Template.dir~
17794 rm -rf $tpldir~
17795 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017796 $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 +000017797 ;;
cristy0c60a692010-11-04 01:09:47 +000017798 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017799 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17800 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'
17801 ;;
17802 esac
17803
17804 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017806 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 +000017807 ;;
17808 cxx*)
17809 # Compaq C++
17810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17811 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'
17812
17813 runpath_var=LD_RUN_PATH
17814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17815 hardcode_libdir_separator_CXX=:
17816
17817 # Commands to make compiler produce verbose output that lists
17818 # what "hidden" libraries, object files and flags are used when
17819 # linking a shared library.
17820 #
17821 # There doesn't appear to be a way to prevent this compiler from
17822 # explicitly linking system object files so we need to strip them
17823 # from the output so that they don't get included in the library
17824 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017825 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 +000017826 ;;
cristy0c60a692010-11-04 01:09:47 +000017827 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017828 # IBM XL 8.0 on PPC, with GNU ld
17829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17831 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17832 if test "x$supports_anon_versioning" = xyes; then
17833 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17835 echo "local: *; };" >> $output_objdir/$libname.ver~
17836 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17837 fi
17838 ;;
17839 *)
17840 case `$CC -V 2>&1 | sed 5q` in
17841 *Sun\ C*)
17842 # Sun C++ 5.9
17843 no_undefined_flag_CXX=' -zdefs'
17844 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17845 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'
17846 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017847 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 +000017848 compiler_needs_object_CXX=yes
17849
17850 # Not sure whether something based on
17851 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17852 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017853 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017854
17855 # Archives containing C++ object files must be created using
17856 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17857 # necessary to make sure instantiated templates are included
17858 # in the archive.
17859 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17860 ;;
17861 esac
17862 ;;
17863 esac
17864 ;;
17865
17866 lynxos*)
17867 # FIXME: insert proper C++ library support
17868 ld_shlibs_CXX=no
17869 ;;
17870
17871 m88k*)
17872 # FIXME: insert proper C++ library support
17873 ld_shlibs_CXX=no
17874 ;;
17875
17876 mvs*)
17877 case $cc_basename in
17878 cxx*)
17879 # FIXME: insert proper C++ library support
17880 ld_shlibs_CXX=no
17881 ;;
17882 *)
17883 # FIXME: insert proper C++ library support
17884 ld_shlibs_CXX=no
17885 ;;
17886 esac
17887 ;;
17888
17889 netbsd*)
17890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17891 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17892 wlarc=
17893 hardcode_libdir_flag_spec_CXX='-R$libdir'
17894 hardcode_direct_CXX=yes
17895 hardcode_shlibpath_var_CXX=no
17896 fi
17897 # Workaround some broken pre-1.5 toolchains
17898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17899 ;;
17900
17901 *nto* | *qnx*)
17902 ld_shlibs_CXX=yes
17903 ;;
17904
17905 openbsd2*)
17906 # C++ shared libraries are fairly broken
17907 ld_shlibs_CXX=no
17908 ;;
17909
17910 openbsd*)
17911 if test -f /usr/libexec/ld.so; then
17912 hardcode_direct_CXX=yes
17913 hardcode_shlibpath_var_CXX=no
17914 hardcode_direct_absolute_CXX=yes
17915 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17918 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17919 export_dynamic_flag_spec_CXX='${wl}-E'
17920 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17921 fi
cristy0c60a692010-11-04 01:09:47 +000017922 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017923 else
17924 ld_shlibs_CXX=no
17925 fi
17926 ;;
17927
17928 osf3* | osf4* | osf5*)
17929 case $cc_basename in
17930 KCC*)
17931 # Kuck and Associates, Inc. (KAI) C++ Compiler
17932
17933 # KCC will only create a shared library if the output file
17934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17935 # to its proper name (with version) after linking.
17936 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'
17937
17938 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17939 hardcode_libdir_separator_CXX=:
17940
17941 # Archives containing C++ object files must be created using
17942 # the KAI C++ compiler.
17943 case $host in
17944 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17945 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17946 esac
17947 ;;
17948 RCC*)
17949 # Rational C++ 2.4.1
17950 # FIXME: insert proper C++ library support
17951 ld_shlibs_CXX=no
17952 ;;
17953 cxx*)
17954 case $host in
17955 osf3*)
17956 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017957 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 +000017958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17959 ;;
17960 *)
17961 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017962 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 +000017963 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17964 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017965 $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 +000017966 $RM $lib.exp'
17967 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17968 ;;
17969 esac
17970
17971 hardcode_libdir_separator_CXX=:
17972
17973 # Commands to make compiler produce verbose output that lists
17974 # what "hidden" libraries, object files and flags are used when
17975 # linking a shared library.
17976 #
17977 # There doesn't appear to be a way to prevent this compiler from
17978 # explicitly linking system object files so we need to strip them
17979 # from the output so that they don't get included in the library
17980 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017981 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 +000017982 ;;
17983 *)
17984 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17985 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17986 case $host in
17987 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017988 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 +000017989 ;;
17990 *)
cristyda16f162011-02-19 23:52:17 +000017991 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 +000017992 ;;
17993 esac
17994
17995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17996 hardcode_libdir_separator_CXX=:
17997
17998 # Commands to make compiler produce verbose output that lists
17999 # what "hidden" libraries, object files and flags are used when
18000 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018001 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018002
18003 else
18004 # FIXME: insert proper C++ library support
18005 ld_shlibs_CXX=no
18006 fi
18007 ;;
18008 esac
18009 ;;
18010
18011 psos*)
18012 # FIXME: insert proper C++ library support
18013 ld_shlibs_CXX=no
18014 ;;
18015
18016 sunos4*)
18017 case $cc_basename in
18018 CC*)
18019 # Sun C++ 4.x
18020 # FIXME: insert proper C++ library support
18021 ld_shlibs_CXX=no
18022 ;;
18023 lcc*)
18024 # Lucid
18025 # FIXME: insert proper C++ library support
18026 ld_shlibs_CXX=no
18027 ;;
18028 *)
18029 # FIXME: insert proper C++ library support
18030 ld_shlibs_CXX=no
18031 ;;
18032 esac
18033 ;;
18034
18035 solaris*)
18036 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018037 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018038 # Sun C++ 4.2, 5.x and Centerline C++
18039 archive_cmds_need_lc_CXX=yes
18040 no_undefined_flag_CXX=' -zdefs'
18041 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18042 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18043 $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'
18044
18045 hardcode_libdir_flag_spec_CXX='-R$libdir'
18046 hardcode_shlibpath_var_CXX=no
18047 case $host_os in
18048 solaris2.[0-5] | solaris2.[0-5].*) ;;
18049 *)
18050 # The compiler driver will combine and reorder linker options,
18051 # but understands `-z linker_flag'.
18052 # Supported since Solaris 2.6 (maybe 2.5.1?)
18053 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18054 ;;
18055 esac
18056 link_all_deplibs_CXX=yes
18057
cristy0c60a692010-11-04 01:09:47 +000018058 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018059
18060 # Archives containing C++ object files must be created using
18061 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18062 # necessary to make sure instantiated templates are included
18063 # in the archive.
18064 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18065 ;;
18066 gcx*)
18067 # Green Hills C++ Compiler
18068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18069
18070 # The C++ compiler must be used to create the archive.
18071 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18072 ;;
18073 *)
18074 # GNU C++ compiler with Solaris linker
18075 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18076 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18077 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018078 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 +000018079 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 +000018080 $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 +000018081
18082 # Commands to make compiler produce verbose output that lists
18083 # what "hidden" libraries, object files and flags are used when
18084 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018086 else
18087 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18088 # platform.
18089 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18090 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18091 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18092
18093 # Commands to make compiler produce verbose output that lists
18094 # what "hidden" libraries, object files and flags are used when
18095 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018096 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018097 fi
18098
18099 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18100 case $host_os in
18101 solaris2.[0-5] | solaris2.[0-5].*) ;;
18102 *)
18103 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18104 ;;
18105 esac
18106 fi
18107 ;;
18108 esac
18109 ;;
18110
18111 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18112 no_undefined_flag_CXX='${wl}-z,text'
18113 archive_cmds_need_lc_CXX=no
18114 hardcode_shlibpath_var_CXX=no
18115 runpath_var='LD_RUN_PATH'
18116
18117 case $cc_basename in
18118 CC*)
18119 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18120 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18121 ;;
18122 *)
18123 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18124 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18125 ;;
18126 esac
18127 ;;
18128
18129 sysv5* | sco3.2v5* | sco5v6*)
18130 # Note: We can NOT use -z defs as we might desire, because we do not
18131 # link with -lc, and that would cause any symbols used from libc to
18132 # always be unresolved, which means just about no library would
18133 # ever link correctly. If we're not using GNU ld we use -z text
18134 # though, which does catch some bad symbols but isn't as heavy-handed
18135 # as -z defs.
18136 no_undefined_flag_CXX='${wl}-z,text'
18137 allow_undefined_flag_CXX='${wl}-z,nodefs'
18138 archive_cmds_need_lc_CXX=no
18139 hardcode_shlibpath_var_CXX=no
18140 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18141 hardcode_libdir_separator_CXX=':'
18142 link_all_deplibs_CXX=yes
18143 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18144 runpath_var='LD_RUN_PATH'
18145
18146 case $cc_basename in
18147 CC*)
18148 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18149 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 +000018150 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18151 '"$old_archive_cmds_CXX"
18152 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18153 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018154 ;;
18155 *)
18156 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18157 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18158 ;;
18159 esac
18160 ;;
18161
18162 tandem*)
18163 case $cc_basename in
18164 NCC*)
18165 # NonStop-UX NCC 3.20
18166 # FIXME: insert proper C++ library support
18167 ld_shlibs_CXX=no
18168 ;;
18169 *)
18170 # FIXME: insert proper C++ library support
18171 ld_shlibs_CXX=no
18172 ;;
18173 esac
18174 ;;
18175
18176 vxworks*)
18177 # FIXME: insert proper C++ library support
18178 ld_shlibs_CXX=no
18179 ;;
18180
18181 *)
18182 # FIXME: insert proper C++ library support
18183 ld_shlibs_CXX=no
18184 ;;
18185 esac
18186
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18188$as_echo "$ld_shlibs_CXX" >&6; }
18189 test "$ld_shlibs_CXX" = no && can_build_shared=no
18190
18191 GCC_CXX="$GXX"
18192 LD_CXX="$LD"
18193
18194 ## CAVEAT EMPTOR:
18195 ## There is no encapsulation within the following macros, do not change
18196 ## the running order or otherwise move them around unless you know exactly
18197 ## what you are doing...
18198 # Dependencies to place before and after the object being linked:
18199predep_objects_CXX=
18200postdep_objects_CXX=
18201predeps_CXX=
18202postdeps_CXX=
18203compiler_lib_search_path_CXX=
18204
18205cat > conftest.$ac_ext <<_LT_EOF
18206class Foo
18207{
18208public:
18209 Foo (void) { a = 0; }
18210private:
18211 int a;
18212};
18213_LT_EOF
18214
cristyda16f162011-02-19 23:52:17 +000018215
18216_lt_libdeps_save_CFLAGS=$CFLAGS
18217case "$CC $CFLAGS " in #(
18218*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18219*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18220esac
18221
cristy73bd4a52010-10-05 11:24:23 +000018222if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18223 (eval $ac_compile) 2>&5
18224 ac_status=$?
18225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18226 test $ac_status = 0; }; then
18227 # Parse the compiler output and extract the necessary
18228 # objects, libraries and library flags.
18229
18230 # Sentinel used to keep track of whether or not we are before
18231 # the conftest object file.
18232 pre_test_object_deps_done=no
18233
18234 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018235 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018236
18237 -L* | -R* | -l*)
18238 # Some compilers place space between "-{L,R}" and the path.
18239 # Remove the space.
18240 if test $p = "-L" ||
18241 test $p = "-R"; then
18242 prev=$p
18243 continue
cristy73bd4a52010-10-05 11:24:23 +000018244 fi
18245
cristyda16f162011-02-19 23:52:17 +000018246 # Expand the sysroot to ease extracting the directories later.
18247 if test -z "$prev"; then
18248 case $p in
18249 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18250 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18251 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18252 esac
18253 fi
18254 case $p in
18255 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18256 esac
cristy73bd4a52010-10-05 11:24:23 +000018257 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018258 case ${prev} in
18259 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018260 # Internal compiler library paths should come after those
18261 # provided the user. The postdeps already come after the
18262 # user supplied libs so there is no need to process them.
18263 if test -z "$compiler_lib_search_path_CXX"; then
18264 compiler_lib_search_path_CXX="${prev}${p}"
18265 else
18266 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18267 fi
18268 ;;
18269 # The "-l" case would never come before the object being
18270 # linked, so don't bother handling this case.
18271 esac
18272 else
18273 if test -z "$postdeps_CXX"; then
18274 postdeps_CXX="${prev}${p}"
18275 else
18276 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18277 fi
18278 fi
cristyda16f162011-02-19 23:52:17 +000018279 prev=
cristy73bd4a52010-10-05 11:24:23 +000018280 ;;
18281
cristyda16f162011-02-19 23:52:17 +000018282 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018283 *.$objext)
18284 # This assumes that the test object file only shows up
18285 # once in the compiler output.
18286 if test "$p" = "conftest.$objext"; then
18287 pre_test_object_deps_done=yes
18288 continue
18289 fi
18290
18291 if test "$pre_test_object_deps_done" = no; then
18292 if test -z "$predep_objects_CXX"; then
18293 predep_objects_CXX="$p"
18294 else
18295 predep_objects_CXX="$predep_objects_CXX $p"
18296 fi
18297 else
18298 if test -z "$postdep_objects_CXX"; then
18299 postdep_objects_CXX="$p"
18300 else
18301 postdep_objects_CXX="$postdep_objects_CXX $p"
18302 fi
18303 fi
18304 ;;
18305
18306 *) ;; # Ignore the rest.
18307
18308 esac
18309 done
18310
18311 # Clean up.
18312 rm -f a.out a.exe
18313else
18314 echo "libtool.m4: error: problem compiling CXX test program"
18315fi
18316
18317$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018318CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018319
18320# PORTME: override above test on systems where it is broken
18321case $host_os in
18322interix[3-9]*)
18323 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18324 # hack all around it, let's just trust "g++" to DTRT.
18325 predep_objects_CXX=
18326 postdep_objects_CXX=
18327 postdeps_CXX=
18328 ;;
18329
18330linux*)
18331 case `$CC -V 2>&1 | sed 5q` in
18332 *Sun\ C*)
18333 # Sun C++ 5.9
18334
18335 # The more standards-conforming stlport4 library is
18336 # incompatible with the Cstd library. Avoid specifying
18337 # it if it's in CXXFLAGS. Ignore libCrun as
18338 # -library=stlport4 depends on it.
18339 case " $CXX $CXXFLAGS " in
18340 *" -library=stlport4 "*)
18341 solaris_use_stlport4=yes
18342 ;;
18343 esac
18344
18345 if test "$solaris_use_stlport4" != yes; then
18346 postdeps_CXX='-library=Cstd -library=Crun'
18347 fi
18348 ;;
18349 esac
18350 ;;
18351
18352solaris*)
18353 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018354 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018355 # The more standards-conforming stlport4 library is
18356 # incompatible with the Cstd library. Avoid specifying
18357 # it if it's in CXXFLAGS. Ignore libCrun as
18358 # -library=stlport4 depends on it.
18359 case " $CXX $CXXFLAGS " in
18360 *" -library=stlport4 "*)
18361 solaris_use_stlport4=yes
18362 ;;
18363 esac
18364
18365 # Adding this requires a known-good setup of shared libraries for
18366 # Sun compiler versions before 5.6, else PIC objects from an old
18367 # archive will be linked into the output, leading to subtle bugs.
18368 if test "$solaris_use_stlport4" != yes; then
18369 postdeps_CXX='-library=Cstd -library=Crun'
18370 fi
18371 ;;
18372 esac
18373 ;;
18374esac
18375
18376
18377case " $postdeps_CXX " in
18378*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18379esac
18380 compiler_lib_search_dirs_CXX=
18381if test -n "${compiler_lib_search_path_CXX}"; then
18382 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18383fi
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415 lt_prog_compiler_wl_CXX=
18416lt_prog_compiler_pic_CXX=
18417lt_prog_compiler_static_CXX=
18418
cristy73bd4a52010-10-05 11:24:23 +000018419
18420 # C++ specific cases for pic, static, wl, etc.
18421 if test "$GXX" = yes; then
18422 lt_prog_compiler_wl_CXX='-Wl,'
18423 lt_prog_compiler_static_CXX='-static'
18424
18425 case $host_os in
18426 aix*)
18427 # All AIX code is PIC.
18428 if test "$host_cpu" = ia64; then
18429 # AIX 5 now supports IA64 processor
18430 lt_prog_compiler_static_CXX='-Bstatic'
18431 fi
18432 ;;
18433
18434 amigaos*)
18435 case $host_cpu in
18436 powerpc)
18437 # see comment about AmigaOS4 .so support
18438 lt_prog_compiler_pic_CXX='-fPIC'
18439 ;;
18440 m68k)
18441 # FIXME: we need at least 68020 code to build shared libraries, but
18442 # adding the `-m68020' flag to GCC prevents building anything better,
18443 # like `-m68040'.
18444 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18445 ;;
18446 esac
18447 ;;
18448
18449 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18450 # PIC is the default for these OSes.
18451 ;;
18452 mingw* | cygwin* | os2* | pw32* | cegcc*)
18453 # This hack is so that the source file can tell whether it is being
18454 # built for inclusion in a dll (and should export symbols for example).
18455 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18456 # (--disable-auto-import) libraries
18457 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18458 ;;
18459 darwin* | rhapsody*)
18460 # PIC is the default on this platform
18461 # Common symbols not allowed in MH_DYLIB files
18462 lt_prog_compiler_pic_CXX='-fno-common'
18463 ;;
18464 *djgpp*)
18465 # DJGPP does not support shared libraries at all
18466 lt_prog_compiler_pic_CXX=
18467 ;;
cristy0c60a692010-11-04 01:09:47 +000018468 haiku*)
18469 # PIC is the default for Haiku.
18470 # The "-static" flag exists, but is broken.
18471 lt_prog_compiler_static_CXX=
18472 ;;
cristy73bd4a52010-10-05 11:24:23 +000018473 interix[3-9]*)
18474 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18475 # Instead, we relocate shared libraries at runtime.
18476 ;;
18477 sysv4*MP*)
18478 if test -d /usr/nec; then
18479 lt_prog_compiler_pic_CXX=-Kconform_pic
18480 fi
18481 ;;
18482 hpux*)
18483 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18484 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18485 # sets the default TLS model and affects inlining.
18486 case $host_cpu in
18487 hppa*64*)
18488 ;;
18489 *)
18490 lt_prog_compiler_pic_CXX='-fPIC'
18491 ;;
18492 esac
18493 ;;
18494 *qnx* | *nto*)
18495 # QNX uses GNU C++, but need to define -shared option too, otherwise
18496 # it will coredump.
18497 lt_prog_compiler_pic_CXX='-fPIC -shared'
18498 ;;
18499 *)
18500 lt_prog_compiler_pic_CXX='-fPIC'
18501 ;;
18502 esac
18503 else
18504 case $host_os in
18505 aix[4-9]*)
18506 # All AIX code is PIC.
18507 if test "$host_cpu" = ia64; then
18508 # AIX 5 now supports IA64 processor
18509 lt_prog_compiler_static_CXX='-Bstatic'
18510 else
18511 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18512 fi
18513 ;;
18514 chorus*)
18515 case $cc_basename in
18516 cxch68*)
18517 # Green Hills C++ Compiler
18518 # _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"
18519 ;;
18520 esac
18521 ;;
cristyda16f162011-02-19 23:52:17 +000018522 mingw* | cygwin* | os2* | pw32* | cegcc*)
18523 # This hack is so that the source file can tell whether it is being
18524 # built for inclusion in a dll (and should export symbols for example).
18525 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18526 ;;
cristy73bd4a52010-10-05 11:24:23 +000018527 dgux*)
18528 case $cc_basename in
18529 ec++*)
18530 lt_prog_compiler_pic_CXX='-KPIC'
18531 ;;
18532 ghcx*)
18533 # Green Hills C++ Compiler
18534 lt_prog_compiler_pic_CXX='-pic'
18535 ;;
18536 *)
18537 ;;
18538 esac
18539 ;;
18540 freebsd* | dragonfly*)
18541 # FreeBSD uses GNU C++
18542 ;;
18543 hpux9* | hpux10* | hpux11*)
18544 case $cc_basename in
18545 CC*)
18546 lt_prog_compiler_wl_CXX='-Wl,'
18547 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18548 if test "$host_cpu" != ia64; then
18549 lt_prog_compiler_pic_CXX='+Z'
18550 fi
18551 ;;
18552 aCC*)
18553 lt_prog_compiler_wl_CXX='-Wl,'
18554 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18555 case $host_cpu in
18556 hppa*64*|ia64*)
18557 # +Z the default
18558 ;;
18559 *)
18560 lt_prog_compiler_pic_CXX='+Z'
18561 ;;
18562 esac
18563 ;;
18564 *)
18565 ;;
18566 esac
18567 ;;
18568 interix*)
18569 # This is c89, which is MS Visual C++ (no shared libs)
18570 # Anyone wants to do a port?
18571 ;;
18572 irix5* | irix6* | nonstopux*)
18573 case $cc_basename in
18574 CC*)
18575 lt_prog_compiler_wl_CXX='-Wl,'
18576 lt_prog_compiler_static_CXX='-non_shared'
18577 # CC pic flag -KPIC is the default.
18578 ;;
18579 *)
18580 ;;
18581 esac
18582 ;;
cristy0c60a692010-11-04 01:09:47 +000018583 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018584 case $cc_basename in
18585 KCC*)
18586 # KAI C++ Compiler
18587 lt_prog_compiler_wl_CXX='--backend -Wl,'
18588 lt_prog_compiler_pic_CXX='-fPIC'
18589 ;;
18590 ecpc* )
18591 # old Intel C++ for x86_64 which still supported -KPIC.
18592 lt_prog_compiler_wl_CXX='-Wl,'
18593 lt_prog_compiler_pic_CXX='-KPIC'
18594 lt_prog_compiler_static_CXX='-static'
18595 ;;
18596 icpc* )
18597 # Intel C++, used to be incompatible with GCC.
18598 # ICC 10 doesn't accept -KPIC any more.
18599 lt_prog_compiler_wl_CXX='-Wl,'
18600 lt_prog_compiler_pic_CXX='-fPIC'
18601 lt_prog_compiler_static_CXX='-static'
18602 ;;
18603 pgCC* | pgcpp*)
18604 # Portland Group C++ compiler
18605 lt_prog_compiler_wl_CXX='-Wl,'
18606 lt_prog_compiler_pic_CXX='-fpic'
18607 lt_prog_compiler_static_CXX='-Bstatic'
18608 ;;
18609 cxx*)
18610 # Compaq C++
18611 # Make sure the PIC flag is empty. It appears that all Alpha
18612 # Linux and Compaq Tru64 Unix objects are PIC.
18613 lt_prog_compiler_pic_CXX=
18614 lt_prog_compiler_static_CXX='-non_shared'
18615 ;;
cristy0c60a692010-11-04 01:09:47 +000018616 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18617 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018618 lt_prog_compiler_wl_CXX='-Wl,'
18619 lt_prog_compiler_pic_CXX='-qpic'
18620 lt_prog_compiler_static_CXX='-qstaticlink'
18621 ;;
18622 *)
18623 case `$CC -V 2>&1 | sed 5q` in
18624 *Sun\ C*)
18625 # Sun C++ 5.9
18626 lt_prog_compiler_pic_CXX='-KPIC'
18627 lt_prog_compiler_static_CXX='-Bstatic'
18628 lt_prog_compiler_wl_CXX='-Qoption ld '
18629 ;;
18630 esac
18631 ;;
18632 esac
18633 ;;
18634 lynxos*)
18635 ;;
18636 m88k*)
18637 ;;
18638 mvs*)
18639 case $cc_basename in
18640 cxx*)
18641 lt_prog_compiler_pic_CXX='-W c,exportall'
18642 ;;
18643 *)
18644 ;;
18645 esac
18646 ;;
18647 netbsd*)
18648 ;;
18649 *qnx* | *nto*)
18650 # QNX uses GNU C++, but need to define -shared option too, otherwise
18651 # it will coredump.
18652 lt_prog_compiler_pic_CXX='-fPIC -shared'
18653 ;;
18654 osf3* | osf4* | osf5*)
18655 case $cc_basename in
18656 KCC*)
18657 lt_prog_compiler_wl_CXX='--backend -Wl,'
18658 ;;
18659 RCC*)
18660 # Rational C++ 2.4.1
18661 lt_prog_compiler_pic_CXX='-pic'
18662 ;;
18663 cxx*)
18664 # Digital/Compaq C++
18665 lt_prog_compiler_wl_CXX='-Wl,'
18666 # Make sure the PIC flag is empty. It appears that all Alpha
18667 # Linux and Compaq Tru64 Unix objects are PIC.
18668 lt_prog_compiler_pic_CXX=
18669 lt_prog_compiler_static_CXX='-non_shared'
18670 ;;
18671 *)
18672 ;;
18673 esac
18674 ;;
18675 psos*)
18676 ;;
18677 solaris*)
18678 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018679 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018680 # Sun C++ 4.2, 5.x and Centerline C++
18681 lt_prog_compiler_pic_CXX='-KPIC'
18682 lt_prog_compiler_static_CXX='-Bstatic'
18683 lt_prog_compiler_wl_CXX='-Qoption ld '
18684 ;;
18685 gcx*)
18686 # Green Hills C++ Compiler
18687 lt_prog_compiler_pic_CXX='-PIC'
18688 ;;
18689 *)
18690 ;;
18691 esac
18692 ;;
18693 sunos4*)
18694 case $cc_basename in
18695 CC*)
18696 # Sun C++ 4.x
18697 lt_prog_compiler_pic_CXX='-pic'
18698 lt_prog_compiler_static_CXX='-Bstatic'
18699 ;;
18700 lcc*)
18701 # Lucid
18702 lt_prog_compiler_pic_CXX='-pic'
18703 ;;
18704 *)
18705 ;;
18706 esac
18707 ;;
18708 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18709 case $cc_basename in
18710 CC*)
18711 lt_prog_compiler_wl_CXX='-Wl,'
18712 lt_prog_compiler_pic_CXX='-KPIC'
18713 lt_prog_compiler_static_CXX='-Bstatic'
18714 ;;
18715 esac
18716 ;;
18717 tandem*)
18718 case $cc_basename in
18719 NCC*)
18720 # NonStop-UX NCC 3.20
18721 lt_prog_compiler_pic_CXX='-KPIC'
18722 ;;
18723 *)
18724 ;;
18725 esac
18726 ;;
18727 vxworks*)
18728 ;;
18729 *)
18730 lt_prog_compiler_can_build_shared_CXX=no
18731 ;;
18732 esac
18733 fi
18734
18735case $host_os in
18736 # For platforms which do not support PIC, -DPIC is meaningless:
18737 *djgpp*)
18738 lt_prog_compiler_pic_CXX=
18739 ;;
18740 *)
18741 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18742 ;;
18743esac
cristy73bd4a52010-10-05 11:24:23 +000018744
cristyda16f162011-02-19 23:52:17 +000018745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18746$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18747if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18748 $as_echo_n "(cached) " >&6
18749else
18750 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18751fi
18752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18753$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18754lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018755
18756#
18757# Check to make sure the PIC flag actually works.
18758#
18759if test -n "$lt_prog_compiler_pic_CXX"; then
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18761$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018762if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018763 $as_echo_n "(cached) " >&6
18764else
18765 lt_cv_prog_compiler_pic_works_CXX=no
18766 ac_outfile=conftest.$ac_objext
18767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18768 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18769 # Insert the option either (1) after the last *FLAGS variable, or
18770 # (2) before a word containing "conftest.", or (3) at the end.
18771 # Note that $ac_compile itself does not contain backslashes and begins
18772 # with a dollar sign (not a hyphen), so the echo should work correctly.
18773 # The option is referenced via a variable to avoid confusing sed.
18774 lt_compile=`echo "$ac_compile" | $SED \
18775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18777 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018779 (eval "$lt_compile" 2>conftest.err)
18780 ac_status=$?
18781 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018783 if (exit $ac_status) && test -s "$ac_outfile"; then
18784 # The compiler can only warn and ignore the option if not recognized
18785 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018786 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18789 lt_cv_prog_compiler_pic_works_CXX=yes
18790 fi
18791 fi
18792 $RM conftest*
18793
18794fi
18795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18796$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18797
18798if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18799 case $lt_prog_compiler_pic_CXX in
18800 "" | " "*) ;;
18801 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18802 esac
18803else
18804 lt_prog_compiler_pic_CXX=
18805 lt_prog_compiler_can_build_shared_CXX=no
18806fi
18807
18808fi
18809
18810
18811
cristyda16f162011-02-19 23:52:17 +000018812
18813
cristy73bd4a52010-10-05 11:24:23 +000018814#
18815# Check to make sure the static flag actually works.
18816#
18817wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18819$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018820if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018821 $as_echo_n "(cached) " >&6
18822else
18823 lt_cv_prog_compiler_static_works_CXX=no
18824 save_LDFLAGS="$LDFLAGS"
18825 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18826 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18828 # The linker can only warn and ignore the option if not recognized
18829 # So say no if there are warnings
18830 if test -s conftest.err; then
18831 # Append any errors to the config.log.
18832 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18835 if diff conftest.exp conftest.er2 >/dev/null; then
18836 lt_cv_prog_compiler_static_works_CXX=yes
18837 fi
18838 else
18839 lt_cv_prog_compiler_static_works_CXX=yes
18840 fi
18841 fi
18842 $RM -r conftest*
18843 LDFLAGS="$save_LDFLAGS"
18844
18845fi
18846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18847$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18848
18849if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18850 :
18851else
18852 lt_prog_compiler_static_CXX=
18853fi
18854
18855
18856
18857
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18859$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018860if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018861 $as_echo_n "(cached) " >&6
18862else
18863 lt_cv_prog_compiler_c_o_CXX=no
18864 $RM -r conftest 2>/dev/null
18865 mkdir conftest
18866 cd conftest
18867 mkdir out
18868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18869
18870 lt_compiler_flag="-o out/conftest2.$ac_objext"
18871 # Insert the option either (1) after the last *FLAGS variable, or
18872 # (2) before a word containing "conftest.", or (3) at the end.
18873 # Note that $ac_compile itself does not contain backslashes and begins
18874 # with a dollar sign (not a hyphen), so the echo should work correctly.
18875 lt_compile=`echo "$ac_compile" | $SED \
18876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18878 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018880 (eval "$lt_compile" 2>out/conftest.err)
18881 ac_status=$?
18882 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18885 then
18886 # The compiler can only warn and ignore the option if not recognized
18887 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18891 lt_cv_prog_compiler_c_o_CXX=yes
18892 fi
18893 fi
18894 chmod u+w . 2>&5
18895 $RM conftest*
18896 # SGI C++ compiler will create directory out/ii_files/ for
18897 # template instantiation
18898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18899 $RM out/* && rmdir out
18900 cd ..
18901 $RM -r conftest
18902 $RM conftest*
18903
18904fi
18905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18906$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18907
18908
18909
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18911$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018912if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018913 $as_echo_n "(cached) " >&6
18914else
18915 lt_cv_prog_compiler_c_o_CXX=no
18916 $RM -r conftest 2>/dev/null
18917 mkdir conftest
18918 cd conftest
18919 mkdir out
18920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18921
18922 lt_compiler_flag="-o out/conftest2.$ac_objext"
18923 # Insert the option either (1) after the last *FLAGS variable, or
18924 # (2) before a word containing "conftest.", or (3) at the end.
18925 # Note that $ac_compile itself does not contain backslashes and begins
18926 # with a dollar sign (not a hyphen), so the echo should work correctly.
18927 lt_compile=`echo "$ac_compile" | $SED \
18928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18930 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018932 (eval "$lt_compile" 2>out/conftest.err)
18933 ac_status=$?
18934 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018936 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18937 then
18938 # The compiler can only warn and ignore the option if not recognized
18939 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18943 lt_cv_prog_compiler_c_o_CXX=yes
18944 fi
18945 fi
18946 chmod u+w . 2>&5
18947 $RM conftest*
18948 # SGI C++ compiler will create directory out/ii_files/ for
18949 # template instantiation
18950 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18951 $RM out/* && rmdir out
18952 cd ..
18953 $RM -r conftest
18954 $RM conftest*
18955
18956fi
18957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18958$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18959
18960
18961
18962
18963hard_links="nottested"
18964if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18965 # do not overwrite the value of need_locks provided by the user
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18967$as_echo_n "checking if we can lock with hard links... " >&6; }
18968 hard_links=yes
18969 $RM conftest*
18970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18971 touch conftest.a
18972 ln conftest.a conftest.b 2>&5 || hard_links=no
18973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18975$as_echo "$hard_links" >&6; }
18976 if test "$hard_links" = no; then
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18978$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18979 need_locks=warn
18980 fi
18981else
18982 need_locks=no
18983fi
18984
18985
18986
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18988$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18989
18990 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018991 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018992 case $host_os in
18993 aix[4-9]*)
18994 # If we're using GNU nm, then we don't want the "-C" option.
18995 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018996 # Also, AIX nm treats weak defined symbols like other global defined
18997 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018998 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018999 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 +000019000 else
19001 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'
19002 fi
19003 ;;
19004 pw32*)
19005 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019006 ;;
cristy73bd4a52010-10-05 11:24:23 +000019007 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019008 case $cc_basename in
19009 cl*) ;;
19010 *)
19011 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'
19012 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19013 ;;
19014 esac
19015 ;;
cristy73bd4a52010-10-05 11:24:23 +000019016 *)
19017 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019018 ;;
cristy73bd4a52010-10-05 11:24:23 +000019019 esac
cristy73bd4a52010-10-05 11:24:23 +000019020
19021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19022$as_echo "$ld_shlibs_CXX" >&6; }
19023test "$ld_shlibs_CXX" = no && can_build_shared=no
19024
19025with_gnu_ld_CXX=$with_gnu_ld
19026
19027
19028
19029
19030
19031
19032#
19033# Do we need to explicitly link libc?
19034#
19035case "x$archive_cmds_need_lc_CXX" in
19036x|xyes)
19037 # Assume -lc should be added
19038 archive_cmds_need_lc_CXX=yes
19039
19040 if test "$enable_shared" = yes && test "$GCC" = yes; then
19041 case $archive_cmds_CXX in
19042 *'~'*)
19043 # FIXME: we may have to deal with multi-command sequences.
19044 ;;
19045 '$CC '*)
19046 # Test whether the compiler implicitly links with -lc since on some
19047 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19048 # to ld, don't add -lc before -lgcc.
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19050$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019051if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019052 $as_echo_n "(cached) " >&6
19053else
19054 $RM conftest*
19055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019056
cristy0c60a692010-11-04 01:09:47 +000019057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019058 (eval $ac_compile) 2>&5
19059 ac_status=$?
19060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19061 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019062 soname=conftest
19063 lib=conftest
19064 libobjs=conftest.$ac_objext
19065 deplibs=
19066 wl=$lt_prog_compiler_wl_CXX
19067 pic_flag=$lt_prog_compiler_pic_CXX
19068 compiler_flags=-v
19069 linker_flags=-v
19070 verstring=
19071 output_objdir=.
19072 libname=conftest
19073 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19074 allow_undefined_flag_CXX=
19075 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 +000019076 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19077 ac_status=$?
19078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19079 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019080 then
19081 lt_cv_archive_cmds_need_lc_CXX=no
19082 else
19083 lt_cv_archive_cmds_need_lc_CXX=yes
19084 fi
19085 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19086 else
19087 cat conftest.err 1>&5
19088 fi
19089 $RM conftest*
19090
19091fi
19092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19093$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19094 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019095 ;;
19096 esac
19097 fi
19098 ;;
19099esac
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19165$as_echo_n "checking dynamic linker characteristics... " >&6; }
19166
19167library_names_spec=
19168libname_spec='lib$name'
19169soname_spec=
19170shrext_cmds=".so"
19171postinstall_cmds=
19172postuninstall_cmds=
19173finish_cmds=
19174finish_eval=
19175shlibpath_var=
19176shlibpath_overrides_runpath=unknown
19177version_type=none
19178dynamic_linker="$host_os ld.so"
19179sys_lib_dlsearch_path_spec="/lib /usr/lib"
19180need_lib_prefix=unknown
19181hardcode_into_libs=no
19182
19183# when you set need_version to no, make sure it does not cause -set_version
19184# flags to be left without arguments
19185need_version=unknown
19186
19187case $host_os in
19188aix3*)
19189 version_type=linux
19190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19191 shlibpath_var=LIBPATH
19192
19193 # AIX 3 has no versioning support, so we append a major version to the name.
19194 soname_spec='${libname}${release}${shared_ext}$major'
19195 ;;
19196
19197aix[4-9]*)
19198 version_type=linux
19199 need_lib_prefix=no
19200 need_version=no
19201 hardcode_into_libs=yes
19202 if test "$host_cpu" = ia64; then
19203 # AIX 5 supports IA64
19204 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19205 shlibpath_var=LD_LIBRARY_PATH
19206 else
19207 # With GCC up to 2.95.x, collect2 would create an import file
19208 # for dependence libraries. The import file would start with
19209 # the line `#! .'. This would cause the generated library to
19210 # depend on `.', always an invalid library. This was fixed in
19211 # development snapshots of GCC prior to 3.0.
19212 case $host_os in
19213 aix4 | aix4.[01] | aix4.[01].*)
19214 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19215 echo ' yes '
19216 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19217 :
19218 else
19219 can_build_shared=no
19220 fi
19221 ;;
19222 esac
19223 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19224 # soname into executable. Probably we can add versioning support to
19225 # collect2, so additional links can be useful in future.
19226 if test "$aix_use_runtimelinking" = yes; then
19227 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19228 # instead of lib<name>.a to let people know that these are not
19229 # typical AIX shared libraries.
19230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19231 else
19232 # We preserve .a as extension for shared libraries through AIX4.2
19233 # and later when we are not doing run time linking.
19234 library_names_spec='${libname}${release}.a $libname.a'
19235 soname_spec='${libname}${release}${shared_ext}$major'
19236 fi
19237 shlibpath_var=LIBPATH
19238 fi
19239 ;;
19240
19241amigaos*)
19242 case $host_cpu in
19243 powerpc)
19244 # Since July 2007 AmigaOS4 officially supports .so libraries.
19245 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19247 ;;
19248 m68k)
19249 library_names_spec='$libname.ixlibrary $libname.a'
19250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019251 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 +000019252 ;;
19253 esac
19254 ;;
19255
19256beos*)
19257 library_names_spec='${libname}${shared_ext}'
19258 dynamic_linker="$host_os ld.so"
19259 shlibpath_var=LIBRARY_PATH
19260 ;;
19261
19262bsdi[45]*)
19263 version_type=linux
19264 need_version=no
19265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19266 soname_spec='${libname}${release}${shared_ext}$major'
19267 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19268 shlibpath_var=LD_LIBRARY_PATH
19269 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19270 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19271 # the default ld.so.conf also contains /usr/contrib/lib and
19272 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19273 # libtool to hard-code these into programs
19274 ;;
19275
19276cygwin* | mingw* | pw32* | cegcc*)
19277 version_type=windows
19278 shrext_cmds=".dll"
19279 need_version=no
19280 need_lib_prefix=no
19281
cristyda16f162011-02-19 23:52:17 +000019282 case $GCC,$cc_basename in
19283 yes,*)
19284 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019285 library_names_spec='$libname.dll.a'
19286 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19287 postinstall_cmds='base_file=`basename \${file}`~
19288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19289 dldir=$destdir/`dirname \$dlpath`~
19290 test -d \$dldir || mkdir -p \$dldir~
19291 $install_prog $dir/$dlname \$dldir/$dlname~
19292 chmod a+x \$dldir/$dlname~
19293 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19294 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19295 fi'
19296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19297 dlpath=$dir/\$dldll~
19298 $RM \$dlpath'
19299 shlibpath_overrides_runpath=yes
19300
19301 case $host_os in
19302 cygwin*)
19303 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19304 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019305
cristy73bd4a52010-10-05 11:24:23 +000019306 ;;
19307 mingw* | cegcc*)
19308 # MinGW DLLs use traditional 'lib' prefix
19309 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019310 ;;
19311 pw32*)
19312 # pw32 DLLs use 'pw' prefix rather than 'lib'
19313 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19314 ;;
19315 esac
cristyda16f162011-02-19 23:52:17 +000019316 dynamic_linker='Win32 ld.exe'
19317 ;;
19318
19319 *,cl*)
19320 # Native MSVC
19321 libname_spec='$name'
19322 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19323 library_names_spec='${libname}.dll.lib'
19324
19325 case $build_os in
19326 mingw*)
19327 sys_lib_search_path_spec=
19328 lt_save_ifs=$IFS
19329 IFS=';'
19330 for lt_path in $LIB
19331 do
19332 IFS=$lt_save_ifs
19333 # Let DOS variable expansion print the short 8.3 style file name.
19334 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19335 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19336 done
19337 IFS=$lt_save_ifs
19338 # Convert to MSYS style.
19339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19340 ;;
19341 cygwin*)
19342 # Convert to unix form, then to dos form, then back to unix form
19343 # but this time dos style (no spaces!) so that the unix form looks
19344 # like /cygdrive/c/PROGRA~1:/cygdr...
19345 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19346 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19347 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19348 ;;
19349 *)
19350 sys_lib_search_path_spec="$LIB"
19351 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19352 # It is most probably a Windows format PATH.
19353 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19354 else
19355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19356 fi
19357 # FIXME: find the short name or the path components, as spaces are
19358 # common. (e.g. "Program Files" -> "PROGRA~1")
19359 ;;
19360 esac
19361
19362 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19363 postinstall_cmds='base_file=`basename \${file}`~
19364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19365 dldir=$destdir/`dirname \$dlpath`~
19366 test -d \$dldir || mkdir -p \$dldir~
19367 $install_prog $dir/$dlname \$dldir/$dlname'
19368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19369 dlpath=$dir/\$dldll~
19370 $RM \$dlpath'
19371 shlibpath_overrides_runpath=yes
19372 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019373 ;;
19374
19375 *)
cristyda16f162011-02-19 23:52:17 +000019376 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019377 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019378 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019379 ;;
19380 esac
cristy73bd4a52010-10-05 11:24:23 +000019381 # FIXME: first we should search . and the directory the executable is in
19382 shlibpath_var=PATH
19383 ;;
19384
19385darwin* | rhapsody*)
19386 dynamic_linker="$host_os dyld"
19387 version_type=darwin
19388 need_lib_prefix=no
19389 need_version=no
19390 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19391 soname_spec='${libname}${release}${major}$shared_ext'
19392 shlibpath_overrides_runpath=yes
19393 shlibpath_var=DYLD_LIBRARY_PATH
19394 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19395
19396 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19397 ;;
19398
19399dgux*)
19400 version_type=linux
19401 need_lib_prefix=no
19402 need_version=no
19403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19404 soname_spec='${libname}${release}${shared_ext}$major'
19405 shlibpath_var=LD_LIBRARY_PATH
19406 ;;
19407
19408freebsd1*)
19409 dynamic_linker=no
19410 ;;
19411
19412freebsd* | dragonfly*)
19413 # DragonFly does not have aout. When/if they implement a new
19414 # versioning mechanism, adjust this.
19415 if test -x /usr/bin/objformat; then
19416 objformat=`/usr/bin/objformat`
19417 else
19418 case $host_os in
19419 freebsd[123]*) objformat=aout ;;
19420 *) objformat=elf ;;
19421 esac
19422 fi
19423 version_type=freebsd-$objformat
19424 case $version_type in
19425 freebsd-elf*)
19426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19427 need_version=no
19428 need_lib_prefix=no
19429 ;;
19430 freebsd-*)
19431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19432 need_version=yes
19433 ;;
19434 esac
19435 shlibpath_var=LD_LIBRARY_PATH
19436 case $host_os in
19437 freebsd2*)
19438 shlibpath_overrides_runpath=yes
19439 ;;
19440 freebsd3.[01]* | freebsdelf3.[01]*)
19441 shlibpath_overrides_runpath=yes
19442 hardcode_into_libs=yes
19443 ;;
19444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19446 shlibpath_overrides_runpath=no
19447 hardcode_into_libs=yes
19448 ;;
19449 *) # from 4.6 on, and DragonFly
19450 shlibpath_overrides_runpath=yes
19451 hardcode_into_libs=yes
19452 ;;
19453 esac
19454 ;;
19455
19456gnu*)
19457 version_type=linux
19458 need_lib_prefix=no
19459 need_version=no
19460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19461 soname_spec='${libname}${release}${shared_ext}$major'
19462 shlibpath_var=LD_LIBRARY_PATH
19463 hardcode_into_libs=yes
19464 ;;
19465
cristy0c60a692010-11-04 01:09:47 +000019466haiku*)
19467 version_type=linux
19468 need_lib_prefix=no
19469 need_version=no
19470 dynamic_linker="$host_os runtime_loader"
19471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19472 soname_spec='${libname}${release}${shared_ext}$major'
19473 shlibpath_var=LIBRARY_PATH
19474 shlibpath_overrides_runpath=yes
19475 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19476 hardcode_into_libs=yes
19477 ;;
19478
cristy73bd4a52010-10-05 11:24:23 +000019479hpux9* | hpux10* | hpux11*)
19480 # Give a soname corresponding to the major version so that dld.sl refuses to
19481 # link against other versions.
19482 version_type=sunos
19483 need_lib_prefix=no
19484 need_version=no
19485 case $host_cpu in
19486 ia64*)
19487 shrext_cmds='.so'
19488 hardcode_into_libs=yes
19489 dynamic_linker="$host_os dld.so"
19490 shlibpath_var=LD_LIBRARY_PATH
19491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19493 soname_spec='${libname}${release}${shared_ext}$major'
19494 if test "X$HPUX_IA64_MODE" = X32; then
19495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19496 else
19497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19498 fi
19499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19500 ;;
19501 hppa*64*)
19502 shrext_cmds='.sl'
19503 hardcode_into_libs=yes
19504 dynamic_linker="$host_os dld.sl"
19505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19508 soname_spec='${libname}${release}${shared_ext}$major'
19509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19511 ;;
19512 *)
19513 shrext_cmds='.sl'
19514 dynamic_linker="$host_os dld.sl"
19515 shlibpath_var=SHLIB_PATH
19516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19518 soname_spec='${libname}${release}${shared_ext}$major'
19519 ;;
19520 esac
cristy0c60a692010-11-04 01:09:47 +000019521 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019522 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019523 # or fails outright, so override atomically:
19524 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019525 ;;
19526
19527interix[3-9]*)
19528 version_type=linux
19529 need_lib_prefix=no
19530 need_version=no
19531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19532 soname_spec='${libname}${release}${shared_ext}$major'
19533 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19534 shlibpath_var=LD_LIBRARY_PATH
19535 shlibpath_overrides_runpath=no
19536 hardcode_into_libs=yes
19537 ;;
19538
19539irix5* | irix6* | nonstopux*)
19540 case $host_os in
19541 nonstopux*) version_type=nonstopux ;;
19542 *)
19543 if test "$lt_cv_prog_gnu_ld" = yes; then
19544 version_type=linux
19545 else
19546 version_type=irix
19547 fi ;;
19548 esac
19549 need_lib_prefix=no
19550 need_version=no
19551 soname_spec='${libname}${release}${shared_ext}$major'
19552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19553 case $host_os in
19554 irix5* | nonstopux*)
19555 libsuff= shlibsuff=
19556 ;;
19557 *)
19558 case $LD in # libtool.m4 will add one of these switches to LD
19559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19560 libsuff= shlibsuff= libmagic=32-bit;;
19561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19562 libsuff=32 shlibsuff=N32 libmagic=N32;;
19563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19564 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19565 *) libsuff= shlibsuff= libmagic=never-match;;
19566 esac
19567 ;;
19568 esac
19569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19570 shlibpath_overrides_runpath=no
19571 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19572 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19573 hardcode_into_libs=yes
19574 ;;
19575
19576# No shared lib support for Linux oldld, aout, or coff.
19577linux*oldld* | linux*aout* | linux*coff*)
19578 dynamic_linker=no
19579 ;;
19580
19581# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019582linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019583 version_type=linux
19584 need_lib_prefix=no
19585 need_version=no
19586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19587 soname_spec='${libname}${release}${shared_ext}$major'
19588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19589 shlibpath_var=LD_LIBRARY_PATH
19590 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019591
cristy73bd4a52010-10-05 11:24:23 +000019592 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019593 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019594 $as_echo_n "(cached) " >&6
19595else
19596 lt_cv_shlibpath_overrides_runpath=no
19597 save_LDFLAGS=$LDFLAGS
19598 save_libdir=$libdir
19599 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19600 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019602/* end confdefs.h. */
19603
19604int
19605main ()
19606{
19607
19608 ;
19609 return 0;
19610}
19611_ACEOF
19612if ac_fn_cxx_try_link "$LINENO"; then :
19613 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019614 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019615fi
19616fi
19617rm -f core conftest.err conftest.$ac_objext \
19618 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019619 LDFLAGS=$save_LDFLAGS
19620 libdir=$save_libdir
19621
19622fi
19623
19624 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019625
19626 # This implies no fast_install, which is unacceptable.
19627 # Some rework will be needed to allow for fast_install
19628 # before this can be enabled.
19629 hardcode_into_libs=yes
19630
19631 # Add ABI-specific directories to the system library path.
19632 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19633
19634 # Append ld.so.conf contents to the search path
19635 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019636 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 +000019637 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019638
cristy73bd4a52010-10-05 11:24:23 +000019639 fi
19640
19641 # We used to test for /lib/ld.so.1 and disable shared libraries on
19642 # powerpc, because MkLinux only supported shared libraries with the
19643 # GNU dynamic linker. Since this was broken with cross compilers,
19644 # most powerpc-linux boxes support dynamic linking these days and
19645 # people can always --disable-shared, the test was removed, and we
19646 # assume the GNU/Linux dynamic linker is in use.
19647 dynamic_linker='GNU/Linux ld.so'
19648 ;;
19649
19650netbsd*)
19651 version_type=sunos
19652 need_lib_prefix=no
19653 need_version=no
19654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19657 dynamic_linker='NetBSD (a.out) ld.so'
19658 else
19659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19660 soname_spec='${libname}${release}${shared_ext}$major'
19661 dynamic_linker='NetBSD ld.elf_so'
19662 fi
19663 shlibpath_var=LD_LIBRARY_PATH
19664 shlibpath_overrides_runpath=yes
19665 hardcode_into_libs=yes
19666 ;;
19667
19668newsos6)
19669 version_type=linux
19670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19671 shlibpath_var=LD_LIBRARY_PATH
19672 shlibpath_overrides_runpath=yes
19673 ;;
19674
19675*nto* | *qnx*)
19676 version_type=qnx
19677 need_lib_prefix=no
19678 need_version=no
19679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19680 soname_spec='${libname}${release}${shared_ext}$major'
19681 shlibpath_var=LD_LIBRARY_PATH
19682 shlibpath_overrides_runpath=no
19683 hardcode_into_libs=yes
19684 dynamic_linker='ldqnx.so'
19685 ;;
19686
19687openbsd*)
19688 version_type=sunos
19689 sys_lib_dlsearch_path_spec="/usr/lib"
19690 need_lib_prefix=no
19691 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19692 case $host_os in
19693 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19694 *) need_version=no ;;
19695 esac
19696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19698 shlibpath_var=LD_LIBRARY_PATH
19699 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19700 case $host_os in
19701 openbsd2.[89] | openbsd2.[89].*)
19702 shlibpath_overrides_runpath=no
19703 ;;
19704 *)
19705 shlibpath_overrides_runpath=yes
19706 ;;
19707 esac
19708 else
19709 shlibpath_overrides_runpath=yes
19710 fi
19711 ;;
19712
19713os2*)
19714 libname_spec='$name'
19715 shrext_cmds=".dll"
19716 need_lib_prefix=no
19717 library_names_spec='$libname${shared_ext} $libname.a'
19718 dynamic_linker='OS/2 ld.exe'
19719 shlibpath_var=LIBPATH
19720 ;;
19721
19722osf3* | osf4* | osf5*)
19723 version_type=osf
19724 need_lib_prefix=no
19725 need_version=no
19726 soname_spec='${libname}${release}${shared_ext}$major'
19727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19728 shlibpath_var=LD_LIBRARY_PATH
19729 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19730 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19731 ;;
19732
19733rdos*)
19734 dynamic_linker=no
19735 ;;
19736
19737solaris*)
19738 version_type=linux
19739 need_lib_prefix=no
19740 need_version=no
19741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19742 soname_spec='${libname}${release}${shared_ext}$major'
19743 shlibpath_var=LD_LIBRARY_PATH
19744 shlibpath_overrides_runpath=yes
19745 hardcode_into_libs=yes
19746 # ldd complains unless libraries are executable
19747 postinstall_cmds='chmod +x $lib'
19748 ;;
19749
19750sunos4*)
19751 version_type=sunos
19752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19753 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19754 shlibpath_var=LD_LIBRARY_PATH
19755 shlibpath_overrides_runpath=yes
19756 if test "$with_gnu_ld" = yes; then
19757 need_lib_prefix=no
19758 fi
19759 need_version=yes
19760 ;;
19761
19762sysv4 | sysv4.3*)
19763 version_type=linux
19764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19765 soname_spec='${libname}${release}${shared_ext}$major'
19766 shlibpath_var=LD_LIBRARY_PATH
19767 case $host_vendor in
19768 sni)
19769 shlibpath_overrides_runpath=no
19770 need_lib_prefix=no
19771 runpath_var=LD_RUN_PATH
19772 ;;
19773 siemens)
19774 need_lib_prefix=no
19775 ;;
19776 motorola)
19777 need_lib_prefix=no
19778 need_version=no
19779 shlibpath_overrides_runpath=no
19780 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19781 ;;
19782 esac
19783 ;;
19784
19785sysv4*MP*)
19786 if test -d /usr/nec ;then
19787 version_type=linux
19788 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19789 soname_spec='$libname${shared_ext}.$major'
19790 shlibpath_var=LD_LIBRARY_PATH
19791 fi
19792 ;;
19793
19794sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19795 version_type=freebsd-elf
19796 need_lib_prefix=no
19797 need_version=no
19798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19799 soname_spec='${libname}${release}${shared_ext}$major'
19800 shlibpath_var=LD_LIBRARY_PATH
19801 shlibpath_overrides_runpath=yes
19802 hardcode_into_libs=yes
19803 if test "$with_gnu_ld" = yes; then
19804 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19805 else
19806 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19807 case $host_os in
19808 sco3.2v5*)
19809 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19810 ;;
19811 esac
19812 fi
19813 sys_lib_dlsearch_path_spec='/usr/lib'
19814 ;;
19815
19816tpf*)
19817 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19818 version_type=linux
19819 need_lib_prefix=no
19820 need_version=no
19821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19822 shlibpath_var=LD_LIBRARY_PATH
19823 shlibpath_overrides_runpath=no
19824 hardcode_into_libs=yes
19825 ;;
19826
19827uts4*)
19828 version_type=linux
19829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19830 soname_spec='${libname}${release}${shared_ext}$major'
19831 shlibpath_var=LD_LIBRARY_PATH
19832 ;;
19833
19834*)
19835 dynamic_linker=no
19836 ;;
19837esac
19838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19839$as_echo "$dynamic_linker" >&6; }
19840test "$dynamic_linker" = no && can_build_shared=no
19841
19842variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19843if test "$GCC" = yes; then
19844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19845fi
19846
19847if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19848 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19849fi
19850if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19851 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19852fi
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
cristy0c60a692010-11-04 01:09:47 +000019889
19890
cristy73bd4a52010-10-05 11:24:23 +000019891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19892$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19893hardcode_action_CXX=
19894if test -n "$hardcode_libdir_flag_spec_CXX" ||
19895 test -n "$runpath_var_CXX" ||
19896 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19897
19898 # We can hardcode non-existent directories.
19899 if test "$hardcode_direct_CXX" != no &&
19900 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19901 # have to relink, otherwise we might link with an installed library
19902 # when we should be linking with a yet-to-be-installed one
19903 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19904 test "$hardcode_minus_L_CXX" != no; then
19905 # Linking always hardcodes the temporary library directory.
19906 hardcode_action_CXX=relink
19907 else
19908 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19909 hardcode_action_CXX=immediate
19910 fi
19911else
19912 # We cannot hardcode anything, or else we can only hardcode existing
19913 # directories.
19914 hardcode_action_CXX=unsupported
19915fi
19916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19917$as_echo "$hardcode_action_CXX" >&6; }
19918
19919if test "$hardcode_action_CXX" = relink ||
19920 test "$inherit_rpath_CXX" = yes; then
19921 # Fast installation is not supported
19922 enable_fast_install=no
19923elif test "$shlibpath_overrides_runpath" = yes ||
19924 test "$enable_shared" = no; then
19925 # Fast installation is not necessary
19926 enable_fast_install=needless
19927fi
19928
19929
19930
19931
19932
19933
19934
19935 fi # test -n "$compiler"
19936
19937 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019938 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019939 LDCXX=$LD
19940 LD=$lt_save_LD
19941 GCC=$lt_save_GCC
19942 with_gnu_ld=$lt_save_with_gnu_ld
19943 lt_cv_path_LDCXX=$lt_cv_path_LD
19944 lt_cv_path_LD=$lt_save_path_LD
19945 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19946 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19947fi # test "$_lt_caught_CXX_error" != yes
19948
19949ac_ext=c
19950ac_cpp='$CPP $CPPFLAGS'
19951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19953ac_compiler_gnu=$ac_cv_c_compiler_gnu
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967 ac_config_commands="$ac_config_commands libtool"
19968
19969
19970
19971
19972# Only expand once:
19973
19974
19975
cristy3ed852e2009-09-05 21:47:34 +000019976
19977
19978# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019979
19980
19981
19982
19983
19984
19985
cristy73bd4a52010-10-05 11:24:23 +000019986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19987$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019988if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019989 $as_echo_n "(cached) " >&6
19990else
19991
19992module=yes
19993eval libltdl_cv_shlibext=$shrext_cmds
19994
19995fi
19996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19997$as_echo "$libltdl_cv_shlibext" >&6; }
19998if test -n "$libltdl_cv_shlibext"; then
19999
20000cat >>confdefs.h <<_ACEOF
20001#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20002_ACEOF
20003
20004fi
20005
20006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20007$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020008if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020009 $as_echo_n "(cached) " >&6
20010else
20011 lt_cv_module_path_var="$shlibpath_var"
20012fi
20013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20014$as_echo "$lt_cv_module_path_var" >&6; }
20015if test -n "$lt_cv_module_path_var"; then
20016
20017cat >>confdefs.h <<_ACEOF
20018#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20019_ACEOF
20020
20021fi
20022
20023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20024$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020025if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020026 $as_echo_n "(cached) " >&6
20027else
20028 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20029fi
20030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20031$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20032if test -n "$lt_cv_sys_dlsearch_path"; then
20033 sys_dlsearch_path=
20034 for dir in $lt_cv_sys_dlsearch_path; do
20035 if test -z "$sys_dlsearch_path"; then
20036 sys_dlsearch_path="$dir"
20037 else
20038 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20039 fi
20040 done
20041
20042cat >>confdefs.h <<_ACEOF
20043#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20044_ACEOF
20045
20046fi
20047
20048
20049LT_DLLOADERS=
20050
20051
20052ac_ext=c
20053ac_cpp='$CPP $CPPFLAGS'
20054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20056ac_compiler_gnu=$ac_cv_c_compiler_gnu
20057
20058
20059LIBADD_DLOPEN=
20060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20061$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020062if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020063 $as_echo_n "(cached) " >&6
20064else
20065 ac_func_search_save_LIBS=$LIBS
20066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20067/* end confdefs.h. */
20068
20069/* Override any GCC internal prototype to avoid an error.
20070 Use char because int might match the return type of a GCC
20071 builtin and then its argument prototype would still apply. */
20072#ifdef __cplusplus
20073extern "C"
20074#endif
20075char dlopen ();
20076int
20077main ()
20078{
20079return dlopen ();
20080 ;
20081 return 0;
20082}
20083_ACEOF
20084for ac_lib in '' dl; do
20085 if test -z "$ac_lib"; then
20086 ac_res="none required"
20087 else
20088 ac_res=-l$ac_lib
20089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20090 fi
20091 if ac_fn_c_try_link "$LINENO"; then :
20092 ac_cv_search_dlopen=$ac_res
20093fi
20094rm -f core conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020096 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020097 break
20098fi
20099done
cristyda16f162011-02-19 23:52:17 +000020100if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020101
20102else
20103 ac_cv_search_dlopen=no
20104fi
20105rm conftest.$ac_ext
20106LIBS=$ac_func_search_save_LIBS
20107fi
20108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20109$as_echo "$ac_cv_search_dlopen" >&6; }
20110ac_res=$ac_cv_search_dlopen
20111if test "$ac_res" != no; then :
20112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20113
20114$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20115
20116 if test "$ac_cv_search_dlopen" != "none required" ; then
20117 LIBADD_DLOPEN="-ldl"
20118 fi
20119 libltdl_cv_lib_dl_dlopen="yes"
20120 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20121else
20122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20123/* end confdefs.h. */
20124#if HAVE_DLFCN_H
20125# include <dlfcn.h>
20126#endif
20127
20128int
20129main ()
20130{
20131dlopen(0, 0);
20132 ;
20133 return 0;
20134}
20135_ACEOF
20136if ac_fn_c_try_link "$LINENO"; then :
20137
20138$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20139
20140 libltdl_cv_func_dlopen="yes"
20141 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20142else
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20144$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020145if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020146 $as_echo_n "(cached) " >&6
20147else
20148 ac_check_lib_save_LIBS=$LIBS
20149LIBS="-lsvld $LIBS"
20150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151/* end confdefs.h. */
20152
20153/* Override any GCC internal prototype to avoid an error.
20154 Use char because int might match the return type of a GCC
20155 builtin and then its argument prototype would still apply. */
20156#ifdef __cplusplus
20157extern "C"
20158#endif
20159char dlopen ();
20160int
20161main ()
20162{
20163return dlopen ();
20164 ;
20165 return 0;
20166}
20167_ACEOF
20168if ac_fn_c_try_link "$LINENO"; then :
20169 ac_cv_lib_svld_dlopen=yes
20170else
20171 ac_cv_lib_svld_dlopen=no
20172fi
20173rm -f core conftest.err conftest.$ac_objext \
20174 conftest$ac_exeext conftest.$ac_ext
20175LIBS=$ac_check_lib_save_LIBS
20176fi
20177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20178$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020179if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020180
20181$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20182
20183 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20184 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20185fi
20186
20187fi
20188rm -f core conftest.err conftest.$ac_objext \
20189 conftest$ac_exeext conftest.$ac_ext
20190fi
20191
20192if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20193then
20194 lt_save_LIBS="$LIBS"
20195 LIBS="$LIBS $LIBADD_DLOPEN"
20196 for ac_func in dlerror
20197do :
20198 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020199if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020200 cat >>confdefs.h <<_ACEOF
20201#define HAVE_DLERROR 1
20202_ACEOF
20203
20204fi
20205done
20206
20207 LIBS="$lt_save_LIBS"
20208fi
20209
20210
20211LIBADD_SHL_LOAD=
20212ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020213if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020214
20215$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20216
20217 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20218else
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20220$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020221if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020222 $as_echo_n "(cached) " >&6
20223else
20224 ac_check_lib_save_LIBS=$LIBS
20225LIBS="-ldld $LIBS"
20226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227/* end confdefs.h. */
20228
20229/* Override any GCC internal prototype to avoid an error.
20230 Use char because int might match the return type of a GCC
20231 builtin and then its argument prototype would still apply. */
20232#ifdef __cplusplus
20233extern "C"
20234#endif
20235char shl_load ();
20236int
20237main ()
20238{
20239return shl_load ();
20240 ;
20241 return 0;
20242}
20243_ACEOF
20244if ac_fn_c_try_link "$LINENO"; then :
20245 ac_cv_lib_dld_shl_load=yes
20246else
20247 ac_cv_lib_dld_shl_load=no
20248fi
20249rm -f core conftest.err conftest.$ac_objext \
20250 conftest$ac_exeext conftest.$ac_ext
20251LIBS=$ac_check_lib_save_LIBS
20252fi
20253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20254$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020255if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020256
20257$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20258
20259 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20260 LIBADD_SHL_LOAD="-ldld"
20261fi
20262
20263fi
20264
20265
20266
20267case $host_os in
20268darwin[1567].*)
20269# We only want this for pre-Mac OS X 10.4.
20270 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020271if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020272
20273$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20274
20275 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20276fi
20277
20278 ;;
20279beos*)
20280 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20281 ;;
20282cygwin* | mingw* | os2* | pw32*)
20283 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20284"
cristyda16f162011-02-19 23:52:17 +000020285if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020286 ac_have_decl=1
20287else
20288 ac_have_decl=0
20289fi
20290
20291cat >>confdefs.h <<_ACEOF
20292#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20293_ACEOF
20294
20295 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20296 ;;
20297esac
20298
20299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20300$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020301if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020302 $as_echo_n "(cached) " >&6
20303else
20304 ac_check_lib_save_LIBS=$LIBS
20305LIBS="-ldld $LIBS"
20306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307/* end confdefs.h. */
20308
20309/* Override any GCC internal prototype to avoid an error.
20310 Use char because int might match the return type of a GCC
20311 builtin and then its argument prototype would still apply. */
20312#ifdef __cplusplus
20313extern "C"
20314#endif
20315char dld_link ();
20316int
20317main ()
20318{
20319return dld_link ();
20320 ;
20321 return 0;
20322}
20323_ACEOF
20324if ac_fn_c_try_link "$LINENO"; then :
20325 ac_cv_lib_dld_dld_link=yes
20326else
20327 ac_cv_lib_dld_dld_link=no
20328fi
20329rm -f core conftest.err conftest.$ac_objext \
20330 conftest$ac_exeext conftest.$ac_ext
20331LIBS=$ac_check_lib_save_LIBS
20332fi
20333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20334$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020335if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020336
20337$as_echo "#define HAVE_DLD 1" >>confdefs.h
20338
20339 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20340fi
20341
20342
20343
20344
20345LT_DLPREOPEN=
20346if test -n "$LT_DLLOADERS"
20347then
20348 for lt_loader in $LT_DLLOADERS; do
20349 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20350 done
20351
20352$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20353
20354fi
20355
20356
20357LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20358
20359
20360ac_ext=c
20361ac_cpp='$CPP $CPPFLAGS'
20362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20364ac_compiler_gnu=$ac_cv_c_compiler_gnu
20365
20366
20367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20368$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020369if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020370 $as_echo_n "(cached) " >&6
20371else
20372 lt_cv_sys_symbol_underscore=no
20373 cat > conftest.$ac_ext <<_LT_EOF
20374void nm_test_func(){}
20375int main(){nm_test_func;return 0;}
20376_LT_EOF
20377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20378 (eval $ac_compile) 2>&5
20379 ac_status=$?
20380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20381 test $ac_status = 0; }; then
20382 # Now try to grab the symbols.
20383 ac_nlist=conftest.nm
20384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20385 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20386 ac_status=$?
20387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20388 test $ac_status = 0; } && test -s "$ac_nlist"; then
20389 # See whether the symbols have a leading underscore.
20390 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20391 lt_cv_sys_symbol_underscore=yes
20392 else
20393 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20394 :
20395 else
20396 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20397 fi
20398 fi
20399 else
20400 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20401 fi
20402 else
20403 echo "configure: failed program was:" >&5
20404 cat conftest.c >&5
20405 fi
20406 rm -rf conftest*
20407
20408fi
20409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20410$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20411 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20412
20413
20414if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20415 if test x"$libltdl_cv_func_dlopen" = xyes ||
20416 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20418$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020419if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020420 $as_echo_n "(cached) " >&6
20421else
20422 libltdl_cv_need_uscore=unknown
20423 save_LIBS="$LIBS"
20424 LIBS="$LIBS $LIBADD_DLOPEN"
20425 if test "$cross_compiling" = yes; then :
20426 libltdl_cv_need_uscore=cross
20427else
20428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20429 lt_status=$lt_dlunknown
20430 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020431#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020432#include "confdefs.h"
20433
20434#if HAVE_DLFCN_H
20435#include <dlfcn.h>
20436#endif
20437
20438#include <stdio.h>
20439
20440#ifdef RTLD_GLOBAL
20441# define LT_DLGLOBAL RTLD_GLOBAL
20442#else
20443# ifdef DL_GLOBAL
20444# define LT_DLGLOBAL DL_GLOBAL
20445# else
20446# define LT_DLGLOBAL 0
20447# endif
20448#endif
20449
20450/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20451 find out it does not work in some platform. */
20452#ifndef LT_DLLAZY_OR_NOW
20453# ifdef RTLD_LAZY
20454# define LT_DLLAZY_OR_NOW RTLD_LAZY
20455# else
20456# ifdef DL_LAZY
20457# define LT_DLLAZY_OR_NOW DL_LAZY
20458# else
20459# ifdef RTLD_NOW
20460# define LT_DLLAZY_OR_NOW RTLD_NOW
20461# else
20462# ifdef DL_NOW
20463# define LT_DLLAZY_OR_NOW DL_NOW
20464# else
20465# define LT_DLLAZY_OR_NOW 0
20466# endif
20467# endif
20468# endif
20469# endif
20470#endif
20471
cristy0c60a692010-11-04 01:09:47 +000020472/* When -fvisbility=hidden is used, assume the code has been annotated
20473 correspondingly for the symbols needed. */
20474#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020475int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020476#endif
20477
cristyda16f162011-02-19 23:52:17 +000020478int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020479int main ()
20480{
20481 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20482 int status = $lt_dlunknown;
20483
20484 if (self)
20485 {
20486 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020487 else
20488 {
20489 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20490 else puts (dlerror ());
20491 }
cristy73bd4a52010-10-05 11:24:23 +000020492 /* dlclose (self); */
20493 }
20494 else
20495 puts (dlerror ());
20496
20497 return status;
20498}
20499_LT_EOF
20500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20501 (eval $ac_link) 2>&5
20502 ac_status=$?
20503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20504 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20505 (./conftest; exit; ) >&5 2>/dev/null
20506 lt_status=$?
20507 case x$lt_status in
20508 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20509 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20510 x$lt_dlunknown|x*) ;;
20511 esac
20512 else :
20513 # compilation failed
20514
20515 fi
20516fi
20517rm -fr conftest*
20518
20519 LIBS="$save_LIBS"
20520
20521fi
20522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20523$as_echo "$libltdl_cv_need_uscore" >&6; }
20524 fi
20525fi
20526
20527if test x"$libltdl_cv_need_uscore" = xyes; then
20528
20529$as_echo "#define NEED_USCORE 1" >>confdefs.h
20530
20531fi
20532
20533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20534$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020535if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020536 $as_echo_n "(cached) " >&6
20537else
20538 # PORTME does your system automatically load deplibs for dlopen?
20539 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20540 # For now, we just catch OSes we know something about -- in the
20541 # future, we'll try test this programmatically.
20542 lt_cv_sys_dlopen_deplibs=unknown
20543 case $host_os in
20544 aix3*|aix4.1.*|aix4.2.*)
20545 # Unknown whether this is true for these versions of AIX, but
20546 # we want this `case' here to explicitly catch those versions.
20547 lt_cv_sys_dlopen_deplibs=unknown
20548 ;;
20549 aix[4-9]*)
20550 lt_cv_sys_dlopen_deplibs=yes
20551 ;;
20552 amigaos*)
20553 case $host_cpu in
20554 powerpc)
20555 lt_cv_sys_dlopen_deplibs=no
20556 ;;
20557 esac
20558 ;;
20559 darwin*)
20560 # Assuming the user has installed a libdl from somewhere, this is true
20561 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20562 lt_cv_sys_dlopen_deplibs=yes
20563 ;;
20564 freebsd* | dragonfly*)
20565 lt_cv_sys_dlopen_deplibs=yes
20566 ;;
cristy0c60a692010-11-04 01:09:47 +000020567 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020568 # GNU and its variants, using gnu ld.so (Glibc)
20569 lt_cv_sys_dlopen_deplibs=yes
20570 ;;
20571 hpux10*|hpux11*)
20572 lt_cv_sys_dlopen_deplibs=yes
20573 ;;
20574 interix*)
20575 lt_cv_sys_dlopen_deplibs=yes
20576 ;;
20577 irix[12345]*|irix6.[01]*)
20578 # Catch all versions of IRIX before 6.2, and indicate that we don't
20579 # know how it worked for any of those versions.
20580 lt_cv_sys_dlopen_deplibs=unknown
20581 ;;
20582 irix*)
20583 # The case above catches anything before 6.2, and it's known that
20584 # at 6.2 and later dlopen does load deplibs.
20585 lt_cv_sys_dlopen_deplibs=yes
20586 ;;
20587 netbsd*)
20588 lt_cv_sys_dlopen_deplibs=yes
20589 ;;
20590 openbsd*)
20591 lt_cv_sys_dlopen_deplibs=yes
20592 ;;
20593 osf[1234]*)
20594 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20595 # it did *not* use an RPATH in a shared library to find objects the
20596 # library depends on, so we explicitly say `no'.
20597 lt_cv_sys_dlopen_deplibs=no
20598 ;;
20599 osf5.0|osf5.0a|osf5.1)
20600 # dlopen *does* load deplibs and with the right loader patch applied
20601 # it even uses RPATH in a shared library to search for shared objects
20602 # that the library depends on, but there's no easy way to know if that
20603 # patch is installed. Since this is the case, all we can really
20604 # say is unknown -- it depends on the patch being installed. If
20605 # it is, this changes to `yes'. Without it, it would be `no'.
20606 lt_cv_sys_dlopen_deplibs=unknown
20607 ;;
20608 osf*)
20609 # the two cases above should catch all versions of osf <= 5.1. Read
20610 # the comments above for what we know about them.
20611 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20612 # is used to find them so we can finally say `yes'.
20613 lt_cv_sys_dlopen_deplibs=yes
20614 ;;
20615 qnx*)
20616 lt_cv_sys_dlopen_deplibs=yes
20617 ;;
20618 solaris*)
20619 lt_cv_sys_dlopen_deplibs=yes
20620 ;;
20621 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20622 libltdl_cv_sys_dlopen_deplibs=yes
20623 ;;
20624 esac
20625
20626fi
20627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20628$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20629if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20630
20631$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20632
20633fi
20634
20635:
20636
20637for ac_header in argz.h
20638do :
20639 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20640"
cristyda16f162011-02-19 23:52:17 +000020641if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020642 cat >>confdefs.h <<_ACEOF
20643#define HAVE_ARGZ_H 1
20644_ACEOF
20645
20646fi
20647
20648done
20649
20650
20651ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20652# include <argz.h>
20653#endif
20654"
cristyda16f162011-02-19 23:52:17 +000020655if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020656
20657cat >>confdefs.h <<_ACEOF
20658#define HAVE_ERROR_T 1
20659_ACEOF
20660
20661
20662else
20663
20664$as_echo "#define error_t int" >>confdefs.h
20665
20666
20667$as_echo "#define __error_t_defined 1" >>confdefs.h
20668
20669fi
20670
20671
20672ARGZ_H=
20673for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20674 argz_next argz_stringify
20675do :
20676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20677ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020678if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020679 cat >>confdefs.h <<_ACEOF
20680#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20681_ACEOF
20682
20683else
20684 ARGZ_H=argz.h;
20685
20686 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20687
20688fi
20689done
20690
20691
20692if test -z "$ARGZ_H"; then :
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20694$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020695if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020696 $as_echo_n "(cached) " >&6
20697else
20698 case $host_os in #(
20699 *cygwin*)
20700 lt_cv_sys_argz_works=no
20701 if test "$cross_compiling" != no; then
20702 lt_cv_sys_argz_works="guessing no"
20703 else
20704 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20705 save_IFS=$IFS
20706 IFS=-.
20707 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20708 IFS=$save_IFS
20709 lt_os_major=${2-0}
20710 lt_os_minor=${3-0}
20711 lt_os_micro=${4-0}
20712 if test "$lt_os_major" -gt 1 \
20713 || { test "$lt_os_major" -eq 1 \
20714 && { test "$lt_os_minor" -gt 5 \
20715 || { test "$lt_os_minor" -eq 5 \
20716 && test "$lt_os_micro" -gt 24; }; }; }; then
20717 lt_cv_sys_argz_works=yes
20718 fi
20719 fi
20720 ;; #(
20721 *) lt_cv_sys_argz_works=yes ;;
20722 esac
20723fi
20724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20725$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020726 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020727
20728$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20729
20730else
20731 ARGZ_H=argz.h
20732
20733
20734 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20735
20736fi
20737fi
20738
20739
20740
20741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20742$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020743if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020744 $as_echo_n "(cached) " >&6
20745else
20746 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20747 libltdl_cv_preloaded_symbols=yes
20748 else
20749 libltdl_cv_preloaded_symbols=no
20750 fi
20751
20752fi
20753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20754$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20755if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20756
20757$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20758
20759fi
20760
20761# Set options
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773# Check whether --with-included_ltdl was given.
20774if test "${with_included_ltdl+set}" = set; then :
20775 withval=$with_included_ltdl;
20776fi
20777
20778
20779if test "x$with_included_ltdl" != xyes; then
20780 # We are not being forced to use the included libltdl sources, so
20781 # decide whether there is a useful installed version we can use.
20782 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20783
20784"
cristyda16f162011-02-19 23:52:17 +000020785if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020786 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20787 #include <ltdl.h>
20788"
cristyda16f162011-02-19 23:52:17 +000020789if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20791$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020792if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020793 $as_echo_n "(cached) " >&6
20794else
20795 ac_check_lib_save_LIBS=$LIBS
20796LIBS="-lltdl $LIBS"
20797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798/* end confdefs.h. */
20799
20800/* Override any GCC internal prototype to avoid an error.
20801 Use char because int might match the return type of a GCC
20802 builtin and then its argument prototype would still apply. */
20803#ifdef __cplusplus
20804extern "C"
20805#endif
20806char lt_dladvise_preload ();
20807int
20808main ()
20809{
20810return lt_dladvise_preload ();
20811 ;
20812 return 0;
20813}
20814_ACEOF
20815if ac_fn_c_try_link "$LINENO"; then :
20816 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20817else
20818 ac_cv_lib_ltdl_lt_dladvise_preload=no
20819fi
20820rm -f core conftest.err conftest.$ac_objext \
20821 conftest$ac_exeext conftest.$ac_ext
20822LIBS=$ac_check_lib_save_LIBS
20823fi
20824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20825$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020826if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020827 with_included_ltdl=no
20828else
20829 with_included_ltdl=yes
20830fi
20831
20832else
20833 with_included_ltdl=yes
20834fi
20835
20836else
20837 with_included_ltdl=yes
20838fi
20839
20840
20841fi
20842
20843
20844
20845
20846# Check whether --with-ltdl_include was given.
20847if test "${with_ltdl_include+set}" = set; then :
20848 withval=$with_ltdl_include;
20849fi
20850
20851
20852if test -n "$with_ltdl_include"; then
20853 if test -f "$with_ltdl_include/ltdl.h"; then :
20854 else
cristy98dddb52010-11-04 00:30:15 +000020855 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020856 fi
20857else
20858 with_ltdl_include=no
20859fi
20860
20861
20862# Check whether --with-ltdl_lib was given.
20863if test "${with_ltdl_lib+set}" = set; then :
20864 withval=$with_ltdl_lib;
20865fi
20866
20867
20868if test -n "$with_ltdl_lib"; then
20869 if test -f "$with_ltdl_lib/libltdl.la"; then :
20870 else
cristy98dddb52010-11-04 00:30:15 +000020871 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020872 fi
20873else
20874 with_ltdl_lib=no
20875fi
20876
20877case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20878 ,yes,no,no,)
20879 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020880 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020881 "") enable_ltdl_convenience=yes
20882 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20883esac
20884LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20885LTDLDEPS=$LIBLTDL
20886LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20887
20888
20889
20890
20891
20892# For backwards non-gettext consistent compatibility...
20893INCLTDL="$LTDLINCL"
20894
20895
20896 ;;
20897 ,no,no,no,)
20898 # If the included ltdl is not to be used, then use the
20899 # preinstalled libltdl we found.
20900
20901$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20902
20903 LIBLTDL=-lltdl
20904 LTDLDEPS=
20905 LTDLINCL=
20906 ;;
20907 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020908 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020909 ;;
20910 *) with_included_ltdl=no
20911 LIBLTDL="-L$with_ltdl_lib -lltdl"
20912 LTDLDEPS=
20913 LTDLINCL="-I$with_ltdl_include"
20914 ;;
20915esac
20916INCLTDL="$LTDLINCL"
20917
20918# Report our decision...
20919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20920$as_echo_n "checking where to find libltdl headers... " >&6; }
20921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20922$as_echo "$LTDLINCL" >&6; }
20923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20924$as_echo_n "checking where to find libltdl library... " >&6; }
20925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20926$as_echo "$LIBLTDL" >&6; }
20927
20928
20929
20930# Check whether --enable-ltdl-install was given.
20931if test "${enable_ltdl_install+set}" = set; then :
20932 enableval=$enable_ltdl_install;
20933fi
20934
20935
20936case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20937 *yes*) ;;
20938 *) enable_ltdl_convenience=yes ;;
20939esac
20940
20941 if test x"${enable_ltdl_install-no}" != xno; then
20942 INSTALL_LTDL_TRUE=
20943 INSTALL_LTDL_FALSE='#'
20944else
20945 INSTALL_LTDL_TRUE='#'
20946 INSTALL_LTDL_FALSE=
20947fi
20948
20949 if test x"${enable_ltdl_convenience-no}" != xno; then
20950 CONVENIENCE_LTDL_TRUE=
20951 CONVENIENCE_LTDL_FALSE='#'
20952else
20953 CONVENIENCE_LTDL_TRUE='#'
20954 CONVENIENCE_LTDL_FALSE=
20955fi
20956
20957
20958
20959
20960
20961
cristy73bd4a52010-10-05 11:24:23 +000020962# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20963# the user used. This is so that ltdl.h can pick up the parent projects
20964# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20965# definitions required by ltdl.c.
20966# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20967
20968
20969
20970for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20971do :
20972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20973ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20974"
cristy98dddb52010-11-04 00:30:15 +000020975if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020976 cat >>confdefs.h <<_ACEOF
20977#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20978_ACEOF
20979
20980fi
20981
20982done
20983
20984
20985for ac_func in closedir opendir readdir
20986do :
20987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020989if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020990 cat >>confdefs.h <<_ACEOF
20991#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20992_ACEOF
20993
20994else
20995
20996
20997 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20998
20999fi
21000done
21001
21002for ac_func in strlcat strlcpy
21003do :
21004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21005ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021006if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021007 cat >>confdefs.h <<_ACEOF
21008#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21009_ACEOF
21010
21011else
21012
21013
21014 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21015
21016fi
21017done
21018
21019
21020
21021cat >>confdefs.h <<_ACEOF
21022#define LT_LIBEXT "$libext"
21023_ACEOF
21024
21025
cristyda16f162011-02-19 23:52:17 +000021026name=
21027eval "lt_libprefix=\"$libname_spec\""
21028
21029cat >>confdefs.h <<_ACEOF
21030#define LT_LIBPREFIX "$lt_libprefix"
21031_ACEOF
21032
21033
cristy73bd4a52010-10-05 11:24:23 +000021034name=ltdl
cristyda16f162011-02-19 23:52:17 +000021035eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021036
21037
21038
21039
21040
21041
21042
21043
21044# Only expand once:
21045
21046
cristy3ed852e2009-09-05 21:47:34 +000021047
21048# Check to see if building shared libraries
21049libtool_build_shared_libs='no'
21050if test "$enable_shared" = 'yes'; then
21051 libtool_build_shared_libs='yes'
21052fi
21053
21054# Check to see if building static libraries
21055libtool_build_static_libs='no'
21056if test "$enable_static" = 'yes'; then
21057 libtool_build_static_libs='yes'
21058fi
21059
cristy73bd4a52010-10-05 11:24:23 +000021060 if test "${libtool_build_shared_libs}" = 'yes'; then
21061 WITH_SHARED_LIBS_TRUE=
21062 WITH_SHARED_LIBS_FALSE='#'
21063else
21064 WITH_SHARED_LIBS_TRUE='#'
21065 WITH_SHARED_LIBS_FALSE=
21066fi
21067
cristy3ed852e2009-09-05 21:47:34 +000021068#
21069# Enable support for building loadable modules
21070#
21071
21072# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021073if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021074 withval=$with_modules; with_modules=$withval
21075else
cristy5a1cefd2010-01-06 20:42:35 +000021076 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021077fi
21078
21079
21080# Only allow building loadable modules if we are building shared libraries
21081if test "$with_modules" != 'no' ; then
21082 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021083 { $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 +000021084$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21085 with_modules='no'
21086 fi
21087fi
21088if test "$with_modules" != 'no'; then
21089
cristy8b350f62009-11-15 23:12:43 +000021090$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021091
21092fi
cristy73bd4a52010-10-05 11:24:23 +000021093 if test "$with_modules" != 'no'; then
21094 WITH_MODULES_TRUE=
21095 WITH_MODULES_FALSE='#'
21096else
21097 WITH_MODULES_TRUE='#'
21098 WITH_MODULES_FALSE=
21099fi
21100
cristy3ed852e2009-09-05 21:47:34 +000021101
21102# Enable building/use of libltdl if we are building shared libraries regardless
21103# of whether modules are built or not.
21104with_ltdl='no'
21105if test "$libtool_build_shared_libs" != 'no'; then
21106 with_ltdl='yes'
21107fi
21108
cristy73bd4a52010-10-05 11:24:23 +000021109 if test "$with_ltdl" != 'no'; then
21110 WITH_LTDL_TRUE=
21111 WITH_LTDL_FALSE='#'
21112else
21113 WITH_LTDL_TRUE='#'
21114 WITH_LTDL_FALSE=
21115fi
21116
cristy3ed852e2009-09-05 21:47:34 +000021117if test "$with_ltdl" != 'no'; then
21118
cristy8b350f62009-11-15 23:12:43 +000021119$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021120
21121
21122 # Set DLLDFLAGS
21123 if test X"$enable_shared" = Xyes; then
21124 DLLDFLAGS=-export-dynamic
21125
21126 fi
21127fi
21128
21129# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021130# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021131# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021132if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021133 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21134else
21135 enable_delegate_build='no'
21136fi
21137
21138
21139# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021140if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021141 enableval=$enable_deprecated; enable_deprecated=$enableval
21142else
21143 enable_deprecated='no'
21144fi
21145
21146
21147if test "$enable_deprecated" = 'yes'; then
21148
cristy8b350f62009-11-15 23:12:43 +000021149$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021150
21151else
21152 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21153fi
21154
21155# Build a version of ImageMagick which operates uninstalled.
21156# Used to build distributions located via MAGICK_HOME / executable path
21157# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021158if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021159 enableval=$enable_installed; enable_installed=$enableval
21160else
21161 enable_installed='yes'
21162fi
21163
21164
21165if test "$enable_installed" = 'yes'; then
21166
cristy8b350f62009-11-15 23:12:43 +000021167$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021168
21169else
21170 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21171fi
21172
21173# Permit enciphering and deciphering image pixels.
21174# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021175if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021176 enableval=$enable_cipher; enable_cipher=$enableval
21177else
21178 enable_cipher='yes'
21179fi
21180
21181
21182if test "$enable_cipher" = 'yes'; then
21183
cristy8b350f62009-11-15 23:12:43 +000021184$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021185
21186fi
21187
cristy6e3607c2011-09-13 13:59:17 +000021188# Build a zero-configuration version of ImageMagick.
21189# Check whether --enable-zero-configuration was given.
21190if test "${enable_zero_configuration+set}" = set; then :
21191 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021192else
cristy6e3607c2011-09-13 13:59:17 +000021193 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021194fi
21195
21196
cristy6e3607c2011-09-13 13:59:17 +000021197if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021198
cristy6e3607c2011-09-13 13:59:17 +000021199$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021200
cristy81af5702011-09-13 14:20:58 +000021201 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021202fi
21203
21204# Build a high dynamic range version of ImageMagick.
21205# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021206if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021207 enableval=$enable_hdri; enable_hdri=$enableval
21208else
21209 enable_hdri='no'
21210fi
21211
21212
21213MAGICK_HDRI=""
21214if test "$enable_hdri" = 'yes'; then
21215 MAGICK_HDRI="HDRI"
21216
cristy8b350f62009-11-15 23:12:43 +000021217$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021218
cristyfd9dcd42010-08-08 18:07:02 +000021219 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021220fi
21221
cristy3ed852e2009-09-05 21:47:34 +000021222# Build a version of ImageMagick with assert statements.
21223# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021224if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021225 enableval=$enable_assert; enable_assert=$enableval
21226else
21227 enable_assert='yes'
21228fi
21229
21230
21231if test "$enable_assert" = 'no'; then
21232
cristy8b350f62009-11-15 23:12:43 +000021233$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021234
21235fi
21236
cristya448bd22011-10-14 12:38:13 +000021237# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021238
21239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21240$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21241 # Check whether --enable-maintainer-mode was given.
21242if test "${enable_maintainer_mode+set}" = set; then :
21243 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21244else
21245 USE_MAINTAINER_MODE=no
21246fi
21247
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21249$as_echo "$USE_MAINTAINER_MODE" >&6; }
21250 if test $USE_MAINTAINER_MODE = yes; then
21251 MAINTAINER_MODE_TRUE=
21252 MAINTAINER_MODE_FALSE='#'
21253else
21254 MAINTAINER_MODE_TRUE='#'
21255 MAINTAINER_MODE_FALSE=
21256fi
21257
21258 MAINT=$MAINTAINER_MODE_TRUE
21259
21260
cristy3ed852e2009-09-05 21:47:34 +000021261
cristy3ed852e2009-09-05 21:47:34 +000021262# Enable ccmalloc memory debugging support
21263# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021264if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021265 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21266else
21267 enable_ccmalloc='no'
21268fi
21269
21270
21271# Enable Electric Fence memory debugging support
21272# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021273if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021274 enableval=$enable_efence; enable_efence=$enableval
21275else
21276 enable_efence='no'
21277fi
21278
21279
21280# Enable prof-based profiling support
21281# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021282if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021283 enableval=$enable_prof; enable_prof=$enableval
21284else
21285 enable_prof='no'
21286fi
21287
21288
21289# Enable gprof-based profiling support
21290# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021291if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021292 enableval=$enable_gprof; enable_gprof=$enableval
21293else
21294 enable_gprof='no'
21295fi
21296
21297
21298# Enable gcov-based profiling support
21299# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021300if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021301 enableval=$enable_gcov; enable_gcov=$enableval
21302else
21303 enable_gcov='no'
21304fi
21305
21306
21307enable_profiling='no'
21308if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21309 enable_profiling='yes'
21310 if test "$libtool_build_shared_libs" = 'yes'; then
21311 echo "Warning: Can not profile code using shared libraries"
21312 fi
21313fi
21314
21315# Magick API method prefix
21316
21317# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021318if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021319 withval=$with_method_prefix; with_method_prefix=$enableval
21320else
21321 with_method_prefix=''
21322fi
21323
21324
21325if test "$with_method_prefix" != ''; then
21326
21327cat >>confdefs.h <<_ACEOF
21328#define NAMESPACE_PREFIX $with_method_prefix
21329_ACEOF
21330
21331fi
21332
21333# Number of bits in a Quantum
21334
21335# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021336if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021337 withval=$with_quantum_depth; with_quantum_depth=$withval
21338else
21339 with_quantum_depth=16
21340fi
21341
21342
21343if test "$with_quantum_depth" != '8'; then
21344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21345fi
21346
21347case "${with_quantum_depth}" in
21348 8 ) ;;
21349 16 ) ;;
21350 32 ) ;;
21351 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021352 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021353esac
21354QUANTUM_DEPTH="$with_quantum_depth"
21355
21356cat >>confdefs.h <<_ACEOF
21357#define QUANTUM_DEPTH $QUANTUM_DEPTH
21358_ACEOF
21359
21360
21361# Set pixel cache threshold
21362
21363# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021364if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021365 withval=$with_cache; with_cache=$withval
21366else
21367 with_cache=''
21368fi
21369
21370
21371if test "$with_cache" != ''; then
21372
21373cat >>confdefs.h <<_ACEOF
21374#define PixelCacheThreshold $with_cache
21375_ACEOF
21376
21377 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21378fi
21379
21380# Disable/Enable support for full delegate paths
21381
21382# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021383if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021384 withval=$with_frozenpaths; with_frozenpaths=$withval
21385else
21386 with_frozenpaths='no'
21387fi
21388
21389
21390# Enable build/install of Magick++
21391
21392# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021393if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021394 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21395else
21396 with_magick_plus_plus='yes'
21397fi
21398
21399
21400# Disable build/install of PerlMagick.
21401
21402# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021403if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021404 withval=$with_perl; with_perl=$withval
21405else
cristyb5f4e2f2010-04-25 00:49:11 +000021406 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021407fi
21408
21409
21410# Options to pass when configuring PerlMagick
21411
21412# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021413if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021414 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021415fi
21416
21417
cristy3ed852e2009-09-05 21:47:34 +000021418
21419# Enable umem, object-caching memory allocation library.
21420
21421# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021422if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021423 withval=$with_umem; with_umem=$withval
21424else
21425 with_umem='no'
21426fi
21427
21428if test "$with_umem" != 'yes' ; then
21429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21430fi
21431
21432#
21433# Specify path to shared libstdc++ if not in normal location
21434#
21435
21436# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021437if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021438 withval=$with_libstdc; with_libstdc=$withval
21439else
21440 with_libstdc=''
21441fi
21442
21443
21444if test "$with_libstdc" != ''; then
21445 if test -d "$with_libstdc"; then
21446 LIBSTDCLDFLAGS="-L$with_libstdc"
21447 fi
21448fi
21449
21450
21451# Does gcc required -traditional?
21452if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021454$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021455if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021456 $as_echo_n "(cached) " >&6
21457else
21458 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021460/* end confdefs.h. */
21461#include <sgtty.h>
21462Autoconf TIOCGETP
21463_ACEOF
21464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021465 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021466 ac_cv_prog_gcc_traditional=yes
21467else
21468 ac_cv_prog_gcc_traditional=no
21469fi
21470rm -f conftest*
21471
21472
21473 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021475/* end confdefs.h. */
21476#include <termio.h>
21477Autoconf TCGETA
21478_ACEOF
21479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021480 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021481 ac_cv_prog_gcc_traditional=yes
21482fi
21483rm -f conftest*
21484
21485 fi
21486fi
cristy8b350f62009-11-15 23:12:43 +000021487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021488$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21489 if test $ac_cv_prog_gcc_traditional = yes; then
21490 CC="$CC -traditional"
21491 fi
21492fi
21493
21494
21495########
21496#
21497# Set defines required to build DLLs and modules using MinGW
21498#
21499########
21500# These options are set for multi-thread DLL module build
21501# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21502# module: _DLL
21503# executable/Magick++: _DLL _MAGICKMOD_
21504MODULE_EXTRA_CPPFLAGS=''
21505LIBRARY_EXTRA_CPPFLAGS=''
21506if test "${native_win32_build}" = 'yes'; then
21507 if test "${libtool_build_shared_libs}" = 'yes'; then
21508 CPPFLAGS="$CPPFLAGS -D_DLL"
21509 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21510 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21511 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21512 if test "$with_modules" = 'yes'; then
21513 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21514 else
21515 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21516 fi
21517 else
21518 CPPFLAGS="$CPPFLAGS -D_LIB"
21519 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21520 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21521 fi
21522 if test "$with_threads" = 'yes'; then
21523 CPPFLAGS="$CPPFLAGS -D_MT"
21524 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21525 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21526 fi
21527fi
21528
21529
21530
21531# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021533$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021534if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021535 $as_echo_n "(cached) " >&6
21536else
cristy8b350f62009-11-15 23:12:43 +000021537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021538/* end confdefs.h. */
21539#include <stdlib.h>
21540#include <stdarg.h>
21541#include <string.h>
21542#include <float.h>
21543
21544int
21545main ()
21546{
21547
21548 ;
21549 return 0;
21550}
21551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021552if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021553 ac_cv_header_stdc=yes
21554else
cristy8b350f62009-11-15 23:12:43 +000021555 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021556fi
cristy3ed852e2009-09-05 21:47:34 +000021557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558
21559if test $ac_cv_header_stdc = yes; then
21560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021562/* end confdefs.h. */
21563#include <string.h>
21564
21565_ACEOF
21566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021567 $EGREP "memchr" >/dev/null 2>&1; then :
21568
cristy3ed852e2009-09-05 21:47:34 +000021569else
21570 ac_cv_header_stdc=no
21571fi
21572rm -f conftest*
21573
21574fi
21575
21576if test $ac_cv_header_stdc = yes; then
21577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021579/* end confdefs.h. */
21580#include <stdlib.h>
21581
21582_ACEOF
21583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021584 $EGREP "free" >/dev/null 2>&1; then :
21585
cristy3ed852e2009-09-05 21:47:34 +000021586else
21587 ac_cv_header_stdc=no
21588fi
21589rm -f conftest*
21590
21591fi
21592
21593if test $ac_cv_header_stdc = yes; then
21594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021595 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021596 :
21597else
cristy8b350f62009-11-15 23:12:43 +000021598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021599/* end confdefs.h. */
21600#include <ctype.h>
21601#include <stdlib.h>
21602#if ((' ' & 0x0FF) == 0x020)
21603# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21604# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21605#else
21606# define ISLOWER(c) \
21607 (('a' <= (c) && (c) <= 'i') \
21608 || ('j' <= (c) && (c) <= 'r') \
21609 || ('s' <= (c) && (c) <= 'z'))
21610# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21611#endif
21612
21613#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21614int
21615main ()
21616{
21617 int i;
21618 for (i = 0; i < 256; i++)
21619 if (XOR (islower (i), ISLOWER (i))
21620 || toupper (i) != TOUPPER (i))
21621 return 2;
21622 return 0;
21623}
21624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021625if ac_fn_c_try_run "$LINENO"; then :
21626
cristy3ed852e2009-09-05 21:47:34 +000021627else
cristy8b350f62009-11-15 23:12:43 +000021628 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021629fi
cristy8b350f62009-11-15 23:12:43 +000021630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21631 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021632fi
21633
cristy3ed852e2009-09-05 21:47:34 +000021634fi
21635fi
cristy8b350f62009-11-15 23:12:43 +000021636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021637$as_echo "$ac_cv_header_stdc" >&6; }
21638if test $ac_cv_header_stdc = yes; then
21639
cristy8b350f62009-11-15 23:12:43 +000021640$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021641
21642fi
21643
21644if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021645 { $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 +000021646 header files. Compilation cannot proceed. Please install the ANSI C
21647 headers and rerun this script." >&5
21648$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21649 header files. Compilation cannot proceed. Please install the ANSI C
21650 headers and rerun this script." >&2;};
21651fi
cristya0b81c32010-01-22 02:54:33 +000021652
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21654$as_echo_n "checking whether to enable assertions... " >&6; }
21655 # Check whether --enable-assert was given.
21656if test "${enable_assert+set}" = set; then :
21657 enableval=$enable_assert; ac_enable_assert=$enableval
21658 if test "x$enableval" = xno; then :
21659
21660$as_echo "#define NDEBUG 1" >>confdefs.h
21661
21662elif test "x$enableval" != xyes; then :
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21664$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21665 ac_enable_assert=yes
21666fi
21667else
21668 ac_enable_assert=yes
21669fi
21670
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21672$as_echo "$ac_enable_assert" >&6; }
21673
cristy3ed852e2009-09-05 21:47:34 +000021674ac_header_dirent=no
21675for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21676 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021678$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021679if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021680 $as_echo_n "(cached) " >&6
21681else
cristy8b350f62009-11-15 23:12:43 +000021682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021683/* end confdefs.h. */
21684#include <sys/types.h>
21685#include <$ac_hdr>
21686
21687int
21688main ()
21689{
21690if ((DIR *) 0)
21691return 0;
21692 ;
21693 return 0;
21694}
21695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021696if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021697 eval "$as_ac_Header=yes"
21698else
cristy8b350f62009-11-15 23:12:43 +000021699 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021700fi
cristy3ed852e2009-09-05 21:47:34 +000021701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702fi
cristy8b350f62009-11-15 23:12:43 +000021703eval ac_res=\$$as_ac_Header
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021705$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021706if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021707 cat >>confdefs.h <<_ACEOF
21708#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21709_ACEOF
21710
21711ac_header_dirent=$ac_hdr; break
21712fi
21713
21714done
21715# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21716if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021718$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021719if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021720 $as_echo_n "(cached) " >&6
21721else
21722 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021724/* end confdefs.h. */
21725
21726/* Override any GCC internal prototype to avoid an error.
21727 Use char because int might match the return type of a GCC
21728 builtin and then its argument prototype would still apply. */
21729#ifdef __cplusplus
21730extern "C"
21731#endif
21732char opendir ();
21733int
21734main ()
21735{
21736return opendir ();
21737 ;
21738 return 0;
21739}
21740_ACEOF
21741for ac_lib in '' dir; do
21742 if test -z "$ac_lib"; then
21743 ac_res="none required"
21744 else
21745 ac_res=-l$ac_lib
21746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21747 fi
cristy8b350f62009-11-15 23:12:43 +000021748 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021749 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021750fi
cristy8b350f62009-11-15 23:12:43 +000021751rm -f core conftest.err conftest.$ac_objext \
21752 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021753 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021754 break
21755fi
21756done
cristyda16f162011-02-19 23:52:17 +000021757if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021758
cristy3ed852e2009-09-05 21:47:34 +000021759else
21760 ac_cv_search_opendir=no
21761fi
21762rm conftest.$ac_ext
21763LIBS=$ac_func_search_save_LIBS
21764fi
cristy8b350f62009-11-15 23:12:43 +000021765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021766$as_echo "$ac_cv_search_opendir" >&6; }
21767ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021768if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21770
21771fi
21772
21773else
cristy8b350f62009-11-15 23:12:43 +000021774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021775$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021776if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021777 $as_echo_n "(cached) " >&6
21778else
21779 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021781/* end confdefs.h. */
21782
21783/* Override any GCC internal prototype to avoid an error.
21784 Use char because int might match the return type of a GCC
21785 builtin and then its argument prototype would still apply. */
21786#ifdef __cplusplus
21787extern "C"
21788#endif
21789char opendir ();
21790int
21791main ()
21792{
21793return opendir ();
21794 ;
21795 return 0;
21796}
21797_ACEOF
21798for ac_lib in '' x; do
21799 if test -z "$ac_lib"; then
21800 ac_res="none required"
21801 else
21802 ac_res=-l$ac_lib
21803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21804 fi
cristy8b350f62009-11-15 23:12:43 +000021805 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021806 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021807fi
cristy8b350f62009-11-15 23:12:43 +000021808rm -f core conftest.err conftest.$ac_objext \
21809 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021810 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021811 break
21812fi
21813done
cristyda16f162011-02-19 23:52:17 +000021814if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021815
cristy3ed852e2009-09-05 21:47:34 +000021816else
21817 ac_cv_search_opendir=no
21818fi
21819rm conftest.$ac_ext
21820LIBS=$ac_func_search_save_LIBS
21821fi
cristy8b350f62009-11-15 23:12:43 +000021822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021823$as_echo "$ac_cv_search_opendir" >&6; }
21824ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021825if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21827
21828fi
21829
21830fi
21831
21832
21833# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021834for 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 +000021835do :
21836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21837ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021838if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021839 cat >>confdefs.h <<_ACEOF
21840#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21841_ACEOF
21842
21843fi
21844
21845done
21846
21847
21848########
21849#
21850# Checks for typedefs, structures, and compiler characteristics.
21851#
21852########
21853
cristy8b350f62009-11-15 23:12:43 +000021854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021855$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021856if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021857 $as_echo_n "(cached) " >&6
21858else
cristy8b350f62009-11-15 23:12:43 +000021859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021860/* end confdefs.h. */
21861
21862#include <stdbool.h>
21863#ifndef bool
21864 "error: bool is not defined"
21865#endif
21866#ifndef false
21867 "error: false is not defined"
21868#endif
21869#if false
21870 "error: false is not 0"
21871#endif
21872#ifndef true
21873 "error: true is not defined"
21874#endif
21875#if true != 1
21876 "error: true is not 1"
21877#endif
21878#ifndef __bool_true_false_are_defined
21879 "error: __bool_true_false_are_defined is not defined"
21880#endif
21881
21882 struct s { _Bool s: 1; _Bool t; } s;
21883
21884 char a[true == 1 ? 1 : -1];
21885 char b[false == 0 ? 1 : -1];
21886 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21887 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021888 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021889 char f[(_Bool) 0.0 == false ? 1 : -1];
21890 char g[true];
21891 char h[sizeof (_Bool)];
21892 char i[sizeof s.t];
21893 enum { j = false, k = true, l = false * true, m = true * 256 };
21894 /* The following fails for
21895 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21896 _Bool n[m];
21897 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21898 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021899 /* Catch a bug in an HP-UX C compiler. See
21900 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21901 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21902 */
21903 _Bool q = true;
21904 _Bool *pq = &q;
21905
21906int
21907main ()
21908{
21909
cristyda16f162011-02-19 23:52:17 +000021910 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021911 *pq |= q;
21912 *pq |= ! q;
21913 /* Refer to every declared value, to avoid compiler optimizations. */
21914 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21915 + !m + !n + !o + !p + !q + !pq);
21916
21917 ;
21918 return 0;
21919}
21920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021921if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021922 ac_cv_header_stdbool_h=yes
21923else
cristy8b350f62009-11-15 23:12:43 +000021924 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021925fi
cristy3ed852e2009-09-05 21:47:34 +000021926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927fi
cristy8b350f62009-11-15 23:12:43 +000021928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021929$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021930ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021931if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021932
21933cat >>confdefs.h <<_ACEOF
21934#define HAVE__BOOL 1
21935_ACEOF
21936
21937
21938fi
21939
21940if test $ac_cv_header_stdbool_h = yes; then
21941
cristy8b350f62009-11-15 23:12:43 +000021942$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021943
21944fi
21945
cristy8b350f62009-11-15 23:12:43 +000021946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021947$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021948if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021949 $as_echo_n "(cached) " >&6
21950else
cristy8b350f62009-11-15 23:12:43 +000021951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021952/* end confdefs.h. */
21953
21954int
21955main ()
21956{
21957
21958volatile int x;
21959int * volatile y = (int *) 0;
21960return !x && !y;
21961 ;
21962 return 0;
21963}
21964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021965if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021966 ac_cv_c_volatile=yes
21967else
cristy8b350f62009-11-15 23:12:43 +000021968 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021969fi
cristy3ed852e2009-09-05 21:47:34 +000021970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21971fi
cristy8b350f62009-11-15 23:12:43 +000021972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021973$as_echo "$ac_cv_c_volatile" >&6; }
21974if test $ac_cv_c_volatile = no; then
21975
cristy8b350f62009-11-15 23:12:43 +000021976$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021977
21978fi
21979
cristy8b350f62009-11-15 23:12:43 +000021980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021981$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021982if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021983 $as_echo_n "(cached) " >&6
21984else
cristy8b350f62009-11-15 23:12:43 +000021985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021986/* end confdefs.h. */
21987#define x(y) #y
21988
21989char *s = x(teststring);
21990_ACEOF
21991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021992 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021993 ac_cv_c_stringize=no
21994else
21995 ac_cv_c_stringize=yes
21996fi
21997rm -f conftest*
21998
21999fi
cristy8b350f62009-11-15 23:12:43 +000022000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022001$as_echo "$ac_cv_c_stringize" >&6; }
22002if test $ac_cv_c_stringize = yes; then
22003
cristy8b350f62009-11-15 23:12:43 +000022004$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022005
22006fi
22007
cristy8b350f62009-11-15 23:12:43 +000022008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022010if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022011 $as_echo_n "(cached) " >&6
22012else
cristy8b350f62009-11-15 23:12:43 +000022013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022014/* end confdefs.h. */
22015#include <sys/types.h>
22016#include <sys/stat.h>
22017
22018#if defined S_ISBLK && defined S_IFDIR
22019extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22020#endif
22021
22022#if defined S_ISBLK && defined S_IFCHR
22023extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22024#endif
22025
22026#if defined S_ISLNK && defined S_IFREG
22027extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22028#endif
22029
22030#if defined S_ISSOCK && defined S_IFREG
22031extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22032#endif
22033
22034_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022035if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022036 ac_cv_header_stat_broken=no
22037else
cristy8b350f62009-11-15 23:12:43 +000022038 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022039fi
cristy3ed852e2009-09-05 21:47:34 +000022040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22041fi
cristy8b350f62009-11-15 23:12:43 +000022042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022043$as_echo "$ac_cv_header_stat_broken" >&6; }
22044if test $ac_cv_header_stat_broken = yes; then
22045
cristy8b350f62009-11-15 23:12:43 +000022046$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022047
22048fi
22049
cristy8b350f62009-11-15 23:12:43 +000022050{ $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 +000022051$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022052if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022053 $as_echo_n "(cached) " >&6
22054else
cristy8b350f62009-11-15 23:12:43 +000022055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022056/* end confdefs.h. */
22057#include <sys/types.h>
22058#include <sys/time.h>
22059#include <time.h>
22060
22061int
22062main ()
22063{
22064if ((struct tm *) 0)
22065return 0;
22066 ;
22067 return 0;
22068}
22069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022070if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022071 ac_cv_header_time=yes
22072else
cristy8b350f62009-11-15 23:12:43 +000022073 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022074fi
cristy3ed852e2009-09-05 21:47:34 +000022075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22076fi
cristy8b350f62009-11-15 23:12:43 +000022077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022078$as_echo "$ac_cv_header_time" >&6; }
22079if test $ac_cv_header_time = yes; then
22080
cristy8b350f62009-11-15 23:12:43 +000022081$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022082
22083fi
22084
cristy8b350f62009-11-15 23:12:43 +000022085{ $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 +000022086$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022087if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022088 $as_echo_n "(cached) " >&6
22089else
cristy8b350f62009-11-15 23:12:43 +000022090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022091/* end confdefs.h. */
22092#include <sys/types.h>
22093#include <time.h>
22094
22095int
22096main ()
22097{
22098struct tm tm;
22099 int *p = &tm.tm_sec;
22100 return !p;
22101 ;
22102 return 0;
22103}
22104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022105if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022106 ac_cv_struct_tm=time.h
22107else
cristy8b350f62009-11-15 23:12:43 +000022108 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022109fi
cristy3ed852e2009-09-05 21:47:34 +000022110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22111fi
cristy8b350f62009-11-15 23:12:43 +000022112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022113$as_echo "$ac_cv_struct_tm" >&6; }
22114if test $ac_cv_struct_tm = sys/time.h; then
22115
cristy8b350f62009-11-15 23:12:43 +000022116$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022117
22118fi
22119
cristy92703d82010-04-26 00:18:18 +000022120ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22121#include <$ac_cv_struct_tm>
22122
22123"
cristyda16f162011-02-19 23:52:17 +000022124if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022125
22126cat >>confdefs.h <<_ACEOF
22127#define HAVE_STRUCT_TM_TM_ZONE 1
22128_ACEOF
22129
22130
22131fi
22132
22133if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22134
22135$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22136
22137else
22138 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22139"
cristyda16f162011-02-19 23:52:17 +000022140if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022141 ac_have_decl=1
22142else
22143 ac_have_decl=0
22144fi
22145
22146cat >>confdefs.h <<_ACEOF
22147#define HAVE_DECL_TZNAME $ac_have_decl
22148_ACEOF
22149
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22151$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022152if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022153 $as_echo_n "(cached) " >&6
22154else
22155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22156/* end confdefs.h. */
22157#include <time.h>
22158#if !HAVE_DECL_TZNAME
22159extern char *tzname[];
22160#endif
22161
22162int
22163main ()
22164{
22165return tzname[0][0];
22166 ;
22167 return 0;
22168}
22169_ACEOF
22170if ac_fn_c_try_link "$LINENO"; then :
22171 ac_cv_var_tzname=yes
22172else
22173 ac_cv_var_tzname=no
22174fi
22175rm -f core conftest.err conftest.$ac_objext \
22176 conftest$ac_exeext conftest.$ac_ext
22177fi
22178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22179$as_echo "$ac_cv_var_tzname" >&6; }
22180 if test $ac_cv_var_tzname = yes; then
22181
22182$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22183
22184 fi
22185fi
22186
cristy8b350f62009-11-15 23:12:43 +000022187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022188$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022189if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022190 $as_echo_n "(cached) " >&6
22191else
22192 echo '#! /bin/cat
22193exit 69
22194' >conftest
22195chmod u+x conftest
22196(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22197if test $? -ne 69; then
22198 ac_cv_sys_interpreter=yes
22199else
22200 ac_cv_sys_interpreter=no
22201fi
22202rm -f conftest
22203fi
cristy8b350f62009-11-15 23:12:43 +000022204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022205$as_echo "$ac_cv_sys_interpreter" >&6; }
22206interpval=$ac_cv_sys_interpreter
22207
22208
cristy3ed852e2009-09-05 21:47:34 +000022209# If the C compiler supports the keyword inline, do nothing. Otherwise
22210# define inline to __inline__ or __inline if it accepts one of those,
22211# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022213$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022214if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022215 $as_echo_n "(cached) " >&6
22216else
22217 ac_cv_c_inline=no
22218for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022220/* end confdefs.h. */
22221#ifndef __cplusplus
22222typedef int foo_t;
22223static $ac_kw foo_t static_foo () {return 0; }
22224$ac_kw foo_t foo () {return 0; }
22225#endif
22226
22227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022228if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022229 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022230fi
cristy3ed852e2009-09-05 21:47:34 +000022231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232 test "$ac_cv_c_inline" != no && break
22233done
22234
22235fi
cristy8b350f62009-11-15 23:12:43 +000022236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022237$as_echo "$ac_cv_c_inline" >&6; }
22238
cristy3ed852e2009-09-05 21:47:34 +000022239case $ac_cv_c_inline in
22240 inline | yes) ;;
22241 *)
22242 case $ac_cv_c_inline in
22243 no) ac_val=;;
22244 *) ac_val=$ac_cv_c_inline;;
22245 esac
22246 cat >>confdefs.h <<_ACEOF
22247#ifndef __cplusplus
22248#define inline $ac_val
22249#endif
22250_ACEOF
22251 ;;
22252esac
22253
22254
22255# If the C compiler supports the keyword restrict, do nothing. Otherwise
22256# define restrict to __restrict__ or __restrict if it accepts one of those,
22257# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022259$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022260if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022261 $as_echo_n "(cached) " >&6
22262else
22263 ac_cv_c_restrict=no
22264 # The order here caters to the fact that C++ does not require restrict.
22265 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022267/* end confdefs.h. */
22268typedef int * int_ptr;
22269 int foo (int_ptr $ac_kw ip) {
22270 return ip[0];
22271 }
22272int
22273main ()
22274{
22275int s[1];
22276 int * $ac_kw t = s;
22277 t[0] = 0;
22278 return foo(t)
22279 ;
22280 return 0;
22281}
22282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022284 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022285fi
cristy3ed852e2009-09-05 21:47:34 +000022286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22287 test "$ac_cv_c_restrict" != no && break
22288 done
22289
22290fi
cristy8b350f62009-11-15 23:12:43 +000022291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022292$as_echo "$ac_cv_c_restrict" >&6; }
22293
cristy3ed852e2009-09-05 21:47:34 +000022294 case $ac_cv_c_restrict in
22295 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022296 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022297 ;;
22298 *) cat >>confdefs.h <<_ACEOF
22299#define restrict $ac_cv_c_restrict
22300_ACEOF
22301 ;;
22302 esac
22303
22304
22305# If words are stored with the most significant byte first (like
22306# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022308$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022309if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022310 $as_echo_n "(cached) " >&6
22311else
22312 ac_cv_c_bigendian=unknown
22313 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022315/* end confdefs.h. */
22316#ifndef __APPLE_CC__
22317 not a universal capable compiler
22318 #endif
22319 typedef int dummy;
22320
22321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022322if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022323
22324 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022325 # there are at least two -arch flags with different values.
22326 ac_arch=
22327 ac_prev=
22328 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22329 if test -n "$ac_prev"; then
22330 case $ac_word in
22331 i?86 | x86_64 | ppc | ppc64)
22332 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22333 ac_arch=$ac_word
22334 else
22335 ac_cv_c_bigendian=universal
22336 break
22337 fi
22338 ;;
22339 esac
22340 ac_prev=
22341 elif test "x$ac_word" = "x-arch"; then
22342 ac_prev=arch
22343 fi
22344 done
cristy3ed852e2009-09-05 21:47:34 +000022345fi
cristy3ed852e2009-09-05 21:47:34 +000022346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22347 if test $ac_cv_c_bigendian = unknown; then
22348 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022350/* end confdefs.h. */
22351#include <sys/types.h>
22352 #include <sys/param.h>
22353
22354int
22355main ()
22356{
22357#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22358 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22359 && LITTLE_ENDIAN)
22360 bogus endian macros
22361 #endif
22362
22363 ;
22364 return 0;
22365}
22366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022367if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022368 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022370/* end confdefs.h. */
22371#include <sys/types.h>
22372 #include <sys/param.h>
22373
22374int
22375main ()
22376{
22377#if BYTE_ORDER != BIG_ENDIAN
22378 not big endian
22379 #endif
22380
22381 ;
22382 return 0;
22383}
22384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022385if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022386 ac_cv_c_bigendian=yes
22387else
cristy8b350f62009-11-15 23:12:43 +000022388 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022389fi
cristy3ed852e2009-09-05 21:47:34 +000022390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022391fi
cristy3ed852e2009-09-05 21:47:34 +000022392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393 fi
22394 if test $ac_cv_c_bigendian = unknown; then
22395 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022397/* end confdefs.h. */
22398#include <limits.h>
22399
22400int
22401main ()
22402{
22403#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22404 bogus endian macros
22405 #endif
22406
22407 ;
22408 return 0;
22409}
22410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022411if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022412 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022414/* end confdefs.h. */
22415#include <limits.h>
22416
22417int
22418main ()
22419{
22420#ifndef _BIG_ENDIAN
22421 not big endian
22422 #endif
22423
22424 ;
22425 return 0;
22426}
22427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022428if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022429 ac_cv_c_bigendian=yes
22430else
cristy8b350f62009-11-15 23:12:43 +000022431 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022432fi
cristy3ed852e2009-09-05 21:47:34 +000022433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022434fi
cristy3ed852e2009-09-05 21:47:34 +000022435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22436 fi
22437 if test $ac_cv_c_bigendian = unknown; then
22438 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022439 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022440 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022442/* end confdefs.h. */
22443short int ascii_mm[] =
22444 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22445 short int ascii_ii[] =
22446 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22447 int use_ascii (int i) {
22448 return ascii_mm[i] + ascii_ii[i];
22449 }
22450 short int ebcdic_ii[] =
22451 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22452 short int ebcdic_mm[] =
22453 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22454 int use_ebcdic (int i) {
22455 return ebcdic_mm[i] + ebcdic_ii[i];
22456 }
22457 extern int foo;
22458
22459int
22460main ()
22461{
22462return use_ascii (foo) == use_ebcdic (foo);
22463 ;
22464 return 0;
22465}
22466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022467if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022468 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22469 ac_cv_c_bigendian=yes
22470 fi
22471 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22472 if test "$ac_cv_c_bigendian" = unknown; then
22473 ac_cv_c_bigendian=no
22474 else
22475 # finding both strings is unlikely to happen, but who knows?
22476 ac_cv_c_bigendian=unknown
22477 fi
22478 fi
cristy3ed852e2009-09-05 21:47:34 +000022479fi
cristy3ed852e2009-09-05 21:47:34 +000022480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22481else
cristy8b350f62009-11-15 23:12:43 +000022482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022483/* end confdefs.h. */
22484$ac_includes_default
22485int
22486main ()
22487{
22488
22489 /* Are we little or big endian? From Harbison&Steele. */
22490 union
22491 {
22492 long int l;
22493 char c[sizeof (long int)];
22494 } u;
22495 u.l = 1;
22496 return u.c[sizeof (long int) - 1] == 1;
22497
22498 ;
22499 return 0;
22500}
22501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022502if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022503 ac_cv_c_bigendian=no
22504else
cristy8b350f62009-11-15 23:12:43 +000022505 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022506fi
cristy8b350f62009-11-15 23:12:43 +000022507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22508 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022509fi
22510
cristy3ed852e2009-09-05 21:47:34 +000022511 fi
22512fi
cristy8b350f62009-11-15 23:12:43 +000022513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022514$as_echo "$ac_cv_c_bigendian" >&6; }
22515 case $ac_cv_c_bigendian in #(
22516 yes)
cristy8b350f62009-11-15 23:12:43 +000022517 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022518;; #(
22519 no)
22520 ;; #(
22521 universal)
22522
cristy8b350f62009-11-15 23:12:43 +000022523$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022524
22525 ;; #(
22526 *)
cristy98dddb52010-11-04 00:30:15 +000022527 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022528 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022529 esac
22530
22531
cristy501c8042011-05-26 17:46:28 +000022532# Define to a suitable type, if standard headers do not define it.
22533ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22534case $ac_cv_c_int8_t in #(
22535 no|yes) ;; #(
22536 *)
cristy3ed852e2009-09-05 21:47:34 +000022537
22538cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022539#define int8_t $ac_cv_c_int8_t
22540_ACEOF
22541;;
22542esac
22543
22544ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22545case $ac_cv_c_int16_t in #(
22546 no|yes) ;; #(
22547 *)
22548
22549cat >>confdefs.h <<_ACEOF
22550#define int16_t $ac_cv_c_int16_t
22551_ACEOF
22552;;
22553esac
22554
22555ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22556case $ac_cv_c_int32_t in #(
22557 no|yes) ;; #(
22558 *)
22559
22560cat >>confdefs.h <<_ACEOF
22561#define int32_t $ac_cv_c_int32_t
22562_ACEOF
22563;;
22564esac
22565
22566ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22567case $ac_cv_c_int64_t in #(
22568 no|yes) ;; #(
22569 *)
22570
22571cat >>confdefs.h <<_ACEOF
22572#define int64_t $ac_cv_c_int64_t
22573_ACEOF
22574;;
22575esac
22576
22577
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22579$as_echo_n "checking for long long int... " >&6; }
22580if ${ac_cv_type_long_long_int+:} false; then :
22581 $as_echo_n "(cached) " >&6
22582else
22583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22584/* end confdefs.h. */
22585
22586 /* For now, do not test the preprocessor; as of 2007 there are too many
22587 implementations with broken preprocessors. Perhaps this can
22588 be revisited in 2012. In the meantime, code should not expect
22589 #if to work with literals wider than 32 bits. */
22590 /* Test literals. */
22591 long long int ll = 9223372036854775807ll;
22592 long long int nll = -9223372036854775807LL;
22593 unsigned long long int ull = 18446744073709551615ULL;
22594 /* Test constant expressions. */
22595 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22596 ? 1 : -1)];
22597 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22598 ? 1 : -1)];
22599 int i = 63;
22600int
22601main ()
22602{
22603/* Test availability of runtime routines for shift and division. */
22604 long long int llmax = 9223372036854775807ll;
22605 unsigned long long int ullmax = 18446744073709551615ull;
22606 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22607 | (llmax / ll) | (llmax % ll)
22608 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22609 | (ullmax / ull) | (ullmax % ull));
22610 ;
22611 return 0;
22612}
22613
22614_ACEOF
22615if ac_fn_c_try_link "$LINENO"; then :
22616 if test "$cross_compiling" = yes; then :
22617 ac_cv_type_long_long_int=yes
22618else
22619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22620/* end confdefs.h. */
22621#include <limits.h>
22622 #ifndef LLONG_MAX
22623 # define HALF \
22624 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22625 # define LLONG_MAX (HALF - 1 + HALF)
22626 #endif
22627int
22628main ()
22629{
22630long long int n = 1;
22631 int i;
22632 for (i = 0; ; i++)
22633 {
22634 long long int m = n << i;
22635 if (m >> i != n)
22636 return 1;
22637 if (LLONG_MAX / 2 < m)
22638 break;
22639 }
22640 return 0;
22641 ;
22642 return 0;
22643}
22644_ACEOF
22645if ac_fn_c_try_run "$LINENO"; then :
22646 ac_cv_type_long_long_int=yes
22647else
22648 ac_cv_type_long_long_int=no
22649fi
22650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22651 conftest.$ac_objext conftest.beam conftest.$ac_ext
22652fi
22653
22654else
22655 ac_cv_type_long_long_int=no
22656fi
22657rm -f core conftest.err conftest.$ac_objext \
22658 conftest$ac_exeext conftest.$ac_ext
22659fi
22660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22661$as_echo "$ac_cv_type_long_long_int" >&6; }
22662 if test $ac_cv_type_long_long_int = yes; then
22663
22664$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22665
22666 fi
22667
22668
22669
22670 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22671if test "x$ac_cv_type_intmax_t" = xyes; then :
22672
22673$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22674
22675else
22676 test $ac_cv_type_long_long_int = yes \
22677 && ac_type='long long int' \
22678 || ac_type='long int'
22679
22680cat >>confdefs.h <<_ACEOF
22681#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022682_ACEOF
22683
22684fi
22685
22686
cristy501c8042011-05-26 17:46:28 +000022687
22688 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22689if test "x$ac_cv_type_intptr_t" = xyes; then :
22690
22691$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022692
cristy3ed852e2009-09-05 21:47:34 +000022693else
cristy501c8042011-05-26 17:46:28 +000022694 for ac_type in 'int' 'long int' 'long long int'; do
22695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22696/* end confdefs.h. */
22697$ac_includes_default
22698int
22699main ()
22700{
22701static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22702test_array [0] = 0
22703
22704 ;
22705 return 0;
22706}
22707_ACEOF
22708if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022709
22710cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022711#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022712_ACEOF
22713
cristy501c8042011-05-26 17:46:28 +000022714 ac_type=
22715fi
22716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22717 test -z "$ac_type" && break
22718 done
cristy3ed852e2009-09-05 21:47:34 +000022719fi
22720
22721
cristy3ed852e2009-09-05 21:47:34 +000022722
cristy501c8042011-05-26 17:46:28 +000022723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22724$as_echo_n "checking for long double... " >&6; }
22725if ${ac_cv_type_long_double+:} false; then :
22726 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022727else
cristy501c8042011-05-26 17:46:28 +000022728 if test "$GCC" = yes; then
22729 ac_cv_type_long_double=yes
22730 else
22731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732/* end confdefs.h. */
22733/* The Stardent Vistra knows sizeof (long double), but does
22734 not support it. */
22735 long double foo = 0.0L;
22736int
22737main ()
22738{
22739static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22740 sizeof (double) <= sizeof (long double))];
22741test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022742
cristy501c8042011-05-26 17:46:28 +000022743 ;
22744 return 0;
22745}
cristy3ed852e2009-09-05 21:47:34 +000022746_ACEOF
cristy501c8042011-05-26 17:46:28 +000022747if ac_fn_c_try_compile "$LINENO"; then :
22748 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022749else
cristy501c8042011-05-26 17:46:28 +000022750 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022751fi
cristy501c8042011-05-26 17:46:28 +000022752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22753 fi
cristy3ed852e2009-09-05 21:47:34 +000022754fi
cristy501c8042011-05-26 17:46:28 +000022755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22756$as_echo "$ac_cv_type_long_double" >&6; }
22757 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022758
cristy501c8042011-05-26 17:46:28 +000022759$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022760
cristy501c8042011-05-26 17:46:28 +000022761 fi
22762
cristy3ed852e2009-09-05 21:47:34 +000022763
cristy8b350f62009-11-15 23:12:43 +000022764 { $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 +000022765$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022766if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022767 $as_echo_n "(cached) " >&6
22768else
cristy8b350f62009-11-15 23:12:43 +000022769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022770/* end confdefs.h. */
22771#include <float.h>
22772 long double const a[] =
22773 {
22774 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22775 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22776 };
22777 long double
22778 f (long double x)
22779 {
22780 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22781 + (x ? f (x) : 'c'));
22782 }
22783
22784int
22785main ()
22786{
22787static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22788 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22789 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22790 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22791 && (int) LDBL_EPSILON == 0
22792 )];
22793test_array [0] = 0
22794
22795 ;
22796 return 0;
22797}
22798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022799if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022800 ac_cv_type_long_double_wider=yes
22801else
cristy8b350f62009-11-15 23:12:43 +000022802 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022803fi
cristy3ed852e2009-09-05 21:47:34 +000022804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22805fi
cristy8b350f62009-11-15 23:12:43 +000022806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022807$as_echo "$ac_cv_type_long_double_wider" >&6; }
22808 if test $ac_cv_type_long_double_wider = yes; then
22809
cristy8b350f62009-11-15 23:12:43 +000022810$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022811
22812 fi
22813
22814
cristy501c8042011-05-26 17:46:28 +000022815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22816$as_echo_n "checking for long long int... " >&6; }
22817if ${ac_cv_type_long_long_int+:} false; then :
22818 $as_echo_n "(cached) " >&6
22819else
22820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22821/* end confdefs.h. */
22822
22823 /* For now, do not test the preprocessor; as of 2007 there are too many
22824 implementations with broken preprocessors. Perhaps this can
22825 be revisited in 2012. In the meantime, code should not expect
22826 #if to work with literals wider than 32 bits. */
22827 /* Test literals. */
22828 long long int ll = 9223372036854775807ll;
22829 long long int nll = -9223372036854775807LL;
22830 unsigned long long int ull = 18446744073709551615ULL;
22831 /* Test constant expressions. */
22832 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22833 ? 1 : -1)];
22834 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22835 ? 1 : -1)];
22836 int i = 63;
22837int
22838main ()
22839{
22840/* Test availability of runtime routines for shift and division. */
22841 long long int llmax = 9223372036854775807ll;
22842 unsigned long long int ullmax = 18446744073709551615ull;
22843 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22844 | (llmax / ll) | (llmax % ll)
22845 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22846 | (ullmax / ull) | (ullmax % ull));
22847 ;
22848 return 0;
22849}
22850
22851_ACEOF
22852if ac_fn_c_try_link "$LINENO"; then :
22853 if test "$cross_compiling" = yes; then :
22854 ac_cv_type_long_long_int=yes
22855else
22856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857/* end confdefs.h. */
22858#include <limits.h>
22859 #ifndef LLONG_MAX
22860 # define HALF \
22861 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22862 # define LLONG_MAX (HALF - 1 + HALF)
22863 #endif
22864int
22865main ()
22866{
22867long long int n = 1;
22868 int i;
22869 for (i = 0; ; i++)
22870 {
22871 long long int m = n << i;
22872 if (m >> i != n)
22873 return 1;
22874 if (LLONG_MAX / 2 < m)
22875 break;
22876 }
22877 return 0;
22878 ;
22879 return 0;
22880}
22881_ACEOF
22882if ac_fn_c_try_run "$LINENO"; then :
22883 ac_cv_type_long_long_int=yes
22884else
22885 ac_cv_type_long_long_int=no
22886fi
22887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22888 conftest.$ac_objext conftest.beam conftest.$ac_ext
22889fi
22890
22891else
22892 ac_cv_type_long_long_int=no
22893fi
22894rm -f core conftest.err conftest.$ac_objext \
22895 conftest$ac_exeext conftest.$ac_ext
22896fi
22897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22898$as_echo "$ac_cv_type_long_long_int" >&6; }
22899 if test $ac_cv_type_long_long_int = yes; then
22900
22901$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22902
22903 fi
22904
22905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22906$as_echo_n "checking for mbstate_t... " >&6; }
22907if ${ac_cv_type_mbstate_t+:} false; then :
22908 $as_echo_n "(cached) " >&6
22909else
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911/* end confdefs.h. */
22912$ac_includes_default
22913# include <wchar.h>
22914int
22915main ()
22916{
22917mbstate_t x; return sizeof x;
22918 ;
22919 return 0;
22920}
22921_ACEOF
22922if ac_fn_c_try_compile "$LINENO"; then :
22923 ac_cv_type_mbstate_t=yes
22924else
22925 ac_cv_type_mbstate_t=no
22926fi
22927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928fi
22929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22930$as_echo "$ac_cv_type_mbstate_t" >&6; }
22931 if test $ac_cv_type_mbstate_t = yes; then
22932
22933$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22934
22935 else
22936
22937$as_echo "#define mbstate_t int" >>confdefs.h
22938
22939 fi
22940ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22941if test "x$ac_cv_type_mode_t" = xyes; then :
22942
22943else
22944
22945cat >>confdefs.h <<_ACEOF
22946#define mode_t int
22947_ACEOF
22948
22949fi
22950
22951ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22952if test "x$ac_cv_type_off_t" = xyes; then :
22953
22954else
22955
22956cat >>confdefs.h <<_ACEOF
22957#define off_t long int
22958_ACEOF
22959
22960fi
22961
22962ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22963if test "x$ac_cv_type_pid_t" = xyes; then :
22964
22965else
22966
22967cat >>confdefs.h <<_ACEOF
22968#define pid_t int
22969_ACEOF
22970
22971fi
22972
22973ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22974if test "x$ac_cv_type_size_t" = xyes; then :
22975
22976else
22977
22978cat >>confdefs.h <<_ACEOF
22979#define size_t unsigned int
22980_ACEOF
22981
22982fi
22983
22984ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22985if test "x$ac_cv_type_ssize_t" = xyes; then :
22986
22987else
22988
22989cat >>confdefs.h <<_ACEOF
22990#define ssize_t int
22991_ACEOF
22992
22993fi
22994
22995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22996$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22997if ${ac_cv_type_uid_t+:} false; then :
22998 $as_echo_n "(cached) " >&6
22999else
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001/* end confdefs.h. */
23002#include <sys/types.h>
23003
23004_ACEOF
23005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23006 $EGREP "uid_t" >/dev/null 2>&1; then :
23007 ac_cv_type_uid_t=yes
23008else
23009 ac_cv_type_uid_t=no
23010fi
23011rm -f conftest*
23012
23013fi
23014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23015$as_echo "$ac_cv_type_uid_t" >&6; }
23016if test $ac_cv_type_uid_t = no; then
23017
23018$as_echo "#define uid_t int" >>confdefs.h
23019
23020
23021$as_echo "#define gid_t int" >>confdefs.h
23022
23023fi
23024
23025ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23026case $ac_cv_c_uint8_t in #(
23027 no|yes) ;; #(
23028 *)
23029
23030$as_echo "#define _UINT8_T 1" >>confdefs.h
23031
23032
23033cat >>confdefs.h <<_ACEOF
23034#define uint8_t $ac_cv_c_uint8_t
23035_ACEOF
23036;;
23037 esac
23038
23039ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23040case $ac_cv_c_uint16_t in #(
23041 no|yes) ;; #(
23042 *)
23043
23044
23045cat >>confdefs.h <<_ACEOF
23046#define uint16_t $ac_cv_c_uint16_t
23047_ACEOF
23048;;
23049 esac
23050
23051ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23052case $ac_cv_c_uint32_t in #(
23053 no|yes) ;; #(
23054 *)
23055
23056$as_echo "#define _UINT32_T 1" >>confdefs.h
23057
23058
23059cat >>confdefs.h <<_ACEOF
23060#define uint32_t $ac_cv_c_uint32_t
23061_ACEOF
23062;;
23063 esac
23064
23065ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23066case $ac_cv_c_uint64_t in #(
23067 no|yes) ;; #(
23068 *)
23069
23070$as_echo "#define _UINT64_T 1" >>confdefs.h
23071
23072
23073cat >>confdefs.h <<_ACEOF
23074#define uint64_t $ac_cv_c_uint64_t
23075_ACEOF
23076;;
23077 esac
23078
23079
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23081$as_echo_n "checking for unsigned long long int... " >&6; }
23082if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23083 $as_echo_n "(cached) " >&6
23084else
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086/* end confdefs.h. */
23087
23088 /* For now, do not test the preprocessor; as of 2007 there are too many
23089 implementations with broken preprocessors. Perhaps this can
23090 be revisited in 2012. In the meantime, code should not expect
23091 #if to work with literals wider than 32 bits. */
23092 /* Test literals. */
23093 long long int ll = 9223372036854775807ll;
23094 long long int nll = -9223372036854775807LL;
23095 unsigned long long int ull = 18446744073709551615ULL;
23096 /* Test constant expressions. */
23097 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23098 ? 1 : -1)];
23099 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23100 ? 1 : -1)];
23101 int i = 63;
23102int
23103main ()
23104{
23105/* Test availability of runtime routines for shift and division. */
23106 long long int llmax = 9223372036854775807ll;
23107 unsigned long long int ullmax = 18446744073709551615ull;
23108 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23109 | (llmax / ll) | (llmax % ll)
23110 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23111 | (ullmax / ull) | (ullmax % ull));
23112 ;
23113 return 0;
23114}
23115
23116_ACEOF
23117if ac_fn_c_try_link "$LINENO"; then :
23118 ac_cv_type_unsigned_long_long_int=yes
23119else
23120 ac_cv_type_unsigned_long_long_int=no
23121fi
23122rm -f core conftest.err conftest.$ac_objext \
23123 conftest$ac_exeext conftest.$ac_ext
23124fi
23125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23126$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23127 if test $ac_cv_type_unsigned_long_long_int = yes; then
23128
23129$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23130
23131 fi
23132
23133
23134
23135 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23136if test "x$ac_cv_type_uintmax_t" = xyes; then :
23137
23138$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23139
23140else
23141 test $ac_cv_type_unsigned_long_long_int = yes \
23142 && ac_type='unsigned long long int' \
23143 || ac_type='unsigned long int'
23144
23145cat >>confdefs.h <<_ACEOF
23146#define uintmax_t $ac_type
23147_ACEOF
23148
23149fi
23150
23151
23152
23153 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23154if test "x$ac_cv_type_uintptr_t" = xyes; then :
23155
23156$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23157
23158else
23159 for ac_type in 'unsigned int' 'unsigned long int' \
23160 'unsigned long long int'; do
23161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162/* end confdefs.h. */
23163$ac_includes_default
23164int
23165main ()
23166{
23167static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23168test_array [0] = 0
23169
23170 ;
23171 return 0;
23172}
23173_ACEOF
23174if ac_fn_c_try_compile "$LINENO"; then :
23175
23176cat >>confdefs.h <<_ACEOF
23177#define uintptr_t $ac_type
23178_ACEOF
23179
23180 ac_type=
23181fi
23182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183 test -z "$ac_type" && break
23184 done
23185fi
23186
23187
23188
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23190$as_echo_n "checking for unsigned long long int... " >&6; }
23191if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23192 $as_echo_n "(cached) " >&6
23193else
23194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23195/* end confdefs.h. */
23196
23197 /* For now, do not test the preprocessor; as of 2007 there are too many
23198 implementations with broken preprocessors. Perhaps this can
23199 be revisited in 2012. In the meantime, code should not expect
23200 #if to work with literals wider than 32 bits. */
23201 /* Test literals. */
23202 long long int ll = 9223372036854775807ll;
23203 long long int nll = -9223372036854775807LL;
23204 unsigned long long int ull = 18446744073709551615ULL;
23205 /* Test constant expressions. */
23206 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23207 ? 1 : -1)];
23208 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23209 ? 1 : -1)];
23210 int i = 63;
23211int
23212main ()
23213{
23214/* Test availability of runtime routines for shift and division. */
23215 long long int llmax = 9223372036854775807ll;
23216 unsigned long long int ullmax = 18446744073709551615ull;
23217 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23218 | (llmax / ll) | (llmax % ll)
23219 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23220 | (ullmax / ull) | (ullmax % ull));
23221 ;
23222 return 0;
23223}
23224
23225_ACEOF
23226if ac_fn_c_try_link "$LINENO"; then :
23227 ac_cv_type_unsigned_long_long_int=yes
23228else
23229 ac_cv_type_unsigned_long_long_int=no
23230fi
23231rm -f core conftest.err conftest.$ac_objext \
23232 conftest$ac_exeext conftest.$ac_ext
23233fi
23234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23235$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23236 if test $ac_cv_type_unsigned_long_long_int = yes; then
23237
23238$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23239
23240 fi
23241
23242
cristy3ed852e2009-09-05 21:47:34 +000023243# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23244# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023246$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023247if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023248 $as_echo_n "(cached) " >&6
23249else
cristy8b350f62009-11-15 23:12:43 +000023250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023251/* end confdefs.h. */
23252$ac_includes_default
23253int
23254main ()
23255{
23256static int test_array [1 - 2 * !(((char) -1) < 0)];
23257test_array [0] = 0
23258
23259 ;
23260 return 0;
23261}
23262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023263if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023264 ac_cv_c_char_unsigned=no
23265else
cristy8b350f62009-11-15 23:12:43 +000023266 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023267fi
cristy3ed852e2009-09-05 21:47:34 +000023268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23269fi
cristy8b350f62009-11-15 23:12:43 +000023270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023271$as_echo "$ac_cv_c_char_unsigned" >&6; }
23272if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023273 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023274
23275fi
23276
23277
23278# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23279# The cast to long int works around a bug in the HP C Compiler
23280# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23281# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23282# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023284$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023285if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023286 $as_echo_n "(cached) " >&6
23287else
cristy8b350f62009-11-15 23:12:43 +000023288 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 +000023289
cristy3ed852e2009-09-05 21:47:34 +000023290else
cristy8b350f62009-11-15 23:12:43 +000023291 if test "$ac_cv_type_signed_short" = yes; then
23292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023294as_fn_error 77 "cannot compute sizeof (signed short)
23295See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023296 else
23297 ac_cv_sizeof_signed_short=0
23298 fi
23299fi
cristy8b350f62009-11-15 23:12:43 +000023300
cristy3ed852e2009-09-05 21:47:34 +000023301fi
cristy8b350f62009-11-15 23:12:43 +000023302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023303$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23304
23305
23306
23307cat >>confdefs.h <<_ACEOF
23308#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23309_ACEOF
23310
23311
23312
23313# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23314# The cast to long int works around a bug in the HP C Compiler
23315# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23316# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23317# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023319$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023320if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023321 $as_echo_n "(cached) " >&6
23322else
cristy8b350f62009-11-15 23:12:43 +000023323 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 +000023324
cristy3ed852e2009-09-05 21:47:34 +000023325else
cristy8b350f62009-11-15 23:12:43 +000023326 if test "$ac_cv_type_unsigned_short" = yes; then
23327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023329as_fn_error 77 "cannot compute sizeof (unsigned short)
23330See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023331 else
23332 ac_cv_sizeof_unsigned_short=0
23333 fi
23334fi
cristy8b350f62009-11-15 23:12:43 +000023335
cristy3ed852e2009-09-05 21:47:34 +000023336fi
cristy8b350f62009-11-15 23:12:43 +000023337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023338$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23339
23340
23341
23342cat >>confdefs.h <<_ACEOF
23343#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23344_ACEOF
23345
23346
23347
23348# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23349# The cast to long int works around a bug in the HP C Compiler
23350# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23351# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23352# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023354$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023355if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023356 $as_echo_n "(cached) " >&6
23357else
cristy8b350f62009-11-15 23:12:43 +000023358 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 +000023359
cristy3ed852e2009-09-05 21:47:34 +000023360else
cristy8b350f62009-11-15 23:12:43 +000023361 if test "$ac_cv_type_signed_int" = yes; then
23362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023364as_fn_error 77 "cannot compute sizeof (signed int)
23365See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023366 else
23367 ac_cv_sizeof_signed_int=0
23368 fi
23369fi
cristy8b350f62009-11-15 23:12:43 +000023370
cristy3ed852e2009-09-05 21:47:34 +000023371fi
cristy8b350f62009-11-15 23:12:43 +000023372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23374
23375
23376
23377cat >>confdefs.h <<_ACEOF
23378#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23379_ACEOF
23380
23381
23382
23383# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23384# The cast to long int works around a bug in the HP C Compiler
23385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23387# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023389$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023390if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023391 $as_echo_n "(cached) " >&6
23392else
cristy8b350f62009-11-15 23:12:43 +000023393 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 +000023394
cristy3ed852e2009-09-05 21:47:34 +000023395else
cristy8b350f62009-11-15 23:12:43 +000023396 if test "$ac_cv_type_unsigned_int" = yes; then
23397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023399as_fn_error 77 "cannot compute sizeof (unsigned int)
23400See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023401 else
23402 ac_cv_sizeof_unsigned_int=0
23403 fi
23404fi
cristy8b350f62009-11-15 23:12:43 +000023405
cristy3ed852e2009-09-05 21:47:34 +000023406fi
cristy8b350f62009-11-15 23:12:43 +000023407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023408$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23409
23410
23411
23412cat >>confdefs.h <<_ACEOF
23413#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23414_ACEOF
23415
23416
23417
23418# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23419# The cast to long int works around a bug in the HP C Compiler
23420# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23421# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23422# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023424$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023425if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023426 $as_echo_n "(cached) " >&6
23427else
cristy8b350f62009-11-15 23:12:43 +000023428 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 +000023429
cristy3ed852e2009-09-05 21:47:34 +000023430else
cristy8b350f62009-11-15 23:12:43 +000023431 if test "$ac_cv_type_signed_long" = yes; then
23432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023434as_fn_error 77 "cannot compute sizeof (signed long)
23435See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023436 else
23437 ac_cv_sizeof_signed_long=0
23438 fi
23439fi
cristy8b350f62009-11-15 23:12:43 +000023440
cristy3ed852e2009-09-05 21:47:34 +000023441fi
cristy8b350f62009-11-15 23:12:43 +000023442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023443$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23444
23445
23446
23447cat >>confdefs.h <<_ACEOF
23448#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23449_ACEOF
23450
23451
23452
23453# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23454# The cast to long int works around a bug in the HP C Compiler
23455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23457# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023460if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023461 $as_echo_n "(cached) " >&6
23462else
cristy8b350f62009-11-15 23:12:43 +000023463 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 +000023464
cristy3ed852e2009-09-05 21:47:34 +000023465else
cristy8b350f62009-11-15 23:12:43 +000023466 if test "$ac_cv_type_unsigned_long" = yes; then
23467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023469as_fn_error 77 "cannot compute sizeof (unsigned long)
23470See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023471 else
23472 ac_cv_sizeof_unsigned_long=0
23473 fi
23474fi
cristy8b350f62009-11-15 23:12:43 +000023475
cristy3ed852e2009-09-05 21:47:34 +000023476fi
cristy8b350f62009-11-15 23:12:43 +000023477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023478$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23479
23480
23481
23482cat >>confdefs.h <<_ACEOF
23483#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23484_ACEOF
23485
23486
23487
23488# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23489# 'signed long long' is not supported then the value defined is zero.
23490# The cast to long int works around a bug in the HP C Compiler
23491# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23492# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23493# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023495$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023496if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023497 $as_echo_n "(cached) " >&6
23498else
cristy8b350f62009-11-15 23:12:43 +000023499 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 +000023500
cristy3ed852e2009-09-05 21:47:34 +000023501else
cristy8b350f62009-11-15 23:12:43 +000023502 if test "$ac_cv_type_signed_long_long" = yes; then
23503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023505as_fn_error 77 "cannot compute sizeof (signed long long)
23506See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023507 else
23508 ac_cv_sizeof_signed_long_long=0
23509 fi
23510fi
cristy8b350f62009-11-15 23:12:43 +000023511
cristy3ed852e2009-09-05 21:47:34 +000023512fi
cristy8b350f62009-11-15 23:12:43 +000023513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023514$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23515
23516
23517
23518cat >>confdefs.h <<_ACEOF
23519#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23520_ACEOF
23521
23522
23523
23524# Obtain size of a 'unsigned long long' and define as
23525# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23526# supported then the value defined is zero.
23527# The cast to long int works around a bug in the HP C Compiler
23528# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23529# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23530# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023532$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023533if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023534 $as_echo_n "(cached) " >&6
23535else
cristy8b350f62009-11-15 23:12:43 +000023536 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 +000023537
cristy3ed852e2009-09-05 21:47:34 +000023538else
cristy8b350f62009-11-15 23:12:43 +000023539 if test "$ac_cv_type_unsigned_long_long" = yes; then
23540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023542as_fn_error 77 "cannot compute sizeof (unsigned long long)
23543See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023544 else
23545 ac_cv_sizeof_unsigned_long_long=0
23546 fi
23547fi
cristy8b350f62009-11-15 23:12:43 +000023548
cristy3ed852e2009-09-05 21:47:34 +000023549fi
cristy8b350f62009-11-15 23:12:43 +000023550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023551$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23552
23553
23554
23555cat >>confdefs.h <<_ACEOF
23556#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23557_ACEOF
23558
23559
23560
23561# Obtain size of off_t and define as SIZEOF_OFF_T
23562# The cast to long int works around a bug in the HP C Compiler
23563# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23564# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23565# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023567$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023568if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023569 $as_echo_n "(cached) " >&6
23570else
cristy8b350f62009-11-15 23:12:43 +000023571 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 +000023572
cristy3ed852e2009-09-05 21:47:34 +000023573else
cristy8b350f62009-11-15 23:12:43 +000023574 if test "$ac_cv_type_off_t" = yes; then
23575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023577as_fn_error 77 "cannot compute sizeof (off_t)
23578See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023579 else
23580 ac_cv_sizeof_off_t=0
23581 fi
23582fi
cristy8b350f62009-11-15 23:12:43 +000023583
cristy3ed852e2009-09-05 21:47:34 +000023584fi
cristy8b350f62009-11-15 23:12:43 +000023585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023586$as_echo "$ac_cv_sizeof_off_t" >&6; }
23587
23588
23589
23590cat >>confdefs.h <<_ACEOF
23591#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23592_ACEOF
23593
23594
23595
23596# Obtain size of size_t and define as SIZEOF_SIZE_T
23597# The cast to long int works around a bug in the HP C Compiler
23598# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23599# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23600# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023602$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023603if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023604 $as_echo_n "(cached) " >&6
23605else
cristy8b350f62009-11-15 23:12:43 +000023606 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 +000023607
cristy3ed852e2009-09-05 21:47:34 +000023608else
cristy8b350f62009-11-15 23:12:43 +000023609 if test "$ac_cv_type_size_t" = yes; then
23610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023612as_fn_error 77 "cannot compute sizeof (size_t)
23613See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023614 else
23615 ac_cv_sizeof_size_t=0
23616 fi
23617fi
cristy8b350f62009-11-15 23:12:43 +000023618
cristy3ed852e2009-09-05 21:47:34 +000023619fi
cristy8b350f62009-11-15 23:12:43 +000023620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023621$as_echo "$ac_cv_sizeof_size_t" >&6; }
23622
23623
23624
23625cat >>confdefs.h <<_ACEOF
23626#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23627_ACEOF
23628
23629
23630
cristy330e9352010-06-01 18:42:49 +000023631# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23632# The cast to long int works around a bug in the HP C Compiler
23633# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23634# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23635# This bug is HP SR number 8606223364.
23636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23637$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023638if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023639 $as_echo_n "(cached) " >&6
23640else
23641 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23642
23643else
23644 if test "$ac_cv_type_ssize_t" = yes; then
23645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023647as_fn_error 77 "cannot compute sizeof (ssize_t)
23648See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023649 else
23650 ac_cv_sizeof_ssize_t=0
23651 fi
23652fi
23653
23654fi
23655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23656$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23657
23658
23659
23660cat >>confdefs.h <<_ACEOF
23661#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23662_ACEOF
23663
23664
23665
cristy3ed852e2009-09-05 21:47:34 +000023666# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23667# The cast to long int works around a bug in the HP C Compiler
23668# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23669# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23670# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023672$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023673if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023674 $as_echo_n "(cached) " >&6
23675else
cristy8b350f62009-11-15 23:12:43 +000023676 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 +000023677
cristy3ed852e2009-09-05 21:47:34 +000023678else
cristy8b350f62009-11-15 23:12:43 +000023679 if test "$ac_cv_type_unsigned_intp" = yes; then
23680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023682as_fn_error 77 "cannot compute sizeof (unsigned int*)
23683See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023684 else
23685 ac_cv_sizeof_unsigned_intp=0
23686 fi
23687fi
cristy8b350f62009-11-15 23:12:43 +000023688
cristy3ed852e2009-09-05 21:47:34 +000023689fi
cristy8b350f62009-11-15 23:12:43 +000023690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023691$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23692
23693
23694
23695cat >>confdefs.h <<_ACEOF
23696#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23697_ACEOF
23698
23699
23700
23701#
23702# Compute sized types for current CPU and compiler options.
23703#
23704
cristy8b350f62009-11-15 23:12:43 +000023705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023706$as_echo_n "checking for signed 8-bit type... " >&6; }
23707INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023708{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23709$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023710
23711
cristy8b350f62009-11-15 23:12:43 +000023712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023713$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23714UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023715{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23716$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023717
23718
cristy8b350f62009-11-15 23:12:43 +000023719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023720$as_echo_n "checking for signed 16-bit type... " >&6; }
23721INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023722{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23723$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023724
23725
cristy8b350f62009-11-15 23:12:43 +000023726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023727$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23728UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023729{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23730$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023731
23732
cristy8b350f62009-11-15 23:12:43 +000023733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023734$as_echo_n "checking for signed 32-bit type... " >&6; }
23735INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023736INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023737if test $ac_cv_sizeof_signed_int -eq 4; then
23738 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023739 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023740elif test $ac_cv_sizeof_signed_long -eq 4; then
23741 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023742 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023743fi
cristy09b53e12011-10-14 12:47:22 +000023744{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23745$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023746
23747
cristy6d5e20f2011-04-25 13:48:54 +000023748
cristy8b350f62009-11-15 23:12:43 +000023749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023750$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23751UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023752UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023753if test $ac_cv_sizeof_unsigned_int -eq 4; then
23754 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023755 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023756elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23757 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023758 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023759fi
cristy09b53e12011-10-14 12:47:22 +000023760{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23761$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023762
23763
cristy6d5e20f2011-04-25 13:48:54 +000023764
cristy8b350f62009-11-15 23:12:43 +000023765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023766$as_echo_n "checking for signed 64-bit type... " >&6; }
23767INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023768INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023769if test $ac_cv_sizeof_signed_long -eq 8; then
23770 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023771 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023772elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23773 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023774 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023775fi
cristy6d5e20f2011-04-25 13:48:54 +000023776case "${build_os}" in
23777 mingw* )
23778 INT64_F='"I64"'
23779 ;;
23780esac
cristy09b53e12011-10-14 12:47:22 +000023781{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23782$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023783
23784
cristy6d5e20f2011-04-25 13:48:54 +000023785
cristy8b350f62009-11-15 23:12:43 +000023786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023787$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23788UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023789UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023790if test $ac_cv_sizeof_unsigned_long -eq 8; then
23791 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023792 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023793elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23794 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023795 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023796fi
cristy6d5e20f2011-04-25 13:48:54 +000023797case "${build_os}" in
23798 mingw* )
23799 UINT64_F='"I64"'
23800 ;;
23801esac
cristy09b53e12011-10-14 12:47:22 +000023802{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23803$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023804
23805
cristy6d5e20f2011-04-25 13:48:54 +000023806
cristy8b350f62009-11-15 23:12:43 +000023807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023808$as_echo_n "checking for unsigned maximum type... " >&6; }
23809UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023810UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023811if test "$UINT64_T" != 'none'; then
23812 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023813 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023814elif test "$UINT32_T" != 'none'; then
23815 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023816 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023817fi
cristy09b53e12011-10-14 12:47:22 +000023818{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23819$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023820
23821
cristy6d5e20f2011-04-25 13:48:54 +000023822
cristy8b350f62009-11-15 23:12:43 +000023823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023824$as_echo_n "checking for pointer difference type... " >&6; }
23825UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023826UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023827if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23828 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023829 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023830elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23831 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023832 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023833fi
cristy09b53e12011-10-14 12:47:22 +000023834{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23835$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023836
23837
cristy6d5e20f2011-04-25 13:48:54 +000023838
cristy8b350f62009-11-15 23:12:43 +000023839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023840$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023842/* end confdefs.h. */
23843
23844int
23845main ()
23846{
23847{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23848 ;
23849 return 0;
23850}
23851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023852if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023853 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23854$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023855else
cristy09b53e12011-10-14 12:47:22 +000023856 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23857$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023859$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023861/* end confdefs.h. */
23862
23863int
23864main ()
23865{
23866{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23867 ;
23868 return 0;
23869}
23870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023871if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023872 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23873$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023874
cristy8b350f62009-11-15 23:12:43 +000023875$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023876
23877else
cristy09b53e12011-10-14 12:47:22 +000023878 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23879$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023880
cristy8b350f62009-11-15 23:12:43 +000023881$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023882
23883fi
cristy3ed852e2009-09-05 21:47:34 +000023884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23885fi
cristy3ed852e2009-09-05 21:47:34 +000023886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23887
23888########
23889#
23890# Check for functions
23891#
23892########
cristy73bd4a52010-10-05 11:24:23 +000023893for ac_header in stdlib.h unistd.h
23894do :
23895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23896ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023897if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023898 cat >>confdefs.h <<_ACEOF
23899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23900_ACEOF
23901
23902fi
23903
23904done
23905
23906for ac_func in getpagesize
23907do :
23908 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023909if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023910 cat >>confdefs.h <<_ACEOF
23911#define HAVE_GETPAGESIZE 1
23912_ACEOF
23913
23914fi
23915done
23916
23917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23918$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023919if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023920 $as_echo_n "(cached) " >&6
23921else
23922 if test "$cross_compiling" = yes; then :
23923 magick_cv_func_mmap_fileio=no
23924else
23925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23926/* end confdefs.h. */
23927$ac_includes_default
23928/* malloc might have been renamed as rpl_malloc. */
23929#undef malloc
23930
23931/*
23932 This test is derived from GNU Autoconf's similar macro.
23933 The purpose of this test is to verify that files may be memory
23934 mapped, and that memory mapping and file I/O are coherent.
23935
23936 The test creates a test file, memory maps the file, updates
23937 the file using the memory map, and then reads the file using
23938 file I/O to verify that the file contains the updates.
23939*/
23940
23941#include <fcntl.h>
23942#include <sys/mman.h>
23943
23944#if !STDC_HEADERS && !HAVE_STDLIB_H
23945char *malloc ();
23946#endif
23947
23948/* This mess was copied from the GNU getpagesize.h. */
23949#if !HAVE_GETPAGESIZE
23950/* Assume that all systems that can run configure have sys/param.h. */
23951# if !HAVE_SYS_PARAM_H
23952# define HAVE_SYS_PARAM_H 1
23953# endif
23954
23955# ifdef _SC_PAGESIZE
23956# define getpagesize() sysconf(_SC_PAGESIZE)
23957# else /* no _SC_PAGESIZE */
23958# if HAVE_SYS_PARAM_H
23959# include <sys/param.h>
23960# ifdef EXEC_PAGESIZE
23961# define getpagesize() EXEC_PAGESIZE
23962# else /* no EXEC_PAGESIZE */
23963# ifdef NBPG
23964# define getpagesize() NBPG * CLSIZE
23965# ifndef CLSIZE
23966# define CLSIZE 1
23967# endif /* no CLSIZE */
23968# else /* no NBPG */
23969# ifdef NBPC
23970# define getpagesize() NBPC
23971# else /* no NBPC */
23972# ifdef PAGESIZE
23973# define getpagesize() PAGESIZE
23974# endif /* PAGESIZE */
23975# endif /* no NBPC */
23976# endif /* no NBPG */
23977# endif /* no EXEC_PAGESIZE */
23978# else /* no HAVE_SYS_PARAM_H */
23979# define getpagesize() 8192 /* punt totally */
23980# endif /* no HAVE_SYS_PARAM_H */
23981# endif /* no _SC_PAGESIZE */
23982
23983#endif /* no HAVE_GETPAGESIZE */
23984
23985int
23986main ()
23987{
23988 char *data, *data2, *data3;
23989 int i, pagesize;
23990 int fd;
23991
23992 pagesize = getpagesize ();
23993
23994 /* First, make a file with some known garbage in it. */
23995 data = (char *) malloc (pagesize);
23996 if (!data)
23997 exit (1);
23998 for (i = 0; i < pagesize; ++i)
23999 *(data + i) = rand ();
24000 umask (0);
24001 fd = creat ("conftest.mmap", 0600);
24002 if (fd < 0)
24003 exit (1);
24004 if (write (fd, data, pagesize) != pagesize)
24005 exit (1);
24006 close (fd);
24007
24008 /* Mmap the file as read/write/shared and verify that we see the
24009 same garbage. */
24010 fd = open ("conftest.mmap", O_RDWR);
24011 if (fd < 0)
24012 exit (1);
24013 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24014 if (data2 == 0)
24015 exit (1);
24016 for (i = 0; i < pagesize; ++i)
24017 if (*(data + i) != *(data2 + i))
24018 exit (1);
24019
24020 /* Finally, make sure that changes to the mapped area
24021 percolate back to the file as seen by read(). */
24022 for (i = 0; i < pagesize; ++i)
24023 *(data2 + i) = *(data2 + i) + 1;
24024 data3 = (char *) malloc (pagesize);
24025 if (!data3)
24026 exit (1);
24027 if (read (fd, data3, pagesize) != pagesize)
24028 exit (1);
24029 for (i = 0; i < pagesize; ++i)
24030 if (*(data2 + i) != *(data3 + i))
24031 exit (1);
24032 close (fd);
24033 exit (0);
24034}
24035_ACEOF
24036if ac_fn_c_try_run "$LINENO"; then :
24037 magick_cv_func_mmap_fileio=yes
24038else
24039 magick_cv_func_mmap_fileio=no
24040fi
24041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24042 conftest.$ac_objext conftest.beam conftest.$ac_ext
24043fi
24044
24045fi
24046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24047$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24048if test $magick_cv_func_mmap_fileio = yes; then
24049
24050$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24051
24052fi
24053rm -f conftest.mmap
24054
cristy8b350f62009-11-15 23:12:43 +000024055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024056$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024057if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024058 $as_echo_n "(cached) " >&6
24059else
cristy8b350f62009-11-15 23:12:43 +000024060 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024061 ac_cv_func_closedir_void=yes
24062else
cristy8b350f62009-11-15 23:12:43 +000024063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024064/* end confdefs.h. */
24065$ac_includes_default
24066#include <$ac_header_dirent>
24067#ifndef __cplusplus
24068int closedir ();
24069#endif
24070
24071int
24072main ()
24073{
24074return closedir (opendir (".")) != 0;
24075 ;
24076 return 0;
24077}
24078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024079if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024080 ac_cv_func_closedir_void=no
24081else
cristy8b350f62009-11-15 23:12:43 +000024082 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024083fi
cristy8b350f62009-11-15 23:12:43 +000024084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24085 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024086fi
24087
cristy3ed852e2009-09-05 21:47:34 +000024088fi
cristy8b350f62009-11-15 23:12:43 +000024089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024090$as_echo "$ac_cv_func_closedir_void" >&6; }
24091if test $ac_cv_func_closedir_void = yes; then
24092
cristy8b350f62009-11-15 23:12:43 +000024093$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024094
24095fi
24096
cristycd4c5312009-11-22 01:19:08 +000024097
24098
24099
24100 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024101do :
24102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024103ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24104"
cristy98dddb52010-11-04 00:30:15 +000024105if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024106 cat >>confdefs.h <<_ACEOF
24107#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24108_ACEOF
24109
24110fi
24111
24112done
24113
cristycd4c5312009-11-22 01:19:08 +000024114
24115
24116
24117
24118
24119
24120
cristy3ed852e2009-09-05 21:47:34 +000024121for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024122do :
24123 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024124if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024125 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024126#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024127_ACEOF
24128
24129fi
24130done
24131
cristy8b350f62009-11-15 23:12:43 +000024132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024133$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024134if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024135 $as_echo_n "(cached) " >&6
24136else
cristy8b350f62009-11-15 23:12:43 +000024137 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024138 ac_cv_func_mmap_fixed_mapped=no
24139else
cristy8b350f62009-11-15 23:12:43 +000024140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024141/* end confdefs.h. */
24142$ac_includes_default
24143/* malloc might have been renamed as rpl_malloc. */
24144#undef malloc
24145
24146/* Thanks to Mike Haertel and Jim Avera for this test.
24147 Here is a matrix of mmap possibilities:
24148 mmap private not fixed
24149 mmap private fixed at somewhere currently unmapped
24150 mmap private fixed at somewhere already mapped
24151 mmap shared not fixed
24152 mmap shared fixed at somewhere currently unmapped
24153 mmap shared fixed at somewhere already mapped
24154 For private mappings, we should verify that changes cannot be read()
24155 back from the file, nor mmap's back from the file at a different
24156 address. (There have been systems where private was not correctly
24157 implemented like the infamous i386 svr4.0, and systems where the
24158 VM page cache was not coherent with the file system buffer cache
24159 like early versions of FreeBSD and possibly contemporary NetBSD.)
24160 For shared mappings, we should conversely verify that changes get
24161 propagated back to all the places they're supposed to be.
24162
24163 Grep wants private fixed already mapped.
24164 The main things grep needs to know about mmap are:
24165 * does it exist and is it safe to write into the mmap'd area
24166 * how to use it (BSD variants) */
24167
24168#include <fcntl.h>
24169#include <sys/mman.h>
24170
24171#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24172char *malloc ();
24173#endif
24174
24175/* This mess was copied from the GNU getpagesize.h. */
24176#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024177# ifdef _SC_PAGESIZE
24178# define getpagesize() sysconf(_SC_PAGESIZE)
24179# else /* no _SC_PAGESIZE */
24180# ifdef HAVE_SYS_PARAM_H
24181# include <sys/param.h>
24182# ifdef EXEC_PAGESIZE
24183# define getpagesize() EXEC_PAGESIZE
24184# else /* no EXEC_PAGESIZE */
24185# ifdef NBPG
24186# define getpagesize() NBPG * CLSIZE
24187# ifndef CLSIZE
24188# define CLSIZE 1
24189# endif /* no CLSIZE */
24190# else /* no NBPG */
24191# ifdef NBPC
24192# define getpagesize() NBPC
24193# else /* no NBPC */
24194# ifdef PAGESIZE
24195# define getpagesize() PAGESIZE
24196# endif /* PAGESIZE */
24197# endif /* no NBPC */
24198# endif /* no NBPG */
24199# endif /* no EXEC_PAGESIZE */
24200# else /* no HAVE_SYS_PARAM_H */
24201# define getpagesize() 8192 /* punt totally */
24202# endif /* no HAVE_SYS_PARAM_H */
24203# endif /* no _SC_PAGESIZE */
24204
24205#endif /* no HAVE_GETPAGESIZE */
24206
24207int
24208main ()
24209{
24210 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024211 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024212 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024213 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024214
24215 pagesize = getpagesize ();
24216
24217 /* First, make a file with some known garbage in it. */
24218 data = (char *) malloc (pagesize);
24219 if (!data)
24220 return 1;
24221 for (i = 0; i < pagesize; ++i)
24222 *(data + i) = rand ();
24223 umask (0);
24224 fd = creat ("conftest.mmap", 0600);
24225 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024226 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024227 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024228 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024229 close (fd);
24230
cristycd4c5312009-11-22 01:19:08 +000024231 /* Next, check that the tail of a page is zero-filled. File must have
24232 non-zero length, otherwise we risk SIGBUS for entire page. */
24233 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24234 if (fd2 < 0)
24235 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024236 cdata2 = "";
24237 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024238 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024239 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024240 if (data2 == MAP_FAILED)
24241 return 6;
24242 for (i = 0; i < pagesize; ++i)
24243 if (*(data2 + i))
24244 return 7;
24245 close (fd2);
24246 if (munmap (data2, pagesize))
24247 return 8;
24248
cristy3ed852e2009-09-05 21:47:34 +000024249 /* Next, try to mmap the file at a fixed address which already has
24250 something else allocated at it. If we can, also make sure that
24251 we see the same garbage. */
24252 fd = open ("conftest.mmap", O_RDWR);
24253 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024254 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024255 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24256 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024257 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024258 for (i = 0; i < pagesize; ++i)
24259 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024260 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024261
24262 /* Finally, make sure that changes to the mapped area do not
24263 percolate back to the file as seen by read(). (This is a bug on
24264 some variants of i386 svr4.0.) */
24265 for (i = 0; i < pagesize; ++i)
24266 *(data2 + i) = *(data2 + i) + 1;
24267 data3 = (char *) malloc (pagesize);
24268 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024269 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024270 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024271 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024272 for (i = 0; i < pagesize; ++i)
24273 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024274 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024275 close (fd);
24276 return 0;
24277}
24278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024279if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024280 ac_cv_func_mmap_fixed_mapped=yes
24281else
cristy8b350f62009-11-15 23:12:43 +000024282 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024283fi
cristy8b350f62009-11-15 23:12:43 +000024284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24285 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024286fi
24287
cristy3ed852e2009-09-05 21:47:34 +000024288fi
cristy8b350f62009-11-15 23:12:43 +000024289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024290$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24291if test $ac_cv_func_mmap_fixed_mapped = yes; then
24292
cristy8b350f62009-11-15 23:12:43 +000024293$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024294
24295fi
cristycd4c5312009-11-22 01:19:08 +000024296rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024297
cristy3ed852e2009-09-05 21:47:34 +000024298for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024299do :
24300 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024301if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024302 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024303#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024304_ACEOF
24305
24306fi
24307
24308done
24309
cristy3ed852e2009-09-05 21:47:34 +000024310for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024311do :
24312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24313ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024314if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024315 cat >>confdefs.h <<_ACEOF
24316#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24317_ACEOF
24318
24319fi
24320done
24321
24322if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024324$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024325if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024326 $as_echo_n "(cached) " >&6
24327else
cristy8b350f62009-11-15 23:12:43 +000024328 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024329 ac_cv_func_fork_works=cross
24330else
cristy8b350f62009-11-15 23:12:43 +000024331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024332/* end confdefs.h. */
24333$ac_includes_default
24334int
24335main ()
24336{
24337
24338 /* By Ruediger Kuhlmann. */
24339 return fork () < 0;
24340
24341 ;
24342 return 0;
24343}
24344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024345if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024346 ac_cv_func_fork_works=yes
24347else
cristy8b350f62009-11-15 23:12:43 +000024348 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024349fi
cristy8b350f62009-11-15 23:12:43 +000024350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24351 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024352fi
24353
cristy3ed852e2009-09-05 21:47:34 +000024354fi
cristy8b350f62009-11-15 23:12:43 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024356$as_echo "$ac_cv_func_fork_works" >&6; }
24357
24358else
24359 ac_cv_func_fork_works=$ac_cv_func_fork
24360fi
24361if test "x$ac_cv_func_fork_works" = xcross; then
24362 case $host in
24363 *-*-amigaos* | *-*-msdosdjgpp*)
24364 # Override, as these systems have only a dummy fork() stub
24365 ac_cv_func_fork_works=no
24366 ;;
24367 *)
24368 ac_cv_func_fork_works=yes
24369 ;;
24370 esac
cristy8b350f62009-11-15 23:12:43 +000024371 { $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 +000024372$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24373fi
24374ac_cv_func_vfork_works=$ac_cv_func_vfork
24375if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024377$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024378if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024379 $as_echo_n "(cached) " >&6
24380else
cristy8b350f62009-11-15 23:12:43 +000024381 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024382 ac_cv_func_vfork_works=cross
24383else
cristy8b350f62009-11-15 23:12:43 +000024384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024385/* end confdefs.h. */
24386/* Thanks to Paul Eggert for this test. */
24387$ac_includes_default
24388#include <sys/wait.h>
24389#ifdef HAVE_VFORK_H
24390# include <vfork.h>
24391#endif
24392/* On some sparc systems, changes by the child to local and incoming
24393 argument registers are propagated back to the parent. The compiler
24394 is told about this with #include <vfork.h>, but some compilers
24395 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24396 static variable whose address is put into a register that is
24397 clobbered by the vfork. */
24398static void
24399#ifdef __cplusplus
24400sparc_address_test (int arg)
24401# else
24402sparc_address_test (arg) int arg;
24403#endif
24404{
24405 static pid_t child;
24406 if (!child) {
24407 child = vfork ();
24408 if (child < 0) {
24409 perror ("vfork");
24410 _exit(2);
24411 }
24412 if (!child) {
24413 arg = getpid();
24414 write(-1, "", 0);
24415 _exit (arg);
24416 }
24417 }
24418}
24419
24420int
24421main ()
24422{
24423 pid_t parent = getpid ();
24424 pid_t child;
24425
24426 sparc_address_test (0);
24427
24428 child = vfork ();
24429
24430 if (child == 0) {
24431 /* Here is another test for sparc vfork register problems. This
24432 test uses lots of local variables, at least as many local
24433 variables as main has allocated so far including compiler
24434 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24435 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24436 reuse the register of parent for one of the local variables,
24437 since it will think that parent can't possibly be used any more
24438 in this routine. Assigning to the local variable will thus
24439 munge parent in the parent process. */
24440 pid_t
24441 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24442 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24443 /* Convince the compiler that p..p7 are live; otherwise, it might
24444 use the same hardware register for all 8 local variables. */
24445 if (p != p1 || p != p2 || p != p3 || p != p4
24446 || p != p5 || p != p6 || p != p7)
24447 _exit(1);
24448
24449 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24450 from child file descriptors. If the child closes a descriptor
24451 before it execs or exits, this munges the parent's descriptor
24452 as well. Test for this by closing stdout in the child. */
24453 _exit(close(fileno(stdout)) != 0);
24454 } else {
24455 int status;
24456 struct stat st;
24457
24458 while (wait(&status) != child)
24459 ;
24460 return (
24461 /* Was there some problem with vforking? */
24462 child < 0
24463
24464 /* Did the child fail? (This shouldn't happen.) */
24465 || status
24466
24467 /* Did the vfork/compiler bug occur? */
24468 || parent != getpid()
24469
24470 /* Did the file descriptor bug occur? */
24471 || fstat(fileno(stdout), &st) != 0
24472 );
24473 }
24474}
24475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024476if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024477 ac_cv_func_vfork_works=yes
24478else
cristy8b350f62009-11-15 23:12:43 +000024479 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024480fi
cristy8b350f62009-11-15 23:12:43 +000024481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24482 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024483fi
24484
cristy3ed852e2009-09-05 21:47:34 +000024485fi
cristy8b350f62009-11-15 23:12:43 +000024486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024487$as_echo "$ac_cv_func_vfork_works" >&6; }
24488
24489fi;
24490if test "x$ac_cv_func_fork_works" = xcross; then
24491 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024492 { $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 +000024493$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24494fi
24495
24496if test "x$ac_cv_func_vfork_works" = xyes; then
24497
cristy8b350f62009-11-15 23:12:43 +000024498$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024499
24500else
24501
cristy8b350f62009-11-15 23:12:43 +000024502$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024503
24504fi
24505if test "x$ac_cv_func_fork_works" = xyes; then
24506
cristy8b350f62009-11-15 23:12:43 +000024507$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024508
24509fi
24510
cristy8b350f62009-11-15 23:12:43 +000024511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024512$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024513if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024514 $as_echo_n "(cached) " >&6
24515else
cristy8b350f62009-11-15 23:12:43 +000024516 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024517 ac_cv_func_memcmp_working=no
24518else
cristy8b350f62009-11-15 23:12:43 +000024519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024520/* end confdefs.h. */
24521$ac_includes_default
24522int
24523main ()
24524{
24525
24526 /* Some versions of memcmp are not 8-bit clean. */
24527 char c0 = '\100', c1 = '\200', c2 = '\201';
24528 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24529 return 1;
24530
24531 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24532 or more and with at least one buffer not starting on a 4-byte boundary.
24533 William Lewis provided this test program. */
24534 {
24535 char foo[21];
24536 char bar[21];
24537 int i;
24538 for (i = 0; i < 4; i++)
24539 {
24540 char *a = foo + i;
24541 char *b = bar + i;
24542 strcpy (a, "--------01111111");
24543 strcpy (b, "--------10000000");
24544 if (memcmp (a, b, 16) >= 0)
24545 return 1;
24546 }
24547 return 0;
24548 }
24549
24550 ;
24551 return 0;
24552}
24553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024554if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024555 ac_cv_func_memcmp_working=yes
24556else
cristy8b350f62009-11-15 23:12:43 +000024557 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024558fi
cristy8b350f62009-11-15 23:12:43 +000024559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24560 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024561fi
24562
cristy3ed852e2009-09-05 21:47:34 +000024563fi
cristy8b350f62009-11-15 23:12:43 +000024564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024565$as_echo "$ac_cv_func_memcmp_working" >&6; }
24566test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24567 *" memcmp.$ac_objext "* ) ;;
24568 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24569 ;;
24570esac
24571
24572
cristy3ed852e2009-09-05 21:47:34 +000024573for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024574do :
24575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24576ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024577if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024578 cat >>confdefs.h <<_ACEOF
24579#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24580_ACEOF
24581
24582fi
24583
24584done
24585
cristy8b350f62009-11-15 23:12:43 +000024586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024587$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024588if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024589 $as_echo_n "(cached) " >&6
24590else
24591 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24592 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24593 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024595/* end confdefs.h. */
24596$ac_includes_default
24597#ifdef HAVE_SYS_SELECT_H
24598# include <sys/select.h>
24599#endif
24600#ifdef HAVE_SYS_SOCKET_H
24601# include <sys/socket.h>
24602#endif
24603
24604int
24605main ()
24606{
24607extern int select ($ac_arg1,
24608 $ac_arg234, $ac_arg234, $ac_arg234,
24609 $ac_arg5);
24610 ;
24611 return 0;
24612}
24613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024614if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024615 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024616fi
cristy3ed852e2009-09-05 21:47:34 +000024617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24618 done
24619 done
24620done
24621# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024622: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024623
24624fi
cristy8b350f62009-11-15 23:12:43 +000024625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024626$as_echo "$ac_cv_func_select_args" >&6; }
24627ac_save_IFS=$IFS; IFS=','
24628set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24629IFS=$ac_save_IFS
24630shift
24631
24632cat >>confdefs.h <<_ACEOF
24633#define SELECT_TYPE_ARG1 $1
24634_ACEOF
24635
24636
24637cat >>confdefs.h <<_ACEOF
24638#define SELECT_TYPE_ARG234 ($2)
24639_ACEOF
24640
24641
24642cat >>confdefs.h <<_ACEOF
24643#define SELECT_TYPE_ARG5 ($3)
24644_ACEOF
24645
24646rm -f conftest*
24647
cristyda16f162011-02-19 23:52:17 +000024648if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024649 $as_echo_n "(cached) " >&6
24650else
24651 ac_cv_func_setvbuf_reversed=no
24652fi
24653
24654
cristy8b350f62009-11-15 23:12:43 +000024655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024656$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024657if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024658 $as_echo_n "(cached) " >&6
24659else
cristy8b350f62009-11-15 23:12:43 +000024660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024661/* end confdefs.h. */
24662#include <sys/types.h>
24663#include <signal.h>
24664
24665int
24666main ()
24667{
24668return *(signal (0, 0)) (0) == 1;
24669 ;
24670 return 0;
24671}
24672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024673if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024674 ac_cv_type_signal=int
24675else
cristy8b350f62009-11-15 23:12:43 +000024676 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024677fi
cristy3ed852e2009-09-05 21:47:34 +000024678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679fi
cristy8b350f62009-11-15 23:12:43 +000024680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024681$as_echo "$ac_cv_type_signal" >&6; }
24682
24683cat >>confdefs.h <<_ACEOF
24684#define RETSIGTYPE $ac_cv_type_signal
24685_ACEOF
24686
24687
cristy8b350f62009-11-15 23:12:43 +000024688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024689$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024690if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024691 $as_echo_n "(cached) " >&6
24692else
cristy8b350f62009-11-15 23:12:43 +000024693 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024694 ac_cv_func_strtod=no
24695else
cristy8b350f62009-11-15 23:12:43 +000024696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024697/* end confdefs.h. */
24698
24699$ac_includes_default
24700#ifndef strtod
24701double strtod ();
24702#endif
24703int
24704main()
24705{
24706 {
24707 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24708 char *string = " +69";
24709 char *term;
24710 double value;
24711 value = strtod (string, &term);
24712 if (value != 69 || term != (string + 4))
24713 return 1;
24714 }
24715
24716 {
24717 /* Under Solaris 2.4, strtod returns the wrong value for the
24718 terminating character under some conditions. */
24719 char *string = "NaN";
24720 char *term;
24721 strtod (string, &term);
24722 if (term != string && *(term - 1) == 0)
24723 return 1;
24724 }
24725 return 0;
24726}
24727
24728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024729if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024730 ac_cv_func_strtod=yes
24731else
cristy8b350f62009-11-15 23:12:43 +000024732 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024733fi
cristy8b350f62009-11-15 23:12:43 +000024734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24735 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024736fi
24737
cristy3ed852e2009-09-05 21:47:34 +000024738fi
cristy8b350f62009-11-15 23:12:43 +000024739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024740$as_echo "$ac_cv_func_strtod" >&6; }
24741if test $ac_cv_func_strtod = no; then
24742 case " $LIBOBJS " in
24743 *" strtod.$ac_objext "* ) ;;
24744 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24745 ;;
24746esac
24747
cristy8b350f62009-11-15 23:12:43 +000024748ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024749if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024750
cristy3ed852e2009-09-05 21:47:34 +000024751fi
24752
cristy3ed852e2009-09-05 21:47:34 +000024753if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024755$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024756if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024757 $as_echo_n "(cached) " >&6
24758else
24759 ac_check_lib_save_LIBS=$LIBS
24760LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024762/* end confdefs.h. */
24763
24764/* Override any GCC internal prototype to avoid an error.
24765 Use char because int might match the return type of a GCC
24766 builtin and then its argument prototype would still apply. */
24767#ifdef __cplusplus
24768extern "C"
24769#endif
24770char pow ();
24771int
24772main ()
24773{
24774return pow ();
24775 ;
24776 return 0;
24777}
24778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024779if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024780 ac_cv_lib_m_pow=yes
24781else
cristy8b350f62009-11-15 23:12:43 +000024782 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024783fi
cristy8b350f62009-11-15 23:12:43 +000024784rm -f core conftest.err conftest.$ac_objext \
24785 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024786LIBS=$ac_check_lib_save_LIBS
24787fi
cristy8b350f62009-11-15 23:12:43 +000024788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024789$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024790if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024791 POW_LIB=-lm
24792else
cristy8b350f62009-11-15 23:12:43 +000024793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024794$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24795fi
24796
24797fi
24798
24799fi
24800
cristy7d4a1d62011-10-13 15:54:12 +000024801ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24802if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24803 ac_have_decl=1
24804else
24805 ac_have_decl=0
24806fi
24807
24808cat >>confdefs.h <<_ACEOF
24809#define HAVE_DECL_STRERROR_R $ac_have_decl
24810_ACEOF
24811
24812for ac_func in strerror_r
24813do :
24814 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24815if test "x$ac_cv_func_strerror_r" = xyes; then :
24816 cat >>confdefs.h <<_ACEOF
24817#define HAVE_STRERROR_R 1
24818_ACEOF
24819
24820fi
24821done
24822
24823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24824$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24825if ${ac_cv_func_strerror_r_char_p+:} false; then :
24826 $as_echo_n "(cached) " >&6
24827else
24828
24829 ac_cv_func_strerror_r_char_p=no
24830 if test $ac_cv_have_decl_strerror_r = yes; then
24831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24832/* end confdefs.h. */
24833$ac_includes_default
24834int
24835main ()
24836{
24837
24838 char buf[100];
24839 char x = *strerror_r (0, buf, sizeof buf);
24840 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024841 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024842
24843 ;
24844 return 0;
24845}
24846_ACEOF
24847if ac_fn_c_try_compile "$LINENO"; then :
24848 ac_cv_func_strerror_r_char_p=yes
24849fi
24850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24851 else
24852 # strerror_r is not declared. Choose between
24853 # systems that have relatively inaccessible declarations for the
24854 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24855 # former has a strerror_r that returns char*, while the latter
24856 # has a strerror_r that returns `int'.
24857 # This test should segfault on the DEC system.
24858 if test "$cross_compiling" = yes; then :
24859 :
24860else
24861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24862/* end confdefs.h. */
24863$ac_includes_default
24864 extern char *strerror_r ();
24865int
24866main ()
24867{
24868char buf[100];
24869 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024870 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024871 ;
24872 return 0;
24873}
24874_ACEOF
24875if ac_fn_c_try_run "$LINENO"; then :
24876 ac_cv_func_strerror_r_char_p=yes
24877fi
24878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24879 conftest.$ac_objext conftest.beam conftest.$ac_ext
24880fi
24881
24882 fi
24883
24884fi
24885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24886$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24887if test $ac_cv_func_strerror_r_char_p = yes; then
24888
24889$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24890
24891fi
24892
cristy3ed852e2009-09-05 21:47:34 +000024893for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024894do :
24895 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024896if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024897 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024898#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024899_ACEOF
24900
cristy8b350f62009-11-15 23:12:43 +000024901ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024902if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024903
cristy8b350f62009-11-15 23:12:43 +000024904$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024905
24906fi
24907
24908fi
24909done
24910
24911
24912
cristy161b9262010-03-20 19:34:32 +000024913#
24914# Find math library
24915#
24916MATH_LIBS=''
24917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24918$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024919if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024920 $as_echo_n "(cached) " >&6
24921else
24922 ac_check_lib_save_LIBS=$LIBS
24923LIBS="-lm $LIBS"
24924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24925/* end confdefs.h. */
24926
24927/* Override any GCC internal prototype to avoid an error.
24928 Use char because int might match the return type of a GCC
24929 builtin and then its argument prototype would still apply. */
24930#ifdef __cplusplus
24931extern "C"
24932#endif
24933char sqrt ();
24934int
24935main ()
24936{
24937return sqrt ();
24938 ;
24939 return 0;
24940}
24941_ACEOF
24942if ac_fn_c_try_link "$LINENO"; then :
24943 ac_cv_lib_m_sqrt=yes
24944else
24945 ac_cv_lib_m_sqrt=no
24946fi
24947rm -f core conftest.err conftest.$ac_objext \
24948 conftest$ac_exeext conftest.$ac_ext
24949LIBS=$ac_check_lib_save_LIBS
24950fi
24951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24952$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024953if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024954 MATH_LIBS="-lm"
24955fi
24956
24957LIBS="$MATH_LIBS $LIBS"
24958
24959
cristy82b20722011-11-05 21:52:36 +000024960for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000024961do :
24962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24963ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024964if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024965 cat >>confdefs.h <<_ACEOF
24966#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24967_ACEOF
24968
24969fi
24970done
24971
24972
cristye43a45e2009-09-28 14:49:00 +000024973#
24974# Check for clock_gettime().
24975#
cristy8b350f62009-11-15 23:12:43 +000024976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024977$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024978if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024979 $as_echo_n "(cached) " >&6
24980else
24981 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024983/* end confdefs.h. */
24984
24985/* Override any GCC internal prototype to avoid an error.
24986 Use char because int might match the return type of a GCC
24987 builtin and then its argument prototype would still apply. */
24988#ifdef __cplusplus
24989extern "C"
24990#endif
24991char clock_gettime ();
24992int
24993main ()
24994{
24995return clock_gettime ();
24996 ;
24997 return 0;
24998}
24999_ACEOF
25000for ac_lib in '' rt; do
25001 if test -z "$ac_lib"; then
25002 ac_res="none required"
25003 else
25004 ac_res=-l$ac_lib
25005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25006 fi
cristy8b350f62009-11-15 23:12:43 +000025007 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025008 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025009fi
cristy8b350f62009-11-15 23:12:43 +000025010rm -f core conftest.err conftest.$ac_objext \
25011 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025012 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025013 break
25014fi
25015done
cristyda16f162011-02-19 23:52:17 +000025016if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025017
cristye43a45e2009-09-28 14:49:00 +000025018else
25019 ac_cv_search_clock_gettime=no
25020fi
25021rm conftest.$ac_ext
25022LIBS=$ac_func_search_save_LIBS
25023fi
cristy8b350f62009-11-15 23:12:43 +000025024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025025$as_echo "$ac_cv_search_clock_gettime" >&6; }
25026ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025027if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25029
25030
cristy8b350f62009-11-15 23:12:43 +000025031$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025032
cristy8b350f62009-11-15 23:12:43 +000025033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025034$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025036/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025037
25038 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025039int
25040main ()
25041{
25042clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025043 ;
25044 return 0;
25045}
25046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025047if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025048
cristy09b53e12011-10-14 12:47:22 +000025049 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25050$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025051
cristy8b350f62009-11-15 23:12:43 +000025052$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025053
25054
25055else
cristy09b53e12011-10-14 12:47:22 +000025056 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25057$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025058
25059fi
cristye43a45e2009-09-28 14:49:00 +000025060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061
25062else
25063
cristy8b350f62009-11-15 23:12:43 +000025064 for ac_func in gettimeofday ftime
25065do :
25066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025068if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025069 cat >>confdefs.h <<_ACEOF
25070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25071_ACEOF
25072 break
25073fi
25074done
25075
25076
25077
25078fi
25079
25080
cristy3ed852e2009-09-05 21:47:34 +000025081########
25082#
25083# Check for function prototypes
25084#
25085########
25086
cristy8b350f62009-11-15 23:12:43 +000025087ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025088#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025089"
cristyda16f162011-02-19 23:52:17 +000025090if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025091 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025092else
cristy8b350f62009-11-15 23:12:43 +000025093 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025094fi
25095
cristy3ed852e2009-09-05 21:47:34 +000025096cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025097#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025099ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025100#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025101"
cristyda16f162011-02-19 23:52:17 +000025102if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025103 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025104else
cristy8b350f62009-11-15 23:12:43 +000025105 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025106fi
25107
cristy3ed852e2009-09-05 21:47:34 +000025108cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025109#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025110_ACEOF
25111
25112
cristy8b350f62009-11-15 23:12:43 +000025113ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025114#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025115"
cristyda16f162011-02-19 23:52:17 +000025116if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025117 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025118else
cristy8b350f62009-11-15 23:12:43 +000025119 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025120fi
25121
cristy3ed852e2009-09-05 21:47:34 +000025122cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025123#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025124_ACEOF
25125
25126
cristy8b350f62009-11-15 23:12:43 +000025127ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025128#include <stdio.h>
25129#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025130"
cristyda16f162011-02-19 23:52:17 +000025131if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025132 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025133else
cristy8b350f62009-11-15 23:12:43 +000025134 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025135fi
25136
cristy3ed852e2009-09-05 21:47:34 +000025137cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025138#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025139_ACEOF
25140
25141
cristy3ed852e2009-09-05 21:47:34 +000025142########
25143#
25144# C++ Support Tests (For Magick++)
25145#
25146########
25147have_magick_plus_plus='no'
25148if test "$with_magick_plus_plus" = 'yes'; then
25149 OLIBS="$LIBS"
25150 LIBS=''
25151 ac_ext=cpp
25152ac_cpp='$CXXCPP $CPPFLAGS'
25153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25156
25157
25158 # Full set of headers used...
25159 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25160 # functional iomanip iosfwd iostream iterator list string strstream utility
25161 ac_ext=cpp
25162ac_cpp='$CXXCPP $CPPFLAGS'
25163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25166
25167 ac_ext=cpp
25168ac_cpp='$CXXCPP $CPPFLAGS'
25169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25172if test -z "$CXX"; then
25173 if test -n "$CCC"; then
25174 CXX=$CCC
25175 else
25176 if test -n "$ac_tool_prefix"; then
25177 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25178 do
25179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025183if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025184 $as_echo_n "(cached) " >&6
25185else
25186 if test -n "$CXX"; then
25187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25188else
25189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25190for as_dir in $PATH
25191do
25192 IFS=$as_save_IFS
25193 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025194 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25196 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025198 break 2
25199 fi
25200done
cristy8b350f62009-11-15 23:12:43 +000025201 done
cristy3ed852e2009-09-05 21:47:34 +000025202IFS=$as_save_IFS
25203
25204fi
25205fi
25206CXX=$ac_cv_prog_CXX
25207if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025209$as_echo "$CXX" >&6; }
25210else
cristy8b350f62009-11-15 23:12:43 +000025211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025212$as_echo "no" >&6; }
25213fi
25214
25215
25216 test -n "$CXX" && break
25217 done
25218fi
25219if test -z "$CXX"; then
25220 ac_ct_CXX=$CXX
25221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25222do
25223 # Extract the first word of "$ac_prog", so it can be a program name with args.
25224set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025227if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025228 $as_echo_n "(cached) " >&6
25229else
25230 if test -n "$ac_ct_CXX"; then
25231 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25232else
25233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25234for as_dir in $PATH
25235do
25236 IFS=$as_save_IFS
25237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25240 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025242 break 2
25243 fi
25244done
cristy8b350f62009-11-15 23:12:43 +000025245 done
cristy3ed852e2009-09-05 21:47:34 +000025246IFS=$as_save_IFS
25247
25248fi
25249fi
25250ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25251if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025253$as_echo "$ac_ct_CXX" >&6; }
25254else
cristy8b350f62009-11-15 23:12:43 +000025255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025256$as_echo "no" >&6; }
25257fi
25258
25259
25260 test -n "$ac_ct_CXX" && break
25261done
25262
25263 if test "x$ac_ct_CXX" = x; then
25264 CXX="g++"
25265 else
25266 case $cross_compiling:$ac_tool_warned in
25267yes:)
cristy8b350f62009-11-15 23:12:43 +000025268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25270ac_tool_warned=yes ;;
25271esac
25272 CXX=$ac_ct_CXX
25273 fi
25274fi
25275
25276 fi
25277fi
25278# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025279$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025280set X $ac_compile
25281ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025282for ac_option in --version -v -V -qversion; do
25283 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025284case "(($ac_try" in
25285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25286 *) ac_try_echo=$ac_try;;
25287esac
cristy8b350f62009-11-15 23:12:43 +000025288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25289$as_echo "$ac_try_echo"; } >&5
25290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025291 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025292 if test -s conftest.err; then
25293 sed '10a\
25294... rest of stderr output deleted ...
25295 10q' conftest.err >conftest.er1
25296 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025297 fi
cristycd4c5312009-11-22 01:19:08 +000025298 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25300 test $ac_status = 0; }
25301done
cristy3ed852e2009-09-05 21:47:34 +000025302
cristy8b350f62009-11-15 23:12:43 +000025303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025304$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025305if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025306 $as_echo_n "(cached) " >&6
25307else
cristy8b350f62009-11-15 23:12:43 +000025308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025309/* end confdefs.h. */
25310
25311int
25312main ()
25313{
25314#ifndef __GNUC__
25315 choke me
25316#endif
25317
25318 ;
25319 return 0;
25320}
25321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025322if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025323 ac_compiler_gnu=yes
25324else
cristy8b350f62009-11-15 23:12:43 +000025325 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025326fi
cristy3ed852e2009-09-05 21:47:34 +000025327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25328ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25329
25330fi
cristy8b350f62009-11-15 23:12:43 +000025331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025332$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25333if test $ac_compiler_gnu = yes; then
25334 GXX=yes
25335else
25336 GXX=
25337fi
25338ac_test_CXXFLAGS=${CXXFLAGS+set}
25339ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025341$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025342if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025343 $as_echo_n "(cached) " >&6
25344else
25345 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25346 ac_cxx_werror_flag=yes
25347 ac_cv_prog_cxx_g=no
25348 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025350/* end confdefs.h. */
25351
25352int
25353main ()
25354{
25355
25356 ;
25357 return 0;
25358}
25359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025360if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 ac_cv_prog_cxx_g=yes
25362else
cristy8b350f62009-11-15 23:12:43 +000025363 CXXFLAGS=""
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025365/* end confdefs.h. */
25366
25367int
25368main ()
25369{
25370
25371 ;
25372 return 0;
25373}
25374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025375if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025376
cristy8b350f62009-11-15 23:12:43 +000025377else
25378 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025379 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025381/* end confdefs.h. */
25382
25383int
25384main ()
25385{
25386
25387 ;
25388 return 0;
25389}
25390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025391if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025392 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025393fi
cristy3ed852e2009-09-05 21:47:34 +000025394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395fi
cristy3ed852e2009-09-05 21:47:34 +000025396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25397fi
cristy3ed852e2009-09-05 21:47:34 +000025398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25399 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25400fi
cristy8b350f62009-11-15 23:12:43 +000025401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025402$as_echo "$ac_cv_prog_cxx_g" >&6; }
25403if test "$ac_test_CXXFLAGS" = set; then
25404 CXXFLAGS=$ac_save_CXXFLAGS
25405elif test $ac_cv_prog_cxx_g = yes; then
25406 if test "$GXX" = yes; then
25407 CXXFLAGS="-g -O2"
25408 else
25409 CXXFLAGS="-g"
25410 fi
25411else
25412 if test "$GXX" = yes; then
25413 CXXFLAGS="-O2"
25414 else
25415 CXXFLAGS=
25416 fi
25417fi
25418ac_ext=cpp
25419ac_cpp='$CXXCPP $CPPFLAGS'
25420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25423
cristy73bd4a52010-10-05 11:24:23 +000025424depcc="$CXX" am_compiler_list=
25425
25426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25427$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025428if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025429 $as_echo_n "(cached) " >&6
25430else
25431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25432 # We make a subdir and do the tests there. Otherwise we can end up
25433 # making bogus files that we don't know about and never remove. For
25434 # instance it was reported that on HP-UX the gcc test will end up
25435 # making a dummy file named `D' -- because `-MD' means `put the output
25436 # in D'.
25437 mkdir conftest.dir
25438 # Copy depcomp to subdir because otherwise we won't find it if we're
25439 # using a relative directory.
25440 cp "$am_depcomp" conftest.dir
25441 cd conftest.dir
25442 # We will build objects and dependencies in a subdirectory because
25443 # it helps to detect inapplicable dependency modes. For instance
25444 # both Tru64's cc and ICC support -MD to output dependencies as a
25445 # side effect of compilation, but ICC will put the dependencies in
25446 # the current directory while Tru64 will put them in the object
25447 # directory.
25448 mkdir sub
25449
25450 am_cv_CXX_dependencies_compiler_type=none
25451 if test "$am_compiler_list" = ""; then
25452 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25453 fi
25454 am__universal=false
25455 case " $depcc " in #(
25456 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25457 esac
25458
25459 for depmode in $am_compiler_list; do
25460 # Setup a source with many dependencies, because some compilers
25461 # like to wrap large dependency lists on column 80 (with \), and
25462 # we should not choose a depcomp mode which is confused by this.
25463 #
25464 # We need to recreate these files for each test, as the compiler may
25465 # overwrite some of them when testing with obscure command lines.
25466 # This happens at least with the AIX C compiler.
25467 : > sub/conftest.c
25468 for i in 1 2 3 4 5 6; do
25469 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25470 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25471 # Solaris 8's {/usr,}/bin/sh.
25472 touch sub/conftst$i.h
25473 done
25474 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25475
25476 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25477 # mode. It turns out that the SunPro C++ compiler does not properly
25478 # handle `-M -o', and we need to detect this. Also, some Intel
25479 # versions had trouble with output in subdirs
25480 am__obj=sub/conftest.${OBJEXT-o}
25481 am__minus_obj="-o $am__obj"
25482 case $depmode in
25483 gcc)
25484 # This depmode causes a compiler race in universal mode.
25485 test "$am__universal" = false || continue
25486 ;;
25487 nosideeffect)
25488 # after this tag, mechanisms are not by side-effect, so they'll
25489 # only be used when explicitly requested
25490 if test "x$enable_dependency_tracking" = xyes; then
25491 continue
25492 else
25493 break
25494 fi
25495 ;;
25496 msvisualcpp | msvcmsys)
25497 # This compiler won't grok `-c -o', but also, the minuso test has
25498 # not run yet. These depmodes are late enough in the game, and
25499 # so weak that their functioning should not be impacted.
25500 am__obj=conftest.${OBJEXT-o}
25501 am__minus_obj=
25502 ;;
25503 none) break ;;
25504 esac
25505 if depmode=$depmode \
25506 source=sub/conftest.c object=$am__obj \
25507 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25508 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25509 >/dev/null 2>conftest.err &&
25510 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25512 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25514 # icc doesn't choke on unknown options, it will just issue warnings
25515 # or remarks (even with -Werror). So we grep stderr for any message
25516 # that says an option was ignored or not supported.
25517 # When given -MP, icc 7.0 and 7.1 complain thusly:
25518 # icc: Command line warning: ignoring option '-M'; no argument required
25519 # The diagnosis changed in icc 8.0:
25520 # icc: Command line remark: option '-MP' not supported
25521 if (grep 'ignoring option' conftest.err ||
25522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25523 am_cv_CXX_dependencies_compiler_type=$depmode
25524 break
25525 fi
25526 fi
25527 done
25528
25529 cd ..
25530 rm -rf conftest.dir
25531else
25532 am_cv_CXX_dependencies_compiler_type=none
25533fi
25534
25535fi
25536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25537$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25538CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25539
25540 if
25541 test "x$enable_dependency_tracking" != xno \
25542 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25543 am__fastdepCXX_TRUE=
25544 am__fastdepCXX_FALSE='#'
25545else
25546 am__fastdepCXX_TRUE='#'
25547 am__fastdepCXX_FALSE=
25548fi
25549
25550
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25552$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025553if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025554 $as_echo_n "(cached) " >&6
25555else
25556
25557 ac_ext=cpp
25558ac_cpp='$CXXCPP $CPPFLAGS'
25559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25562
25563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25564/* end confdefs.h. */
25565
25566int f(int x){return 1;}
25567int f(char x){return 1;}
25568int f(bool x){return 1;}
25569
25570int
25571main ()
25572{
25573bool b = true; return f(b);
25574 ;
25575 return 0;
25576}
25577_ACEOF
25578if ac_fn_cxx_try_compile "$LINENO"; then :
25579 ax_cv_cxx_bool=yes
25580else
25581 ax_cv_cxx_bool=no
25582fi
25583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25584 ac_ext=cpp
25585ac_cpp='$CXXCPP $CPPFLAGS'
25586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25589
25590
25591fi
25592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25593$as_echo "$ax_cv_cxx_bool" >&6; }
25594if test "$ax_cv_cxx_bool" = yes; then
25595
25596$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25597
25598fi
25599
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25601$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025602if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025603 $as_echo_n "(cached) " >&6
25604else
25605
25606 ac_ext=cpp
25607ac_cpp='$CXXCPP $CPPFLAGS'
25608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25611
25612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25613/* end confdefs.h. */
25614namespace Outer { namespace Inner { int i = 0; }}
25615int
25616main ()
25617{
25618using namespace Outer::Inner; return i;
25619 ;
25620 return 0;
25621}
25622_ACEOF
25623if ac_fn_cxx_try_compile "$LINENO"; then :
25624 ax_cv_cxx_namespaces=yes
25625else
25626 ax_cv_cxx_namespaces=no
25627fi
25628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25629 ac_ext=cpp
25630ac_cpp='$CXXCPP $CPPFLAGS'
25631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25634
25635
25636fi
25637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25638$as_echo "$ax_cv_cxx_namespaces" >&6; }
25639if test "$ax_cv_cxx_namespaces" = yes; then
25640
25641$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25642
25643fi
25644
25645
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25647$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025648if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025649 $as_echo_n "(cached) " >&6
25650else
25651
25652 ac_ext=cpp
25653ac_cpp='$CXXCPP $CPPFLAGS'
25654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25657
25658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25659/* end confdefs.h. */
25660#include <iostream>
25661 std::istream& is = std::cin;
25662int
25663main ()
25664{
25665
25666 ;
25667 return 0;
25668}
25669_ACEOF
25670if ac_fn_cxx_try_compile "$LINENO"; then :
25671 ax_cv_cxx_have_std_namespace=yes
25672else
25673 ax_cv_cxx_have_std_namespace=no
25674fi
25675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25676 ac_ext=cpp
25677ac_cpp='$CXXCPP $CPPFLAGS'
25678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25681
25682
25683fi
25684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25685$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25686 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25687
25688$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25689
25690 fi
25691
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25693$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025694if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025695 $as_echo_n "(cached) " >&6
25696else
25697
25698
25699 ac_ext=cpp
25700ac_cpp='$CXXCPP $CPPFLAGS'
25701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25704
25705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25706/* end confdefs.h. */
25707#include <iostream>
25708#include <map>
25709#include <iomanip>
25710#include <cmath>
25711#ifdef HAVE_NAMESPACES
25712using namespace std;
25713#endif
25714int
25715main ()
25716{
25717return 0;
25718 ;
25719 return 0;
25720}
25721_ACEOF
25722if ac_fn_cxx_try_compile "$LINENO"; then :
25723 ac_cv_cxx_have_std_libs=yes
25724else
25725 ac_cv_cxx_have_std_libs=no
25726fi
25727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25728 ac_ext=cpp
25729ac_cpp='$CXXCPP $CPPFLAGS'
25730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25733
25734
25735fi
25736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25737$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25738if test "$ac_cv_cxx_have_std_libs" = yes; then
25739
25740$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25741
25742fi
25743
cristy3ed852e2009-09-05 21:47:34 +000025744
25745 OPENMP_CXXFLAGS=
25746 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025747if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025748 enableval=$enable_openmp;
25749fi
25750
25751 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25753$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025754if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025755 $as_echo_n "(cached) " >&6
25756else
cristy8b350f62009-11-15 23:12:43 +000025757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25758/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025759
25760#ifndef _OPENMP
25761 choke me
25762#endif
25763#include <omp.h>
25764int main () { return omp_get_num_threads (); }
25765
25766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025767if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025768 ac_cv_prog_cxx_openmp='none needed'
25769else
cristy8b350f62009-11-15 23:12:43 +000025770 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025771 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25772 ac_save_CXXFLAGS=$CXXFLAGS
25773 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25775/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025776
25777#ifndef _OPENMP
25778 choke me
25779#endif
25780#include <omp.h>
25781int main () { return omp_get_num_threads (); }
25782
25783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025784if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025785 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025786fi
cristy8b350f62009-11-15 23:12:43 +000025787rm -f core conftest.err conftest.$ac_objext \
25788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025789 CXXFLAGS=$ac_save_CXXFLAGS
25790 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25791 break
25792 fi
25793 done
25794fi
cristy8b350f62009-11-15 23:12:43 +000025795rm -f core conftest.err conftest.$ac_objext \
25796 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025797fi
cristy8b350f62009-11-15 23:12:43 +000025798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025799$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25800 case $ac_cv_prog_cxx_openmp in #(
25801 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025802 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025803 *)
cristy8b350f62009-11-15 23:12:43 +000025804 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025805 esac
25806 fi
25807
25808
25809 ac_ext=c
25810ac_cpp='$CPP $CPPFLAGS'
25811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25813ac_compiler_gnu=$ac_cv_c_compiler_gnu
25814
25815
cristy8b350f62009-11-15 23:12:43 +000025816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025817$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25818 if \
cristy964cb7f2010-04-25 23:18:00 +000025819 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025820 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025821 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025822 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025823 have_magick_plus_plus='yes'
25824 else
25825 have_magick_plus_plus='no (failed tests)'
25826 fi
cristy09b53e12011-10-14 12:47:22 +000025827 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25828$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025829 LIBS="$OLIBS"
25830fi
cristy73bd4a52010-10-05 11:24:23 +000025831 if test "$have_magick_plus_plus" = 'yes'; then
25832 WITH_MAGICK_PLUS_PLUS_TRUE=
25833 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25834else
25835 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25836 WITH_MAGICK_PLUS_PLUS_FALSE=
25837fi
25838
cristy3ed852e2009-09-05 21:47:34 +000025839
25840# Only check for delegate libraries in subdirectories if requested.
25841if test "$enable_delegate_build" != 'no'; then
25842 # Check for delegate sub-directories and add -I & -L options as required.
25843 # This presumes that delegates are installed as detailed in the ImageMagick
25844 # README. If delegates are installed in a standard location where the
25845 # compiler will automatically find them then these options should not be
25846 # required.
25847
25848 #
25849 # Most delegates have includes in the same directory as the library, but not all...
25850 #
25851 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025852 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 +000025853 if test -d "$builddir/$dir"; then
25854 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25855 else
25856 if test -d "$srcdirfull/$dir"; then
25857 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25858 fi
25859 fi
25860 done
25861
25862 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025863 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 +000025864 if test -d "$builddir/$dir/.libs"; then
25865 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25866 else
25867 if test -d "$srcdirfull/$dir/.libs"; then
25868 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25869 fi
25870 fi
25871 if test -d "$builddir/$dir"; then
25872 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25873 else
25874 if test -d "$srcdirfull/$dir"; then
25875 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25876 fi
25877 fi
25878 done
25879fi
25880
25881# Assume that delegate headers reside under same directory as ImageMagick
25882# installation prefix.
25883MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25884
25885#
25886# Find the X11 RGB database
25887#
cristy8b350f62009-11-15 23:12:43 +000025888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025889$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025890if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025891 $as_echo_n "(cached) " >&6
25892else
25893 # Look for the header file in a standard set of common directories.
25894# Check X11 before X11Rn because it is often a symlink to the current release.
25895 for ac_dir in \
25896 /lib/usr/lib/X11 \
25897 /usr/X11/lib \
25898 /usr/X11R4/lib \
25899 /usr/X11R5/lib \
25900 /usr/X11R6/lib \
25901 /usr/X11R7/lib \
25902 /usr/X386/lib \
25903 /usr/XFree86/lib/X11 \
25904 /usr/athena/lib \
25905 /usr/lib \
25906 /usr/lib/X11 \
25907 /usr/lib/X11R4 \
25908 /usr/lib/X11R5 \
25909 /usr/lib/X11R6 \
25910 /usr/lib/X11R7 \
25911 /usr/local/X11/lib \
25912 /usr/local/X11R4/lib \
25913 /usr/local/X11R5/lib \
25914 /usr/local/X11R6/lib \
25915 /usr/local/lib \
25916 /usr/local/lib/X11 \
25917 /usr/local/lib/X11R4 \
25918 /usr/local/lib/X11R5 \
25919 /usr/local/lib/X11R6 \
25920 /usr/local/lib/X11R7 \
25921 /usr/local/x11r5/lib \
25922 /usr/lpp/Xamples/lib \
25923 /usr/openwin/lib \
25924 /usr/openwin/share/lib \
25925 /usr/unsupported/lib \
25926 /usr/x386/lib \
25927 ; do
25928 if test -f "$ac_dir/X11/rgb.txt"; then
25929 im_cv_x_configure="$ac_dir/X11/"
25930 break
25931 elif test -f "$ac_dir/rgb.txt"; then
25932 im_cv_x_configure="$ac_dir/"
25933 break
25934 fi
25935
25936 done
25937fi
cristy8b350f62009-11-15 23:12:43 +000025938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025939$as_echo "$im_cv_x_configure" >&6; }
25940X11_CONFIGURE_PATH="$im_cv_x_configure"
25941case "${build_os}" in
25942 mingw* )
25943 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25944 ;;
25945esac
25946
25947cat >>confdefs.h <<_ACEOF
25948#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25949_ACEOF
25950
25951
25952#
25953# Find OpenMP library
25954#
25955GOMP_LIBS=''
25956if test "$enable_openmp" != 'no'; then
25957 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025959$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025960if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025961 $as_echo_n "(cached) " >&6
25962else
25963 ac_check_lib_save_LIBS=$LIBS
25964LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025966/* end confdefs.h. */
25967
25968/* Override any GCC internal prototype to avoid an error.
25969 Use char because int might match the return type of a GCC
25970 builtin and then its argument prototype would still apply. */
25971#ifdef __cplusplus
25972extern "C"
25973#endif
25974char GOMP_parallel_start ();
25975int
25976main ()
25977{
25978return GOMP_parallel_start ();
25979 ;
25980 return 0;
25981}
25982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025983if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025984 ac_cv_lib_gomp_GOMP_parallel_start=yes
25985else
cristy8b350f62009-11-15 23:12:43 +000025986 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025987fi
cristy8b350f62009-11-15 23:12:43 +000025988rm -f core conftest.err conftest.$ac_objext \
25989 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025990LIBS=$ac_check_lib_save_LIBS
25991fi
cristy8b350f62009-11-15 23:12:43 +000025992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025993$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025994if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025995 GOMP_LIBS="-lgomp"
25996fi
25997 # gcc
25998 else
cristy8b350f62009-11-15 23:12:43 +000025999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026000$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026001if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026002 $as_echo_n "(cached) " >&6
26003else
26004 ac_check_lib_save_LIBS=$LIBS
26005LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026007/* end confdefs.h. */
26008
26009/* Override any GCC internal prototype to avoid an error.
26010 Use char because int might match the return type of a GCC
26011 builtin and then its argument prototype would still apply. */
26012#ifdef __cplusplus
26013extern "C"
26014#endif
26015char sunw_mp_register_warn ();
26016int
26017main ()
26018{
26019return sunw_mp_register_warn ();
26020 ;
26021 return 0;
26022}
26023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026024if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026025 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26026else
cristy8b350f62009-11-15 23:12:43 +000026027 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026028fi
cristy8b350f62009-11-15 23:12:43 +000026029rm -f core conftest.err conftest.$ac_objext \
26030 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026031LIBS=$ac_check_lib_save_LIBS
26032fi
cristy8b350f62009-11-15 23:12:43 +000026033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026034$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026035if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026036 GOMP_LIBS="-lmtsk"
26037fi
26038 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000026039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026040$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026041if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026042 $as_echo_n "(cached) " >&6
26043else
26044 ac_check_lib_save_LIBS=$LIBS
26045LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026047/* end confdefs.h. */
26048
26049/* Override any GCC internal prototype to avoid an error.
26050 Use char because int might match the return type of a GCC
26051 builtin and then its argument prototype would still apply. */
26052#ifdef __cplusplus
26053extern "C"
26054#endif
26055char _xlsmpFlush ();
26056int
26057main ()
26058{
26059return _xlsmpFlush ();
26060 ;
26061 return 0;
26062}
26063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026064if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026065 ac_cv_lib_xlsmp__xlsmpFlush=yes
26066else
cristy8b350f62009-11-15 23:12:43 +000026067 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026068fi
cristy8b350f62009-11-15 23:12:43 +000026069rm -f core conftest.err conftest.$ac_objext \
26070 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026071LIBS=$ac_check_lib_save_LIBS
26072fi
cristy8b350f62009-11-15 23:12:43 +000026073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026074$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026075if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026076 GOMP_LIBS="-lxlsmp"
26077fi
26078 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000026079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026081if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026082 $as_echo_n "(cached) " >&6
26083else
26084 ac_check_lib_save_LIBS=$LIBS
26085LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026087/* end confdefs.h. */
26088
26089/* Override any GCC internal prototype to avoid an error.
26090 Use char because int might match the return type of a GCC
26091 builtin and then its argument prototype would still apply. */
26092#ifdef __cplusplus
26093extern "C"
26094#endif
26095char mp_destroy ();
26096int
26097main ()
26098{
26099return mp_destroy ();
26100 ;
26101 return 0;
26102}
26103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026105 ac_cv_lib_mp_mp_destroy=yes
26106else
cristy8b350f62009-11-15 23:12:43 +000026107 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026108fi
cristy8b350f62009-11-15 23:12:43 +000026109rm -f core conftest.err conftest.$ac_objext \
26110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026111LIBS=$ac_check_lib_save_LIBS
26112fi
cristy8b350f62009-11-15 23:12:43 +000026113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026114$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026115if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 GOMP_LIBS="-lmp"
26117fi
26118 # SGI IRIX 6.5 MIPSpro C/C++
26119 fi
26120 LIBS="$GOMP_LIBS $LIBS"
26121fi
26122
26123
26124#
26125# Find Posix threads library
26126#
26127THREAD_LIBS=''
26128if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26129
26130 if test "x$PTHREAD_LIBS" = "x"; then
26131 case "${host_cpu}-${host_os}" in
26132 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026133
26134
26135
26136ac_ext=c
26137ac_cpp='$CPP $CPPFLAGS'
26138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26140ac_compiler_gnu=$ac_cv_c_compiler_gnu
26141
26142magick_pthread_lib_ok=no
26143
26144LIB=-lc_r
26145save_LIBS="$LIBS"
26146LIBS="$LIBS $LIB"
26147
26148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26149$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26151/* end confdefs.h. */
26152#include <pthread.h>
26153int
26154main ()
26155{
26156 pthread_t th;
26157 pthread_join(th, 0);
26158 pthread_attr_init(0);
26159 pthread_cleanup_push(0, 0);
26160 pthread_create(0,0,0,0);
26161 pthread_cleanup_pop(0);
26162 ;
26163 return 0;
26164}
26165_ACEOF
26166if ac_fn_c_try_link "$LINENO"; then :
26167 magick_pthread_lib_ok=yes
26168fi
26169rm -f core conftest.err conftest.$ac_objext \
26170 conftest$ac_exeext conftest.$ac_ext
26171
26172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26173$as_echo "${magick_pthread_lib_ok}" >&6; }
26174if test "$magick_pthread_lib_ok" = yes
26175then
26176 PTHREAD_LIBS=-lc_r
26177 :
26178else
26179
26180 :
26181fi
26182
26183LIBS="$save_LIBS"
26184
26185ac_ext=c
26186ac_cpp='$CPP $CPPFLAGS'
26187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26189ac_compiler_gnu=$ac_cv_c_compiler_gnu
26190
26191 ;;
cristy3ed852e2009-09-05 21:47:34 +000026192 esac
26193 fi
26194
26195 for lib in pthread pthreads; do
26196 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026197
26198
26199
26200ac_ext=c
26201ac_cpp='$CPP $CPPFLAGS'
26202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26204ac_compiler_gnu=$ac_cv_c_compiler_gnu
26205
26206magick_pthread_lib_ok=no
26207
26208LIB=-l$lib
26209save_LIBS="$LIBS"
26210LIBS="$LIBS $LIB"
26211
26212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26213$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26215/* end confdefs.h. */
26216#include <pthread.h>
26217int
26218main ()
26219{
26220 pthread_t th;
26221 pthread_join(th, 0);
26222 pthread_attr_init(0);
26223 pthread_cleanup_push(0, 0);
26224 pthread_create(0,0,0,0);
26225 pthread_cleanup_pop(0);
26226 ;
26227 return 0;
26228}
26229_ACEOF
26230if ac_fn_c_try_link "$LINENO"; then :
26231 magick_pthread_lib_ok=yes
26232fi
26233rm -f core conftest.err conftest.$ac_objext \
26234 conftest$ac_exeext conftest.$ac_ext
26235
26236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26237$as_echo "${magick_pthread_lib_ok}" >&6; }
26238if test "$magick_pthread_lib_ok" = yes
26239then
26240 PTHREAD_LIBS=-l$lib
26241 :
26242else
26243
26244 :
26245fi
26246
26247LIBS="$save_LIBS"
26248
26249ac_ext=c
26250ac_cpp='$CPP $CPPFLAGS'
26251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26253ac_compiler_gnu=$ac_cv_c_compiler_gnu
26254
26255
cristy3ed852e2009-09-05 21:47:34 +000026256 fi
26257 done
26258
26259 THREAD_LIBS="$PTHREAD_LIBS"
26260 LIBS="$LIBS $THREAD_LIBS"
26261fi
26262
26263
26264#
26265# Check for umem.
26266#
26267have_umem='no'
26268UMEM_LIBS=''
26269if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026271$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026272 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26273$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026274 failed=0
26275 passed=0
cristy8b350f62009-11-15 23:12:43 +000026276 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026277if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026278 passed=`expr $passed + 1`
26279else
26280 failed=`expr $failed + 1`
26281fi
26282
26283
cristy8b350f62009-11-15 23:12:43 +000026284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026285$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026286if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026287 $as_echo_n "(cached) " >&6
26288else
26289 ac_check_lib_save_LIBS=$LIBS
26290LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026292/* end confdefs.h. */
26293
26294/* Override any GCC internal prototype to avoid an error.
26295 Use char because int might match the return type of a GCC
26296 builtin and then its argument prototype would still apply. */
26297#ifdef __cplusplus
26298extern "C"
26299#endif
26300char umem_alloc ();
26301int
26302main ()
26303{
26304return umem_alloc ();
26305 ;
26306 return 0;
26307}
26308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026309if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026310 ac_cv_lib_umem_umem_alloc=yes
26311else
cristy8b350f62009-11-15 23:12:43 +000026312 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026313fi
cristy8b350f62009-11-15 23:12:43 +000026314rm -f core conftest.err conftest.$ac_objext \
26315 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026316LIBS=$ac_check_lib_save_LIBS
26317fi
cristy8b350f62009-11-15 23:12:43 +000026318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026320if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026321 passed=`expr $passed + 1`
26322else
26323 failed=`expr $failed + 1`
26324fi
26325
cristy8b350f62009-11-15 23:12:43 +000026326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026327$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026328if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026329 $as_echo_n "(cached) " >&6
26330else
26331 ac_check_lib_save_LIBS=$LIBS
26332LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026334/* end confdefs.h. */
26335
26336/* Override any GCC internal prototype to avoid an error.
26337 Use char because int might match the return type of a GCC
26338 builtin and then its argument prototype would still apply. */
26339#ifdef __cplusplus
26340extern "C"
26341#endif
26342char umem_free ();
26343int
26344main ()
26345{
26346return umem_free ();
26347 ;
26348 return 0;
26349}
26350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026352 ac_cv_lib_umem_umem_free=yes
26353else
cristy8b350f62009-11-15 23:12:43 +000026354 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026355fi
cristy8b350f62009-11-15 23:12:43 +000026356rm -f core conftest.err conftest.$ac_objext \
26357 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026358LIBS=$ac_check_lib_save_LIBS
26359fi
cristy8b350f62009-11-15 23:12:43 +000026360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026361$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026362if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026363 passed=`expr $passed + 1`
26364else
26365 failed=`expr $failed + 1`
26366fi
26367
cristy8b350f62009-11-15 23:12:43 +000026368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026369$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26370 if test $passed -gt 0; then
26371 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026372 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26373$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026374 have_umem='no (failed tests)'
26375 else
26376 UMEM_LIBS='-lumem'
26377 LIBS="$UMEM_LIBS $LIBS"
26378
cristy8b350f62009-11-15 23:12:43 +000026379$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026380
cristy09b53e12011-10-14 12:47:22 +000026381 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26382$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026383 have_umem='yes'
26384 fi
26385 else
cristy09b53e12011-10-14 12:47:22 +000026386 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26387$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026388 fi
26389fi
cristy73bd4a52010-10-05 11:24:23 +000026390 if test "$have_umem" = 'yes'; then
26391 HasUMEM_TRUE=
26392 HasUMEM_FALSE='#'
26393else
26394 HasUMEM_TRUE='#'
26395 HasUMEM_FALSE=
26396fi
26397
cristy3ed852e2009-09-05 21:47:34 +000026398
26399
26400#
26401# Add support for ccmalloc memory debugging library if requested
26402#
26403have_ccmalloc='no'
26404CCMALLOC_LIBS=''
26405if test "$enable_ccmalloc" = 'yes'; then
26406 # Extract the first word of "ccmalloc", so it can be a program name with args.
26407set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026410if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026411 $as_echo_n "(cached) " >&6
26412else
26413 case $CCMALLOCDelegate in
26414 [\\/]* | ?:[\\/]*)
26415 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26416 ;;
26417 *)
26418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26419for as_dir in $PATH
26420do
26421 IFS=$as_save_IFS
26422 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26425 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026427 break 2
26428 fi
26429done
cristy8b350f62009-11-15 23:12:43 +000026430 done
cristy3ed852e2009-09-05 21:47:34 +000026431IFS=$as_save_IFS
26432
26433 ;;
26434esac
26435fi
26436CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26437if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026439$as_echo "$CCMALLOCDelegate" >&6; }
26440else
cristy8b350f62009-11-15 23:12:43 +000026441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026442$as_echo "no" >&6; }
26443fi
26444
26445
26446 if test -n "$CCMALLOCDelegate"; then
26447 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26448 OLIBS="$LIBS"
26449 # Assume that gcc is used with ccmalloc.
26450 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026452$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026453if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026454 $as_echo_n "(cached) " >&6
26455else
26456 ac_check_lib_save_LIBS=$LIBS
26457LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026459/* end confdefs.h. */
26460
26461/* Override any GCC internal prototype to avoid an error.
26462 Use char because int might match the return type of a GCC
26463 builtin and then its argument prototype would still apply. */
26464#ifdef __cplusplus
26465extern "C"
26466#endif
26467char ccmalloc_malloc ();
26468int
26469main ()
26470{
26471return ccmalloc_malloc ();
26472 ;
26473 return 0;
26474}
26475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026476if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026477 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26478else
cristy8b350f62009-11-15 23:12:43 +000026479 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026480fi
cristy8b350f62009-11-15 23:12:43 +000026481rm -f core conftest.err conftest.$ac_objext \
26482 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026483LIBS=$ac_check_lib_save_LIBS
26484fi
cristy8b350f62009-11-15 23:12:43 +000026485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026486$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026487if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026488 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26489fi
26490
26491 if test -n "$CCMALLOC_LIBS"; then
26492 LIBS="$OLIBS"
26493 LIBS="$LIBS $CCMALLOC_LIBS"
26494 have_ccmalloc='yes'
26495 else
26496 LIBS="$OLIBS"
26497 fi
26498 fi
26499fi
26500
26501#
26502# Add support for efence memory debugging library if requested
26503#
26504if test "$enable_efence" = 'yes'; then
26505 EFENCE_LIBS='-lefence'
26506 LIBS="$EFENCE_LIBS $LIBS"
26507fi
26508
cristy3ed852e2009-09-05 21:47:34 +000026509
26510#
26511# Check for BZLIB
26512#
26513
26514
26515# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026516if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026517 withval=$with_bzlib; with_bzlib=$withval
26518else
26519 with_bzlib='yes'
26520fi
26521
26522
26523if test "$with_bzlib" != 'yes'; then
26524 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26525fi
26526
26527have_bzlib='no'
26528if test "$with_bzlib" != 'no'; then
26529 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026530 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26531$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026533$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026534 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26535$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026536 failed=0
26537 passed=0
26538 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026539 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026540if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026541 passed=`expr $passed + 1`
26542else
26543 failed=`expr $failed + 1`
26544fi
26545
26546
cristy8b350f62009-11-15 23:12:43 +000026547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026548$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026549if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026550 $as_echo_n "(cached) " >&6
26551else
26552 ac_check_lib_save_LIBS=$LIBS
26553LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026555/* end confdefs.h. */
26556
26557/* Override any GCC internal prototype to avoid an error.
26558 Use char because int might match the return type of a GCC
26559 builtin and then its argument prototype would still apply. */
26560#ifdef __cplusplus
26561extern "C"
26562#endif
26563char BZ2_bzDecompress ();
26564int
26565main ()
26566{
26567return BZ2_bzDecompress ();
26568 ;
26569 return 0;
26570}
26571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026573 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26574else
cristy8b350f62009-11-15 23:12:43 +000026575 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026576fi
cristy8b350f62009-11-15 23:12:43 +000026577rm -f core conftest.err conftest.$ac_objext \
26578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026579LIBS=$ac_check_lib_save_LIBS
26580fi
cristy8b350f62009-11-15 23:12:43 +000026581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026582$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026583if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026584 found_libbz=`expr $found_libbz + 1`
26585fi
26586
26587 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026589$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026590if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026591 $as_echo_n "(cached) " >&6
26592else
26593 ac_check_lib_save_LIBS=$LIBS
26594LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026596/* end confdefs.h. */
26597
26598/* Override any GCC internal prototype to avoid an error.
26599 Use char because int might match the return type of a GCC
26600 builtin and then its argument prototype would still apply. */
26601#ifdef __cplusplus
26602extern "C"
26603#endif
26604char _imp__BZ2_decompress ();
26605int
26606main ()
26607{
26608return _imp__BZ2_decompress ();
26609 ;
26610 return 0;
26611}
26612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026613if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026614 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26615else
cristy8b350f62009-11-15 23:12:43 +000026616 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026617fi
cristy8b350f62009-11-15 23:12:43 +000026618rm -f core conftest.err conftest.$ac_objext \
26619 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026620LIBS=$ac_check_lib_save_LIBS
26621fi
cristy8b350f62009-11-15 23:12:43 +000026622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026623$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026624if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026625 found_libbz=`expr $found_libbz + 1`
26626fi
26627
26628 fi
26629 if test $found_libbz -gt 0; then
26630 passed=`expr $passed + 1`
26631 else
26632 failed=`expr $failed + 1`
26633 fi
cristy8b350f62009-11-15 23:12:43 +000026634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026635$as_echo_n "checking if BZLIB package is complete... " >&6; }
26636 if test $passed -gt 0; then
26637 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026638 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26639$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026640 have_bzlib='no (failed tests)'
26641 else
26642 BZLIB_LIBS='-lbz2'
26643 LIBS="$BZLIB_LIBS $LIBS"
26644
cristy8b350f62009-11-15 23:12:43 +000026645$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026646
cristy09b53e12011-10-14 12:47:22 +000026647 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26648$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026649 have_bzlib='yes'
26650 fi
26651 else
cristy09b53e12011-10-14 12:47:22 +000026652 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26653$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026654 fi
26655fi
cristy73bd4a52010-10-05 11:24:23 +000026656 if test "$have_bzlib" = 'yes'; then
26657 BZLIB_DELEGATE_TRUE=
26658 BZLIB_DELEGATE_FALSE='#'
26659else
26660 BZLIB_DELEGATE_TRUE='#'
26661 BZLIB_DELEGATE_FALSE=
26662fi
26663
cristy3ed852e2009-09-05 21:47:34 +000026664
26665
26666#
26667# Find the X11 include and library directories.
26668#
26669IPC_LIBS=''
26670X11_LIBS=''
26671XEXT_LIBS=''
26672XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026674$as_echo_n "checking for X... " >&6; }
26675
26676
26677# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026678if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026679 withval=$with_x;
26680fi
26681
26682# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26683if test "x$with_x" = xno; then
26684 # The user explicitly disabled X.
26685 have_x=disabled
26686else
26687 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026688 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026689 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026690 $as_echo_n "(cached) " >&6
26691else
26692 # One or both of the vars are not set, and there is no cached value.
26693ac_x_includes=no ac_x_libraries=no
26694rm -f -r conftest.dir
26695if mkdir conftest.dir; then
26696 cd conftest.dir
26697 cat >Imakefile <<'_ACEOF'
26698incroot:
26699 @echo incroot='${INCROOT}'
26700usrlibdir:
26701 @echo usrlibdir='${USRLIBDIR}'
26702libdir:
26703 @echo libdir='${LIBDIR}'
26704_ACEOF
26705 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026706 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026707 for ac_var in incroot usrlibdir libdir; do
26708 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26709 done
26710 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26711 for ac_extension in a so sl dylib la dll; do
26712 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26713 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26714 ac_im_usrlibdir=$ac_im_libdir; break
26715 fi
26716 done
26717 # Screen out bogus values from the imake configuration. They are
26718 # bogus both because they are the default anyway, and because
26719 # using them would break gcc on systems where it needs fixed includes.
26720 case $ac_im_incroot in
26721 /usr/include) ac_x_includes= ;;
26722 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26723 esac
26724 case $ac_im_usrlibdir in
26725 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26726 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26727 esac
26728 fi
26729 cd ..
26730 rm -f -r conftest.dir
26731fi
26732
26733# Standard set of common directories for X headers.
26734# Check X11 before X11Rn because it is often a symlink to the current release.
26735ac_x_header_dirs='
26736/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026737/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026738/usr/X11R6/include
26739/usr/X11R5/include
26740/usr/X11R4/include
26741
26742/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026743/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026744/usr/include/X11R6
26745/usr/include/X11R5
26746/usr/include/X11R4
26747
26748/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026749/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026750/usr/local/X11R6/include
26751/usr/local/X11R5/include
26752/usr/local/X11R4/include
26753
26754/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026755/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026756/usr/local/include/X11R6
26757/usr/local/include/X11R5
26758/usr/local/include/X11R4
26759
26760/usr/X386/include
26761/usr/x386/include
26762/usr/XFree86/include/X11
26763
26764/usr/include
26765/usr/local/include
26766/usr/unsupported/include
26767/usr/athena/include
26768/usr/local/x11r5/include
26769/usr/lpp/Xamples/include
26770
26771/usr/openwin/include
26772/usr/openwin/share/include'
26773
26774if test "$ac_x_includes" = no; then
26775 # Guess where to find include files, by looking for Xlib.h.
26776 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026778/* end confdefs.h. */
26779#include <X11/Xlib.h>
26780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026781if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026782 # We can compile using X headers with no special include directory.
26783ac_x_includes=
26784else
cristyc7083c12009-10-14 03:16:55 +000026785 for ac_dir in $ac_x_header_dirs; do
26786 if test -r "$ac_dir/X11/Xlib.h"; then
26787 ac_x_includes=$ac_dir
26788 break
26789 fi
26790done
26791fi
cristyda16f162011-02-19 23:52:17 +000026792rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026793fi # $ac_x_includes = no
26794
26795if test "$ac_x_libraries" = no; then
26796 # Check for the libraries.
26797 # See if we find them without any special options.
26798 # Don't add to $LIBS permanently.
26799 ac_save_LIBS=$LIBS
26800 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026802/* end confdefs.h. */
26803#include <X11/Xlib.h>
26804int
26805main ()
26806{
26807XrmInitialize ()
26808 ;
26809 return 0;
26810}
26811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026812if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026813 LIBS=$ac_save_LIBS
26814# We can link X programs with no special library path.
26815ac_x_libraries=
26816else
cristy8b350f62009-11-15 23:12:43 +000026817 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026818for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26819do
26820 # Don't even attempt the hair of trying to link an X program!
26821 for ac_extension in a so sl dylib la dll; do
26822 if test -r "$ac_dir/libX11.$ac_extension"; then
26823 ac_x_libraries=$ac_dir
26824 break 2
26825 fi
26826 done
26827done
26828fi
cristy8b350f62009-11-15 23:12:43 +000026829rm -f core conftest.err conftest.$ac_objext \
26830 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026831fi # $ac_x_libraries = no
26832
26833case $ac_x_includes,$ac_x_libraries in #(
26834 no,* | *,no | *\'*)
26835 # Didn't find X, or a directory has "'" in its name.
26836 ac_cv_have_x="have_x=no";; #(
26837 *)
26838 # Record where we found X for the cache.
26839 ac_cv_have_x="have_x=yes\
26840 ac_x_includes='$ac_x_includes'\
26841 ac_x_libraries='$ac_x_libraries'"
26842esac
26843fi
26844;; #(
26845 *) have_x=yes;;
26846 esac
26847 eval "$ac_cv_have_x"
26848fi # $with_x != no
26849
26850if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026852$as_echo "$have_x" >&6; }
26853 no_x=yes
26854else
26855 # If each of the values was on the command line, it overrides each guess.
26856 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26857 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26858 # Update the cache value to reflect the command line values.
26859 ac_cv_have_x="have_x=yes\
26860 ac_x_includes='$x_includes'\
26861 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026863$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26864fi
26865
cristy3ed852e2009-09-05 21:47:34 +000026866if test "$no_x" = yes; then
26867 # Not all programs may use this symbol, but it does not hurt to define it.
26868
cristy8b350f62009-11-15 23:12:43 +000026869$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026870
26871 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26872else
26873 if test -n "$x_includes"; then
26874 X_CFLAGS="$X_CFLAGS -I$x_includes"
26875 fi
26876
26877 # It would also be nice to do this for all -L options, not just this one.
26878 if test -n "$x_libraries"; then
26879 X_LIBS="$X_LIBS -L$x_libraries"
26880 # For Solaris; some versions of Sun CC require a space after -R and
26881 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026883$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26884 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26885 ac_xsave_c_werror_flag=$ac_c_werror_flag
26886 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026888/* end confdefs.h. */
26889
26890int
26891main ()
26892{
26893
26894 ;
26895 return 0;
26896}
26897_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026898if ac_fn_c_try_link "$LINENO"; then :
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026900$as_echo "no" >&6; }
26901 X_LIBS="$X_LIBS -R$x_libraries"
26902else
cristy8b350f62009-11-15 23:12:43 +000026903 LIBS="$ac_xsave_LIBS -R $x_libraries"
26904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026905/* end confdefs.h. */
26906
26907int
26908main ()
26909{
26910
26911 ;
26912 return 0;
26913}
26914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026915if ac_fn_c_try_link "$LINENO"; then :
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026917$as_echo "yes" >&6; }
26918 X_LIBS="$X_LIBS -R $x_libraries"
26919else
cristy8b350f62009-11-15 23:12:43 +000026920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026921$as_echo "neither works" >&6; }
26922fi
cristy8b350f62009-11-15 23:12:43 +000026923rm -f core conftest.err conftest.$ac_objext \
26924 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026925fi
cristy8b350f62009-11-15 23:12:43 +000026926rm -f core conftest.err conftest.$ac_objext \
26927 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026928 ac_c_werror_flag=$ac_xsave_c_werror_flag
26929 LIBS=$ac_xsave_LIBS
26930 fi
26931
26932 # Check for system-dependent libraries X programs must link with.
26933 # Do this before checking for the system-independent R6 libraries
26934 # (-lICE), since we may need -lsocket or whatever for X linking.
26935
26936 if test "$ISC" = yes; then
26937 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26938 else
26939 # Martyn Johnson says this is needed for Ultrix, if the X
26940 # libraries were built with DECnet support. And Karl Berry says
26941 # the Alpha needs dnet_stub (dnet does not exist).
26942 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026944/* end confdefs.h. */
26945
26946/* Override any GCC internal prototype to avoid an error.
26947 Use char because int might match the return type of a GCC
26948 builtin and then its argument prototype would still apply. */
26949#ifdef __cplusplus
26950extern "C"
26951#endif
26952char XOpenDisplay ();
26953int
26954main ()
26955{
26956return XOpenDisplay ();
26957 ;
26958 return 0;
26959}
26960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026961if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026962
cristy8b350f62009-11-15 23:12:43 +000026963else
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026965$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026966if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026967 $as_echo_n "(cached) " >&6
26968else
26969 ac_check_lib_save_LIBS=$LIBS
26970LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026972/* end confdefs.h. */
26973
26974/* Override any GCC internal prototype to avoid an error.
26975 Use char because int might match the return type of a GCC
26976 builtin and then its argument prototype would still apply. */
26977#ifdef __cplusplus
26978extern "C"
26979#endif
26980char dnet_ntoa ();
26981int
26982main ()
26983{
26984return dnet_ntoa ();
26985 ;
26986 return 0;
26987}
26988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026989if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026990 ac_cv_lib_dnet_dnet_ntoa=yes
26991else
cristy8b350f62009-11-15 23:12:43 +000026992 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026993fi
cristy8b350f62009-11-15 23:12:43 +000026994rm -f core conftest.err conftest.$ac_objext \
26995 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026996LIBS=$ac_check_lib_save_LIBS
26997fi
cristy8b350f62009-11-15 23:12:43 +000026998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026999$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027000if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027001 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27002fi
27003
27004 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027006$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027007if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027008 $as_echo_n "(cached) " >&6
27009else
27010 ac_check_lib_save_LIBS=$LIBS
27011LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027013/* end confdefs.h. */
27014
27015/* Override any GCC internal prototype to avoid an error.
27016 Use char because int might match the return type of a GCC
27017 builtin and then its argument prototype would still apply. */
27018#ifdef __cplusplus
27019extern "C"
27020#endif
27021char dnet_ntoa ();
27022int
27023main ()
27024{
27025return dnet_ntoa ();
27026 ;
27027 return 0;
27028}
27029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027030if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027031 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27032else
cristy8b350f62009-11-15 23:12:43 +000027033 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027034fi
cristy8b350f62009-11-15 23:12:43 +000027035rm -f core conftest.err conftest.$ac_objext \
27036 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027037LIBS=$ac_check_lib_save_LIBS
27038fi
cristy8b350f62009-11-15 23:12:43 +000027039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027040$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027041if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027042 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27043fi
27044
27045 fi
27046fi
cristy8b350f62009-11-15 23:12:43 +000027047rm -f core conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027049 LIBS="$ac_xsave_LIBS"
27050
27051 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27052 # to get the SysV transport functions.
27053 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27054 # needs -lnsl.
27055 # The nsl library prevents programs from opening the X display
27056 # on Irix 5.2, according to T.E. Dickey.
27057 # The functions gethostbyname, getservbyname, and inet_addr are
27058 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027059 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027060if test "x$ac_cv_func_gethostbyname" = 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_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027066$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027067if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027068 $as_echo_n "(cached) " >&6
27069else
27070 ac_check_lib_save_LIBS=$LIBS
27071LIBS="-lnsl $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 gethostbyname ();
27082int
27083main ()
27084{
27085return gethostbyname ();
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_nsl_gethostbyname=yes
27092else
cristy8b350f62009-11-15 23:12:43 +000027093 ac_cv_lib_nsl_gethostbyname=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_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027100$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027101if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27103fi
27104
27105 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027107$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027108if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027109 $as_echo_n "(cached) " >&6
27110else
27111 ac_check_lib_save_LIBS=$LIBS
27112LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027114/* end confdefs.h. */
27115
27116/* Override any GCC internal prototype to avoid an error.
27117 Use char because int might match the return type of a GCC
27118 builtin and then its argument prototype would still apply. */
27119#ifdef __cplusplus
27120extern "C"
27121#endif
27122char gethostbyname ();
27123int
27124main ()
27125{
27126return gethostbyname ();
27127 ;
27128 return 0;
27129}
27130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027131if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027132 ac_cv_lib_bsd_gethostbyname=yes
27133else
cristy8b350f62009-11-15 23:12:43 +000027134 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027135fi
cristy8b350f62009-11-15 23:12:43 +000027136rm -f core conftest.err conftest.$ac_objext \
27137 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027138LIBS=$ac_check_lib_save_LIBS
27139fi
cristy8b350f62009-11-15 23:12:43 +000027140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027141$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027142if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27144fi
27145
27146 fi
27147 fi
27148
27149 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27150 # socket/setsockopt and other routines are undefined under SCO ODT
27151 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27152 # on later versions), says Simon Leinen: it contains gethostby*
27153 # variants that don't use the name server (or something). -lsocket
27154 # must be given before -lnsl if both are needed. We assume that
27155 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027156 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027157if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027158
cristy3ed852e2009-09-05 21:47:34 +000027159fi
27160
cristy3ed852e2009-09-05 21:47:34 +000027161 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027163$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027164if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027165 $as_echo_n "(cached) " >&6
27166else
27167 ac_check_lib_save_LIBS=$LIBS
27168LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027170/* end confdefs.h. */
27171
27172/* Override any GCC internal prototype to avoid an error.
27173 Use char because int might match the return type of a GCC
27174 builtin and then its argument prototype would still apply. */
27175#ifdef __cplusplus
27176extern "C"
27177#endif
27178char connect ();
27179int
27180main ()
27181{
27182return connect ();
27183 ;
27184 return 0;
27185}
27186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027187if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027188 ac_cv_lib_socket_connect=yes
27189else
cristy8b350f62009-11-15 23:12:43 +000027190 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027191fi
cristy8b350f62009-11-15 23:12:43 +000027192rm -f core conftest.err conftest.$ac_objext \
27193 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027194LIBS=$ac_check_lib_save_LIBS
27195fi
cristy8b350f62009-11-15 23:12:43 +000027196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027197$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027198if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027199 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27200fi
27201
27202 fi
27203
27204 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027205 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027206if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027207
cristy3ed852e2009-09-05 21:47:34 +000027208fi
27209
cristy3ed852e2009-09-05 21:47:34 +000027210 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027212$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027213if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027214 $as_echo_n "(cached) " >&6
27215else
27216 ac_check_lib_save_LIBS=$LIBS
27217LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027219/* end confdefs.h. */
27220
27221/* Override any GCC internal prototype to avoid an error.
27222 Use char because int might match the return type of a GCC
27223 builtin and then its argument prototype would still apply. */
27224#ifdef __cplusplus
27225extern "C"
27226#endif
27227char remove ();
27228int
27229main ()
27230{
27231return remove ();
27232 ;
27233 return 0;
27234}
27235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027236if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027237 ac_cv_lib_posix_remove=yes
27238else
cristy8b350f62009-11-15 23:12:43 +000027239 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027240fi
cristy8b350f62009-11-15 23:12:43 +000027241rm -f core conftest.err conftest.$ac_objext \
27242 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027243LIBS=$ac_check_lib_save_LIBS
27244fi
cristy8b350f62009-11-15 23:12:43 +000027245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027246$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027247if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027248 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27249fi
27250
27251 fi
27252
27253 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027254 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027255if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027256
cristy3ed852e2009-09-05 21:47:34 +000027257fi
27258
cristy3ed852e2009-09-05 21:47:34 +000027259 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027261$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027262if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027263 $as_echo_n "(cached) " >&6
27264else
27265 ac_check_lib_save_LIBS=$LIBS
27266LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027268/* end confdefs.h. */
27269
27270/* Override any GCC internal prototype to avoid an error.
27271 Use char because int might match the return type of a GCC
27272 builtin and then its argument prototype would still apply. */
27273#ifdef __cplusplus
27274extern "C"
27275#endif
27276char shmat ();
27277int
27278main ()
27279{
27280return shmat ();
27281 ;
27282 return 0;
27283}
27284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027286 ac_cv_lib_ipc_shmat=yes
27287else
cristy8b350f62009-11-15 23:12:43 +000027288 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027289fi
cristy8b350f62009-11-15 23:12:43 +000027290rm -f core conftest.err conftest.$ac_objext \
27291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027292LIBS=$ac_check_lib_save_LIBS
27293fi
cristy8b350f62009-11-15 23:12:43 +000027294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027295$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027296if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27298fi
27299
27300 fi
27301 fi
27302
27303 # Check for libraries that X11R6 Xt/Xaw programs need.
27304 ac_save_LDFLAGS=$LDFLAGS
27305 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27306 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27307 # check for ICE first), but we must link in the order -lSM -lICE or
27308 # we get undefined symbols. So assume we have SM if we have ICE.
27309 # These have to be linked with before -lX11, unlike the other
27310 # libraries we check for below, so use a different variable.
27311 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027313$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027314if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027315 $as_echo_n "(cached) " >&6
27316else
27317 ac_check_lib_save_LIBS=$LIBS
27318LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027320/* end confdefs.h. */
27321
27322/* Override any GCC internal prototype to avoid an error.
27323 Use char because int might match the return type of a GCC
27324 builtin and then its argument prototype would still apply. */
27325#ifdef __cplusplus
27326extern "C"
27327#endif
27328char IceConnectionNumber ();
27329int
27330main ()
27331{
27332return IceConnectionNumber ();
27333 ;
27334 return 0;
27335}
27336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027338 ac_cv_lib_ICE_IceConnectionNumber=yes
27339else
cristy8b350f62009-11-15 23:12:43 +000027340 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027341fi
cristy8b350f62009-11-15 23:12:43 +000027342rm -f core conftest.err conftest.$ac_objext \
27343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027344LIBS=$ac_check_lib_save_LIBS
27345fi
cristy8b350f62009-11-15 23:12:43 +000027346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027347$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027348if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027349 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27350fi
27351
27352 LDFLAGS=$ac_save_LDFLAGS
27353
27354fi
27355
27356if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027357 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27358$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027361 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27362$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027363 LDFLAGS="$LDFLAGS $X_LIBS"
27364 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27365 LIBS="$X11_LIBS $LIBS"
27366 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27367
27368
cristy8b350f62009-11-15 23:12:43 +000027369$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027370
27371 #
27372 # Check for X11 shared memory extension
27373 #
27374 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027375 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027376if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027377 have_shmctl='yes'
27378fi
27379
27380 if test "$have_shmctl" != 'yes'; then
27381 PERSIST_LIBS=$LIBS
27382 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027384/* end confdefs.h. */
27385
27386/* Override any GCC internal prototype to avoid an error.
27387 Use char because int might match the return type of a GCC
27388 builtin and then its argument prototype would still apply. */
27389#ifdef __cplusplus
27390extern "C"
27391#endif
27392char shmctl ();
27393int
27394main ()
27395{
27396return shmctl ();
27397 ;
27398 return 0;
27399}
27400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027401if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027402 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027403fi
cristy8b350f62009-11-15 23:12:43 +000027404rm -f core conftest.err conftest.$ac_objext \
27405 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027406 LIBS=$PERSIST_LIBS
27407 fi
27408
27409 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027411$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027412if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027413 $as_echo_n "(cached) " >&6
27414else
27415 ac_check_lib_save_LIBS=$LIBS
27416LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027418/* end confdefs.h. */
27419
27420/* Override any GCC internal prototype to avoid an error.
27421 Use char because int might match the return type of a GCC
27422 builtin and then its argument prototype would still apply. */
27423#ifdef __cplusplus
27424extern "C"
27425#endif
27426char XShmAttach ();
27427int
27428main ()
27429{
27430return XShmAttach ();
27431 ;
27432 return 0;
27433}
27434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027436 ac_cv_lib_Xext_XShmAttach=yes
27437else
cristy8b350f62009-11-15 23:12:43 +000027438 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027439fi
cristy8b350f62009-11-15 23:12:43 +000027440rm -f core conftest.err conftest.$ac_objext \
27441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027442LIBS=$ac_check_lib_save_LIBS
27443fi
cristy8b350f62009-11-15 23:12:43 +000027444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027445$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027446if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027447 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027448$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027449
27450fi
27451
27452 fi
27453
27454 #
27455 # Check for X11 shape extension
27456 #
cristy8b350f62009-11-15 23:12:43 +000027457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027458$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027459if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027460 $as_echo_n "(cached) " >&6
27461else
27462 ac_check_lib_save_LIBS=$LIBS
27463LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027465/* end confdefs.h. */
27466
27467/* Override any GCC internal prototype to avoid an error.
27468 Use char because int might match the return type of a GCC
27469 builtin and then its argument prototype would still apply. */
27470#ifdef __cplusplus
27471extern "C"
27472#endif
27473char XShapeCombineMask ();
27474int
27475main ()
27476{
27477return XShapeCombineMask ();
27478 ;
27479 return 0;
27480}
27481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027482if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027483 ac_cv_lib_Xext_XShapeCombineMask=yes
27484else
cristy8b350f62009-11-15 23:12:43 +000027485 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027486fi
cristy8b350f62009-11-15 23:12:43 +000027487rm -f core conftest.err conftest.$ac_objext \
27488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027489LIBS=$ac_check_lib_save_LIBS
27490fi
cristy8b350f62009-11-15 23:12:43 +000027491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027492$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027493if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027494 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027495$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027496
27497fi
27498
cristy8b350f62009-11-15 23:12:43 +000027499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027500$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027501if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027502 $as_echo_n "(cached) " >&6
27503else
27504 ac_check_lib_save_LIBS=$LIBS
27505LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027507/* end confdefs.h. */
27508
27509/* Override any GCC internal prototype to avoid an error.
27510 Use char because int might match the return type of a GCC
27511 builtin and then its argument prototype would still apply. */
27512#ifdef __cplusplus
27513extern "C"
27514#endif
27515char XtSetEventDispatcher ();
27516int
27517main ()
27518{
27519return XtSetEventDispatcher ();
27520 ;
27521 return 0;
27522}
27523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027525 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27526else
cristy8b350f62009-11-15 23:12:43 +000027527 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027528fi
cristy8b350f62009-11-15 23:12:43 +000027529rm -f core conftest.err conftest.$ac_objext \
27530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027531LIBS=$ac_check_lib_save_LIBS
27532fi
cristy8b350f62009-11-15 23:12:43 +000027533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027534$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027535if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027536 XT_LIBS='-lXt'
27537fi
27538
27539 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27540fi
27541if test "$no_x" != 'yes'; then
27542 have_x='yes'
27543else
27544 have_x='no'
27545fi
cristy73bd4a52010-10-05 11:24:23 +000027546 if test "$have_x" = 'yes'; then
27547 X11_DELEGATE_TRUE=
27548 X11_DELEGATE_FALSE='#'
27549else
27550 X11_DELEGATE_TRUE='#'
27551 X11_DELEGATE_FALSE=
27552fi
27553
cristy3ed852e2009-09-05 21:47:34 +000027554
27555
27556
27557
27558#
27559# Check for ZLIB
27560#
27561
27562# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027563if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027564 withval=$with_zlib; with_zlib=$withval
27565else
27566 with_zlib='yes'
27567fi
27568
27569
27570if test "$with_zlib" != 'yes'; then
27571 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27572fi
27573
27574have_zlib='no'
27575ZLIB_LIBS=''
27576if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27578$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027581 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27582$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027583 ZLIB_LIBS=''
27584 failed=0
27585 passed=0
cristy8b350f62009-11-15 23:12:43 +000027586 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027587if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027588 passed=`expr $passed + 1`
27589else
27590 failed=`expr $failed + 1`
27591fi
27592
27593
cristy8b350f62009-11-15 23:12:43 +000027594 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027595if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027596 passed=`expr $passed + 1`
27597else
27598 failed=`expr $failed + 1`
27599fi
27600
27601
cristy8b350f62009-11-15 23:12:43 +000027602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027603$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027604if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 $as_echo_n "(cached) " >&6
27606else
27607 ac_check_lib_save_LIBS=$LIBS
27608LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027610/* end confdefs.h. */
27611
27612/* Override any GCC internal prototype to avoid an error.
27613 Use char because int might match the return type of a GCC
27614 builtin and then its argument prototype would still apply. */
27615#ifdef __cplusplus
27616extern "C"
27617#endif
27618char compress ();
27619int
27620main ()
27621{
27622return compress ();
27623 ;
27624 return 0;
27625}
27626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027628 ac_cv_lib_z_compress=yes
27629else
cristy8b350f62009-11-15 23:12:43 +000027630 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027631fi
cristy8b350f62009-11-15 23:12:43 +000027632rm -f core conftest.err conftest.$ac_objext \
27633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027634LIBS=$ac_check_lib_save_LIBS
27635fi
cristy8b350f62009-11-15 23:12:43 +000027636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027637$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027638if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027639 passed=`expr $passed + 1`
27640else
27641 failed=`expr $failed + 1`
27642fi
27643
cristy8b350f62009-11-15 23:12:43 +000027644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027645$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027646if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027647 $as_echo_n "(cached) " >&6
27648else
27649 ac_check_lib_save_LIBS=$LIBS
27650LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027652/* end confdefs.h. */
27653
27654/* Override any GCC internal prototype to avoid an error.
27655 Use char because int might match the return type of a GCC
27656 builtin and then its argument prototype would still apply. */
27657#ifdef __cplusplus
27658extern "C"
27659#endif
27660char uncompress ();
27661int
27662main ()
27663{
27664return uncompress ();
27665 ;
27666 return 0;
27667}
27668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027669if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027670 ac_cv_lib_z_uncompress=yes
27671else
cristy8b350f62009-11-15 23:12:43 +000027672 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027673fi
cristy8b350f62009-11-15 23:12:43 +000027674rm -f core conftest.err conftest.$ac_objext \
27675 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027676LIBS=$ac_check_lib_save_LIBS
27677fi
cristy8b350f62009-11-15 23:12:43 +000027678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027679$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027680if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027681 passed=`expr $passed + 1`
27682else
27683 failed=`expr $failed + 1`
27684fi
27685
cristy8b350f62009-11-15 23:12:43 +000027686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027687$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027688if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027689 $as_echo_n "(cached) " >&6
27690else
27691 ac_check_lib_save_LIBS=$LIBS
27692LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027694/* end confdefs.h. */
27695
27696/* Override any GCC internal prototype to avoid an error.
27697 Use char because int might match the return type of a GCC
27698 builtin and then its argument prototype would still apply. */
27699#ifdef __cplusplus
27700extern "C"
27701#endif
27702char deflate ();
27703int
27704main ()
27705{
27706return deflate ();
27707 ;
27708 return 0;
27709}
27710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027711if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027712 ac_cv_lib_z_deflate=yes
27713else
cristy8b350f62009-11-15 23:12:43 +000027714 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027715fi
cristy8b350f62009-11-15 23:12:43 +000027716rm -f core conftest.err conftest.$ac_objext \
27717 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027718LIBS=$ac_check_lib_save_LIBS
27719fi
cristy8b350f62009-11-15 23:12:43 +000027720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027721$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027722if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027723 passed=`expr $passed + 1`
27724else
27725 failed=`expr $failed + 1`
27726fi
27727
cristy8b350f62009-11-15 23:12:43 +000027728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027729$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027730if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027731 $as_echo_n "(cached) " >&6
27732else
27733 ac_check_lib_save_LIBS=$LIBS
27734LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027736/* end confdefs.h. */
27737
27738/* Override any GCC internal prototype to avoid an error.
27739 Use char because int might match the return type of a GCC
27740 builtin and then its argument prototype would still apply. */
27741#ifdef __cplusplus
27742extern "C"
27743#endif
27744char inflate ();
27745int
27746main ()
27747{
27748return inflate ();
27749 ;
27750 return 0;
27751}
27752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027753if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027754 ac_cv_lib_z_inflate=yes
27755else
cristy8b350f62009-11-15 23:12:43 +000027756 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027757fi
cristy8b350f62009-11-15 23:12:43 +000027758rm -f core conftest.err conftest.$ac_objext \
27759 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027760LIBS=$ac_check_lib_save_LIBS
27761fi
cristy8b350f62009-11-15 23:12:43 +000027762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027763$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027764if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027765 passed=`expr $passed + 1`
27766else
27767 failed=`expr $failed + 1`
27768fi
27769
cristy8b350f62009-11-15 23:12:43 +000027770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027771$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027772if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027773 $as_echo_n "(cached) " >&6
27774else
27775 ac_check_lib_save_LIBS=$LIBS
27776LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027778/* end confdefs.h. */
27779
27780/* Override any GCC internal prototype to avoid an error.
27781 Use char because int might match the return type of a GCC
27782 builtin and then its argument prototype would still apply. */
27783#ifdef __cplusplus
27784extern "C"
27785#endif
27786char gzseek ();
27787int
27788main ()
27789{
27790return gzseek ();
27791 ;
27792 return 0;
27793}
27794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027795if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027796 ac_cv_lib_z_gzseek=yes
27797else
cristy8b350f62009-11-15 23:12:43 +000027798 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027799fi
cristy8b350f62009-11-15 23:12:43 +000027800rm -f core conftest.err conftest.$ac_objext \
27801 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027802LIBS=$ac_check_lib_save_LIBS
27803fi
cristy8b350f62009-11-15 23:12:43 +000027804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027805$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027806if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027807 passed=`expr $passed + 1`
27808else
27809 failed=`expr $failed + 1`
27810fi
27811
cristy8b350f62009-11-15 23:12:43 +000027812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027813$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027814if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027815 $as_echo_n "(cached) " >&6
27816else
27817 ac_check_lib_save_LIBS=$LIBS
27818LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027820/* end confdefs.h. */
27821
27822/* Override any GCC internal prototype to avoid an error.
27823 Use char because int might match the return type of a GCC
27824 builtin and then its argument prototype would still apply. */
27825#ifdef __cplusplus
27826extern "C"
27827#endif
27828char gztell ();
27829int
27830main ()
27831{
27832return gztell ();
27833 ;
27834 return 0;
27835}
27836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027837if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027838 ac_cv_lib_z_gztell=yes
27839else
cristy8b350f62009-11-15 23:12:43 +000027840 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027841fi
cristy8b350f62009-11-15 23:12:43 +000027842rm -f core conftest.err conftest.$ac_objext \
27843 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027844LIBS=$ac_check_lib_save_LIBS
27845fi
cristy8b350f62009-11-15 23:12:43 +000027846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027847$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027848if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027849 passed=`expr $passed + 1`
27850else
27851 failed=`expr $failed + 1`
27852fi
27853
cristy8b350f62009-11-15 23:12:43 +000027854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027855$as_echo_n "checking if ZLIB package is complete... " >&6; }
27856 if test $passed -gt 0; then
27857 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027858 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27859$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027860 have_zlib='no (failed tests)'
27861 else
27862 ZLIB_LIBS='-lz'
27863 LIBS="$ZLIB_LIBS $LIBS"
27864
cristy8b350f62009-11-15 23:12:43 +000027865$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027866
cristy09b53e12011-10-14 12:47:22 +000027867 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27868$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027869 have_zlib='yes'
27870 fi
27871 else
cristy09b53e12011-10-14 12:47:22 +000027872 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27873$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027874 fi
27875fi
cristy73bd4a52010-10-05 11:24:23 +000027876 if test "$have_zlib" = 'yes'; then
27877 ZLIB_DELEGATE_TRUE=
27878 ZLIB_DELEGATE_FALSE='#'
27879else
27880 ZLIB_DELEGATE_TRUE='#'
27881 ZLIB_DELEGATE_FALSE=
27882fi
27883
cristy3ed852e2009-09-05 21:47:34 +000027884
27885
27886#
27887# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27888#
27889LIB_DL=''
27890if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027892$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027893if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027894 $as_echo_n "(cached) " >&6
27895else
27896 ac_check_lib_save_LIBS=$LIBS
27897LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027899/* end confdefs.h. */
27900
27901/* Override any GCC internal prototype to avoid an error.
27902 Use char because int might match the return type of a GCC
27903 builtin and then its argument prototype would still apply. */
27904#ifdef __cplusplus
27905extern "C"
27906#endif
27907char dlopen ();
27908int
27909main ()
27910{
27911return dlopen ();
27912 ;
27913 return 0;
27914}
27915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027916if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027917 ac_cv_lib_dl_dlopen=yes
27918else
cristy8b350f62009-11-15 23:12:43 +000027919 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027920fi
cristy8b350f62009-11-15 23:12:43 +000027921rm -f core conftest.err conftest.$ac_objext \
27922 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027923LIBS=$ac_check_lib_save_LIBS
27924fi
cristy8b350f62009-11-15 23:12:43 +000027925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027926$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027927if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027928 LIB_DL='-ldl'
27929fi
27930
27931 LIBS="$LIB_DL $LIBS"
27932fi
27933
27934
27935
27936#
27937# Check for Autotrace delegate library.
27938#
27939
27940# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027941if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027942 withval=$with_autotrace; with_autotrace=$withval
27943else
27944 with_autotrace='no'
27945fi
27946
27947
27948if test "$with_autotrace" != 'yes'; then
27949 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27950fi
27951
27952have_autotrace='no'
27953AUTOTRACE_CFLAGS=""
27954AUTOTRACE_LIBS=""
27955AUTOTRACE_PKG=""
27956if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027957 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27958$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027959
27960pkg_failed=no
27961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27962$as_echo_n "checking for AUTOTRACE... " >&6; }
27963
27964if test -n "$AUTOTRACE_CFLAGS"; then
27965 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27966 elif test -n "$PKG_CONFIG"; then
27967 if test -n "$PKG_CONFIG" && \
27968 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27969 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27970 ac_status=$?
27971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27972 test $ac_status = 0; }; then
27973 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27974else
27975 pkg_failed=yes
27976fi
27977 else
27978 pkg_failed=untried
27979fi
27980if test -n "$AUTOTRACE_LIBS"; then
27981 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27982 elif test -n "$PKG_CONFIG"; then
27983 if test -n "$PKG_CONFIG" && \
27984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27985 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27986 ac_status=$?
27987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27988 test $ac_status = 0; }; then
27989 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27990else
27991 pkg_failed=yes
27992fi
27993 else
27994 pkg_failed=untried
27995fi
27996
27997
27998
27999if test $pkg_failed = yes; then
28000
28001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28002 _pkg_short_errors_supported=yes
28003else
28004 _pkg_short_errors_supported=no
28005fi
28006 if test $_pkg_short_errors_supported = yes; then
28007 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28008 else
28009 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28010 fi
28011 # Put the nasty error message in config.log where it belongs
28012 echo "$AUTOTRACE_PKG_ERRORS" >&5
28013
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28015$as_echo "no" >&6; }
28016 have_autotrace=no
28017elif test $pkg_failed = untried; then
28018 have_autotrace=no
28019else
28020 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28021 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28023$as_echo "yes" >&6; }
28024 have_autotrace=yes
28025fi
cristy09b53e12011-10-14 12:47:22 +000028026 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28027$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028028fi
28029
28030if test "$have_autotrace" = 'yes'; then
28031 failed=0
28032
cristy8b350f62009-11-15 23:12:43 +000028033$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028034
28035 if test "$with_modules" = 'no'; then
28036 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28037 fi
28038fi
28039
cristy73bd4a52010-10-05 11:24:23 +000028040 if test "$have_autotrace" = 'yes'; then
28041 AUTOTRACE_DELEGATE_TRUE=
28042 AUTOTRACE_DELEGATE_FALSE='#'
28043else
28044 AUTOTRACE_DELEGATE_TRUE='#'
28045 AUTOTRACE_DELEGATE_FALSE=
28046fi
28047
cristy3ed852e2009-09-05 21:47:34 +000028048
28049
28050
28051
28052#
28053# Check for Display Postscript delegate library.
28054#
28055
28056# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028057if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028058 withval=$with_dps; with_dps=$withval
28059else
28060 with_dps='yes'
28061fi
28062
28063
28064if test "$with_dps" != 'yes'; then
28065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28066fi
28067
28068have_dps='no'
28069DPS_LIBS=''
28070if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028071 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28072$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028074$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28076$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028077 failed=0
28078 passed=0
28079 PERSIST_CPPFLAGS="$CPPFLAGS"
28080 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028081 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 +000028082if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028083 passed=`expr $passed + 1`
28084else
28085 failed=`expr $failed + 1`
28086fi
28087
28088
28089 # DPS issues:
28090 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28091 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28092 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28093 # ImageMagick itself doesn't use -lXt.
28094 have_libdps='no'
28095 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028097$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028098if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028099 $as_echo_n "(cached) " >&6
28100else
28101 ac_check_lib_save_LIBS=$LIBS
28102LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028104/* end confdefs.h. */
28105
28106/* Override any GCC internal prototype to avoid an error.
28107 Use char because int might match the return type of a GCC
28108 builtin and then its argument prototype would still apply. */
28109#ifdef __cplusplus
28110extern "C"
28111#endif
28112char DPSInitialize ();
28113int
28114main ()
28115{
28116return DPSInitialize ();
28117 ;
28118 return 0;
28119}
28120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028121if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028122 ac_cv_lib_dps_DPSInitialize=yes
28123else
cristy8b350f62009-11-15 23:12:43 +000028124 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028125fi
cristy8b350f62009-11-15 23:12:43 +000028126rm -f core conftest.err conftest.$ac_objext \
28127 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028128LIBS=$ac_check_lib_save_LIBS
28129fi
cristy8b350f62009-11-15 23:12:43 +000028130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028131$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028132if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028133 have_libdps='yes'
28134else
28135 have_libdps='no'
28136fi
28137
28138 if test "$have_libdps" != 'yes'; then
28139 # Unset cache variable so we can try again.
28140 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028142$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028143if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028144 $as_echo_n "(cached) " >&6
28145else
28146 ac_check_lib_save_LIBS=$LIBS
28147LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028149/* end confdefs.h. */
28150
28151/* Override any GCC internal prototype to avoid an error.
28152 Use char because int might match the return type of a GCC
28153 builtin and then its argument prototype would still apply. */
28154#ifdef __cplusplus
28155extern "C"
28156#endif
28157char DPSInitialize ();
28158int
28159main ()
28160{
28161return DPSInitialize ();
28162 ;
28163 return 0;
28164}
28165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028166if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028167 ac_cv_lib_dps_DPSInitialize=yes
28168else
cristy8b350f62009-11-15 23:12:43 +000028169 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028170fi
cristy8b350f62009-11-15 23:12:43 +000028171rm -f core conftest.err conftest.$ac_objext \
28172 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028173LIBS=$ac_check_lib_save_LIBS
28174fi
cristy8b350f62009-11-15 23:12:43 +000028175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028176$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028177if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028178 have_libdps='yes'
28179else
28180 have_libdps='no'
28181fi
28182
28183 if test "$have_libdps" = 'yes'; then
28184 LIBDPS_XT='-lXt'
28185 fi
28186 fi
28187 if test "$have_libdps" = 'yes'; then
28188 passed=`expr $passed + 1`
28189 else
28190 failed=`expr $failed + 1`
28191 fi
cristy8b350f62009-11-15 23:12:43 +000028192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028193$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028194if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028195 $as_echo_n "(cached) " >&6
28196else
28197 ac_check_lib_save_LIBS=$LIBS
28198LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028200/* end confdefs.h. */
28201
28202/* Override any GCC internal prototype to avoid an error.
28203 Use char because int might match the return type of a GCC
28204 builtin and then its argument prototype would still apply. */
28205#ifdef __cplusplus
28206extern "C"
28207#endif
28208char XDPSPixelsPerPoint ();
28209int
28210main ()
28211{
28212return XDPSPixelsPerPoint ();
28213 ;
28214 return 0;
28215}
28216_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028217if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028218 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28219else
cristy8b350f62009-11-15 23:12:43 +000028220 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028221fi
cristy8b350f62009-11-15 23:12:43 +000028222rm -f core conftest.err conftest.$ac_objext \
28223 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028224LIBS=$ac_check_lib_save_LIBS
28225fi
cristy8b350f62009-11-15 23:12:43 +000028226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028227$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028228if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028229 passed=`expr $passed + 1`
28230else
28231 failed=`expr $failed + 1`
28232fi
28233
cristy8b350f62009-11-15 23:12:43 +000028234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028235$as_echo_n "checking if DPS package is complete... " >&6; }
28236 if test $passed -gt 0; then
28237 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028238 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28239$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028240 have_dps='no (failed tests)'
28241 CPPFLAGS="$PERSIST_CPPFLAGS"
28242 else
28243 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28244 LIBS="$DPS_LIBS $LIBS"
28245
cristy8b350f62009-11-15 23:12:43 +000028246$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028247
cristy09b53e12011-10-14 12:47:22 +000028248 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28249$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028250 have_dps='yes'
28251 fi
28252 else
cristy09b53e12011-10-14 12:47:22 +000028253 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28254$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028255 CPPFLAGS=$PERSIST_CPPFLAGS
28256 fi
28257fi
cristy73bd4a52010-10-05 11:24:23 +000028258 if test "$have_dps" = 'yes'; then
28259 DPS_DELEGATE_TRUE=
28260 DPS_DELEGATE_FALSE='#'
28261else
28262 DPS_DELEGATE_TRUE='#'
28263 DPS_DELEGATE_FALSE=
28264fi
28265
cristy3ed852e2009-09-05 21:47:34 +000028266
28267
28268
28269#
28270# Check for DJVU delegate library.
28271#
28272
28273# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028274if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028275 withval=$with_djvu; with_djvu=$withval
28276else
28277 with_djvu='yes'
28278fi
28279
28280
28281if test "$with_djvu" != 'yes'; then
28282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28283fi
28284
28285have_djvu='no'
28286DJVU_LIBS=''
28287if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028288 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28289$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028291$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028292 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28293$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028294 failed=0
28295 passed=0
cristy8b350f62009-11-15 23:12:43 +000028296 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 +000028297if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028298 passed=`expr $passed + 1`
28299else
28300 failed=`expr $failed + 1`
28301fi
28302
28303
cristy8b350f62009-11-15 23:12:43 +000028304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028305$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028306if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028307 $as_echo_n "(cached) " >&6
28308else
28309 ac_check_lib_save_LIBS=$LIBS
28310LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028312/* end confdefs.h. */
28313
28314/* Override any GCC internal prototype to avoid an error.
28315 Use char because int might match the return type of a GCC
28316 builtin and then its argument prototype would still apply. */
28317#ifdef __cplusplus
28318extern "C"
28319#endif
28320char ddjvu_context_create ();
28321int
28322main ()
28323{
28324return ddjvu_context_create ();
28325 ;
28326 return 0;
28327}
28328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028330 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28331else
cristy8b350f62009-11-15 23:12:43 +000028332 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028333fi
cristy8b350f62009-11-15 23:12:43 +000028334rm -f core conftest.err conftest.$ac_objext \
28335 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028336LIBS=$ac_check_lib_save_LIBS
28337fi
cristy8b350f62009-11-15 23:12:43 +000028338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028339$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028340if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028341 passed=`expr $passed + 1`
28342else
28343 failed=`expr $failed + 1`
28344fi
28345
cristy8b350f62009-11-15 23:12:43 +000028346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028347$as_echo_n "checking if DJVU package is complete... " >&6; }
28348 if test $passed -gt 0; then
28349 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028350 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28351$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028352 have_djvu='no (failed tests)'
28353 else
28354 DJVU_LIBS='-ldjvulibre'
28355 LIBS="$DJVU_LIBS $LIBS"
28356
cristy8b350f62009-11-15 23:12:43 +000028357$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028358
cristy09b53e12011-10-14 12:47:22 +000028359 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28360$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028361 have_djvu='yes'
28362 fi
28363 else
cristy09b53e12011-10-14 12:47:22 +000028364 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28365$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028366 fi
28367fi
cristy73bd4a52010-10-05 11:24:23 +000028368 if test "$have_djvu" = 'yes'; then
28369 DJVU_DELEGATE_TRUE=
28370 DJVU_DELEGATE_FALSE='#'
28371else
28372 DJVU_DELEGATE_TRUE='#'
28373 DJVU_DELEGATE_FALSE=
28374fi
28375
cristy3ed852e2009-09-05 21:47:34 +000028376
28377
28378
28379#
cristy430a7312010-01-21 20:44:04 +000028380# Set DejaVu font directory.
28381#
28382
28383# Check whether --with-dejavu-font-dir was given.
28384if test "${with_dejavu_font_dir+set}" = set; then :
28385 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28386else
28387 with_dejavu_font_dir='default'
28388fi
28389
28390
28391if test "$with_dejavu_font_dir" != 'default'; then
28392 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28393fi
28394
28395
28396#
cristy3ed852e2009-09-05 21:47:34 +000028397# Check for FFTW delegate library.
28398#
28399
28400# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028401if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028402 withval=$with_fftw; with_fftw=$withval
28403else
28404 with_fftw='yes'
28405fi
28406
28407
28408if test "$with_fftw" != 'yes'; then
28409 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28410fi
28411
cristy81beccd2011-10-03 18:17:24 +000028412have_fftw='no'
28413FFTW_LIBS=''
28414if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028415 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28416$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28418$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028419 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28420$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028421 failed=0
28422 passed=0
28423 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28424if test "x$ac_cv_header_fftw3_h" = xyes; then :
28425 passed=`expr $passed + 1`
28426else
28427 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028428fi
28429
cristy81beccd2011-10-03 18:17:24 +000028430
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28432$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28433if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28434 $as_echo_n "(cached) " >&6
28435else
28436 ac_check_lib_save_LIBS=$LIBS
28437LIBS="-lfftw3 $LIBS"
28438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28439/* end confdefs.h. */
28440
28441/* Override any GCC internal prototype to avoid an error.
28442 Use char because int might match the return type of a GCC
28443 builtin and then its argument prototype would still apply. */
28444#ifdef __cplusplus
28445extern "C"
28446#endif
28447char fftw_execute ();
28448int
28449main ()
28450{
28451return fftw_execute ();
28452 ;
28453 return 0;
28454}
28455_ACEOF
28456if ac_fn_c_try_link "$LINENO"; then :
28457 ac_cv_lib_fftw3_fftw_execute=yes
28458else
28459 ac_cv_lib_fftw3_fftw_execute=no
28460fi
28461rm -f core conftest.err conftest.$ac_objext \
28462 conftest$ac_exeext conftest.$ac_ext
28463LIBS=$ac_check_lib_save_LIBS
28464fi
28465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28466$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28467if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28468 passed=`expr $passed + 1`
28469else
28470 failed=`expr $failed + 1`
28471fi
28472
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28474$as_echo_n "checking if FFTW package is complete... " >&6; }
28475 if test $passed -gt 0; then
28476 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028477 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28478$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028479 have_fftw='no (failed tests)'
28480 else
28481 FFTW_LIBS='-lfftw3'
28482 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028483
cristy8b350f62009-11-15 23:12:43 +000028484$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028485
cristy09b53e12011-10-14 12:47:22 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28487$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028488 have_fftw='yes'
28489 fi
28490 else
cristy09b53e12011-10-14 12:47:22 +000028491 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28492$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028493 fi
28494fi
cristy73bd4a52010-10-05 11:24:23 +000028495 if test "$have_fftw" = 'yes'; then
28496 FFTW_DELEGATE_TRUE=
28497 FFTW_DELEGATE_FALSE='#'
28498else
28499 FFTW_DELEGATE_TRUE='#'
28500 FFTW_DELEGATE_FALSE=
28501fi
28502
cristy3ed852e2009-09-05 21:47:34 +000028503
28504
28505
28506#
28507# Check for FlashPIX delegate library.
28508#
28509
28510# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028511if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028512 withval=$with_fpx; with_fpx=$withval
28513else
28514 with_fpx='yes'
28515fi
28516
28517
28518if test "$with_fpx" != 'yes'; then
28519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28520fi
28521
28522have_fpx='no'
28523FPX_LIBS=''
28524if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028525 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28526$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028528$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028529 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28530$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028531 failed=0
28532 passed=0
28533 ac_ext=cpp
28534ac_cpp='$CXXCPP $CPPFLAGS'
28535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28538
28539
cristy8b350f62009-11-15 23:12:43 +000028540ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028541if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028542 passed=`expr $passed + 1`
28543else
28544 failed=`expr $failed + 1`
28545fi
28546
28547
cristy8b350f62009-11-15 23:12:43 +000028548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028549$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028550if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028551 $as_echo_n "(cached) " >&6
28552else
28553 ac_check_lib_save_LIBS=$LIBS
28554LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028556/* end confdefs.h. */
28557
28558/* Override any GCC internal prototype to avoid an error.
28559 Use char because int might match the return type of a GCC
28560 builtin and then its argument prototype would still apply. */
28561#ifdef __cplusplus
28562extern "C"
28563#endif
28564char FPX_OpenImageByFilename ();
28565int
28566main ()
28567{
28568return FPX_OpenImageByFilename ();
28569 ;
28570 return 0;
28571}
28572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028573if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028574 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28575else
cristy8b350f62009-11-15 23:12:43 +000028576 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028577fi
cristy8b350f62009-11-15 23:12:43 +000028578rm -f core conftest.err conftest.$ac_objext \
28579 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028580LIBS=$ac_check_lib_save_LIBS
28581fi
cristy8b350f62009-11-15 23:12:43 +000028582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028583$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028584if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028585 passed=`expr $passed + 1`
28586else
28587 failed=`expr $failed + 1`
28588fi
28589
28590 ac_ext=c
28591ac_cpp='$CPP $CPPFLAGS'
28592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28594ac_compiler_gnu=$ac_cv_c_compiler_gnu
28595
cristy8b350f62009-11-15 23:12:43 +000028596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028597$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28598 if test $passed -gt 0; then
28599 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028600 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28601$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028602 have_fpx='no (failed tests)'
28603 else
28604 FPX_LIBS='-lfpx'
28605
cristy8b350f62009-11-15 23:12:43 +000028606$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028607
cristy09b53e12011-10-14 12:47:22 +000028608 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28609$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028610 have_fpx='yes'
28611 PERLMAINCC="$CXX"
28612 fi
28613 else
cristy09b53e12011-10-14 12:47:22 +000028614 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28615$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028616 fi
28617fi
cristy73bd4a52010-10-05 11:24:23 +000028618 if test "$have_fpx" = 'yes'; then
28619 FPX_DELEGATE_TRUE=
28620 FPX_DELEGATE_FALSE='#'
28621else
28622 FPX_DELEGATE_TRUE='#'
28623 FPX_DELEGATE_FALSE=
28624fi
28625
cristy3ed852e2009-09-05 21:47:34 +000028626
28627
28628
28629#
28630# Check for fontconfig delegate library.
28631#
28632
28633# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028634if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028635 withval=$with_fontconfig; with_fontconfig=$withval
28636else
28637 with_fontconfig=$have_x
28638fi
28639
28640
28641if test "$with_fontconfig" != 'yes'; then
28642 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28643fi
28644
28645have_fontconfig='no'
28646FONTCONFIG_CFLAGS=""
28647FONTCONFIG_LIBS=""
28648FONTCONFIG_PKG=""
28649if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028650 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28651$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028652
28653pkg_failed=no
28654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28655$as_echo_n "checking for FONTCONFIG... " >&6; }
28656
28657if test -n "$FONTCONFIG_CFLAGS"; then
28658 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28659 elif test -n "$PKG_CONFIG"; then
28660 if test -n "$PKG_CONFIG" && \
28661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28662 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28663 ac_status=$?
28664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28665 test $ac_status = 0; }; then
28666 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28667else
28668 pkg_failed=yes
28669fi
28670 else
28671 pkg_failed=untried
28672fi
28673if test -n "$FONTCONFIG_LIBS"; then
28674 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28675 elif test -n "$PKG_CONFIG"; then
28676 if test -n "$PKG_CONFIG" && \
28677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28678 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28679 ac_status=$?
28680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28681 test $ac_status = 0; }; then
28682 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28683else
28684 pkg_failed=yes
28685fi
28686 else
28687 pkg_failed=untried
28688fi
28689
28690
28691
28692if test $pkg_failed = yes; then
28693
28694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28695 _pkg_short_errors_supported=yes
28696else
28697 _pkg_short_errors_supported=no
28698fi
28699 if test $_pkg_short_errors_supported = yes; then
28700 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28701 else
28702 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28703 fi
28704 # Put the nasty error message in config.log where it belongs
28705 echo "$FONTCONFIG_PKG_ERRORS" >&5
28706
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28708$as_echo "no" >&6; }
28709 have_fontconfig=no
28710elif test $pkg_failed = untried; then
28711 have_fontconfig=no
28712else
28713 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28714 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28716$as_echo "yes" >&6; }
28717 have_fontconfig=yes
28718fi
cristy09b53e12011-10-14 12:47:22 +000028719 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28720$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028721fi
28722
28723if test "$have_fontconfig" = 'yes'; then
28724
cristy8b350f62009-11-15 23:12:43 +000028725$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028726
cristyd09bcf92010-03-25 03:04:45 +000028727 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028728 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028729 fi
cristy3ed852e2009-09-05 21:47:34 +000028730fi
28731
cristy73bd4a52010-10-05 11:24:23 +000028732 if test "$have_fontconfig" = 'yes'; then
28733 FONTCONFIG_DELEGATE_TRUE=
28734 FONTCONFIG_DELEGATE_FALSE='#'
28735else
28736 FONTCONFIG_DELEGATE_TRUE='#'
28737 FONTCONFIG_DELEGATE_FALSE=
28738fi
28739
cristy3ed852e2009-09-05 21:47:34 +000028740
28741
28742
28743
28744#
cristy81beccd2011-10-03 18:17:24 +000028745# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028746#
28747
28748# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028749if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028750 withval=$with_freetype; with_freetype=$withval
28751else
28752 with_freetype='yes'
28753fi
28754
28755
cristy81beccd2011-10-03 18:17:24 +000028756
cristy3ed852e2009-09-05 21:47:34 +000028757if test "$with_freetype" != 'yes'; then
28758 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28759fi
28760
cristy81beccd2011-10-03 18:17:24 +000028761have_freetype='no'
28762FREETYPE_LIBS=''
28763if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028764 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28765$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28767$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028768 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28769$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028770 failed=0
28771 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028772 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028773 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028774 freetype_config=''
28775 # Allow the user to specify the location of freetype.
28776 if test "$with_freetype" != 'yes'; then
28777 if test -x "${with_freetype}/bin/freetype-config"; then
28778 freetype_config="${with_freetype}/bin/freetype-config"
28779 elif test -x "${with_freetype}"; then
28780 freetype_config=${with_freetype}
28781 fi
28782 fi
28783 if test -z "$freetype_config"; then
28784 # Extract the first word of "freetype-config", so it can be a program name with args.
28785set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28787$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028788if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028789 $as_echo_n "(cached) " >&6
28790else
cristy98ca0f52011-10-08 23:19:10 +000028791 case $freetype_config in
28792 [\\/]* | ?:[\\/]*)
28793 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28794 ;;
28795 *)
28796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028797for as_dir in $PATH
28798do
28799 IFS=$as_save_IFS
28800 test -z "$as_dir" && as_dir=.
28801 for ac_exec_ext in '' $ac_executable_extensions; do
28802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000028803 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28805 break 2
28806 fi
28807done
28808 done
28809IFS=$as_save_IFS
28810
cristy98ca0f52011-10-08 23:19:10 +000028811 ;;
28812esac
cristy81beccd2011-10-03 18:17:24 +000028813fi
cristy98ca0f52011-10-08 23:19:10 +000028814freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028815if test -n "$freetype_config"; then
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28817$as_echo "$freetype_config" >&6; }
28818else
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28820$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028821fi
28822
cristy98ca0f52011-10-08 23:19:10 +000028823 fi
28824 if test -n "$freetype_config"; then
28825 freetype_prefix=`${freetype_config} --prefix`
28826 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28827 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28828 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028829 fi
28830
28831 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028833$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28834if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28835 $as_echo_n "(cached) " >&6
28836else
28837 ac_check_lib_save_LIBS=$LIBS
28838LIBS="-lfreetype $LIBS"
28839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28840/* end confdefs.h. */
28841
28842/* Override any GCC internal prototype to avoid an error.
28843 Use char because int might match the return type of a GCC
28844 builtin and then its argument prototype would still apply. */
28845#ifdef __cplusplus
28846extern "C"
28847#endif
28848char FT_Init_FreeType ();
28849int
28850main ()
28851{
28852return FT_Init_FreeType ();
28853 ;
28854 return 0;
28855}
28856_ACEOF
28857if ac_fn_c_try_link "$LINENO"; then :
28858 ac_cv_lib_freetype_FT_Init_FreeType=yes
28859else
28860 ac_cv_lib_freetype_FT_Init_FreeType=no
28861fi
28862rm -f core conftest.err conftest.$ac_objext \
28863 conftest$ac_exeext conftest.$ac_ext
28864LIBS=$ac_check_lib_save_LIBS
28865fi
28866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28867$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28868if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28869 FREETYPE_LIBS='-lfreetype'
28870fi
28871
cristy98ca0f52011-10-08 23:19:10 +000028872 if test "$FREETYPE_LIBS" != ''; then
28873 passed=`expr $passed + 1`
28874 else
28875 failed=`expr $failed + 1`
28876 LDFLAGS="$PERSIST_LDFLAGS"
28877 fi
cristy81beccd2011-10-03 18:17:24 +000028878 fi
28879
28880 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28881if test "x$ac_cv_header_ft2build_h" = xyes; then :
28882 FT2BUILD_H='#include <ft2build.h>'
28883else
28884 ft2build=''
28885fi
28886
28887
28888 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28889"
28890if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28891 have_freetype_h='yes'
28892else
28893 have_freetype_h='no'
28894fi
28895
28896
cristy98ca0f52011-10-08 23:19:10 +000028897 if test "$have_freetype_h" = 'yes'; then
28898 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028899 else
cristy98ca0f52011-10-08 23:19:10 +000028900 failed=`expr $failed + 1`
28901 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028902 fi
28903
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28905$as_echo_n "checking if FreeType package is complete... " >&6; }
28906 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028907 if test $failed -gt 0; then
28908 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028909 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28910$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028911 have_freetype='no (failed tests)'
28912 else
28913 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028914
cristy8b350f62009-11-15 23:12:43 +000028915$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028916
cristy98ca0f52011-10-08 23:19:10 +000028917 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028918
28919$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28920
cristy81beccd2011-10-03 18:17:24 +000028921 fi
cristy09b53e12011-10-14 12:47:22 +000028922 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28923$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028924 have_freetype='yes'
28925 fi
cristy81beccd2011-10-03 18:17:24 +000028926 else
cristy09b53e12011-10-14 12:47:22 +000028927 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28928$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028929 fi
28930fi
cristy73bd4a52010-10-05 11:24:23 +000028931 if test "$have_freetype" = 'yes'; then
28932 FREETYPE_DELEGATE_TRUE=
28933 FREETYPE_DELEGATE_FALSE='#'
28934else
28935 FREETYPE_DELEGATE_TRUE='#'
28936 FREETYPE_DELEGATE_FALSE=
28937fi
28938
cristy3ed852e2009-09-05 21:47:34 +000028939
28940
28941
cristy3ed852e2009-09-05 21:47:34 +000028942#
28943# Check for Ghostscript library or framework.
28944#
28945# Test for iapi.h & test for gsapi_new_instance in -lgs
28946# or -framework Ghostscript
28947
28948
28949# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028950if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028951 withval=$with_gslib; with_gslib=$withval
28952else
28953 with_gslib='no'
28954fi
28955
28956
cristyb7931f12009-09-25 10:22:21 +000028957gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028958if test "$with_gslib" != 'yes'; then
28959 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28960fi
28961
28962have_gslib='no'
28963GS_LIBS=''
28964if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028965 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28966$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028968$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028969 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28970$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028971 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028972 failed=0
28973 passed=0
cristy8b350f62009-11-15 23:12:43 +000028974 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 +000028975if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028976 passed=`expr $passed + 1`
28977else
28978 failed=`expr $failed + 1`
28979fi
28980
28981
cristy8b350f62009-11-15 23:12:43 +000028982 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 +000028983if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028984 passed=`expr $passed + 1`
28985else
28986 failed=`expr $failed + 1`
28987fi
28988
28989
cristy73bd4a52010-10-05 11:24:23 +000028990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28991$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028992if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028993 $as_echo_n "(cached) " >&6
28994else
28995 ac_check_framework_save_LIBS=$LIBS
28996LIBS="-framework Ghostscript $LIBS"
28997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28998/* end confdefs.h. */
28999
29000/* Override any GCC internal prototype to avoid an error.
29001 Use char because int might match the return type of a GCC
29002 builtin and then its argument prototype would still apply. */
29003#ifdef __cplusplus
29004extern "C"
29005#endif
29006char gsapi_new_instance ();
29007int
29008main ()
29009{
29010return gsapi_new_instance ();
29011 ;
29012 return 0;
29013}
29014_ACEOF
29015if ac_fn_c_try_link "$LINENO"; then :
29016 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29017else
29018 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29019fi
29020rm -f core conftest.err conftest.$ac_objext \
29021 conftest$ac_exeext conftest.$ac_ext
29022LIBS=$ac_check_framework_save_LIBS
29023fi
29024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29025$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29026if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29027 framework=`expr $framework + 1`
29028else
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029030$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029031if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029032 $as_echo_n "(cached) " >&6
29033else
29034 ac_check_lib_save_LIBS=$LIBS
29035LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029037/* end confdefs.h. */
29038
29039/* Override any GCC internal prototype to avoid an error.
29040 Use char because int might match the return type of a GCC
29041 builtin and then its argument prototype would still apply. */
29042#ifdef __cplusplus
29043extern "C"
29044#endif
29045char gsapi_new_instance ();
29046int
29047main ()
29048{
29049return gsapi_new_instance ();
29050 ;
29051 return 0;
29052}
29053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029055 ac_cv_lib_gs_gsapi_new_instance=yes
29056else
cristy8b350f62009-11-15 23:12:43 +000029057 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029058fi
cristy8b350f62009-11-15 23:12:43 +000029059rm -f core conftest.err conftest.$ac_objext \
29060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029061LIBS=$ac_check_lib_save_LIBS
29062fi
cristy8b350f62009-11-15 23:12:43 +000029063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029064$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029065if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029066 passed=`expr $passed + 1`
29067else
29068 failed=`expr $failed + 1`
29069fi
cristy73bd4a52010-10-05 11:24:23 +000029070
29071fi
cristy8b350f62009-11-15 23:12:43 +000029072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029073$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29074 if test $passed -gt 0; then
29075 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029076 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29077$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029078 have_gslib='no (failed tests)'
29079 else
29080 if test $framework -gt 0; then
29081 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029082 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029083 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29084$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029085 else
cristy09b53e12011-10-14 12:47:22 +000029086 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29087$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029088 GS_LIBS='-lgs'
29089 fi
29090 LIBS="$GS_LIBS $LIBS"
29091
cristy8b350f62009-11-15 23:12:43 +000029092$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029093
29094 have_gslib='yes'
29095 fi
29096 else
cristy09b53e12011-10-14 12:47:22 +000029097 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29098$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029099 fi
29100fi
cristy73bd4a52010-10-05 11:24:23 +000029101 if test "$have_gslib" = 'yes'; then
29102 GS_DELEGATE_TRUE=
29103 GS_DELEGATE_FALSE='#'
29104else
29105 GS_DELEGATE_TRUE='#'
29106 GS_DELEGATE_FALSE=
29107fi
29108
cristy3ed852e2009-09-05 21:47:34 +000029109
29110
29111# Set default font search path
29112
29113# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029114if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029115 withval=$with_fontpath; with_fontpath=$withval
29116else
29117 with_fontpath=''
29118fi
29119
29120
29121if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29122 with_fontpath=''
29123else
29124
29125cat >>confdefs.h <<_ACEOF
29126#define MAGICK_FONT_PATH "$with_fontpath"
29127_ACEOF
29128
29129fi
29130if test "$with_fontpath=" != ''; then
29131 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29132fi
29133
29134# Set Ghostscript font directory
29135
29136# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029137if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029138 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29139else
29140 with_gs_font_dir='default'
29141fi
29142
29143
29144if test "$with_gs_font_dir" != 'default'; then
29145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29146fi
29147
29148
29149#
29150# Check for GVC delegate library.
29151#
29152
29153# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029154if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029155 withval=$with_gvc; with_gvc=$withval
29156else
29157 with_gvc='yes'
29158fi
29159
29160
29161if test "$with_gvc" != 'yes'; then
29162 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29163fi
29164
29165GVC_PKG=""
29166if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029167 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29168$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029169
29170pkg_failed=no
29171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29172$as_echo_n "checking for GVC... " >&6; }
29173
29174if test -n "$GVC_CFLAGS"; then
29175 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29176 elif test -n "$PKG_CONFIG"; then
29177 if test -n "$PKG_CONFIG" && \
29178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29179 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29180 ac_status=$?
29181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29182 test $ac_status = 0; }; then
29183 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29184else
29185 pkg_failed=yes
29186fi
29187 else
29188 pkg_failed=untried
29189fi
29190if test -n "$GVC_LIBS"; then
29191 pkg_cv_GVC_LIBS="$GVC_LIBS"
29192 elif test -n "$PKG_CONFIG"; then
29193 if test -n "$PKG_CONFIG" && \
29194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29195 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29196 ac_status=$?
29197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29198 test $ac_status = 0; }; then
29199 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29200else
29201 pkg_failed=yes
29202fi
29203 else
29204 pkg_failed=untried
29205fi
29206
29207
29208
29209if test $pkg_failed = yes; then
29210
29211if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29212 _pkg_short_errors_supported=yes
29213else
29214 _pkg_short_errors_supported=no
29215fi
29216 if test $_pkg_short_errors_supported = yes; then
29217 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29218 else
29219 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29220 fi
29221 # Put the nasty error message in config.log where it belongs
29222 echo "$GVC_PKG_ERRORS" >&5
29223
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29225$as_echo "no" >&6; }
29226 have_gvc=no
29227elif test $pkg_failed = untried; then
29228 have_gvc=no
29229else
29230 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29231 GVC_LIBS=$pkg_cv_GVC_LIBS
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29233$as_echo "yes" >&6; }
29234 have_gvc=yes
29235fi
cristy09b53e12011-10-14 12:47:22 +000029236 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29237$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029238fi
29239
29240if test "$have_gvc" = 'yes'; then
29241
cristy8b350f62009-11-15 23:12:43 +000029242$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029243
29244 if test "$with_modules" = 'no'; then
29245 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29246 fi
29247fi
29248
cristy73bd4a52010-10-05 11:24:23 +000029249 if test "$have_gvc" = 'yes'; then
29250 GVC_DELEGATE_TRUE=
29251 GVC_DELEGATE_FALSE='#'
29252else
29253 GVC_DELEGATE_TRUE='#'
29254 GVC_DELEGATE_FALSE=
29255fi
29256
cristy3ed852e2009-09-05 21:47:34 +000029257
29258
29259
29260
29261#
29262# Check for JBIG delegate library.
29263#
29264
29265
29266# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029267if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029268 withval=$with_jbig; with_jbig=$withval
29269else
29270 with_jbig='yes'
29271fi
29272
29273
29274have_jbig='no'
29275JBIG_LIBS=''
29276if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029277 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29278$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029280$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29282$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029283 failed=0
29284 passed=0
cristy8b350f62009-11-15 23:12:43 +000029285 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029286if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029287 passed=`expr $passed + 1`
29288else
29289 failed=`expr $failed + 1`
29290fi
29291
29292
cristy8b350f62009-11-15 23:12:43 +000029293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029294$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029295if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029296 $as_echo_n "(cached) " >&6
29297else
29298 ac_check_lib_save_LIBS=$LIBS
29299LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029301/* end confdefs.h. */
29302
29303/* Override any GCC internal prototype to avoid an error.
29304 Use char because int might match the return type of a GCC
29305 builtin and then its argument prototype would still apply. */
29306#ifdef __cplusplus
29307extern "C"
29308#endif
29309char jbg_dec_init ();
29310int
29311main ()
29312{
29313return jbg_dec_init ();
29314 ;
29315 return 0;
29316}
29317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029319 ac_cv_lib_jbig_jbg_dec_init=yes
29320else
cristy8b350f62009-11-15 23:12:43 +000029321 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029322fi
cristy8b350f62009-11-15 23:12:43 +000029323rm -f core conftest.err conftest.$ac_objext \
29324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029325LIBS=$ac_check_lib_save_LIBS
29326fi
cristy8b350f62009-11-15 23:12:43 +000029327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029328$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029329if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029330 passed=`expr $passed + 1`
29331else
29332 failed=`expr $failed + 1`
29333fi
29334
cristy8b350f62009-11-15 23:12:43 +000029335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029336$as_echo_n "checking if JBIG package is complete... " >&6; }
29337 if test $passed -gt 0; then
29338 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029339 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29340$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029341 have_jbig='no (failed tests)'
29342 else
29343 JBIG_LIBS='-ljbig'
29344 LIBS="$JBIG_LIBS $LIBS"
29345
cristy8b350f62009-11-15 23:12:43 +000029346$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029347
cristy09b53e12011-10-14 12:47:22 +000029348 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29349$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029350 have_jbig='yes'
29351 fi
29352 else
cristy09b53e12011-10-14 12:47:22 +000029353 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29354$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029355 fi
29356fi
cristy73bd4a52010-10-05 11:24:23 +000029357 if test "$have_jbig" = 'yes'; then
29358 JBIG_DELEGATE_TRUE=
29359 JBIG_DELEGATE_FALSE='#'
29360else
29361 JBIG_DELEGATE_TRUE='#'
29362 JBIG_DELEGATE_FALSE=
29363fi
29364
cristy3ed852e2009-09-05 21:47:34 +000029365
29366
29367
29368#
29369# Check for JPEG delegate library.
29370#
29371
29372# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029373if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029374 withval=$with_jpeg; with_jpeg=$withval
29375else
29376 with_jpeg='yes'
29377fi
29378
29379
29380if test "$with_jpeg" != 'yes'; then
29381 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29382fi
29383
29384have_jpeg='no'
29385JPEG_LIBS=''
29386if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029387 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29388$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029390$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029391 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29392$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029393 failed=0
29394 passed=0
cristy8b350f62009-11-15 23:12:43 +000029395 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029396if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029397 passed=`expr $passed + 1`
29398else
29399 failed=`expr $failed + 1`
29400fi
29401
29402
cristy8b350f62009-11-15 23:12:43 +000029403 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029404if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029405 passed=`expr $passed + 1`
29406else
29407 failed=`expr $failed + 1`
29408fi
29409
29410
cristy8b350f62009-11-15 23:12:43 +000029411 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029412if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029413 passed=`expr $passed + 1`
29414else
29415 failed=`expr $failed + 1`
29416fi
29417
29418
cristy8b350f62009-11-15 23:12:43 +000029419 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029420if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029421 passed=`expr $passed + 1`
29422else
29423 failed=`expr $failed + 1`
29424fi
29425
29426
cristy8b350f62009-11-15 23:12:43 +000029427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029428$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029429if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029430 $as_echo_n "(cached) " >&6
29431else
29432 ac_check_lib_save_LIBS=$LIBS
29433LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029435/* end confdefs.h. */
29436
29437/* Override any GCC internal prototype to avoid an error.
29438 Use char because int might match the return type of a GCC
29439 builtin and then its argument prototype would still apply. */
29440#ifdef __cplusplus
29441extern "C"
29442#endif
29443char jpeg_read_header ();
29444int
29445main ()
29446{
29447return jpeg_read_header ();
29448 ;
29449 return 0;
29450}
29451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029453 ac_cv_lib_jpeg_jpeg_read_header=yes
29454else
cristy8b350f62009-11-15 23:12:43 +000029455 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029456fi
cristy8b350f62009-11-15 23:12:43 +000029457rm -f core conftest.err conftest.$ac_objext \
29458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029459LIBS=$ac_check_lib_save_LIBS
29460fi
cristy8b350f62009-11-15 23:12:43 +000029461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029462$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029463if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029464 passed=`expr $passed + 1`
29465else
29466 failed=`expr $failed + 1`
29467fi
29468
29469
29470# Test for compatible JPEG library
29471if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029473$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029474if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029475 $as_echo_n "(cached) " >&6
29476else
cristy8b350f62009-11-15 23:12:43 +000029477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029478/* end confdefs.h. */
29479#include <stdio.h>
29480#include <stdlib.h>
29481#include <jpeglib.h>
29482
29483int
29484main ()
29485{
29486
29487#if JPEG_LIB_VERSION < 62
29488#error IJG JPEG library must be version 6b or newer!
29489#endif
29490return 0;
29491
29492 ;
29493 return 0;
29494}
29495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029496if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029497 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29498else
cristy8b350f62009-11-15 23:12:43 +000029499 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029500fi
cristy3ed852e2009-09-05 21:47:34 +000029501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29502fi
cristy8b350f62009-11-15 23:12:43 +000029503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029504$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29505fi
cristy8b350f62009-11-15 23:12:43 +000029506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029507$as_echo_n "checking if JPEG package is complete... " >&6; }
29508 if test $passed -gt 0; then
29509 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029510 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29511$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029512 have_jpeg='no (failed tests)'
29513 else
29514 JPEG_LIBS='-ljpeg'
29515 LIBS="$JPEG_LIBS $LIBS"
29516
cristy8b350f62009-11-15 23:12:43 +000029517$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029518
cristy09b53e12011-10-14 12:47:22 +000029519 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29520$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029521 have_jpeg='yes'
29522 fi
29523 else
cristy09b53e12011-10-14 12:47:22 +000029524 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29525$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029526 fi
29527fi
cristy73bd4a52010-10-05 11:24:23 +000029528 if test "$have_jpeg" = 'yes'; then
29529 JPEG_DELEGATE_TRUE=
29530 JPEG_DELEGATE_FALSE='#'
29531else
29532 JPEG_DELEGATE_TRUE='#'
29533 JPEG_DELEGATE_FALSE=
29534fi
29535
cristy3ed852e2009-09-05 21:47:34 +000029536
29537
29538
29539#
29540# Check for JPEG Version 2 delegate library.
29541#
29542
29543# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029544if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029545 withval=$with_jp2; with_jp2=$withval
29546else
29547 with_jp2='yes'
29548fi
29549
29550
29551if test "$with_jp2" != 'yes'; then
29552 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29553fi
29554
29555have_jp2='no'
29556JP2_LIBS=''
29557if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029558 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29559$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029561$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029562 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29563$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029564 failed=0
29565 passed=0
cristy8b350f62009-11-15 23:12:43 +000029566 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 +000029567if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029568 passed=`expr $passed + 1`
29569else
29570 failed=`expr $failed + 1`
29571fi
29572
29573
cristy8b350f62009-11-15 23:12:43 +000029574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029575$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029576if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029577 $as_echo_n "(cached) " >&6
29578else
29579 ac_check_lib_save_LIBS=$LIBS
29580LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029582/* end confdefs.h. */
29583
29584/* Override any GCC internal prototype to avoid an error.
29585 Use char because int might match the return type of a GCC
29586 builtin and then its argument prototype would still apply. */
29587#ifdef __cplusplus
29588extern "C"
29589#endif
29590char jas_stream_fopen ();
29591int
29592main ()
29593{
29594return jas_stream_fopen ();
29595 ;
29596 return 0;
29597}
29598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029599if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029600 ac_cv_lib_jasper_jas_stream_fopen=yes
29601else
cristy8b350f62009-11-15 23:12:43 +000029602 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029603fi
cristy8b350f62009-11-15 23:12:43 +000029604rm -f core conftest.err conftest.$ac_objext \
29605 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029606LIBS=$ac_check_lib_save_LIBS
29607fi
cristy8b350f62009-11-15 23:12:43 +000029608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029609$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029610if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029611 passed=`expr $passed + 1`
29612else
29613 failed=`expr $failed + 1`
29614fi
29615
cristy8b350f62009-11-15 23:12:43 +000029616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029617$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29618 if test $passed -gt 0; then
29619 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029620 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29621$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029622 have_jp2='no (failed tests)'
29623 else
29624 JP2_LIBS='-ljasper'
29625 LIBS="$JP2_LIBS $LIBS"
29626
cristy8b350f62009-11-15 23:12:43 +000029627$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029628
cristy09b53e12011-10-14 12:47:22 +000029629 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29630$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029631 have_jp2='yes'
29632 fi
29633 else
cristy09b53e12011-10-14 12:47:22 +000029634 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29635$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029636 fi
29637fi
cristy73bd4a52010-10-05 11:24:23 +000029638 if test "$have_jp2" = 'yes'; then
29639 JP2_DELEGATE_TRUE=
29640 JP2_DELEGATE_FALSE='#'
29641else
29642 JP2_DELEGATE_TRUE='#'
29643 JP2_DELEGATE_FALSE=
29644fi
29645
cristy3ed852e2009-09-05 21:47:34 +000029646
29647
29648
29649#
29650# Check for LCMS delegate library.
29651#
cristy71203402010-06-18 13:12:03 +000029652# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029653
29654# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029655if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029656 withval=$with_lcms; with_lcms=$withval
29657else
29658 with_lcms='yes'
29659fi
29660
cristy71203402010-06-18 13:12:03 +000029661if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029662 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29663fi
29664
cristy71203402010-06-18 13:12:03 +000029665# Disable LCMS2.
29666
29667# Check whether --with-lcms2 was given.
29668if test "${with_lcms2+set}" = set; then :
29669 withval=$with_lcms2; with_lcms2=$withval
29670else
29671 with_lcms2='yes'
29672fi
29673
29674if test "$with_lcms2" != 'yes' ; then
29675 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29676fi
29677
29678have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029679LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029680if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029681 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29682$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29684$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029685 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29686$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029687 failed=0
29688 passed=0
29689 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029690
29691 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029692 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029693if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029694 have_lcms_header='yes'
29695fi
29696
29697
29698 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029699
29700$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29701
cristy71203402010-06-18 13:12:03 +000029702 passed=`expr $passed + 1`
29703 fi
29704
29705 # Check for <lcms2/lcms2.h)
29706 if test "$have_lcms_header" != 'yes'; then
29707 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 +000029708if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029709 have_lcms_header='yes'
29710fi
29711
29712
cristy71203402010-06-18 13:12:03 +000029713 if test "$have_lcms_header" = 'yes'; then
29714 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029715
cristy71203402010-06-18 13:12:03 +000029716$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029717
cristy71203402010-06-18 13:12:03 +000029718 fi
cristyd09bcf92010-03-25 03:04:45 +000029719 fi
cristy71203402010-06-18 13:12:03 +000029720
29721 # Failed to find lcms header?
29722 if test "$have_lcms_header" != 'yes'; then
29723 failed=`expr $failed + 1`
29724 fi
29725
29726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29727$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029728if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029729 $as_echo_n "(cached) " >&6
29730else
29731 ac_check_lib_save_LIBS=$LIBS
29732LIBS="-llcms2 $LIBS"
29733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29734/* end confdefs.h. */
29735
29736/* Override any GCC internal prototype to avoid an error.
29737 Use char because int might match the return type of a GCC
29738 builtin and then its argument prototype would still apply. */
29739#ifdef __cplusplus
29740extern "C"
29741#endif
cristy71203402010-06-18 13:12:03 +000029742char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029743int
29744main ()
29745{
cristy71203402010-06-18 13:12:03 +000029746return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029747 ;
29748 return 0;
29749}
29750_ACEOF
29751if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029752 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029753else
cristy71203402010-06-18 13:12:03 +000029754 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029755fi
29756rm -f core conftest.err conftest.$ac_objext \
29757 conftest$ac_exeext conftest.$ac_ext
29758LIBS=$ac_check_lib_save_LIBS
29759fi
cristy71203402010-06-18 13:12:03 +000029760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29761$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029762if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029763 passed=`expr $passed + 1`
29764else
29765 failed=`expr $failed + 1`
29766fi
29767
cristy71203402010-06-18 13:12:03 +000029768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29769$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029770 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029771 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029772 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29773$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029774 have_lcms2='no (failed tests)'
29775 else
29776 LCMS_LIBS='-llcms2'
29777 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029778 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29779$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029780 have_lcms2='yes'
29781 fi
cristyd09bcf92010-03-25 03:04:45 +000029782 else
cristy09b53e12011-10-14 12:47:22 +000029783 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29784$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029785 fi
29786fi
29787
cristy71203402010-06-18 13:12:03 +000029788#
29789# Check for LCMS v1 (1.11 or later)
29790#
29791if test $have_lcms2 = 'yes'; then
29792 with_lcms='no'
29793fi
29794
29795have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029796if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029797 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29798$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29800$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029801 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29802$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029803 failed=0
29804 passed=0
29805 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029806
29807 # Check for <lcms.h>
29808 if test "$have_lcms_header" != 'yes'; then
29809 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029810if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029811 have_lcms_header='yes'
29812fi
29813
29814
cristy71203402010-06-18 13:12:03 +000029815 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029816 passed=`expr $passed + 1`
29817
cristy8b350f62009-11-15 23:12:43 +000029818$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029819
cristy71203402010-06-18 13:12:03 +000029820 fi
29821 fi
29822
29823 # Check for <lcms/lcms.h>
29824 if test "$have_lcms_header" != 'yes'; then
29825 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 +000029826if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029827 have_lcms_header='yes'
29828fi
29829
29830
cristy71203402010-06-18 13:12:03 +000029831 if test "$have_lcms_header" = 'yes'; then
29832 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029833
cristy8b350f62009-11-15 23:12:43 +000029834$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029835
cristy71203402010-06-18 13:12:03 +000029836 fi
cristy3ed852e2009-09-05 21:47:34 +000029837 fi
cristy71203402010-06-18 13:12:03 +000029838
29839 # Failed to find lcms header?
29840 if test "$have_lcms_header" != 'yes'; then
29841 failed=`expr $failed + 1`
29842 fi
29843
29844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29845$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029846if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029847 $as_echo_n "(cached) " >&6
29848else
29849 ac_check_lib_save_LIBS=$LIBS
29850LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029852/* end confdefs.h. */
29853
29854/* Override any GCC internal prototype to avoid an error.
29855 Use char because int might match the return type of a GCC
29856 builtin and then its argument prototype would still apply. */
29857#ifdef __cplusplus
29858extern "C"
29859#endif
cristy71203402010-06-18 13:12:03 +000029860char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029861int
29862main ()
29863{
cristy71203402010-06-18 13:12:03 +000029864return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029865 ;
29866 return 0;
29867}
29868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029869if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029870 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029871else
cristy71203402010-06-18 13:12:03 +000029872 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029873fi
cristy8b350f62009-11-15 23:12:43 +000029874rm -f core conftest.err conftest.$ac_objext \
29875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029876LIBS=$ac_check_lib_save_LIBS
29877fi
cristy71203402010-06-18 13:12:03 +000029878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29879$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029880if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029881 passed=`expr $passed + 1`
29882else
29883 failed=`expr $failed + 1`
29884fi
29885
cristy8b350f62009-11-15 23:12:43 +000029886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029887$as_echo_n "checking if LCMS package is complete... " >&6; }
29888 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029889 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029890 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29891$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029892 have_lcms='no (failed tests)'
29893 else
29894 LCMS_LIBS='-llcms'
29895 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029896 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29897$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029898 have_lcms='yes'
29899 fi
cristy3ed852e2009-09-05 21:47:34 +000029900 else
cristy09b53e12011-10-14 12:47:22 +000029901 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29902$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029903 fi
29904fi
cristy71203402010-06-18 13:12:03 +000029905
cristy73bd4a52010-10-05 11:24:23 +000029906 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29907 LCMS_DELEGATE_TRUE=
29908 LCMS_DELEGATE_FALSE='#'
29909else
29910 LCMS_DELEGATE_TRUE='#'
29911 LCMS_DELEGATE_FALSE=
29912fi
29913
cristy71203402010-06-18 13:12:03 +000029914if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29915
29916$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29917
29918fi
29919
cristy3ed852e2009-09-05 21:47:34 +000029920
29921
29922
29923#
29924# Check for the LQR (Liquid Rescale) delegate library.
29925#
29926
29927# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029928if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029929 withval=$with_lqr; with_lqr=$withval
29930else
29931 with_lqr='yes'
29932fi
29933
29934
29935if test "$with_lqr" != 'yes'; then
29936 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29937fi
29938
29939have_lqr='no'
29940LQR_CFLAGS=""
29941LQR_LIBS=""
29942LQR_PKG=""
29943if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029944 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29945$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029946
29947pkg_failed=no
29948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29949$as_echo_n "checking for LQR... " >&6; }
29950
29951if test -n "$LQR_CFLAGS"; then
29952 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29953 elif test -n "$PKG_CONFIG"; then
29954 if test -n "$PKG_CONFIG" && \
29955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29956 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29957 ac_status=$?
29958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29959 test $ac_status = 0; }; then
29960 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29961else
29962 pkg_failed=yes
29963fi
29964 else
29965 pkg_failed=untried
29966fi
29967if test -n "$LQR_LIBS"; then
29968 pkg_cv_LQR_LIBS="$LQR_LIBS"
29969 elif test -n "$PKG_CONFIG"; then
29970 if test -n "$PKG_CONFIG" && \
29971 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29972 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29973 ac_status=$?
29974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29975 test $ac_status = 0; }; then
29976 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29977else
29978 pkg_failed=yes
29979fi
29980 else
29981 pkg_failed=untried
29982fi
29983
29984
29985
29986if test $pkg_failed = yes; then
29987
29988if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29989 _pkg_short_errors_supported=yes
29990else
29991 _pkg_short_errors_supported=no
29992fi
29993 if test $_pkg_short_errors_supported = yes; then
29994 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29995 else
29996 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29997 fi
29998 # Put the nasty error message in config.log where it belongs
29999 echo "$LQR_PKG_ERRORS" >&5
30000
30001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30002$as_echo "no" >&6; }
30003 have_lqr=no
30004elif test $pkg_failed = untried; then
30005 have_lqr=no
30006else
30007 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30008 LQR_LIBS=$pkg_cv_LQR_LIBS
30009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30010$as_echo "yes" >&6; }
30011 have_lqr=yes
30012fi
cristy09b53e12011-10-14 12:47:22 +000030013 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30014$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030015fi
30016
30017if test "$have_lqr" = 'yes'; then
30018
cristy8b350f62009-11-15 23:12:43 +000030019$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030020
30021 CFLAGS="$LQR_CFLAGS $CFLAGS"
30022fi
30023
cristy73bd4a52010-10-05 11:24:23 +000030024 if test "$have_lqr" = 'yes'; then
30025 LQR_DELEGATE_TRUE=
30026 LQR_DELEGATE_FALSE='#'
30027else
30028 LQR_DELEGATE_TRUE='#'
30029 LQR_DELEGATE_FALSE=
30030fi
30031
cristy3ed852e2009-09-05 21:47:34 +000030032
30033
30034
30035
cristy81beccd2011-10-03 18:17:24 +000030036# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030037
30038# Check whether --with-lzma was given.
30039if test "${with_lzma+set}" = set; then :
30040 withval=$with_lzma; with_lzma=$withval
30041else
30042 with_lzma='yes'
30043fi
30044
cristy81beccd2011-10-03 18:17:24 +000030045if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030046 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30047fi
30048
cristy81beccd2011-10-03 18:17:24 +000030049#
30050# Check for LZMA
30051#
30052have_lzma='no'
30053LZMA_LIBS=''
30054if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030055 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30056$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030058$as_echo_n "checking for LZMA... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030059 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30060$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030061 failed=0
30062 passed=0
30063 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
30064if test "x$ac_cv_header_lzma_h" = xyes; then :
30065 passed=`expr $passed + 1`
30066else
30067 failed=`expr $failed + 1`
cristyfbb0ef02010-12-19 02:32:11 +000030068fi
30069
cristy81beccd2011-10-03 18:17:24 +000030070
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
30072$as_echo_n "checking for lzma_code in -llzma... " >&6; }
30073if ${ac_cv_lib_lzma_lzma_code+:} false; then :
30074 $as_echo_n "(cached) " >&6
30075else
30076 ac_check_lib_save_LIBS=$LIBS
30077LIBS="-llzma $LIBS"
30078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30079/* end confdefs.h. */
30080
30081/* Override any GCC internal prototype to avoid an error.
30082 Use char because int might match the return type of a GCC
30083 builtin and then its argument prototype would still apply. */
30084#ifdef __cplusplus
30085extern "C"
30086#endif
30087char lzma_code ();
30088int
30089main ()
30090{
30091return lzma_code ();
30092 ;
30093 return 0;
30094}
30095_ACEOF
30096if ac_fn_c_try_link "$LINENO"; then :
30097 ac_cv_lib_lzma_lzma_code=yes
30098else
30099 ac_cv_lib_lzma_lzma_code=no
30100fi
30101rm -f core conftest.err conftest.$ac_objext \
30102 conftest$ac_exeext conftest.$ac_ext
30103LIBS=$ac_check_lib_save_LIBS
30104fi
30105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
30106$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
30107if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
30108 passed=`expr $passed + 1`
30109else
30110 failed=`expr $failed + 1`
30111fi
30112
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
30114$as_echo_n "checking if LZMA package is complete... " >&6; }
30115 if test $passed -gt 0; then
30116 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030117 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30118$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030119 have_lzma='no (failed tests)'
30120 else
30121 LZMA_LIBS='-llzma'
30122 LIBS="$LZMA_LIBS $LIBS"
cristyfbb0ef02010-12-19 02:32:11 +000030123
30124$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30125
cristy09b53e12011-10-14 12:47:22 +000030126 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30127$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030128 have_lzma='yes'
cristyfbb0ef02010-12-19 02:32:11 +000030129 fi
cristy81beccd2011-10-03 18:17:24 +000030130 else
cristy09b53e12011-10-14 12:47:22 +000030131 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30132$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030133 fi
cristyfbb0ef02010-12-19 02:32:11 +000030134fi
30135 if test "$have_lzma" = 'yes'; then
30136 LZMA_DELEGATE_TRUE=
30137 LZMA_DELEGATE_FALSE='#'
30138else
30139 LZMA_DELEGATE_TRUE='#'
30140 LZMA_DELEGATE_FALSE=
30141fi
30142
30143
30144
30145
cristy3ed852e2009-09-05 21:47:34 +000030146#
30147# Check for the OpenEXR delegate library.
30148#
30149
30150# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030151if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030152 withval=$with_openexr; with_openexr=$withval
30153else
30154 with_openexr='yes'
30155fi
30156
30157
30158if test "$with_openexr" != 'yes'; then
30159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30160fi
30161
30162have_openexr='no'
30163OPENEXR_CFLAGS=""
30164OPENEXR_LIBS=""
30165OPENEXR_PKG=""
30166if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030167 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30168$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030169
30170pkg_failed=no
30171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30172$as_echo_n "checking for OPENEXR... " >&6; }
30173
30174if test -n "$OPENEXR_CFLAGS"; then
30175 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30176 elif test -n "$PKG_CONFIG"; then
30177 if test -n "$PKG_CONFIG" && \
30178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30179 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30180 ac_status=$?
30181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30182 test $ac_status = 0; }; then
30183 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30184else
30185 pkg_failed=yes
30186fi
30187 else
30188 pkg_failed=untried
30189fi
30190if test -n "$OPENEXR_LIBS"; then
30191 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30192 elif test -n "$PKG_CONFIG"; then
30193 if test -n "$PKG_CONFIG" && \
30194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30195 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30196 ac_status=$?
30197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30198 test $ac_status = 0; }; then
30199 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30200else
30201 pkg_failed=yes
30202fi
30203 else
30204 pkg_failed=untried
30205fi
30206
30207
30208
30209if test $pkg_failed = yes; then
30210
30211if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30212 _pkg_short_errors_supported=yes
30213else
30214 _pkg_short_errors_supported=no
30215fi
30216 if test $_pkg_short_errors_supported = yes; then
30217 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30218 else
30219 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30220 fi
30221 # Put the nasty error message in config.log where it belongs
30222 echo "$OPENEXR_PKG_ERRORS" >&5
30223
30224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30225$as_echo "no" >&6; }
30226 have_openexr=no
30227elif test $pkg_failed = untried; then
30228 have_openexr=no
30229else
30230 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30231 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30233$as_echo "yes" >&6; }
30234 have_openexr=yes
30235fi
cristy09b53e12011-10-14 12:47:22 +000030236 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30237$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030238fi
30239
30240if test "$have_openexr" = 'yes'; then
30241
cristy8b350f62009-11-15 23:12:43 +000030242$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030243
30244 if test "$with_modules" = 'no'; then
30245 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30246 fi
30247fi
30248
cristy73bd4a52010-10-05 11:24:23 +000030249 if test "$have_openexr" = 'yes'; then
30250 OPENEXR_DELEGATE_TRUE=
30251 OPENEXR_DELEGATE_FALSE='#'
30252else
30253 OPENEXR_DELEGATE_TRUE='#'
30254 OPENEXR_DELEGATE_FALSE=
30255fi
30256
cristy3ed852e2009-09-05 21:47:34 +000030257
30258
30259
30260
30261#
cristy41cbe8a2011-10-27 01:35:18 +000030262# Check for PANGO delegate library.
30263#
30264
30265# Check whether --with-pango was given.
30266if test "${with_pango+set}" = set; then :
30267 withval=$with_pango; with_pango=$withval
30268else
30269 with_pango=$have_x
30270fi
30271
30272
30273if test "$with_pango" != 'yes'; then
30274 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30275fi
30276
30277have_pango='no'
30278have_pangoft2='no'
30279PANGO_CFLAGS=""
30280PANGO_LIBS=""
30281PANGO_PKG=""
30282if test "x$with_pango" = "xyes"; then
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30284$as_echo "-------------------------------------------------------------" >&6; }
30285
30286pkg_failed=no
30287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30288$as_echo_n "checking for PANGO... " >&6; }
30289
30290if test -n "$PANGO_CFLAGS"; then
30291 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30292 elif test -n "$PKG_CONFIG"; then
30293 if test -n "$PKG_CONFIG" && \
cristy1a7003f2011-10-30 23:16:01 +000030294 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.15.1\""; } >&5
30295 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.15.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030296 ac_status=$?
30297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30298 test $ac_status = 0; }; then
cristy1a7003f2011-10-30 23:16:01 +000030299 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.15.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030300else
30301 pkg_failed=yes
30302fi
30303 else
30304 pkg_failed=untried
30305fi
30306if test -n "$PANGO_LIBS"; then
30307 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30308 elif test -n "$PKG_CONFIG"; then
30309 if test -n "$PKG_CONFIG" && \
cristy1a7003f2011-10-30 23:16:01 +000030310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.15.1\""; } >&5
30311 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.15.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030312 ac_status=$?
30313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30314 test $ac_status = 0; }; then
cristy1a7003f2011-10-30 23:16:01 +000030315 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.15.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030316else
30317 pkg_failed=yes
30318fi
30319 else
30320 pkg_failed=untried
30321fi
30322
30323
30324
30325if test $pkg_failed = yes; then
30326
30327if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30328 _pkg_short_errors_supported=yes
30329else
30330 _pkg_short_errors_supported=no
30331fi
30332 if test $_pkg_short_errors_supported = yes; then
cristy1a7003f2011-10-30 23:16:01 +000030333 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.15.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030334 else
cristy1a7003f2011-10-30 23:16:01 +000030335 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.15.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030336 fi
30337 # Put the nasty error message in config.log where it belongs
30338 echo "$PANGO_PKG_ERRORS" >&5
30339
30340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30341$as_echo "no" >&6; }
30342 have_pangoft2=no
30343elif test $pkg_failed = untried; then
30344 have_pangoft2=no
30345else
30346 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30347 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30349$as_echo "yes" >&6; }
30350 have_pangoft2=yes
30351fi
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30353$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030354
30355pkg_failed=no
30356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30357$as_echo_n "checking for PANGO... " >&6; }
30358
30359if test -n "$PANGO_CFLAGS"; then
30360 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30361 elif test -n "$PKG_CONFIG"; then
30362 if test -n "$PKG_CONFIG" && \
cristy1a7003f2011-10-30 23:16:01 +000030363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.15.1\""; } >&5
30364 ($PKG_CONFIG --exists --print-errors "pango >= 1.15.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030365 ac_status=$?
30366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30367 test $ac_status = 0; }; then
cristy1a7003f2011-10-30 23:16:01 +000030368 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.15.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030369else
30370 pkg_failed=yes
30371fi
30372 else
30373 pkg_failed=untried
30374fi
30375if test -n "$PANGO_LIBS"; then
30376 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30377 elif test -n "$PKG_CONFIG"; then
30378 if test -n "$PKG_CONFIG" && \
cristy1a7003f2011-10-30 23:16:01 +000030379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.15.1\""; } >&5
30380 ($PKG_CONFIG --exists --print-errors "pango >= 1.15.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030381 ac_status=$?
30382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30383 test $ac_status = 0; }; then
cristy1a7003f2011-10-30 23:16:01 +000030384 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.15.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030385else
30386 pkg_failed=yes
30387fi
30388 else
30389 pkg_failed=untried
30390fi
30391
30392
30393
30394if test $pkg_failed = yes; then
30395
30396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30397 _pkg_short_errors_supported=yes
30398else
30399 _pkg_short_errors_supported=no
30400fi
30401 if test $_pkg_short_errors_supported = yes; then
cristy1a7003f2011-10-30 23:16:01 +000030402 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.15.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030403 else
cristy1a7003f2011-10-30 23:16:01 +000030404 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.15.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030405 fi
30406 # Put the nasty error message in config.log where it belongs
30407 echo "$PANGO_PKG_ERRORS" >&5
30408
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30410$as_echo "no" >&6; }
30411 have_pango=no
30412elif test $pkg_failed = untried; then
30413 have_pango=no
30414else
30415 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30416 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30418$as_echo "yes" >&6; }
30419 have_pango=yes
30420fi
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30422$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030423fi
30424
30425if test "$have_pango" = 'yes'; then
30426
30427$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30428
30429 if test "$with_modules" = 'no'; then
30430 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30431 fi
30432fi
30433
30434if test "$have_pangoft2" = 'yes'; then
30435
30436$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30437
30438 if test "$with_modules" = 'no'; then
30439 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30440 fi
30441fi
30442
30443 if test "$have_pango" = 'yes'; then
30444 PANGO_DELEGATE_TRUE=
30445 PANGO_DELEGATE_FALSE='#'
30446else
30447 PANGO_DELEGATE_TRUE='#'
30448 PANGO_DELEGATE_FALSE=
30449fi
30450
30451 if test "$have_pangoft2" = 'yes'; then
30452 PANGOFT2_DELEGATE_TRUE=
30453 PANGOFT2_DELEGATE_FALSE='#'
30454else
30455 PANGOFT2_DELEGATE_TRUE='#'
30456 PANGOFT2_DELEGATE_FALSE=
30457fi
30458
30459
30460
30461
30462
30463#
cristy3ed852e2009-09-05 21:47:34 +000030464# Check for PNG delegate library.
30465#
30466
30467# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030468if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030469 withval=$with_png; with_png=$withval
30470else
30471 with_png='yes'
30472fi
30473
30474
30475if test "$with_png" != 'yes'; then
30476 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30477fi
30478
cristy81beccd2011-10-03 18:17:24 +000030479have_png='no'
30480PNG_LIBS=''
30481
30482if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030483 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30484$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30486$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030487 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30488$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030489 failed=0
30490 passed=0
30491 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30492if test "x$ac_cv_header_png_h" = xyes; then :
30493 passed=`expr $passed + 1`
30494else
30495 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030496fi
30497
cristy81beccd2011-10-03 18:17:24 +000030498
30499
30500 if test $passed -gt 0; then
30501 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030502 if test "$have_png" = 'no' ; then
30503 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030504 pnglib='png'
30505 else
30506 pnglib="png1${var}"
30507 fi
30508
30509# Test for compatible LIBPNG library
30510 failed=0
30511 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030512 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030513 if test "${pnglib}" != 'png' ; then
30514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30515$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30517/* end confdefs.h. */
30518#include <stdio.h>
30519#include <stdlib.h>
30520#include <png.h>
30521
30522int
30523main ()
30524{
30525
30526#if PNG_LIBPNG_VER_MINOR != ${var}
30527#error LIBPNG library must be version 1${var}!
30528Kaboom, Kaboom
30529#endif
30530return 0;
30531
30532 ;
30533 return 0;
30534}
30535_ACEOF
30536if ac_fn_c_try_compile "$LINENO"; then :
30537 ac_cv_libpng_ok='yes'
30538else
30539 ac_cv_libpng_ok='no'
30540fi
30541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30542 if test "$ac_cv_libpng_ok" = 'yes' ; then
30543 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030544 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30545$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030546 else
30547 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030548 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30549$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030550 fi
30551 else
30552 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030553 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30554$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030555 fi
30556 fi
30557
30558 if test $passed -gt 0 -a $failed -le 0; then
30559 if test "1${var}" = '15' ; then
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30561$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30562if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30563 $as_echo_n "(cached) " >&6
30564else
30565 ac_check_lib_save_LIBS=$LIBS
30566LIBS="-lpng15 $LIBS"
30567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30568/* end confdefs.h. */
30569
30570/* Override any GCC internal prototype to avoid an error.
30571 Use char because int might match the return type of a GCC
30572 builtin and then its argument prototype would still apply. */
30573#ifdef __cplusplus
30574extern "C"
30575#endif
30576char png_get_io_ptr ();
30577int
30578main ()
30579{
30580return png_get_io_ptr ();
30581 ;
30582 return 0;
30583}
30584_ACEOF
30585if ac_fn_c_try_link "$LINENO"; then :
30586 ac_cv_lib_png15_png_get_io_ptr=yes
30587else
30588 ac_cv_lib_png15_png_get_io_ptr=no
30589fi
30590rm -f core conftest.err conftest.$ac_objext \
30591 conftest$ac_exeext conftest.$ac_ext
30592LIBS=$ac_check_lib_save_LIBS
30593fi
30594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30595$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30596if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30597 passed=`expr $passed + 1`
30598else
30599 failed=`expr $failed + 1`
30600fi
30601
30602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30603$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30604if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30605 $as_echo_n "(cached) " >&6
30606else
30607 ac_check_lib_save_LIBS=$LIBS
30608LIBS="-lpng15 $LIBS"
30609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30610/* end confdefs.h. */
30611
30612/* Override any GCC internal prototype to avoid an error.
30613 Use char because int might match the return type of a GCC
30614 builtin and then its argument prototype would still apply. */
30615#ifdef __cplusplus
30616extern "C"
30617#endif
30618char png_longjmp ();
30619int
30620main ()
30621{
30622return png_longjmp ();
30623 ;
30624 return 0;
30625}
30626_ACEOF
30627if ac_fn_c_try_link "$LINENO"; then :
30628 ac_cv_lib_png15_png_longjmp=yes
30629else
30630 ac_cv_lib_png15_png_longjmp=no
30631fi
30632rm -f core conftest.err conftest.$ac_objext \
30633 conftest$ac_exeext conftest.$ac_ext
30634LIBS=$ac_check_lib_save_LIBS
30635fi
30636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30637$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30638if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30639 passed=`expr $passed + 1`
30640else
30641 failed=`expr $failed + 1`
30642fi
30643
30644 fi
30645 if test "1${var}" = '14' ; then
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30647$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30648if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30649 $as_echo_n "(cached) " >&6
30650else
30651 ac_check_lib_save_LIBS=$LIBS
30652LIBS="-lpng14 $LIBS"
30653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30654/* end confdefs.h. */
30655
30656/* Override any GCC internal prototype to avoid an error.
30657 Use char because int might match the return type of a GCC
30658 builtin and then its argument prototype would still apply. */
30659#ifdef __cplusplus
30660extern "C"
30661#endif
30662char png_get_io_ptr ();
30663int
30664main ()
30665{
30666return png_get_io_ptr ();
30667 ;
30668 return 0;
30669}
30670_ACEOF
30671if ac_fn_c_try_link "$LINENO"; then :
30672 ac_cv_lib_png14_png_get_io_ptr=yes
30673else
30674 ac_cv_lib_png14_png_get_io_ptr=no
30675fi
30676rm -f core conftest.err conftest.$ac_objext \
30677 conftest$ac_exeext conftest.$ac_ext
30678LIBS=$ac_check_lib_save_LIBS
30679fi
30680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30681$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30682if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30683 passed=`expr $passed + 1`
30684else
30685 failed=`expr $failed + 1`
30686fi
30687
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30689$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30690if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30691 $as_echo_n "(cached) " >&6
30692else
30693 ac_check_lib_save_LIBS=$LIBS
30694LIBS="-lpng14 $LIBS"
30695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30696/* end confdefs.h. */
30697
30698/* Override any GCC internal prototype to avoid an error.
30699 Use char because int might match the return type of a GCC
30700 builtin and then its argument prototype would still apply. */
30701#ifdef __cplusplus
30702extern "C"
30703#endif
30704char png_get_io_state ();
30705int
30706main ()
30707{
30708return png_get_io_state ();
30709 ;
30710 return 0;
30711}
30712_ACEOF
30713if ac_fn_c_try_link "$LINENO"; then :
30714 ac_cv_lib_png14_png_get_io_state=yes
30715else
30716 ac_cv_lib_png14_png_get_io_state=no
30717fi
30718rm -f core conftest.err conftest.$ac_objext \
30719 conftest$ac_exeext conftest.$ac_ext
30720LIBS=$ac_check_lib_save_LIBS
30721fi
30722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30723$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30724if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30725 passed=`expr $passed + 1`
30726else
30727 failed=`expr $failed + 1`
30728fi
30729
30730 fi
30731 if test "1${var}" = '12' ; then
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30733$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30734if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30735 $as_echo_n "(cached) " >&6
30736else
30737 ac_check_lib_save_LIBS=$LIBS
30738LIBS="-lpng12 $LIBS"
30739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30740/* end confdefs.h. */
30741
30742/* Override any GCC internal prototype to avoid an error.
30743 Use char because int might match the return type of a GCC
30744 builtin and then its argument prototype would still apply. */
30745#ifdef __cplusplus
30746extern "C"
30747#endif
30748char png_get_io_ptr ();
30749int
30750main ()
30751{
30752return png_get_io_ptr ();
30753 ;
30754 return 0;
30755}
30756_ACEOF
30757if ac_fn_c_try_link "$LINENO"; then :
30758 ac_cv_lib_png12_png_get_io_ptr=yes
30759else
30760 ac_cv_lib_png12_png_get_io_ptr=no
30761fi
30762rm -f core conftest.err conftest.$ac_objext \
30763 conftest$ac_exeext conftest.$ac_ext
30764LIBS=$ac_check_lib_save_LIBS
30765fi
30766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30767$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30768if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30769 passed=`expr $passed + 1`
30770else
30771 failed=`expr $failed + 1`
30772fi
30773
30774 fi
30775 if test "1${var}" = '1' ; then
30776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30777$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30778if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30779 $as_echo_n "(cached) " >&6
30780else
30781 ac_check_lib_save_LIBS=$LIBS
30782LIBS="-lpng $LIBS"
30783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30784/* end confdefs.h. */
30785
30786/* Override any GCC internal prototype to avoid an error.
30787 Use char because int might match the return type of a GCC
30788 builtin and then its argument prototype would still apply. */
30789#ifdef __cplusplus
30790extern "C"
30791#endif
30792char png_get_io_ptr ();
30793int
30794main ()
30795{
30796return png_get_io_ptr ();
30797 ;
30798 return 0;
30799}
30800_ACEOF
30801if ac_fn_c_try_link "$LINENO"; then :
30802 ac_cv_lib_png_png_get_io_ptr=yes
30803else
30804 ac_cv_lib_png_png_get_io_ptr=no
30805fi
30806rm -f core conftest.err conftest.$ac_objext \
30807 conftest$ac_exeext conftest.$ac_ext
30808LIBS=$ac_check_lib_save_LIBS
30809fi
30810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30811$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30812if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30813 passed=`expr $passed + 1`
30814else
30815 failed=`expr $failed + 1`
30816fi
30817
30818 fi
30819 if test $passed -gt 0 -a $failed -le 0 ; then
30820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30821$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30822 if test $passed -gt 0 ; then
30823 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030824 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30825$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030826 have_png='no (failed tests)'
30827 else
30828 PNG_LIBS="-l${pnglib}"
30829 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030830
cristy8b350f62009-11-15 23:12:43 +000030831$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030832
cristy09b53e12011-10-14 12:47:22 +000030833 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30834$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030835 have_png='yes'
30836 fi
30837 fi
30838 fi
30839 fi
30840 fi
30841 done
30842 fi
cristy3ed852e2009-09-05 21:47:34 +000030843fi
cristy64877302011-08-23 19:10:31 +000030844
cristy73bd4a52010-10-05 11:24:23 +000030845 if test "$have_png" = 'yes'; then
30846 PNG_DELEGATE_TRUE=
30847 PNG_DELEGATE_FALSE='#'
30848else
30849 PNG_DELEGATE_TRUE='#'
30850 PNG_DELEGATE_FALSE=
30851fi
30852
cristy3ed852e2009-09-05 21:47:34 +000030853
cristy50d3f5c2011-09-10 20:09:06 +000030854
cristy3ed852e2009-09-05 21:47:34 +000030855
30856
30857#
30858# Check for RSVG delegate library.
30859#
30860
30861# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030862if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030863 withval=$with_rsvg; with_rsvg=$withval
30864else
30865 with_rsvg=$have_x
30866fi
30867
30868
30869if test "$with_rsvg" != 'yes'; then
30870 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30871fi
30872
30873have_rsvg='no'
30874have_cairo='no'
30875RSVG_CFLAGS=""
30876RSVG_LIBS=""
30877RSVG_PKG=""
30878if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030879 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30880$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030881
30882pkg_failed=no
30883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30884$as_echo_n "checking for RSVG... " >&6; }
30885
30886if test -n "$RSVG_CFLAGS"; then
30887 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30888 elif test -n "$PKG_CONFIG"; then
30889 if test -n "$PKG_CONFIG" && \
30890 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30891 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30892 ac_status=$?
30893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30894 test $ac_status = 0; }; then
30895 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30896else
30897 pkg_failed=yes
30898fi
30899 else
30900 pkg_failed=untried
30901fi
30902if test -n "$RSVG_LIBS"; then
30903 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30904 elif test -n "$PKG_CONFIG"; then
30905 if test -n "$PKG_CONFIG" && \
30906 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30907 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30908 ac_status=$?
30909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30910 test $ac_status = 0; }; then
30911 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30912else
30913 pkg_failed=yes
30914fi
30915 else
30916 pkg_failed=untried
30917fi
30918
30919
30920
30921if test $pkg_failed = yes; then
30922
30923if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30924 _pkg_short_errors_supported=yes
30925else
30926 _pkg_short_errors_supported=no
30927fi
30928 if test $_pkg_short_errors_supported = yes; then
30929 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30930 else
30931 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30932 fi
30933 # Put the nasty error message in config.log where it belongs
30934 echo "$RSVG_PKG_ERRORS" >&5
30935
30936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30937$as_echo "no" >&6; }
30938 have_rsvg=no
30939elif test $pkg_failed = untried; then
30940 have_rsvg=no
30941else
30942 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30943 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30945$as_echo "yes" >&6; }
30946 have_rsvg=yes
30947fi
cristy09b53e12011-10-14 12:47:22 +000030948 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30949$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030950
30951pkg_failed=no
30952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30953$as_echo_n "checking for CAIRO_SVG... " >&6; }
30954
30955if test -n "$CAIRO_SVG_CFLAGS"; then
30956 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30957 elif test -n "$PKG_CONFIG"; then
30958 if test -n "$PKG_CONFIG" && \
30959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30960 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30961 ac_status=$?
30962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30963 test $ac_status = 0; }; then
30964 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30965else
30966 pkg_failed=yes
30967fi
30968 else
30969 pkg_failed=untried
30970fi
30971if test -n "$CAIRO_SVG_LIBS"; then
30972 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30973 elif test -n "$PKG_CONFIG"; then
30974 if test -n "$PKG_CONFIG" && \
30975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30976 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30977 ac_status=$?
30978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30979 test $ac_status = 0; }; then
30980 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30981else
30982 pkg_failed=yes
30983fi
30984 else
30985 pkg_failed=untried
30986fi
30987
30988
30989
30990if test $pkg_failed = yes; then
30991
30992if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30993 _pkg_short_errors_supported=yes
30994else
30995 _pkg_short_errors_supported=no
30996fi
30997 if test $_pkg_short_errors_supported = yes; then
30998 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30999 else
31000 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31001 fi
31002 # Put the nasty error message in config.log where it belongs
31003 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31004
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31006$as_echo "no" >&6; }
31007 have_cairo=no
31008elif test $pkg_failed = untried; then
31009 have_cairo=no
31010else
31011 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31012 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31014$as_echo "yes" >&6; }
31015 have_cairo=yes
31016fi
cristy09b53e12011-10-14 12:47:22 +000031017 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31018$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031019fi
31020
31021if test "$have_rsvg" = 'yes'; then
31022
cristy8b350f62009-11-15 23:12:43 +000031023$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031024
31025 if test "$with_modules" = 'no'; then
31026 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31027 fi
31028fi
31029
31030if test "$have_cairo" = 'yes'; then
31031
cristy8b350f62009-11-15 23:12:43 +000031032$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031033
31034 if test "$with_modules" = 'no'; then
31035 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31036 fi
31037fi
31038
cristy73bd4a52010-10-05 11:24:23 +000031039 if test "$have_rsvg" = 'yes'; then
31040 RSVG_DELEGATE_TRUE=
31041 RSVG_DELEGATE_FALSE='#'
31042else
31043 RSVG_DELEGATE_TRUE='#'
31044 RSVG_DELEGATE_FALSE=
31045fi
31046
31047 if test "$have_cairo" = 'yes'; then
31048 CAIRO_DELEGATE_TRUE=
31049 CAIRO_DELEGATE_FALSE='#'
31050else
31051 CAIRO_DELEGATE_TRUE='#'
31052 CAIRO_DELEGATE_FALSE=
31053fi
31054
cristy3ed852e2009-09-05 21:47:34 +000031055
31056
31057
31058
31059#
31060# Check for TIFF delegate library.
31061#
31062
31063# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031064if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031065 withval=$with_tiff; with_tiff=$withval
31066else
31067 with_tiff='yes'
31068fi
31069
31070
31071if test "$with_tiff" != 'yes'; then
31072 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31073fi
31074
31075have_tiff='no'
31076TIFF_LIBS=''
31077if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031078 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31079$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031081$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031082 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31083$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031084 failed=0
31085 passed=0
cristy8b350f62009-11-15 23:12:43 +000031086 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031087if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031088 passed=`expr $passed + 1`
31089else
31090 failed=`expr $failed + 1`
31091fi
31092
31093
cristy8b350f62009-11-15 23:12:43 +000031094 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031095if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031096 passed=`expr $passed + 1`
31097else
31098 failed=`expr $failed + 1`
31099fi
31100
31101
cristy8b350f62009-11-15 23:12:43 +000031102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031103$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031104if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031105 $as_echo_n "(cached) " >&6
31106else
31107 ac_check_lib_save_LIBS=$LIBS
31108LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031110/* end confdefs.h. */
31111
31112/* Override any GCC internal prototype to avoid an error.
31113 Use char because int might match the return type of a GCC
31114 builtin and then its argument prototype would still apply. */
31115#ifdef __cplusplus
31116extern "C"
31117#endif
31118char TIFFOpen ();
31119int
31120main ()
31121{
31122return TIFFOpen ();
31123 ;
31124 return 0;
31125}
31126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031127if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031128 ac_cv_lib_tiff_TIFFOpen=yes
31129else
cristy8b350f62009-11-15 23:12:43 +000031130 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031131fi
cristy8b350f62009-11-15 23:12:43 +000031132rm -f core conftest.err conftest.$ac_objext \
31133 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031134LIBS=$ac_check_lib_save_LIBS
31135fi
cristy8b350f62009-11-15 23:12:43 +000031136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031137$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031138if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031139 passed=`expr $passed + 1`
31140else
31141 failed=`expr $failed + 1`
31142fi
31143
cristy8b350f62009-11-15 23:12:43 +000031144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031145$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031146if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031147 $as_echo_n "(cached) " >&6
31148else
31149 ac_check_lib_save_LIBS=$LIBS
31150LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031152/* end confdefs.h. */
31153
31154/* Override any GCC internal prototype to avoid an error.
31155 Use char because int might match the return type of a GCC
31156 builtin and then its argument prototype would still apply. */
31157#ifdef __cplusplus
31158extern "C"
31159#endif
31160char TIFFClientOpen ();
31161int
31162main ()
31163{
31164return TIFFClientOpen ();
31165 ;
31166 return 0;
31167}
31168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031169if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031170 ac_cv_lib_tiff_TIFFClientOpen=yes
31171else
cristy8b350f62009-11-15 23:12:43 +000031172 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031173fi
cristy8b350f62009-11-15 23:12:43 +000031174rm -f core conftest.err conftest.$ac_objext \
31175 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031176LIBS=$ac_check_lib_save_LIBS
31177fi
cristy8b350f62009-11-15 23:12:43 +000031178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031179$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031180if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031181 passed=`expr $passed + 1`
31182else
31183 failed=`expr $failed + 1`
31184fi
31185
cristyb97f1002010-07-26 14:02:57 +000031186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
31187$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031188if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000031189 $as_echo_n "(cached) " >&6
31190else
31191 ac_check_lib_save_LIBS=$LIBS
31192LIBS="-ltiff $LIBS"
31193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31194/* end confdefs.h. */
31195
31196/* Override any GCC internal prototype to avoid an error.
31197 Use char because int might match the return type of a GCC
31198 builtin and then its argument prototype would still apply. */
31199#ifdef __cplusplus
31200extern "C"
31201#endif
31202char TIFFIsBigEndian ();
31203int
31204main ()
31205{
31206return TIFFIsBigEndian ();
31207 ;
31208 return 0;
31209}
31210_ACEOF
31211if ac_fn_c_try_link "$LINENO"; then :
31212 ac_cv_lib_tiff_TIFFIsBigEndian=yes
31213else
31214 ac_cv_lib_tiff_TIFFIsBigEndian=no
31215fi
31216rm -f core conftest.err conftest.$ac_objext \
31217 conftest$ac_exeext conftest.$ac_ext
31218LIBS=$ac_check_lib_save_LIBS
31219fi
31220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
31221$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000031222if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000031223 passed=`expr $passed + 1`
31224else
31225 failed=`expr $failed + 1`
31226fi
31227
cristy8b350f62009-11-15 23:12:43 +000031228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031229$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031230if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031231 $as_echo_n "(cached) " >&6
31232else
31233 ac_check_lib_save_LIBS=$LIBS
31234LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031236/* end confdefs.h. */
31237
31238/* Override any GCC internal prototype to avoid an error.
31239 Use char because int might match the return type of a GCC
31240 builtin and then its argument prototype would still apply. */
31241#ifdef __cplusplus
31242extern "C"
31243#endif
31244char TIFFIsByteSwapped ();
31245int
31246main ()
31247{
31248return TIFFIsByteSwapped ();
31249 ;
31250 return 0;
31251}
31252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031253if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031254 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31255else
cristy8b350f62009-11-15 23:12:43 +000031256 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031257fi
cristy8b350f62009-11-15 23:12:43 +000031258rm -f core conftest.err conftest.$ac_objext \
31259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031260LIBS=$ac_check_lib_save_LIBS
31261fi
cristy8b350f62009-11-15 23:12:43 +000031262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031263$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031264if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031265 passed=`expr $passed + 1`
31266else
31267 failed=`expr $failed + 1`
31268fi
31269
cristy8b350f62009-11-15 23:12:43 +000031270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031271$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031272if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031273 $as_echo_n "(cached) " >&6
31274else
31275 ac_check_lib_save_LIBS=$LIBS
31276LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031278/* end confdefs.h. */
31279
31280/* Override any GCC internal prototype to avoid an error.
31281 Use char because int might match the return type of a GCC
31282 builtin and then its argument prototype would still apply. */
31283#ifdef __cplusplus
31284extern "C"
31285#endif
31286char TIFFReadRGBATile ();
31287int
31288main ()
31289{
31290return TIFFReadRGBATile ();
31291 ;
31292 return 0;
31293}
31294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031296 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31297else
cristy8b350f62009-11-15 23:12:43 +000031298 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031299fi
cristy8b350f62009-11-15 23:12:43 +000031300rm -f core conftest.err conftest.$ac_objext \
31301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031302LIBS=$ac_check_lib_save_LIBS
31303fi
cristy8b350f62009-11-15 23:12:43 +000031304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031305$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031306if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031307 passed=`expr $passed + 1`
31308else
31309 failed=`expr $failed + 1`
31310fi
31311
cristy8b350f62009-11-15 23:12:43 +000031312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031313$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031314if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031315 $as_echo_n "(cached) " >&6
31316else
31317 ac_check_lib_save_LIBS=$LIBS
31318LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031320/* end confdefs.h. */
31321
31322/* Override any GCC internal prototype to avoid an error.
31323 Use char because int might match the return type of a GCC
31324 builtin and then its argument prototype would still apply. */
31325#ifdef __cplusplus
31326extern "C"
31327#endif
31328char TIFFReadRGBAStrip ();
31329int
31330main ()
31331{
31332return TIFFReadRGBAStrip ();
31333 ;
31334 return 0;
31335}
31336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031338 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31339else
cristy8b350f62009-11-15 23:12:43 +000031340 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031341fi
cristy8b350f62009-11-15 23:12:43 +000031342rm -f core conftest.err conftest.$ac_objext \
31343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031344LIBS=$ac_check_lib_save_LIBS
31345fi
cristy8b350f62009-11-15 23:12:43 +000031346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031348if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031349 passed=`expr $passed + 1`
31350else
31351 failed=`expr $failed + 1`
31352fi
31353
cristy8b350f62009-11-15 23:12:43 +000031354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031355$as_echo_n "checking if TIFF package is complete... " >&6; }
31356 if test $passed -gt 0; then
31357 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031358 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31359$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031360 have_tiff='no (failed tests)'
31361 else
31362 TIFF_LIBS='-ltiff'
31363 LIBS="$TIFF_LIBS $LIBS"
31364
cristy8b350f62009-11-15 23:12:43 +000031365$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031366
cristy09b53e12011-10-14 12:47:22 +000031367 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31368$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031369 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031370 for ac_header in tiffconf.h
31371do :
31372 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031373if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031374 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031375#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031376_ACEOF
31377
31378fi
31379
31380done
31381
cristy8b350f62009-11-15 23:12:43 +000031382 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000031383 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31384 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031385do :
31386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31387ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031388if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031389 cat >>confdefs.h <<_ACEOF
31390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31391_ACEOF
31392
31393fi
31394done
31395
31396 fi
31397 else
cristy09b53e12011-10-14 12:47:22 +000031398 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31399$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031400 fi
31401fi
cristy73bd4a52010-10-05 11:24:23 +000031402 if test "$have_tiff" = 'yes'; then
31403 TIFF_DELEGATE_TRUE=
31404 TIFF_DELEGATE_FALSE='#'
31405else
31406 TIFF_DELEGATE_TRUE='#'
31407 TIFF_DELEGATE_FALSE=
31408fi
31409
cristy3ed852e2009-09-05 21:47:34 +000031410
31411
31412
31413#
cristyb1860752011-03-14 00:27:46 +000031414# Check for WEBP delegate library.
31415#
31416
31417# Check whether --with-webp was given.
31418if test "${with_webp+set}" = set; then :
31419 withval=$with_webp; with_webp=$withval
31420else
31421 with_webp='yes'
31422fi
31423
31424
31425if test "$with_webp" != 'yes'; then
31426 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31427fi
31428
31429have_webp='no'
31430WEBP_LIBS=''
31431if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031432 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31433$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31435$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031436 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31437$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031438 failed=0
31439 passed=0
31440 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31441if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31442 passed=`expr $passed + 1`
31443else
31444 failed=`expr $failed + 1`
31445fi
31446
31447
31448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31449$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31450if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31451 $as_echo_n "(cached) " >&6
31452else
31453 ac_check_lib_save_LIBS=$LIBS
31454LIBS="-lwebp $LIBS"
31455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31456/* end confdefs.h. */
31457
31458/* Override any GCC internal prototype to avoid an error.
31459 Use char because int might match the return type of a GCC
31460 builtin and then its argument prototype would still apply. */
31461#ifdef __cplusplus
31462extern "C"
31463#endif
31464char WebPDecodeRGB ();
31465int
31466main ()
31467{
31468return WebPDecodeRGB ();
31469 ;
31470 return 0;
31471}
31472_ACEOF
31473if ac_fn_c_try_link "$LINENO"; then :
31474 ac_cv_lib_webp_WebPDecodeRGB=yes
31475else
31476 ac_cv_lib_webp_WebPDecodeRGB=no
31477fi
31478rm -f core conftest.err conftest.$ac_objext \
31479 conftest$ac_exeext conftest.$ac_ext
31480LIBS=$ac_check_lib_save_LIBS
31481fi
31482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31483$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31484if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31485 passed=`expr $passed + 1`
31486else
31487 failed=`expr $failed + 1`
31488fi
31489
31490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31491$as_echo_n "checking if WEBP package is complete... " >&6; }
31492 if test $passed -gt 0; then
31493 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031494 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31495$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031496 have_webp='no (failed tests)'
31497 else
31498 WEBP_LIBS='-lwebp'
31499 LIBS="$WEBP_LIBS $LIBS"
31500
31501$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31502
cristy09b53e12011-10-14 12:47:22 +000031503 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31504$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031505 have_webp='yes'
31506 fi
31507 else
cristy09b53e12011-10-14 12:47:22 +000031508 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31509$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031510 fi
31511fi
31512 if test "$have_webp" = 'yes'; then
31513 WEBP_DELEGATE_TRUE=
31514 WEBP_DELEGATE_FALSE='#'
31515else
31516 WEBP_DELEGATE_TRUE='#'
31517 WEBP_DELEGATE_FALSE=
31518fi
31519
31520
31521
31522
31523#
cristy3ed852e2009-09-05 21:47:34 +000031524# Set Windows font directory.
31525#
31526
31527# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031528if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031529 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31530else
31531 with_windows_font_dir=''
31532fi
31533
31534if test "$with_windows_font_dir" != '' ; then
31535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31536fi
31537
31538
31539#
31540# Check for WMF delegate library.
31541#
31542
31543# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031544if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031545 withval=$with_wmf; with_wmf=$withval
31546else
cristy8d63d1d2010-01-06 20:38:37 +000031547 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031548fi
31549
31550
31551if test "$with_wmf" != 'yes'; then
31552 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31553fi
31554
31555have_wmf='no'
31556WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031557if test "$with_wmf" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031558 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31559$as_echo "$as_me: -------------------------------------------------------------" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031561$as_echo_n "checking for WMF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031562 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31563$as_echo "$as_me: " >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031564 failed=0
31565 passed=0
31566 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31567if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31568 passed=`expr $passed + 1`
31569else
31570 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031571fi
31572
31573
glennrp33e524b2011-08-24 17:41:57 +000031574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31575$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31576if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031577 $as_echo_n "(cached) " >&6
31578else
31579 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031580LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031582/* end confdefs.h. */
31583
31584/* Override any GCC internal prototype to avoid an error.
31585 Use char because int might match the return type of a GCC
31586 builtin and then its argument prototype would still apply. */
31587#ifdef __cplusplus
31588extern "C"
31589#endif
glennrp33e524b2011-08-24 17:41:57 +000031590char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031591int
31592main ()
31593{
glennrp33e524b2011-08-24 17:41:57 +000031594return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031595 ;
31596 return 0;
31597}
31598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031599if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031600 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031601else
glennrp33e524b2011-08-24 17:41:57 +000031602 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031603fi
cristy8b350f62009-11-15 23:12:43 +000031604rm -f core conftest.err conftest.$ac_objext \
31605 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031606LIBS=$ac_check_lib_save_LIBS
31607fi
glennrp33e524b2011-08-24 17:41:57 +000031608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31609$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31610if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31611 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031612else
glennrp33e524b2011-08-24 17:41:57 +000031613 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031614fi
31615
glennrp33e524b2011-08-24 17:41:57 +000031616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31617$as_echo_n "checking if WMF package is complete... " >&6; }
31618 if test $passed -gt 0; then
31619 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031620 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31621$as_echo "$as_me: no -- some components failed test" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031622 have_wmf='no (failed tests)'
31623 else
31624 WMF_LIBS='-lwmf -lwmflite'
31625 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031626
cristy8b350f62009-11-15 23:12:43 +000031627$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031628
cristy09b53e12011-10-14 12:47:22 +000031629 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31630$as_echo "$as_me: yes" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031631 have_wmf='yes'
31632 fi
31633 else
cristy09b53e12011-10-14 12:47:22 +000031634 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31635$as_echo "$as_me: no" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031636 fi
cristy3ed852e2009-09-05 21:47:34 +000031637fi
cristy73bd4a52010-10-05 11:24:23 +000031638 if test "$have_wmf" = 'yes'; then
31639 WMF_DELEGATE_TRUE=
31640 WMF_DELEGATE_FALSE='#'
31641else
31642 WMF_DELEGATE_TRUE='#'
31643 WMF_DELEGATE_FALSE=
31644fi
31645
cristy3ed852e2009-09-05 21:47:34 +000031646
31647
31648
cristy81beccd2011-10-03 18:17:24 +000031649
31650
cristy3ed852e2009-09-05 21:47:34 +000031651#
31652# Check for XML delegate library.
31653#
31654
31655# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031656if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031657 withval=$with_xml; with_xml=$withval
31658else
cristy81beccd2011-10-03 18:17:24 +000031659 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031660fi
31661
31662
cristy81beccd2011-10-03 18:17:24 +000031663if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031664 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31665fi
31666
cristy81beccd2011-10-03 18:17:24 +000031667have_xml='no'
31668XML_LIBS=''
31669if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031670 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31671$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31673$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031674 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31675$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031676 PERSIST_LDFLAGS=$LDFLAGS
31677 PERSIST_CPPFLAGS=$CPPFLAGS
31678 xml2_config=''
31679 # Extract the first word of "xml2-config", so it can be a program name with args.
31680set dummy xml2-config; ac_word=$2
31681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31682$as_echo_n "checking for $ac_word... " >&6; }
31683if ${ac_cv_path_xml2_config+:} false; then :
31684 $as_echo_n "(cached) " >&6
31685else
31686 case $xml2_config in
31687 [\\/]* | ?:[\\/]*)
31688 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31689 ;;
31690 *)
31691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31692for as_dir in $PATH
31693do
31694 IFS=$as_save_IFS
31695 test -z "$as_dir" && as_dir=.
31696 for ac_exec_ext in '' $ac_executable_extensions; do
31697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31698 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31700 break 2
31701 fi
31702done
31703 done
31704IFS=$as_save_IFS
31705
31706 ;;
31707esac
31708fi
31709xml2_config=$ac_cv_path_xml2_config
31710if test -n "$xml2_config"; then
31711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31712$as_echo "$xml2_config" >&6; }
31713else
31714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31715$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031716fi
31717
cristy81beccd2011-10-03 18:17:24 +000031718 if test -n "$xml2_config"; then
31719 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31720 # the shared library installed under /usr/lib, whereas the package
31721 # installs itself under $prefix/libxml and $prefix/lib.
31722 xml2_prefix=`xml2-config --prefix`
31723 if test -d "${xml2_prefix}/include/libxml2"; then
31724 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31725 fi
31726 if test "${xml2_prefix}" != '/usr'; then
31727 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31728 fi
31729 fi
31730 failed=0
31731 passed=0
31732 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31733if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31734 passed=`expr $passed + 1`
31735else
31736 failed=`expr $failed + 1`
31737fi
31738
31739
31740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31741$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31742if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31743 $as_echo_n "(cached) " >&6
31744else
31745 ac_check_lib_save_LIBS=$LIBS
31746LIBS="-lxml2 $LIBS"
31747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31748/* end confdefs.h. */
31749
31750/* Override any GCC internal prototype to avoid an error.
31751 Use char because int might match the return type of a GCC
31752 builtin and then its argument prototype would still apply. */
31753#ifdef __cplusplus
31754extern "C"
31755#endif
31756char xmlSAXVersion ();
31757int
31758main ()
31759{
31760return xmlSAXVersion ();
31761 ;
31762 return 0;
31763}
31764_ACEOF
31765if ac_fn_c_try_link "$LINENO"; then :
31766 ac_cv_lib_xml2_xmlSAXVersion=yes
31767else
31768 ac_cv_lib_xml2_xmlSAXVersion=no
31769fi
31770rm -f core conftest.err conftest.$ac_objext \
31771 conftest$ac_exeext conftest.$ac_ext
31772LIBS=$ac_check_lib_save_LIBS
31773fi
31774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31775$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31776if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31777 passed=`expr $passed + 1`
31778else
31779 failed=`expr $failed + 1`
31780fi
31781
31782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31783$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31784if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31785 $as_echo_n "(cached) " >&6
31786else
31787 ac_check_lib_save_LIBS=$LIBS
31788LIBS="-lxml2 $LIBS"
31789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31790/* end confdefs.h. */
31791
31792/* Override any GCC internal prototype to avoid an error.
31793 Use char because int might match the return type of a GCC
31794 builtin and then its argument prototype would still apply. */
31795#ifdef __cplusplus
31796extern "C"
31797#endif
31798char xmlParseChunk ();
31799int
31800main ()
31801{
31802return xmlParseChunk ();
31803 ;
31804 return 0;
31805}
31806_ACEOF
31807if ac_fn_c_try_link "$LINENO"; then :
31808 ac_cv_lib_xml2_xmlParseChunk=yes
31809else
31810 ac_cv_lib_xml2_xmlParseChunk=no
31811fi
31812rm -f core conftest.err conftest.$ac_objext \
31813 conftest$ac_exeext conftest.$ac_ext
31814LIBS=$ac_check_lib_save_LIBS
31815fi
31816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31817$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31818if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31819 passed=`expr $passed + 1`
31820else
31821 failed=`expr $failed + 1`
31822fi
31823
31824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31825$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31826if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31827 $as_echo_n "(cached) " >&6
31828else
31829 ac_check_lib_save_LIBS=$LIBS
31830LIBS="-lxml2 $LIBS"
31831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31832/* end confdefs.h. */
31833
31834/* Override any GCC internal prototype to avoid an error.
31835 Use char because int might match the return type of a GCC
31836 builtin and then its argument prototype would still apply. */
31837#ifdef __cplusplus
31838extern "C"
31839#endif
31840char xmlCreatePushParserCtxt ();
31841int
31842main ()
31843{
31844return xmlCreatePushParserCtxt ();
31845 ;
31846 return 0;
31847}
31848_ACEOF
31849if ac_fn_c_try_link "$LINENO"; then :
31850 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31851else
31852 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31853fi
31854rm -f core conftest.err conftest.$ac_objext \
31855 conftest$ac_exeext conftest.$ac_ext
31856LIBS=$ac_check_lib_save_LIBS
31857fi
31858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31859$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31860if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31861 passed=`expr $passed + 1`
31862else
31863 failed=`expr $failed + 1`
31864fi
31865
31866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31867$as_echo_n "checking if XML package is complete... " >&6; }
31868 if test $passed -gt 0; then
31869 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031870 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31871$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031872 have_xml='no (failed tests)'
31873 LDFLAGS="$PERSIST_LDFLAGS"
31874 CPPFLAGS="$PERSIST_CPPFLAGS"
31875 else
31876 XML_LIBS='-lxml2'
31877 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031878
cristy8b350f62009-11-15 23:12:43 +000031879$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031880
cristy09b53e12011-10-14 12:47:22 +000031881 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31882$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031883 have_xml='yes'
31884 fi
31885 else
cristy09b53e12011-10-14 12:47:22 +000031886 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31887$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031888 fi
31889fi
cristy73bd4a52010-10-05 11:24:23 +000031890 if test "$have_xml" = 'yes'; then
31891 XML_DELEGATE_TRUE=
31892 XML_DELEGATE_FALSE='#'
31893else
31894 XML_DELEGATE_TRUE='#'
31895 XML_DELEGATE_FALSE=
31896fi
31897
cristy3ed852e2009-09-05 21:47:34 +000031898
31899
31900
31901# Substitute compiler name to build/link PerlMagick
31902#
31903
31904
31905#
31906# Configure install Paths
31907#
cristy7def36a2011-10-28 19:04:41 +000031908
cristy2a11bef2011-10-28 18:33:11 +000031909# Path to ImageMagick header files
31910INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031911INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31912DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031913case "${build_os}" in
31914 mingw* )
31915 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31916 ;;
31917esac
31918
31919cat >>confdefs.h <<_ACEOF
31920#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31921_ACEOF
31922
31923
cristy3ed852e2009-09-05 21:47:34 +000031924
31925# Subdirectory under lib to place ImageMagick lib files
31926LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31927
31928cat >>confdefs.h <<_ACEOF
31929#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31930_ACEOF
31931
31932
31933# Path to ImageMagick bin directory
31934EXECUTABLE_PATH="${BIN_DIR}"
31935DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31936case "${build_os}" in
31937 mingw* )
31938 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31939 ;;
31940esac
31941
31942cat >>confdefs.h <<_ACEOF
31943#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31944_ACEOF
31945
31946
31947
31948# Path to ImageMagick lib
31949LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31950DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31951case "${build_os}" in
31952 mingw* )
31953 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31954 ;;
31955esac
31956
31957cat >>confdefs.h <<_ACEOF
31958#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31959_ACEOF
31960
31961
31962
cristy3ed852e2009-09-05 21:47:34 +000031963#
31964# Subdirectory under lib to place ImageMagick coder module files
31965CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31966
31967cat >>confdefs.h <<_ACEOF
31968#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31969_ACEOF
31970
31971CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31972DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31973case "${build_os}" in
31974 mingw* )
31975 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31976 ;;
31977esac
31978
31979cat >>confdefs.h <<_ACEOF
31980#define CODER_PATH "$DEFINE_CODER_PATH"
31981_ACEOF
31982
31983
31984
31985#
31986# Subdirectory under lib to place ImageMagick filter module files
31987FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31988
31989cat >>confdefs.h <<_ACEOF
31990#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31991_ACEOF
31992
31993FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31994DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31995case "${build_os}" in
31996 mingw* )
31997 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31998 ;;
31999esac
32000
32001cat >>confdefs.h <<_ACEOF
32002#define FILTER_PATH "$DEFINE_FILTER_PATH"
32003_ACEOF
32004
32005
32006
32007#
32008# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000032009DOCUMENTATION_RELATIVE_PATH=""
32010DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32011DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032012case "${build_os}" in
32013 mingw* )
32014 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32015 ;;
32016esac
32017
32018cat >>confdefs.h <<_ACEOF
32019#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32020_ACEOF
32021
32022
32023
cristy2a11bef2011-10-28 18:33:11 +000032024# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032025CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032026
32027cat >>confdefs.h <<_ACEOF
32028#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32029_ACEOF
32030
cristy7def36a2011-10-28 19:04:41 +000032031CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032032DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32033case "${build_os}" in
32034 mingw* )
32035 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32036 ;;
32037esac
32038
32039cat >>confdefs.h <<_ACEOF
32040#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32041_ACEOF
32042
32043
32044
cristy2a11bef2011-10-28 18:33:11 +000032045# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032046SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032047
32048cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032049#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032050_ACEOF
32051
cristy670aa3c2011-11-03 00:54:00 +000032052SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032053DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032054case "${build_os}" in
32055 mingw* )
cristy4f820712011-04-01 12:35:43 +000032056 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032057 ;;
32058esac
32059
32060cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032061#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032062_ACEOF
32063
32064
32065
cristy408ebcd2011-11-14 01:36:57 +000032066# Subdirectory to place architecture-dependent configuration files
32067SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032068
32069cat >>confdefs.h <<_ACEOF
32070#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32071_ACEOF
32072
cristy408ebcd2011-11-14 01:36:57 +000032073SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32074DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032075case "${build_os}" in
32076 mingw* )
32077 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32078 ;;
32079esac
32080
32081cat >>confdefs.h <<_ACEOF
32082#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32083_ACEOF
32084
32085
32086
cristy3ed852e2009-09-05 21:47:34 +000032087#
32088# program_transform_name is formed for use in a Makefile, so create a
32089# modified version for use in a shell script.
32090configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32091
32092# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032093{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32094$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032096$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032097{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32098$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032099AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032100BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032101BZIPDelegateDefault='bzip2'
32102BrowseDelegateDefault='xdg-open'
32103CGMDecodeDelegateDefault='ralcgm'
32104CatDelegateDefault='cat'
32105DNGDecodeDelegateDefault='ufraw-batch'
32106GVCDecodeDelegateDefault='dot'
32107DVIDecodeDelegateDefault='dvips'
32108EchoDelegateDefault='echo'
32109EditorDelegateDefault='xterm'
32110FIGDecodeDelegateDefault='fig2dev'
32111ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32112DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32113MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32114GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032115HPGLDecodeDelegateDefault='hp2xx'
32116HTMLDecodeDelegateDefault='html2ps'
32117ILBMDecodeDelegateDefault='ilbmtoppm'
32118ILBMEncodeDelegateDefault='ppmtoilbm'
32119LPDelegateDefault='lp'
32120LPRDelegateDefault='lpr'
32121LZWDecodeDelegateDefault='uncompress'
32122LZWEncodeDelegateDefault='compress'
32123LaunchDelegateDefault='gimp'
32124MANDelegateDefault='groff'
32125MPEGDecodeDelegateDefault='ffmpeg'
32126MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032127MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032128MVDelegateDefault='mv'
32129PCLDelegateDefault='pcl6'
32130PGPDecodeDelegateDefault='pgpv'
32131POVDelegateDefault='povray'
32132if test "$native_win32_build" = 'yes'; then
32133 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032134elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032135 PSDelegateDefault='gsc'
32136else
32137 PSDelegateDefault='gs'
32138fi
32139RLEEncodeDelegateDefault='rawtorle'
32140RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032141RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032142SCANDecodeDelegateDefault='scanimage'
32143TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032144UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032145WMFDecodeDelegateDefault='wmf2eps'
32146WWWDecodeDelegateDefault='curl'
32147XPSDelegateDefault='gxps'
32148ZipDelegateDefault='gzip'
32149
32150# Search for delegates
32151# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32152set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032154$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032155if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032156 $as_echo_n "(cached) " >&6
32157else
32158 case $AutotraceDecodeDelegate in
32159 [\\/]* | ?:[\\/]*)
32160 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32161 ;;
32162 *)
32163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32164for as_dir in $PATH
32165do
32166 IFS=$as_save_IFS
32167 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032168 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32170 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032172 break 2
32173 fi
32174done
cristy8b350f62009-11-15 23:12:43 +000032175 done
cristy3ed852e2009-09-05 21:47:34 +000032176IFS=$as_save_IFS
32177
32178 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32179 ;;
32180esac
32181fi
32182AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32183if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032185$as_echo "$AutotraceDecodeDelegate" >&6; }
32186else
cristy8b350f62009-11-15 23:12:43 +000032187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032188$as_echo "no" >&6; }
32189fi
32190
32191
cristy3ed852e2009-09-05 21:47:34 +000032192# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32193set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032196if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032197 $as_echo_n "(cached) " >&6
32198else
32199 case $BlenderDecodeDelegate in
32200 [\\/]* | ?:[\\/]*)
32201 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32202 ;;
32203 *)
32204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32205for as_dir in $PATH
32206do
32207 IFS=$as_save_IFS
32208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32211 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032213 break 2
32214 fi
32215done
cristy8b350f62009-11-15 23:12:43 +000032216 done
cristy3ed852e2009-09-05 21:47:34 +000032217IFS=$as_save_IFS
32218
32219 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32220 ;;
32221esac
32222fi
32223BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32224if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032226$as_echo "$BlenderDecodeDelegate" >&6; }
32227else
cristy8b350f62009-11-15 23:12:43 +000032228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032229$as_echo "no" >&6; }
32230fi
32231
32232
32233# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32234set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032236$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032237if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032238 $as_echo_n "(cached) " >&6
32239else
32240 case $BZIPDelegate in
32241 [\\/]* | ?:[\\/]*)
32242 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32243 ;;
32244 *)
32245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32246for as_dir in $PATH
32247do
32248 IFS=$as_save_IFS
32249 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032250 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32252 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032254 break 2
32255 fi
32256done
cristy8b350f62009-11-15 23:12:43 +000032257 done
cristy3ed852e2009-09-05 21:47:34 +000032258IFS=$as_save_IFS
32259
32260 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32261 ;;
32262esac
32263fi
32264BZIPDelegate=$ac_cv_path_BZIPDelegate
32265if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032267$as_echo "$BZIPDelegate" >&6; }
32268else
cristy8b350f62009-11-15 23:12:43 +000032269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032270$as_echo "no" >&6; }
32271fi
32272
32273
32274# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32275set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032278if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032279 $as_echo_n "(cached) " >&6
32280else
32281 case $BrowseDelegate in
32282 [\\/]* | ?:[\\/]*)
32283 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32284 ;;
32285 *)
32286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32287for as_dir in $PATH
32288do
32289 IFS=$as_save_IFS
32290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32293 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032295 break 2
32296 fi
32297done
cristy8b350f62009-11-15 23:12:43 +000032298 done
cristy3ed852e2009-09-05 21:47:34 +000032299IFS=$as_save_IFS
32300
32301 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32302 ;;
32303esac
32304fi
32305BrowseDelegate=$ac_cv_path_BrowseDelegate
32306if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032308$as_echo "$BrowseDelegate" >&6; }
32309else
cristy8b350f62009-11-15 23:12:43 +000032310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032311$as_echo "no" >&6; }
32312fi
32313
32314
32315# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32316set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032319if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032320 $as_echo_n "(cached) " >&6
32321else
32322 case $CGMDecodeDelegate in
32323 [\\/]* | ?:[\\/]*)
32324 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32325 ;;
32326 *)
32327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32328for as_dir in $PATH
32329do
32330 IFS=$as_save_IFS
32331 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32334 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032336 break 2
32337 fi
32338done
cristy8b350f62009-11-15 23:12:43 +000032339 done
cristy3ed852e2009-09-05 21:47:34 +000032340IFS=$as_save_IFS
32341
32342 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32343 ;;
32344esac
32345fi
32346CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32347if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032349$as_echo "$CGMDecodeDelegate" >&6; }
32350else
cristy8b350f62009-11-15 23:12:43 +000032351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032352$as_echo "no" >&6; }
32353fi
32354
32355
32356# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32357set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032360if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032361 $as_echo_n "(cached) " >&6
32362else
32363 case $CatDelegate in
32364 [\\/]* | ?:[\\/]*)
32365 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32366 ;;
32367 *)
32368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32369for as_dir in $PATH
32370do
32371 IFS=$as_save_IFS
32372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32375 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032377 break 2
32378 fi
32379done
cristy8b350f62009-11-15 23:12:43 +000032380 done
cristy3ed852e2009-09-05 21:47:34 +000032381IFS=$as_save_IFS
32382
32383 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32384 ;;
32385esac
32386fi
32387CatDelegate=$ac_cv_path_CatDelegate
32388if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032390$as_echo "$CatDelegate" >&6; }
32391else
cristy8b350f62009-11-15 23:12:43 +000032392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032393$as_echo "no" >&6; }
32394fi
32395
32396
32397# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32398set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032400$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032401if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032402 $as_echo_n "(cached) " >&6
32403else
32404 case $DNGDecodeDelegate in
32405 [\\/]* | ?:[\\/]*)
32406 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32407 ;;
32408 *)
32409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32410for as_dir in $PATH
32411do
32412 IFS=$as_save_IFS
32413 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032414 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32416 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032418 break 2
32419 fi
32420done
cristy8b350f62009-11-15 23:12:43 +000032421 done
cristy3ed852e2009-09-05 21:47:34 +000032422IFS=$as_save_IFS
32423
32424 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32425 ;;
32426esac
32427fi
32428DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32429if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032431$as_echo "$DNGDecodeDelegate" >&6; }
32432else
cristy8b350f62009-11-15 23:12:43 +000032433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032434$as_echo "no" >&6; }
32435fi
32436
32437
32438# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32439set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032442if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032443 $as_echo_n "(cached) " >&6
32444else
32445 case $GVCDecodeDelegate in
32446 [\\/]* | ?:[\\/]*)
32447 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32448 ;;
32449 *)
32450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32451for as_dir in $PATH
32452do
32453 IFS=$as_save_IFS
32454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32457 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032459 break 2
32460 fi
32461done
cristy8b350f62009-11-15 23:12:43 +000032462 done
cristy3ed852e2009-09-05 21:47:34 +000032463IFS=$as_save_IFS
32464
32465 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32466 ;;
32467esac
32468fi
32469GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32470if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032472$as_echo "$GVCDecodeDelegate" >&6; }
32473else
cristy8b350f62009-11-15 23:12:43 +000032474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032475$as_echo "no" >&6; }
32476fi
32477
32478
32479# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32480set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032483if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032484 $as_echo_n "(cached) " >&6
32485else
32486 case $DVIDecodeDelegate in
32487 [\\/]* | ?:[\\/]*)
32488 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32489 ;;
32490 *)
32491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32492for as_dir in $PATH
32493do
32494 IFS=$as_save_IFS
32495 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032496 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32498 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032500 break 2
32501 fi
32502done
cristy8b350f62009-11-15 23:12:43 +000032503 done
cristy3ed852e2009-09-05 21:47:34 +000032504IFS=$as_save_IFS
32505
32506 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32507 ;;
32508esac
32509fi
32510DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32511if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032513$as_echo "$DVIDecodeDelegate" >&6; }
32514else
cristy8b350f62009-11-15 23:12:43 +000032515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032516$as_echo "no" >&6; }
32517fi
32518
32519
32520# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32521set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032524if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032525 $as_echo_n "(cached) " >&6
32526else
32527 case $EchoDelegate in
32528 [\\/]* | ?:[\\/]*)
32529 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32530 ;;
32531 *)
32532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32533for as_dir in $PATH
32534do
32535 IFS=$as_save_IFS
32536 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32539 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032541 break 2
32542 fi
32543done
cristy8b350f62009-11-15 23:12:43 +000032544 done
cristy3ed852e2009-09-05 21:47:34 +000032545IFS=$as_save_IFS
32546
32547 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32548 ;;
32549esac
32550fi
32551EchoDelegate=$ac_cv_path_EchoDelegate
32552if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032554$as_echo "$EchoDelegate" >&6; }
32555else
cristy8b350f62009-11-15 23:12:43 +000032556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032557$as_echo "no" >&6; }
32558fi
32559
32560
32561# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32562set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032565if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032566 $as_echo_n "(cached) " >&6
32567else
32568 case $EditorDelegate in
32569 [\\/]* | ?:[\\/]*)
32570 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32571 ;;
32572 *)
32573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32574for as_dir in $PATH
32575do
32576 IFS=$as_save_IFS
32577 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32580 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032582 break 2
32583 fi
32584done
cristy8b350f62009-11-15 23:12:43 +000032585 done
cristy3ed852e2009-09-05 21:47:34 +000032586IFS=$as_save_IFS
32587
32588 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32589 ;;
32590esac
32591fi
32592EditorDelegate=$ac_cv_path_EditorDelegate
32593if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032595$as_echo "$EditorDelegate" >&6; }
32596else
cristy8b350f62009-11-15 23:12:43 +000032597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032598$as_echo "no" >&6; }
32599fi
32600
32601
32602# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32603set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032605$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032606if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032607 $as_echo_n "(cached) " >&6
32608else
32609 case $FIGDecodeDelegate in
32610 [\\/]* | ?:[\\/]*)
32611 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32612 ;;
32613 *)
32614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32615for as_dir in $PATH
32616do
32617 IFS=$as_save_IFS
32618 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32621 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032623 break 2
32624 fi
32625done
cristy8b350f62009-11-15 23:12:43 +000032626 done
cristy3ed852e2009-09-05 21:47:34 +000032627IFS=$as_save_IFS
32628
32629 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32630 ;;
32631esac
32632fi
32633FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32634if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032636$as_echo "$FIGDecodeDelegate" >&6; }
32637else
cristy8b350f62009-11-15 23:12:43 +000032638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032639$as_echo "no" >&6; }
32640fi
32641
32642
32643# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32644set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032646$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032647if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032648 $as_echo_n "(cached) " >&6
32649else
32650 case $ConvertDelegate in
32651 [\\/]* | ?:[\\/]*)
32652 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32653 ;;
32654 *)
32655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32656for as_dir in $PATH
32657do
32658 IFS=$as_save_IFS
32659 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32662 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032664 break 2
32665 fi
32666done
cristy8b350f62009-11-15 23:12:43 +000032667 done
cristy3ed852e2009-09-05 21:47:34 +000032668IFS=$as_save_IFS
32669
32670 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32671 ;;
32672esac
32673fi
32674ConvertDelegate=$ac_cv_path_ConvertDelegate
32675if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032677$as_echo "$ConvertDelegate" >&6; }
32678else
cristy8b350f62009-11-15 23:12:43 +000032679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032680$as_echo "no" >&6; }
32681fi
32682
32683
32684# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32685set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032688if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032689 $as_echo_n "(cached) " >&6
32690else
32691 case $DisplayDelegate in
32692 [\\/]* | ?:[\\/]*)
32693 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32694 ;;
32695 *)
32696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32697for as_dir in $PATH
32698do
32699 IFS=$as_save_IFS
32700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32703 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032705 break 2
32706 fi
32707done
cristy8b350f62009-11-15 23:12:43 +000032708 done
cristy3ed852e2009-09-05 21:47:34 +000032709IFS=$as_save_IFS
32710
32711 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32712 ;;
32713esac
32714fi
32715DisplayDelegate=$ac_cv_path_DisplayDelegate
32716if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032718$as_echo "$DisplayDelegate" >&6; }
32719else
cristy8b350f62009-11-15 23:12:43 +000032720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032721$as_echo "no" >&6; }
32722fi
32723
32724
32725# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32726set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032729if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032730 $as_echo_n "(cached) " >&6
32731else
32732 case $MogrifyDelegate in
32733 [\\/]* | ?:[\\/]*)
32734 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32735 ;;
32736 *)
32737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32738for as_dir in $PATH
32739do
32740 IFS=$as_save_IFS
32741 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32744 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032746 break 2
32747 fi
32748done
cristy8b350f62009-11-15 23:12:43 +000032749 done
cristy3ed852e2009-09-05 21:47:34 +000032750IFS=$as_save_IFS
32751
32752 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32753 ;;
32754esac
32755fi
32756MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32757if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032759$as_echo "$MogrifyDelegate" >&6; }
32760else
cristy8b350f62009-11-15 23:12:43 +000032761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032762$as_echo "no" >&6; }
32763fi
32764
32765
32766# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32767set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032770if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032771 $as_echo_n "(cached) " >&6
32772else
32773 case $GnuplotDecodeDelegate in
32774 [\\/]* | ?:[\\/]*)
32775 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32776 ;;
32777 *)
32778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32779for as_dir in $PATH
32780do
32781 IFS=$as_save_IFS
32782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32785 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032787 break 2
32788 fi
32789done
cristy8b350f62009-11-15 23:12:43 +000032790 done
cristy3ed852e2009-09-05 21:47:34 +000032791IFS=$as_save_IFS
32792
32793 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32794 ;;
32795esac
32796fi
32797GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32798if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032800$as_echo "$GnuplotDecodeDelegate" >&6; }
32801else
cristy8b350f62009-11-15 23:12:43 +000032802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032803$as_echo "no" >&6; }
32804fi
32805
32806
cristy3ed852e2009-09-05 21:47:34 +000032807# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32808set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032811if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032812 $as_echo_n "(cached) " >&6
32813else
32814 case $HPGLDecodeDelegate in
32815 [\\/]* | ?:[\\/]*)
32816 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32817 ;;
32818 *)
32819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32820for as_dir in $PATH
32821do
32822 IFS=$as_save_IFS
32823 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032824 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32826 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032828 break 2
32829 fi
32830done
cristy8b350f62009-11-15 23:12:43 +000032831 done
cristy3ed852e2009-09-05 21:47:34 +000032832IFS=$as_save_IFS
32833
32834 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32835 ;;
32836esac
32837fi
32838HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32839if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032841$as_echo "$HPGLDecodeDelegate" >&6; }
32842else
cristy8b350f62009-11-15 23:12:43 +000032843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032844$as_echo "no" >&6; }
32845fi
32846
32847
32848# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32849set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032852if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032853 $as_echo_n "(cached) " >&6
32854else
32855 case $HTMLDecodeDelegate in
32856 [\\/]* | ?:[\\/]*)
32857 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32858 ;;
32859 *)
32860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32861for as_dir in $PATH
32862do
32863 IFS=$as_save_IFS
32864 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32867 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869 break 2
32870 fi
32871done
cristy8b350f62009-11-15 23:12:43 +000032872 done
cristy3ed852e2009-09-05 21:47:34 +000032873IFS=$as_save_IFS
32874
32875 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32876 ;;
32877esac
32878fi
32879HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32880if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032882$as_echo "$HTMLDecodeDelegate" >&6; }
32883else
cristy8b350f62009-11-15 23:12:43 +000032884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032885$as_echo "no" >&6; }
32886fi
32887
32888
32889# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32890set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032893if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032894 $as_echo_n "(cached) " >&6
32895else
32896 case $ILBMDecodeDelegate in
32897 [\\/]* | ?:[\\/]*)
32898 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32899 ;;
32900 *)
32901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32902for as_dir in $PATH
32903do
32904 IFS=$as_save_IFS
32905 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032906 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32908 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910 break 2
32911 fi
32912done
cristy8b350f62009-11-15 23:12:43 +000032913 done
cristy3ed852e2009-09-05 21:47:34 +000032914IFS=$as_save_IFS
32915
32916 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32917 ;;
32918esac
32919fi
32920ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32921if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo "$ILBMDecodeDelegate" >&6; }
32924else
cristy8b350f62009-11-15 23:12:43 +000032925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032926$as_echo "no" >&6; }
32927fi
32928
32929
32930# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32931set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032934if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032935 $as_echo_n "(cached) " >&6
32936else
32937 case $ILBMEncodeDelegate in
32938 [\\/]* | ?:[\\/]*)
32939 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32940 ;;
32941 *)
32942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32943for as_dir in $PATH
32944do
32945 IFS=$as_save_IFS
32946 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032947 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32949 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951 break 2
32952 fi
32953done
cristy8b350f62009-11-15 23:12:43 +000032954 done
cristy3ed852e2009-09-05 21:47:34 +000032955IFS=$as_save_IFS
32956
32957 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32958 ;;
32959esac
32960fi
32961ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32962if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032964$as_echo "$ILBMEncodeDelegate" >&6; }
32965else
cristy8b350f62009-11-15 23:12:43 +000032966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032967$as_echo "no" >&6; }
32968fi
32969
32970
32971# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32972set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032975if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032976 $as_echo_n "(cached) " >&6
32977else
32978 case $LPDelegate in
32979 [\\/]* | ?:[\\/]*)
32980 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32981 ;;
32982 *)
32983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32984for as_dir in $PATH
32985do
32986 IFS=$as_save_IFS
32987 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32990 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992 break 2
32993 fi
32994done
cristy8b350f62009-11-15 23:12:43 +000032995 done
cristy3ed852e2009-09-05 21:47:34 +000032996IFS=$as_save_IFS
32997
32998 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32999 ;;
33000esac
33001fi
33002LPDelegate=$ac_cv_path_LPDelegate
33003if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005$as_echo "$LPDelegate" >&6; }
33006else
cristy8b350f62009-11-15 23:12:43 +000033007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008$as_echo "no" >&6; }
33009fi
33010
33011
33012# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33013set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033015$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033016if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033017 $as_echo_n "(cached) " >&6
33018else
33019 case $LPRDelegate in
33020 [\\/]* | ?:[\\/]*)
33021 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33022 ;;
33023 *)
33024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33025for as_dir in $PATH
33026do
33027 IFS=$as_save_IFS
33028 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33031 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033 break 2
33034 fi
33035done
cristy8b350f62009-11-15 23:12:43 +000033036 done
cristy3ed852e2009-09-05 21:47:34 +000033037IFS=$as_save_IFS
33038
33039 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33040 ;;
33041esac
33042fi
33043LPRDelegate=$ac_cv_path_LPRDelegate
33044if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033046$as_echo "$LPRDelegate" >&6; }
33047else
cristy8b350f62009-11-15 23:12:43 +000033048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033049$as_echo "no" >&6; }
33050fi
33051
33052
33053# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33054set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033056$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033057if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033058 $as_echo_n "(cached) " >&6
33059else
33060 case $LZWDecodeDelegate in
33061 [\\/]* | ?:[\\/]*)
33062 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33063 ;;
33064 *)
33065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33066for as_dir in $PATH
33067do
33068 IFS=$as_save_IFS
33069 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033070 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33072 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074 break 2
33075 fi
33076done
cristy8b350f62009-11-15 23:12:43 +000033077 done
cristy3ed852e2009-09-05 21:47:34 +000033078IFS=$as_save_IFS
33079
33080 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33081 ;;
33082esac
33083fi
33084LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33085if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033087$as_echo "$LZWDecodeDelegate" >&6; }
33088else
cristy8b350f62009-11-15 23:12:43 +000033089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090$as_echo "no" >&6; }
33091fi
33092
33093
33094# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33095set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033097$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033098if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033099 $as_echo_n "(cached) " >&6
33100else
33101 case $LZWEncodeDelegate in
33102 [\\/]* | ?:[\\/]*)
33103 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33104 ;;
33105 *)
33106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33107for as_dir in $PATH
33108do
33109 IFS=$as_save_IFS
33110 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033111 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33113 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115 break 2
33116 fi
33117done
cristy8b350f62009-11-15 23:12:43 +000033118 done
cristy3ed852e2009-09-05 21:47:34 +000033119IFS=$as_save_IFS
33120
33121 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33122 ;;
33123esac
33124fi
33125LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33126if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033128$as_echo "$LZWEncodeDelegate" >&6; }
33129else
cristy8b350f62009-11-15 23:12:43 +000033130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033131$as_echo "no" >&6; }
33132fi
33133
33134
33135# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33136set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033138$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033139if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033140 $as_echo_n "(cached) " >&6
33141else
33142 case $LaunchDelegate in
33143 [\\/]* | ?:[\\/]*)
33144 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33145 ;;
33146 *)
33147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33148for as_dir in $PATH
33149do
33150 IFS=$as_save_IFS
33151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33154 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156 break 2
33157 fi
33158done
cristy8b350f62009-11-15 23:12:43 +000033159 done
cristy3ed852e2009-09-05 21:47:34 +000033160IFS=$as_save_IFS
33161
33162 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33163 ;;
33164esac
33165fi
33166LaunchDelegate=$ac_cv_path_LaunchDelegate
33167if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033169$as_echo "$LaunchDelegate" >&6; }
33170else
cristy8b350f62009-11-15 23:12:43 +000033171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172$as_echo "no" >&6; }
33173fi
33174
33175
33176# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33177set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033180if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033181 $as_echo_n "(cached) " >&6
33182else
33183 case $MANDelegate in
33184 [\\/]* | ?:[\\/]*)
33185 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33186 ;;
33187 *)
33188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33189for as_dir in $PATH
33190do
33191 IFS=$as_save_IFS
33192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33195 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197 break 2
33198 fi
33199done
cristy8b350f62009-11-15 23:12:43 +000033200 done
cristy3ed852e2009-09-05 21:47:34 +000033201IFS=$as_save_IFS
33202
33203 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33204 ;;
33205esac
33206fi
33207MANDelegate=$ac_cv_path_MANDelegate
33208if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033210$as_echo "$MANDelegate" >&6; }
33211else
cristy8b350f62009-11-15 23:12:43 +000033212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033213$as_echo "no" >&6; }
33214fi
33215
33216
33217# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33218set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033221if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033222 $as_echo_n "(cached) " >&6
33223else
33224 case $MPEGDecodeDelegate in
33225 [\\/]* | ?:[\\/]*)
33226 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33227 ;;
33228 *)
33229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33230for as_dir in $PATH
33231do
33232 IFS=$as_save_IFS
33233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33236 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238 break 2
33239 fi
33240done
cristy8b350f62009-11-15 23:12:43 +000033241 done
cristy3ed852e2009-09-05 21:47:34 +000033242IFS=$as_save_IFS
33243
33244 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33245 ;;
33246esac
33247fi
33248MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33249if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033251$as_echo "$MPEGDecodeDelegate" >&6; }
33252else
cristy8b350f62009-11-15 23:12:43 +000033253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033254$as_echo "no" >&6; }
33255fi
33256
33257
33258# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33259set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033261$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033262if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033263 $as_echo_n "(cached) " >&6
33264else
33265 case $MPEGEncodeDelegate in
33266 [\\/]* | ?:[\\/]*)
33267 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33268 ;;
33269 *)
33270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33271for as_dir in $PATH
33272do
33273 IFS=$as_save_IFS
33274 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033275 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33277 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279 break 2
33280 fi
33281done
cristy8b350f62009-11-15 23:12:43 +000033282 done
cristy3ed852e2009-09-05 21:47:34 +000033283IFS=$as_save_IFS
33284
33285 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33286 ;;
33287esac
33288fi
33289MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33290if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033292$as_echo "$MPEGEncodeDelegate" >&6; }
33293else
cristy8b350f62009-11-15 23:12:43 +000033294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295$as_echo "no" >&6; }
33296fi
33297
33298
cristy935c86e2010-06-05 23:50:07 +000033299# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33300set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033303if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033304 $as_echo_n "(cached) " >&6
33305else
33306 case $MrSIDDecodeDelegate in
33307 [\\/]* | ?:[\\/]*)
33308 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33309 ;;
33310 *)
33311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33312for as_dir in $PATH
33313do
33314 IFS=$as_save_IFS
33315 test -z "$as_dir" && as_dir=.
33316 for ac_exec_ext in '' $ac_executable_extensions; do
33317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33318 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33320 break 2
33321 fi
33322done
33323 done
33324IFS=$as_save_IFS
33325
33326 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33327 ;;
33328esac
33329fi
33330MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33331if test -n "$MrSIDDecodeDelegate"; then
33332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33333$as_echo "$MrSIDDecodeDelegate" >&6; }
33334else
33335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33336$as_echo "no" >&6; }
33337fi
33338
33339
cristy3ed852e2009-09-05 21:47:34 +000033340# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33341set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033343$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033344if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033345 $as_echo_n "(cached) " >&6
33346else
33347 case $MVDelegate in
33348 [\\/]* | ?:[\\/]*)
33349 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33350 ;;
33351 *)
33352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33353for as_dir in $PATH
33354do
33355 IFS=$as_save_IFS
33356 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33359 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361 break 2
33362 fi
33363done
cristy8b350f62009-11-15 23:12:43 +000033364 done
cristy3ed852e2009-09-05 21:47:34 +000033365IFS=$as_save_IFS
33366
33367 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33368 ;;
33369esac
33370fi
33371MVDelegate=$ac_cv_path_MVDelegate
33372if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033374$as_echo "$MVDelegate" >&6; }
33375else
cristy8b350f62009-11-15 23:12:43 +000033376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377$as_echo "no" >&6; }
33378fi
33379
33380
33381# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33382set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033384$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033385if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033386 $as_echo_n "(cached) " >&6
33387else
33388 case $PCLDelegate in
33389 [\\/]* | ?:[\\/]*)
33390 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33391 ;;
33392 *)
33393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33394for as_dir in $PATH
33395do
33396 IFS=$as_save_IFS
33397 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033398 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33400 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402 break 2
33403 fi
33404done
cristy8b350f62009-11-15 23:12:43 +000033405 done
cristy3ed852e2009-09-05 21:47:34 +000033406IFS=$as_save_IFS
33407
33408 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33409 ;;
33410esac
33411fi
33412PCLDelegate=$ac_cv_path_PCLDelegate
33413if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033415$as_echo "$PCLDelegate" >&6; }
33416else
cristy8b350f62009-11-15 23:12:43 +000033417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418$as_echo "no" >&6; }
33419fi
33420
33421
33422# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33423set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033425$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033426if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033427 $as_echo_n "(cached) " >&6
33428else
33429 case $PGPDecodeDelegate in
33430 [\\/]* | ?:[\\/]*)
33431 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33432 ;;
33433 *)
33434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33435for as_dir in $PATH
33436do
33437 IFS=$as_save_IFS
33438 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033439 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33441 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443 break 2
33444 fi
33445done
cristy8b350f62009-11-15 23:12:43 +000033446 done
cristy3ed852e2009-09-05 21:47:34 +000033447IFS=$as_save_IFS
33448
33449 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33450 ;;
33451esac
33452fi
33453PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33454if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033456$as_echo "$PGPDecodeDelegate" >&6; }
33457else
cristy8b350f62009-11-15 23:12:43 +000033458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033459$as_echo "no" >&6; }
33460fi
33461
33462
33463# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33464set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033466$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033467if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033468 $as_echo_n "(cached) " >&6
33469else
33470 case $POVDelegate in
33471 [\\/]* | ?:[\\/]*)
33472 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33473 ;;
33474 *)
33475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33476for as_dir in $PATH
33477do
33478 IFS=$as_save_IFS
33479 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033480 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33482 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033484 break 2
33485 fi
33486done
cristy8b350f62009-11-15 23:12:43 +000033487 done
cristy3ed852e2009-09-05 21:47:34 +000033488IFS=$as_save_IFS
33489
33490 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33491 ;;
33492esac
33493fi
33494POVDelegate=$ac_cv_path_POVDelegate
33495if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033497$as_echo "$POVDelegate" >&6; }
33498else
cristy8b350f62009-11-15 23:12:43 +000033499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500$as_echo "no" >&6; }
33501fi
33502
33503
33504for ac_prog in gsx gsc "$PSDelegateDefault"
33505do
33506 # Extract the first word of "$ac_prog", so it can be a program name with args.
33507set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033509$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033510if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033511 $as_echo_n "(cached) " >&6
33512else
33513 case $PSDelegate in
33514 [\\/]* | ?:[\\/]*)
33515 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33516 ;;
33517 *)
33518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33519for as_dir in $PATH
33520do
33521 IFS=$as_save_IFS
33522 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33525 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033527 break 2
33528 fi
33529done
cristy8b350f62009-11-15 23:12:43 +000033530 done
cristy3ed852e2009-09-05 21:47:34 +000033531IFS=$as_save_IFS
33532
33533 ;;
33534esac
33535fi
33536PSDelegate=$ac_cv_path_PSDelegate
33537if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033539$as_echo "$PSDelegate" >&6; }
33540else
cristy8b350f62009-11-15 23:12:43 +000033541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033542$as_echo "no" >&6; }
33543fi
33544
33545
33546 test -n "$PSDelegate" && break
33547done
33548test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33549
33550# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33551set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033554if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033555 $as_echo_n "(cached) " >&6
33556else
33557 case $RLEEncodeDelegate in
33558 [\\/]* | ?:[\\/]*)
33559 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33560 ;;
33561 *)
33562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33563for as_dir in $PATH
33564do
33565 IFS=$as_save_IFS
33566 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33569 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033571 break 2
33572 fi
33573done
cristy8b350f62009-11-15 23:12:43 +000033574 done
cristy3ed852e2009-09-05 21:47:34 +000033575IFS=$as_save_IFS
33576
33577 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33578 ;;
33579esac
33580fi
33581RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33582if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo "$RLEEncodeDelegate" >&6; }
33585else
cristy8b350f62009-11-15 23:12:43 +000033586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033587$as_echo "no" >&6; }
33588fi
33589
33590
33591# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33592set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033594$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033595if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033596 $as_echo_n "(cached) " >&6
33597else
33598 case $RMDelegate in
33599 [\\/]* | ?:[\\/]*)
33600 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33601 ;;
33602 *)
33603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33604for as_dir in $PATH
33605do
33606 IFS=$as_save_IFS
33607 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33610 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033612 break 2
33613 fi
33614done
cristy8b350f62009-11-15 23:12:43 +000033615 done
cristy3ed852e2009-09-05 21:47:34 +000033616IFS=$as_save_IFS
33617
33618 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33619 ;;
33620esac
33621fi
33622RMDelegate=$ac_cv_path_RMDelegate
33623if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625$as_echo "$RMDelegate" >&6; }
33626else
cristy8b350f62009-11-15 23:12:43 +000033627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033628$as_echo "no" >&6; }
33629fi
33630
33631
cristy4689cf02010-02-17 21:15:45 +000033632# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33633set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33635$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033636if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033637 $as_echo_n "(cached) " >&6
33638else
33639 case $RSVGDecodeDelegate in
33640 [\\/]* | ?:[\\/]*)
33641 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33642 ;;
33643 *)
33644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33645for as_dir in $PATH
33646do
33647 IFS=$as_save_IFS
33648 test -z "$as_dir" && as_dir=.
33649 for ac_exec_ext in '' $ac_executable_extensions; do
33650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33651 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33653 break 2
33654 fi
33655done
33656 done
33657IFS=$as_save_IFS
33658
33659 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33660 ;;
33661esac
33662fi
33663RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33664if test -n "$RSVGDecodeDelegate"; then
33665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33666$as_echo "$RSVGDecodeDelegate" >&6; }
33667else
33668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33669$as_echo "no" >&6; }
33670fi
33671
33672
cristy3ed852e2009-09-05 21:47:34 +000033673# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33674set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033676$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033677if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033678 $as_echo_n "(cached) " >&6
33679else
33680 case $SCANDecodeDelegate in
33681 [\\/]* | ?:[\\/]*)
33682 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33683 ;;
33684 *)
33685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33686for as_dir in $PATH
33687do
33688 IFS=$as_save_IFS
33689 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33692 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033694 break 2
33695 fi
33696done
cristy8b350f62009-11-15 23:12:43 +000033697 done
cristy3ed852e2009-09-05 21:47:34 +000033698IFS=$as_save_IFS
33699
33700 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33701 ;;
33702esac
33703fi
33704SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33705if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033707$as_echo "$SCANDecodeDelegate" >&6; }
33708else
cristy8b350f62009-11-15 23:12:43 +000033709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033710$as_echo "no" >&6; }
33711fi
33712
33713
33714# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33715set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033717$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033718if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033719 $as_echo_n "(cached) " >&6
33720else
33721 case $TXTDelegate in
33722 [\\/]* | ?:[\\/]*)
33723 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33724 ;;
33725 *)
33726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33727for as_dir in $PATH
33728do
33729 IFS=$as_save_IFS
33730 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033731 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33733 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033735 break 2
33736 fi
33737done
cristy8b350f62009-11-15 23:12:43 +000033738 done
cristy3ed852e2009-09-05 21:47:34 +000033739IFS=$as_save_IFS
33740
33741 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33742 ;;
33743esac
33744fi
33745TXTDelegate=$ac_cv_path_TXTDelegate
33746if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748$as_echo "$TXTDelegate" >&6; }
33749else
cristy8b350f62009-11-15 23:12:43 +000033750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033751$as_echo "no" >&6; }
33752fi
33753
33754
cristy5ac9ac82010-07-29 13:24:24 +000033755# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33756set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033759if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033760 $as_echo_n "(cached) " >&6
33761else
33762 case $UniconvertorDelegate in
33763 [\\/]* | ?:[\\/]*)
33764 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33765 ;;
33766 *)
33767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33768for as_dir in $PATH
33769do
33770 IFS=$as_save_IFS
33771 test -z "$as_dir" && as_dir=.
33772 for ac_exec_ext in '' $ac_executable_extensions; do
33773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33774 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33776 break 2
33777 fi
33778done
33779 done
33780IFS=$as_save_IFS
33781
33782 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33783 ;;
33784esac
33785fi
33786UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33787if test -n "$UniconvertorDelegate"; then
33788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33789$as_echo "$UniconvertorDelegate" >&6; }
33790else
33791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33792$as_echo "no" >&6; }
33793fi
33794
33795
cristy3ed852e2009-09-05 21:47:34 +000033796# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33797set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033800if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033801 $as_echo_n "(cached) " >&6
33802else
33803 case $WMFDecodeDelegate in
33804 [\\/]* | ?:[\\/]*)
33805 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33806 ;;
33807 *)
33808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33809for as_dir in $PATH
33810do
33811 IFS=$as_save_IFS
33812 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33815 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033817 break 2
33818 fi
33819done
cristy8b350f62009-11-15 23:12:43 +000033820 done
cristy3ed852e2009-09-05 21:47:34 +000033821IFS=$as_save_IFS
33822
33823 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33824 ;;
33825esac
33826fi
33827WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33828if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830$as_echo "$WMFDecodeDelegate" >&6; }
33831else
cristy8b350f62009-11-15 23:12:43 +000033832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033833$as_echo "no" >&6; }
33834fi
33835
33836
33837# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33838set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033841if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033842 $as_echo_n "(cached) " >&6
33843else
33844 case $WWWDecodeDelegate in
33845 [\\/]* | ?:[\\/]*)
33846 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33847 ;;
33848 *)
33849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33850for as_dir in $PATH
33851do
33852 IFS=$as_save_IFS
33853 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33856 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858 break 2
33859 fi
33860done
cristy8b350f62009-11-15 23:12:43 +000033861 done
cristy3ed852e2009-09-05 21:47:34 +000033862IFS=$as_save_IFS
33863
33864 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33865 ;;
33866esac
33867fi
33868WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33869if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033871$as_echo "$WWWDecodeDelegate" >&6; }
33872else
cristy8b350f62009-11-15 23:12:43 +000033873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033874$as_echo "no" >&6; }
33875fi
33876
33877
33878# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33879set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033881$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033882if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033883 $as_echo_n "(cached) " >&6
33884else
33885 case $XPSDelegate in
33886 [\\/]* | ?:[\\/]*)
33887 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33888 ;;
33889 *)
33890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33891for as_dir in $PATH
33892do
33893 IFS=$as_save_IFS
33894 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33897 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899 break 2
33900 fi
33901done
cristy8b350f62009-11-15 23:12:43 +000033902 done
cristy3ed852e2009-09-05 21:47:34 +000033903IFS=$as_save_IFS
33904
33905 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33906 ;;
33907esac
33908fi
33909XPSDelegate=$ac_cv_path_XPSDelegate
33910if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033912$as_echo "$XPSDelegate" >&6; }
33913else
cristy8b350f62009-11-15 23:12:43 +000033914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915$as_echo "no" >&6; }
33916fi
33917
33918
33919# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33920set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033922$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033923if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033924 $as_echo_n "(cached) " >&6
33925else
33926 case $ZipDelegate in
33927 [\\/]* | ?:[\\/]*)
33928 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33929 ;;
33930 *)
33931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33932for as_dir in $PATH
33933do
33934 IFS=$as_save_IFS
33935 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033936 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33938 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033940 break 2
33941 fi
33942done
cristy8b350f62009-11-15 23:12:43 +000033943 done
cristy3ed852e2009-09-05 21:47:34 +000033944IFS=$as_save_IFS
33945
33946 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33947 ;;
33948esac
33949fi
33950ZipDelegate=$ac_cv_path_ZipDelegate
33951if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033953$as_echo "$ZipDelegate" >&6; }
33954else
cristy8b350f62009-11-15 23:12:43 +000033955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033956$as_echo "no" >&6; }
33957fi
33958
33959
33960
33961# Prefer lpr to lp; lp needs options tacked on.
33962if test "$LPRDelegate" != no; then
33963 PrintDelegate="$LPRDelegate"
33964else
33965 PrintDelegate="$LPDelegate -c -s"
33966fi
33967
33968
33969# Installed ImageMagick utiltity paths
33970ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33971DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33972MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33973
33974# Set delegate booleans
33975have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33976have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33977have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33978have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33979have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033980have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033981have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33982have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033983have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33984have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33985
33986#
33987# Test for font directories
33988#
33989type_include_files=''
33990
cristy430a7312010-01-21 20:44:04 +000033991# Dejavu fonts.
33992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33993$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33994dejavu_font_dir=''
33995if test "${with_dejavu_font_dir}" != 'default'; then
33996 dejavu_font_dir="${with_dejavu_font_dir}/"
33997else
33998 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33999 if test -f "${font_dir}DejaVuSerif.ttf"; then
34000 dejavu_font_dir="${font_dir}"
34001 break 1
34002 fi
34003 done
34004fi
34005if test "${dejavu_font_dir}x" != 'x'; then
34006 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034007 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34008$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034009else
cristy09b53e12011-10-14 12:47:22 +000034010 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34011$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034012fi
34013
34014
cristy3ed852e2009-09-05 21:47:34 +000034015# Windows
34016windows_font_dir=''
34017if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34018 windows_font_dir="${with_windows_font_dir}/"
34019fi
cristy430a7312010-01-21 20:44:04 +000034020if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034021 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34022 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34023 fi
34024 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34025 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34026 fi
34027 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34028 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34029 fi
34030fi
cristy430a7312010-01-21 20:44:04 +000034031if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034032 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34033fi
34034
34035
34036# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034038$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34039ghostscript_font_dir=''
34040if test "${with_gs_font_dir}" != 'default'; then
34041 ghostscript_font_dir="${with_gs_font_dir}/"
34042else
34043 if test "${native_win32_build}" = 'yes'; then
34044 # Native Windows Build
34045 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34046 if test -f "${font_dir}a010013l.pfb"; then
34047 ghostscript_font_dir="$font_dir"
34048 break 1
34049 fi
34050 done
34051 if test "${PSDelegate}" != 'gswin32c'; then
34052 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34053 fi
34054 else
34055 # Linux / Mac OS X / Unix Build
34056 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
34057 if test -f "${font_dir}a010013l.pfb"; then
34058 ghostscript_font_dir="${font_dir}"
34059 break 1
34060 fi
34061 done
34062 if test "${ghostscript_font_dir}x" = 'x'; then
34063 if test "$PSDelegate" != 'gs'; then
34064 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34065 fi
34066 fi
34067 fi
34068fi
34069if test "${ghostscript_font_dir}x" != 'x'; then
34070 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034071 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34072$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034073else
cristy09b53e12011-10-14 12:47:22 +000034074 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34075$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034076fi
34077
34078case "${build_os}" in
34079 mingw* )
34080 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34081 ;;
34082esac
34083
34084
34085
34086#
34087# Handle case where user doesn't want frozen paths
34088#
34089if test "$with_frozenpaths" != 'yes'; then
34090 # Re-set delegate definitions to default (no paths)
34091 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034092 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34093 BZIPDelegate="$BZIPDelegateDefault"
34094 BrowseDelegate="$BrowseDelegateDefault"
34095 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34096 CatDelegate="$CatDelegateDefault"
34097 ConvertDelegate="$ConvertDelegateDefault"
34098 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34099 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34100 EchoDelegate="$EchoDelegateDefault"
34101 EditorDelegate="$EditorDelegateDefault"
34102 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34103 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34104 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34105 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34106 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34107 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34108 LPDelegate="$LPDelegateDefault"
34109 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34110 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34111 LaunchDelegate="$LaunchDelegateDefault"
34112 MANDelegate="$MANDelegateDefault"
34113 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34114 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034115 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034116 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34117 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034118 PCLDelegate="$PCLDelegateDefault"
34119 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34120 POVDelegate="$POVDelegateDefault"
34121 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034122 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34123 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034124 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034125 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34126 ShowImageDelegate="$ShowImageDelegateDefault"
34127 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034128 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034129 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34130 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34131 XPSDelegate="$XPSDelegateDefault"
34132 ZipDelegate="$ZipDelegateDefault"
34133fi
34134
34135# Delegate substitutions
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178#
34179# RPM support.
34180#
34181RPM=''
34182for ac_prog in gnutar gtar tar
34183do
34184 # Extract the first word of "$ac_prog", so it can be a program name with args.
34185set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034187$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034188if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034189 $as_echo_n "(cached) " >&6
34190else
34191 if test -n "$TAR"; then
34192 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34193else
34194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34195for as_dir in $PATH
34196do
34197 IFS=$as_save_IFS
34198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34201 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034203 break 2
34204 fi
34205done
cristy8b350f62009-11-15 23:12:43 +000034206 done
cristy3ed852e2009-09-05 21:47:34 +000034207IFS=$as_save_IFS
34208
34209fi
34210fi
34211TAR=$ac_cv_prog_TAR
34212if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034214$as_echo "$TAR" >&6; }
34215else
cristy8b350f62009-11-15 23:12:43 +000034216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034217$as_echo "no" >&6; }
34218fi
34219
34220
34221 test -n "$TAR" && break
34222done
34223
34224for ac_prog in perl
34225do
34226 # Extract the first word of "$ac_prog", so it can be a program name with args.
34227set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034229$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034230if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034231 $as_echo_n "(cached) " >&6
34232else
34233 if test -n "$PERL"; then
34234 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34235else
34236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34237for as_dir in $PATH
34238do
34239 IFS=$as_save_IFS
34240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34243 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034245 break 2
34246 fi
34247done
cristy8b350f62009-11-15 23:12:43 +000034248 done
cristy3ed852e2009-09-05 21:47:34 +000034249IFS=$as_save_IFS
34250
34251fi
34252fi
34253PERL=$ac_cv_prog_PERL
34254if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256$as_echo "$PERL" >&6; }
34257else
cristy8b350f62009-11-15 23:12:43 +000034258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034259$as_echo "no" >&6; }
34260fi
34261
34262
34263 test -n "$PERL" && break
34264done
34265
34266for ac_prog in rpmbuild rpm
34267do
34268 # Extract the first word of "$ac_prog", so it can be a program name with args.
34269set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034271$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034272if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034273 $as_echo_n "(cached) " >&6
34274else
34275 if test -n "$RPM"; then
34276 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34277else
34278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34279for as_dir in $PATH
34280do
34281 IFS=$as_save_IFS
34282 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34285 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034287 break 2
34288 fi
34289done
cristy8b350f62009-11-15 23:12:43 +000034290 done
cristy3ed852e2009-09-05 21:47:34 +000034291IFS=$as_save_IFS
34292
34293fi
34294fi
34295RPM=$ac_cv_prog_RPM
34296if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034298$as_echo "$RPM" >&6; }
34299else
cristy8b350f62009-11-15 23:12:43 +000034300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034301$as_echo "no" >&6; }
34302fi
34303
34304
34305 test -n "$RPM" && break
34306done
34307
34308
cristy73bd4a52010-10-05 11:24:23 +000034309ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34310
34311
34312AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34313
34314
34315AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34316
34317
34318AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34319
34320
34321 if test "x$RPM" != "x" ; then
34322 RPM_DELEGATE_TRUE=
34323 RPM_DELEGATE_FALSE='#'
34324else
34325 RPM_DELEGATE_TRUE='#'
34326 RPM_DELEGATE_FALSE=
34327fi
34328
cristy3ed852e2009-09-05 21:47:34 +000034329
34330#
34331# 7ZIP support (http://p7zip.sourceforge.net/)
34332#
34333P7ZIP=''
34334for ac_prog in 7za
34335do
34336 # Extract the first word of "$ac_prog", so it can be a program name with args.
34337set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034340if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034341 $as_echo_n "(cached) " >&6
34342else
34343 if test -n "$P7ZIP"; then
34344 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34345else
34346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34347for as_dir in $PATH
34348do
34349 IFS=$as_save_IFS
34350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34353 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034355 break 2
34356 fi
34357done
cristy8b350f62009-11-15 23:12:43 +000034358 done
cristy3ed852e2009-09-05 21:47:34 +000034359IFS=$as_save_IFS
34360
34361fi
34362fi
34363P7ZIP=$ac_cv_prog_P7ZIP
34364if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034366$as_echo "$P7ZIP" >&6; }
34367else
cristy8b350f62009-11-15 23:12:43 +000034368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034369$as_echo "no" >&6; }
34370fi
34371
34372
34373 test -n "$P7ZIP" && break
34374done
34375
34376
cristy73bd4a52010-10-05 11:24:23 +000034377 if test "x$P7ZIP" != "x" ; then
34378 P7ZIP_DELEGATE_TRUE=
34379 P7ZIP_DELEGATE_FALSE='#'
34380else
34381 P7ZIP_DELEGATE_TRUE='#'
34382 P7ZIP_DELEGATE_FALSE=
34383fi
34384
cristy3ed852e2009-09-05 21:47:34 +000034385
34386#
34387# ZIP support (http://www.info-zip.org/Zip.html)
34388#
34389ZIP=''
34390for ac_prog in zip
34391do
34392 # Extract the first word of "$ac_prog", so it can be a program name with args.
34393set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034395$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034396if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034397 $as_echo_n "(cached) " >&6
34398else
34399 if test -n "$ZIP"; then
34400 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34401else
34402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34403for as_dir in $PATH
34404do
34405 IFS=$as_save_IFS
34406 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034407 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34409 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034411 break 2
34412 fi
34413done
cristy8b350f62009-11-15 23:12:43 +000034414 done
cristy3ed852e2009-09-05 21:47:34 +000034415IFS=$as_save_IFS
34416
34417fi
34418fi
34419ZIP=$ac_cv_prog_ZIP
34420if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034422$as_echo "$ZIP" >&6; }
34423else
cristy8b350f62009-11-15 23:12:43 +000034424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034425$as_echo "no" >&6; }
34426fi
34427
34428
34429 test -n "$ZIP" && break
34430done
34431
34432
cristy73bd4a52010-10-05 11:24:23 +000034433 if test "x$ZIP" != "x" ; then
34434 ZIP_DELEGATE_TRUE=
34435 ZIP_DELEGATE_FALSE='#'
34436else
34437 ZIP_DELEGATE_TRUE='#'
34438 ZIP_DELEGATE_FALSE=
34439fi
34440
cristy3ed852e2009-09-05 21:47:34 +000034441
34442#
34443# GhostPCL related configuration.
34444#
34445PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034446PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034447PCLMonoDevice=pbmraw
34448if test -z "$PCLVersion"; then
34449 PCLVersion='unknown'
34450fi
34451if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34453$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034455$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034456 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34457$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034458 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034460$as_echo_n "checking for pcl color device... " >&6; }
34461 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34462 :
34463 else
34464 PCLColorDevice=ppmraw
34465 fi
cristy09b53e12011-10-14 12:47:22 +000034466 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34467$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034468
34469 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034471$as_echo_n "checking for pcl CMYK device... " >&6; }
34472 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34473 :
34474 else
34475 PCLCMYKDevice=$PCLColorDevice
34476 fi
cristy09b53e12011-10-14 12:47:22 +000034477 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34478$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034479
34480 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034482$as_echo_n "checking for pcl mono device... " >&6; }
34483 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34484 :
34485 else
34486 PCLMonoDevice=$PCLColorDevice
34487 fi
cristy09b53e12011-10-14 12:47:22 +000034488 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34489$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034490fi
34491
34492
34493
34494
34495
34496
34497#
34498# GhostXPS related configuration.
34499#
34500XPSColorDevice=ppmraw
34501XPSCMYKDevice=bmpsep8
34502XPSMonoDevice=pbmraw
34503if test -z "$XPSVersion"; then
34504 XPSVersion='unknown'
34505fi
34506if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034507 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34508$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034510$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034511 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34512$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034513 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034515$as_echo_n "checking for xps color device... " >&6; }
34516 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34517 :
34518 else
34519 XPSColorDevice=ppmraw
34520 fi
cristy09b53e12011-10-14 12:47:22 +000034521 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34522$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034523
34524 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034526$as_echo_n "checking for xps CMYK device... " >&6; }
34527 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34528 :
34529 else
34530 XPSCMYKDevice=$XPSColorDevice
34531 fi
cristy09b53e12011-10-14 12:47:22 +000034532 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34533$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034534
34535 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034537$as_echo_n "checking for xps mono device... " >&6; }
34538 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34539 :
34540 else
34541 XPSMonoDevice=$XPSColorDevice
34542 fi
cristy09b53e12011-10-14 12:47:22 +000034543 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34544$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034545fi
34546
34547
34548
34549
34550
34551
34552#
34553# Ghostscript related configuration.
34554#
cristya97426c2011-02-04 01:41:27 +000034555GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034556GSColorDevice=pnmraw
34557GSCMYKDevice=pam
34558GSMonoDevice=pbmraw
34559GSPDFDevice=pdfwrite
34560GSPSDevice=pswrite
34561GSEPSDevice=epswrite
34562GSVersion='unknown'
34563if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034564 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34565$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034567$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034568 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34569$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034571$as_echo_n "checking for Ghostscript version... " >&6; }
34572 if GSVersion=`$PSDelegate --version`; then
34573 :
34574 else
34575 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34576 fi
cristy09b53e12011-10-14 12:47:22 +000034577 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34578$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034579
34580 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034582$as_echo_n "checking for gs alpha device... " >&6; }
34583 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34584 :
34585 else
34586 GSAlphaDevice=pnmraw
34587 fi
cristy09b53e12011-10-14 12:47:22 +000034588 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34589$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034590
34591 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034593$as_echo_n "checking for gs color device... " >&6; }
34594 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34595 :
34596 else
34597 GSColorDevice=pnmraw
34598 fi
cristy09b53e12011-10-14 12:47:22 +000034599 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34600$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034601
34602 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034604$as_echo_n "checking for gs CMYK device... " >&6; }
34605 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34606 :
34607 else
34608 GSCMYKDevice=bmpsep8
34609 fi
cristy09b53e12011-10-14 12:47:22 +000034610 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34611$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034612
34613 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo_n "checking for gs mono device... " >&6; }
34616 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34617 :
34618 else
34619 GSMonoDevice=$GSColorDevice
34620 fi
cristy09b53e12011-10-14 12:47:22 +000034621 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34622$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034623
34624 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034626$as_echo_n "checking for gs PDF writing device... " >&6; }
34627 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34628 :
34629 else
34630 GSPDFDevice=nodevice
34631 fi
cristy09b53e12011-10-14 12:47:22 +000034632 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34633$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034634
34635 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034637$as_echo_n "checking for gs PS writing device... " >&6; }
34638 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34639 :
34640 else
34641 GSPSDevice=nodevice
34642 fi
cristy09b53e12011-10-14 12:47:22 +000034643 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34644$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034645
34646 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034648$as_echo_n "checking for gs EPS writing device... " >&6; }
34649 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34650 :
34651 else
34652 GSEPSDevice=nodevice
34653 fi
cristy09b53e12011-10-14 12:47:22 +000034654 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34655$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034656fi
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667#
34668# PerlMagick-related configuration
34669#
34670
34671# Look for PERL if PerlMagick requested
34672# If name/path of desired PERL interpreter is specified, look for that one first
34673have_perl='no'
34674if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034675 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34676$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034678$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034679 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34680$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034681 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034683$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034684if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034685 $as_echo_n "(cached) " >&6
34686else
34687 ac_cv_path_PERL="$with_perl"
34688fi
cristy8b350f62009-11-15 23:12:43 +000034689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034690$as_echo "$ac_cv_path_PERL" >&6; };
34691 PERL=$ac_cv_path_PERL
34692 have_perl="$ac_cv_path_PERL"
34693 else
34694 for ac_prog in perl perl5
34695do
34696 # Extract the first word of "$ac_prog", so it can be a program name with args.
34697set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034700if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034701 $as_echo_n "(cached) " >&6
34702else
34703 case $PERL in
34704 [\\/]* | ?:[\\/]*)
34705 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34706 ;;
34707 *)
34708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34709for as_dir in $PATH
34710do
34711 IFS=$as_save_IFS
34712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34715 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034717 break 2
34718 fi
34719done
cristy8b350f62009-11-15 23:12:43 +000034720 done
cristy3ed852e2009-09-05 21:47:34 +000034721IFS=$as_save_IFS
34722
34723 ;;
34724esac
34725fi
34726PERL=$ac_cv_path_PERL
34727if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034729$as_echo "$PERL" >&6; }
34730else
cristy8b350f62009-11-15 23:12:43 +000034731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034732$as_echo "no" >&6; }
34733fi
34734
34735
34736 test -n "$PERL" && break
34737done
34738 if test "$ac_cv_path_PERL"; then
34739 have_perl="$ac_cv_path_PERL"
34740 fi
34741 fi
34742fi
34743
cristy949301e2010-01-06 01:38:40 +000034744if test "$with_perl" != 'yes' ; then
34745 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34746fi
34747
34748PERL_SUPPORTS_DESTDIR='no'
34749
cristy3ed852e2009-09-05 21:47:34 +000034750with_perl_static='no'
34751with_perl_dynamic='no'
34752if test "$have_perl" != 'no'; then
34753 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34754 with_perl_static='yes'
34755 fi
34756 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34757 with_perl_dynamic='yes'
34758 fi
34759 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034760
34761
34762
34763
34764 if test -n "$PERL"; then :
34765
34766 ax_perl_version="5.8.1"
34767
34768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34769$as_echo_n "checking for perl version... " >&6; }
34770
34771 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34772
34773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34774$as_echo "$perl_version" >&6; }
34775
34776 PERL_VERSION=$perl_version
34777
34778
34779
34780
34781
34782 # Used to indicate true or false condition
34783 ax_compare_version=false
34784
34785 # Convert the two version strings to be compared into a format that
34786 # allows a simple string comparison. The end result is that a version
34787 # string of the form 1.12.5-r617 will be converted to the form
34788 # 0001001200050617. In other words, each number is zero padded to four
34789 # digits, and non digits are removed.
34790
34791 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34792 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34793 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34794 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34795 -e 's/[^0-9]//g'`
34796
34797
34798 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34799 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34800 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34801 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34802 -e 's/[^0-9]//g'`
34803
34804
34805 ax_compare_version=`echo "x$ax_compare_version_A
34806x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34807
34808
34809
34810 if test "$ax_compare_version" = "true" ; then
34811
34812 :
34813 PERL_SUPPORTS_DESTDIR='yes'
34814
34815 else
34816 :
34817 PERL_SUPPORTS_DESTDIR='no'
34818
34819 fi
34820
34821
34822else
34823
34824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34825$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34826 PERL_SUPPORTS_DESTDIR='no'
34827
cristy3ed852e2009-09-05 21:47:34 +000034828fi
cristy73bd4a52010-10-05 11:24:23 +000034829
34830fi
34831 if test "$have_perl" != 'no'; then
34832 WITH_PERL_TRUE=
34833 WITH_PERL_FALSE='#'
34834else
34835 WITH_PERL_TRUE='#'
34836 WITH_PERL_FALSE=
34837fi
34838
34839 if test $with_perl_static = 'yes'; then
34840 WITH_PERL_STATIC_TRUE=
34841 WITH_PERL_STATIC_FALSE='#'
34842else
34843 WITH_PERL_STATIC_TRUE='#'
34844 WITH_PERL_STATIC_FALSE=
34845fi
34846
34847 if test $with_perl_dynamic = 'yes'; then
34848 WITH_PERL_DYNAMIC_TRUE=
34849 WITH_PERL_DYNAMIC_FALSE='#'
34850else
34851 WITH_PERL_DYNAMIC_TRUE='#'
34852 WITH_PERL_DYNAMIC_FALSE=
34853fi
34854
cristy3ed852e2009-09-05 21:47:34 +000034855
34856
34857# Determine path to pick up MagickCore library from for use with building PerlMagick
34858MAGICKCORE_PATH="${LIB_DIR}"
34859if test $with_perl_static = 'yes'; then
34860 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34861 libtool_objdir=$objdir
34862
34863 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034864 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034865fi
34866
34867
34868# Create a simple string containing format names for all delegate libraries
34869DELEGATES=''
34870if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34871if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34872if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34873if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34874if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34875if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34876if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34877if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34878if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34879if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34880if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34881if test "$have_jpeg" = 'yes'; then
34882 DELEGATES="$DELEGATES jpeg";
34883 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34884fi
34885if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034886if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034887if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34888if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034889if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034890if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34891if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34892if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34893if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34894if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34895if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34896if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34897if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34898if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34899
34900
34901
34902#
34903# Handle special compiler flags
34904#
34905
34906# Add '-p' if prof source profiling support enabled
34907if test "$enable_prof" = 'yes'; then
34908 CFLAGS="-p $CFLAGS"
34909 CXXFLAGS="-p $CXXFLAGS"
34910 LDFLAGS="-p $LDFLAGS"
34911fi
34912
34913# Add '-pg' if gprof source profiling support enabled
34914if test "$enable_gprof" = 'yes'; then
34915 CFLAGS="-pg $CFLAGS"
34916 CXXFLAGS="-pg $CXXFLAGS"
34917 LDFLAGS="-pg $LDFLAGS"
34918fi
34919
34920# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34921# This is a gcc-specific feature
34922if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034924$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034925if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034926 $as_echo_n "(cached) " >&6
34927else
34928 ac_check_lib_save_LIBS=$LIBS
34929LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034931/* end confdefs.h. */
34932
34933/* Override any GCC internal prototype to avoid an error.
34934 Use char because int might match the return type of a GCC
34935 builtin and then its argument prototype would still apply. */
34936#ifdef __cplusplus
34937extern "C"
34938#endif
34939char _gcov_init ();
34940int
34941main ()
34942{
34943return _gcov_init ();
34944 ;
34945 return 0;
34946}
34947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034948if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034949 ac_cv_lib_gcov__gcov_init=yes
34950else
cristy8b350f62009-11-15 23:12:43 +000034951 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034952fi
cristy8b350f62009-11-15 23:12:43 +000034953rm -f core conftest.err conftest.$ac_objext \
34954 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034955LIBS=$ac_check_lib_save_LIBS
34956fi
cristy8b350f62009-11-15 23:12:43 +000034957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034958$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034959if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034960 cat >>confdefs.h <<_ACEOF
34961#define HAVE_LIBGCOV 1
34962_ACEOF
34963
34964 LIBS="-lgcov $LIBS"
34965
34966fi
34967
cristy8b350f62009-11-15 23:12:43 +000034968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034969$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034970if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034971 $as_echo_n "(cached) " >&6
34972else
34973 ac_check_lib_save_LIBS=$LIBS
34974LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034976/* end confdefs.h. */
34977
34978/* Override any GCC internal prototype to avoid an error.
34979 Use char because int might match the return type of a GCC
34980 builtin and then its argument prototype would still apply. */
34981#ifdef __cplusplus
34982extern "C"
34983#endif
34984char __gcov_init ();
34985int
34986main ()
34987{
34988return __gcov_init ();
34989 ;
34990 return 0;
34991}
34992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034994 ac_cv_lib_gcov___gcov_init=yes
34995else
cristy8b350f62009-11-15 23:12:43 +000034996 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034997fi
cristy8b350f62009-11-15 23:12:43 +000034998rm -f core conftest.err conftest.$ac_objext \
34999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035000LIBS=$ac_check_lib_save_LIBS
35001fi
cristy8b350f62009-11-15 23:12:43 +000035002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035003$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035004if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035005 cat >>confdefs.h <<_ACEOF
35006#define HAVE_LIBGCOV 1
35007_ACEOF
35008
35009 LIBS="-lgcov $LIBS"
35010
35011fi
35012
35013 case "$target_os" in
35014 darwin*)
35015 OSX_GCOV_LDFLAG="-Wl,-single_module"
35016 ;;
35017 *)
35018 OSX_GCOV_LDFLAG=""
35019 ;;
35020 esac
35021
35022 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35023 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35024 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35025fi
35026
35027#
35028# Build library dependency list for libMagickCore
35029#
35030
35031MAGICK_LIBLTDL='' # Libltdl for build
35032MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35033MAGICK_LTDLDEPS='' # extra libltdl dependencies
35034if test "$with_ltdl" != 'no'
35035then
35036 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35037 MAGICK_API_LIBLTDL='-lltdl'
35038 fi
35039 MAGICK_LIBLTDL=${LIBLTDL}
35040 MAGICK_LTDLDEPS=${LTDLDEPS}
35041fi
35042
35043
35044
35045if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035046 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 +000035047else
cristy41cbe8a2011-10-27 01:35:18 +000035048 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035049fi
35050
35051
35052#
35053# Remove extraneous spaces from output variables (asthetic)
35054#
35055X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35056X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35057X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35058X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35059
35060CC=`echo $CC | sed -e 's/ */ /g'`
35061CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35062CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35063CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35064DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35065DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35066LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35067TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35068MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35069#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35070
35071# Pass only user-provided LIBS as "global" libraries
35072LIBS=$USER_LIBS
35073
35074#AC_SUBST(CPPFLAGS)
35075
35076#AC_SUBST(LDFLAGS)
35077#AC_SUBST(X_PRE_LIBS)
35078#AC_SUBST(X_LIBS)
35079#AC_SUBST(X_EXTRA_LIBS)
35080
35081MAGICK_CFLAGS=$CFLAGS
35082MAGICK_CXXFLAGS="$CXXFLAGS"
35083MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35084MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35085MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35086MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35087
35088
35089
35090
35091
35092
35093
35094
cristyfd9dcd42010-08-08 18:07:02 +000035095
cristy3ed852e2009-09-05 21:47:34 +000035096# Set configured scripts to executable.
35097ac_config_commands="$ac_config_commands default"
35098
35099ac_config_commands="$ac_config_commands MagickCore-config.in"
35100
cristy3ed852e2009-09-05 21:47:34 +000035101ac_config_commands="$ac_config_commands MagickWand-config.in"
35102
cristy3ed852e2009-09-05 21:47:34 +000035103ac_config_commands="$ac_config_commands Magick++-config.in"
35104
35105ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35106
35107
cristy09b53e12011-10-14 12:47:22 +000035108{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35109$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35110{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35111$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035112cat >confcache <<\_ACEOF
35113# This file is a shell script that caches the results of configure
35114# tests run on this system so they can be shared between configure
35115# scripts and configure runs, see configure's option --config-cache.
35116# It is not useful on other systems. If it contains results you don't
35117# want to keep, you may remove or edit it.
35118#
35119# config.status only pays attention to the cache file if you give it
35120# the --recheck option to rerun configure.
35121#
35122# `ac_cv_env_foo' variables (set or unset) will be overridden when
35123# loading this file, other *unset* `ac_cv_foo' will be assigned the
35124# following values.
35125
35126_ACEOF
35127
35128# The following way of writing the cache mishandles newlines in values,
35129# but we know of no workaround that is simple, portable, and efficient.
35130# So, we kill variables containing newlines.
35131# Ultrix sh set writes to stderr and can't be redirected directly,
35132# and sets the high bit in the cache file unless we assign to the vars.
35133(
35134 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35135 eval ac_val=\$$ac_var
35136 case $ac_val in #(
35137 *${as_nl}*)
35138 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035140$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35141 esac
35142 case $ac_var in #(
35143 _ | IFS | as_nl) ;; #(
35144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035145 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035146 esac ;;
35147 esac
35148 done
35149
35150 (set) 2>&1 |
35151 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35152 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035153 # `set' does not quote correctly, so add quotes: double-quote
35154 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035155 sed -n \
35156 "s/'/'\\\\''/g;
35157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35158 ;; #(
35159 *)
35160 # `set' quotes correctly as required by POSIX, so do not add quotes.
35161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35162 ;;
35163 esac |
35164 sort
35165) |
35166 sed '
35167 /^ac_cv_env_/b end
35168 t clear
35169 :clear
35170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35171 t end
35172 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35173 :end' >>confcache
35174if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35175 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035176 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035177 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035178$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035179 if test ! -f "$cache_file" || test -h "$cache_file"; then
35180 cat confcache >"$cache_file"
35181 else
35182 case $cache_file in #(
35183 */* | ?:*)
35184 mv -f confcache "$cache_file"$$ &&
35185 mv -f "$cache_file"$$ "$cache_file" ;; #(
35186 *)
35187 mv -f confcache "$cache_file" ;;
35188 esac
35189 fi
35190 fi
cristy3ed852e2009-09-05 21:47:34 +000035191 else
cristy8b350f62009-11-15 23:12:43 +000035192 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035193$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35194 fi
35195fi
35196rm -f confcache
35197
35198test "x$prefix" = xNONE && prefix=$ac_default_prefix
35199# Let make expand exec_prefix.
35200test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35201
35202DEFS=-DHAVE_CONFIG_H
35203
35204ac_libobjs=
35205ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035206U=
cristy3ed852e2009-09-05 21:47:34 +000035207for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35208 # 1. Remove the extension, and $U if already installed.
35209 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35210 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35211 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35212 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035213 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35214 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035215done
35216LIBOBJS=$ac_libobjs
35217
35218LTLIBOBJS=$ac_ltlibobjs
35219
35220
cristy73bd4a52010-10-05 11:24:23 +000035221 if test -n "$EXEEXT"; then
35222 am__EXEEXT_TRUE=
35223 am__EXEEXT_FALSE='#'
35224else
35225 am__EXEEXT_TRUE='#'
35226 am__EXEEXT_FALSE=
35227fi
cristy3ed852e2009-09-05 21:47:34 +000035228
cristy73bd4a52010-10-05 11:24:23 +000035229if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035230 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035231Usually this means the macro was only invoked conditionally." "$LINENO" 5
35232fi
35233if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035234 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035235Usually this means the macro was only invoked conditionally." "$LINENO" 5
35236fi
35237if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035238 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035239Usually this means the macro was only invoked conditionally." "$LINENO" 5
35240fi
35241if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035242 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035243Usually this means the macro was only invoked conditionally." "$LINENO" 5
35244fi
35245if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035246 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035247Usually this means the macro was only invoked conditionally." "$LINENO" 5
35248fi
35249if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035250 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035251Usually this means the macro was only invoked conditionally." "$LINENO" 5
35252fi
35253if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035254 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035255Usually this means the macro was only invoked conditionally." "$LINENO" 5
35256fi
35257if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035258 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035259Usually this means the macro was only invoked conditionally." "$LINENO" 5
35260fi
cristy73bd4a52010-10-05 11:24:23 +000035261if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035262 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035263Usually this means the macro was only invoked conditionally." "$LINENO" 5
35264fi
35265if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035266 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035267Usually this means the macro was only invoked conditionally." "$LINENO" 5
35268fi
35269LT_CONFIG_H=config/config.h
35270
35271 _ltdl_libobjs=
35272 _ltdl_ltlibobjs=
35273 if test -n "$_LT_LIBOBJS"; then
35274 # Remove the extension.
35275 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35276 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35277 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35278 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35279 done
35280 fi
35281 ltdl_LIBOBJS=$_ltdl_libobjs
35282
35283 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35284
35285
35286if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035287 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035288Usually this means the macro was only invoked conditionally." "$LINENO" 5
35289fi
35290if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035291 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035292Usually this means the macro was only invoked conditionally." "$LINENO" 5
35293fi
35294if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035295 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035296Usually this means the macro was only invoked conditionally." "$LINENO" 5
35297fi
35298if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035299 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035300Usually this means the macro was only invoked conditionally." "$LINENO" 5
35301fi
35302
35303if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035304 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035305Usually this means the macro was only invoked conditionally." "$LINENO" 5
35306fi
35307if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035308 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035309Usually this means the macro was only invoked conditionally." "$LINENO" 5
35310fi
35311if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035312 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035313Usually this means the macro was only invoked conditionally." "$LINENO" 5
35314fi
35315if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035316 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035317Usually this means the macro was only invoked conditionally." "$LINENO" 5
35318fi
35319if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035320 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035321Usually this means the macro was only invoked conditionally." "$LINENO" 5
35322fi
35323if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035324 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035325Usually this means the macro was only invoked conditionally." "$LINENO" 5
35326fi
35327if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035328 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035329Usually this means the macro was only invoked conditionally." "$LINENO" 5
35330fi
35331if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035332 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035333Usually this means the macro was only invoked conditionally." "$LINENO" 5
35334fi
35335if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035336 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035337Usually this means the macro was only invoked conditionally." "$LINENO" 5
35338fi
35339if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035340 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035341Usually this means the macro was only invoked conditionally." "$LINENO" 5
35342fi
35343if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035344 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035345Usually this means the macro was only invoked conditionally." "$LINENO" 5
35346fi
35347if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035348 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035349Usually this means the macro was only invoked conditionally." "$LINENO" 5
35350fi
35351if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035352 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035353Usually this means the macro was only invoked conditionally." "$LINENO" 5
35354fi
35355if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035356 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035357Usually this means the macro was only invoked conditionally." "$LINENO" 5
35358fi
35359if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035360 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035361Usually this means the macro was only invoked conditionally." "$LINENO" 5
35362fi
35363if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035364 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035365Usually this means the macro was only invoked conditionally." "$LINENO" 5
35366fi
35367if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035368 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035369Usually this means the macro was only invoked conditionally." "$LINENO" 5
35370fi
35371if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035372 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035373Usually this means the macro was only invoked conditionally." "$LINENO" 5
35374fi
35375if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035376 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035377Usually this means the macro was only invoked conditionally." "$LINENO" 5
35378fi
35379if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035380 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035381Usually this means the macro was only invoked conditionally." "$LINENO" 5
35382fi
cristyfbb0ef02010-12-19 02:32:11 +000035383if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35384 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35385Usually this means the macro was only invoked conditionally." "$LINENO" 5
35386fi
cristy73bd4a52010-10-05 11:24:23 +000035387if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035388 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035389Usually this means the macro was only invoked conditionally." "$LINENO" 5
35390fi
cristy41cbe8a2011-10-27 01:35:18 +000035391if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35392 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35393Usually this means the macro was only invoked conditionally." "$LINENO" 5
35394fi
35395if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35396 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35397Usually this means the macro was only invoked conditionally." "$LINENO" 5
35398fi
cristy73bd4a52010-10-05 11:24:23 +000035399if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035400 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035401Usually this means the macro was only invoked conditionally." "$LINENO" 5
35402fi
35403if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035404 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035405Usually this means the macro was only invoked conditionally." "$LINENO" 5
35406fi
35407if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035408 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035409Usually this means the macro was only invoked conditionally." "$LINENO" 5
35410fi
35411if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035412 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035413Usually this means the macro was only invoked conditionally." "$LINENO" 5
35414fi
cristyb1860752011-03-14 00:27:46 +000035415if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35416 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35417Usually this means the macro was only invoked conditionally." "$LINENO" 5
35418fi
cristy73bd4a52010-10-05 11:24:23 +000035419if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035420 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035421Usually this means the macro was only invoked conditionally." "$LINENO" 5
35422fi
35423if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035424 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035425Usually this means the macro was only invoked conditionally." "$LINENO" 5
35426fi
35427if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035428 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035429Usually this means the macro was only invoked conditionally." "$LINENO" 5
35430fi
35431if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035432 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035433Usually this means the macro was only invoked conditionally." "$LINENO" 5
35434fi
35435if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035436 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035437Usually this means the macro was only invoked conditionally." "$LINENO" 5
35438fi
35439if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035440 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035441Usually this means the macro was only invoked conditionally." "$LINENO" 5
35442fi
35443if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035444 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035445Usually this means the macro was only invoked conditionally." "$LINENO" 5
35446fi
35447if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035448 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035449Usually this means the macro was only invoked conditionally." "$LINENO" 5
35450fi
cristy3ed852e2009-09-05 21:47:34 +000035451
cristyda16f162011-02-19 23:52:17 +000035452: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035453ac_write_fail=0
35454ac_clean_files_save=$ac_clean_files
35455ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035456{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035457$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035458as_write_fail=0
35459cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035460#! $SHELL
35461# Generated by $as_me.
35462# Run this file to recreate the current configuration.
35463# Compiler output produced by configure, useful for debugging
35464# configure, is in config.log if it exists.
35465
35466debug=false
35467ac_cs_recheck=false
35468ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035469
cristy8b350f62009-11-15 23:12:43 +000035470SHELL=\${CONFIG_SHELL-$SHELL}
35471export SHELL
35472_ASEOF
35473cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35474## -------------------- ##
35475## M4sh Initialization. ##
35476## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035477
35478# Be more Bourne compatible
35479DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035480if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035481 emulate sh
35482 NULLCMD=:
35483 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35484 # is contrary to our usage. Disable this feature.
35485 alias -g '${1+"$@"}'='"$@"'
35486 setopt NO_GLOB_SUBST
35487else
cristy8b350f62009-11-15 23:12:43 +000035488 case `(set -o) 2>/dev/null` in #(
35489 *posix*) :
35490 set -o posix ;; #(
35491 *) :
35492 ;;
cristy3ed852e2009-09-05 21:47:34 +000035493esac
cristy3ed852e2009-09-05 21:47:34 +000035494fi
35495
35496
cristy3ed852e2009-09-05 21:47:34 +000035497as_nl='
35498'
35499export as_nl
35500# Printing a long string crashes Solaris 7 /usr/bin/printf.
35501as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35502as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35503as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035504# Prefer a ksh shell builtin over an external printf program on Solaris,
35505# but without wasting forks for bash or zsh.
35506if test -z "$BASH_VERSION$ZSH_VERSION" \
35507 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35508 as_echo='print -r --'
35509 as_echo_n='print -rn --'
35510elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035511 as_echo='printf %s\n'
35512 as_echo_n='printf %s'
35513else
35514 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35515 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35516 as_echo_n='/usr/ucb/echo -n'
35517 else
35518 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35519 as_echo_n_body='eval
35520 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035521 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035522 *"$as_nl"*)
35523 expr "X$arg" : "X\\(.*\\)$as_nl";
35524 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35525 esac;
35526 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35527 '
35528 export as_echo_n_body
35529 as_echo_n='sh -c $as_echo_n_body as_echo'
35530 fi
35531 export as_echo_body
35532 as_echo='sh -c $as_echo_body as_echo'
35533fi
35534
35535# The user is always right.
35536if test "${PATH_SEPARATOR+set}" != set; then
35537 PATH_SEPARATOR=:
35538 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35539 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35540 PATH_SEPARATOR=';'
35541 }
35542fi
35543
cristy3ed852e2009-09-05 21:47:34 +000035544
35545# IFS
35546# We need space, tab and new line, in precisely that order. Quoting is
35547# there to prevent editors from complaining about space-tab.
35548# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35549# splitting by setting IFS to empty value.)
35550IFS=" "" $as_nl"
35551
35552# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035553as_myself=
cristy8b350f62009-11-15 23:12:43 +000035554case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035555 *[\\/]* ) as_myself=$0 ;;
35556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35557for as_dir in $PATH
35558do
35559 IFS=$as_save_IFS
35560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35562 done
cristy3ed852e2009-09-05 21:47:34 +000035563IFS=$as_save_IFS
35564
35565 ;;
35566esac
35567# We did not find ourselves, most probably we were run as `sh COMMAND'
35568# in which case we are not to be found in the path.
35569if test "x$as_myself" = x; then
35570 as_myself=$0
35571fi
35572if test ! -f "$as_myself"; then
35573 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035574 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035575fi
35576
cristy8b350f62009-11-15 23:12:43 +000035577# Unset variables that we do not need and which cause bugs (e.g. in
35578# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35579# suppresses any "Segmentation fault" message there. '((' could
35580# trigger a bug in pdksh 5.2.14.
35581for as_var in BASH_ENV ENV MAIL MAILPATH
35582do eval test x\${$as_var+set} = xset \
35583 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035584done
35585PS1='$ '
35586PS2='> '
35587PS4='+ '
35588
35589# NLS nuisances.
35590LC_ALL=C
35591export LC_ALL
35592LANGUAGE=C
35593export LANGUAGE
35594
cristy8b350f62009-11-15 23:12:43 +000035595# CDPATH.
35596(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35597
35598
cristy98dddb52010-11-04 00:30:15 +000035599# as_fn_error STATUS ERROR [LINENO LOG_FD]
35600# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035601# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35602# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035603# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035604as_fn_error ()
35605{
cristy98dddb52010-11-04 00:30:15 +000035606 as_status=$1; test $as_status -eq 0 && as_status=1
35607 if test "$4"; then
35608 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35609 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035610 fi
cristy98dddb52010-11-04 00:30:15 +000035611 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035612 as_fn_exit $as_status
35613} # as_fn_error
35614
35615
35616# as_fn_set_status STATUS
35617# -----------------------
35618# Set $? to STATUS, without forking.
35619as_fn_set_status ()
35620{
35621 return $1
35622} # as_fn_set_status
35623
35624# as_fn_exit STATUS
35625# -----------------
35626# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35627as_fn_exit ()
35628{
35629 set +e
35630 as_fn_set_status $1
35631 exit $1
35632} # as_fn_exit
35633
35634# as_fn_unset VAR
35635# ---------------
35636# Portably unset VAR.
35637as_fn_unset ()
35638{
35639 { eval $1=; unset $1;}
35640}
35641as_unset=as_fn_unset
35642# as_fn_append VAR VALUE
35643# ----------------------
35644# Append the text in VALUE to the end of the definition contained in VAR. Take
35645# advantage of any shell optimizations that allow amortized linear growth over
35646# repeated appends, instead of the typical quadratic growth present in naive
35647# implementations.
35648if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35649 eval 'as_fn_append ()
35650 {
35651 eval $1+=\$2
35652 }'
35653else
35654 as_fn_append ()
35655 {
35656 eval $1=\$$1\$2
35657 }
35658fi # as_fn_append
35659
35660# as_fn_arith ARG...
35661# ------------------
35662# Perform arithmetic evaluation on the ARGs, and store the result in the
35663# global $as_val. Take advantage of shells that can avoid forks. The arguments
35664# must be portable across $(()) and expr.
35665if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35666 eval 'as_fn_arith ()
35667 {
35668 as_val=$(( $* ))
35669 }'
35670else
35671 as_fn_arith ()
35672 {
35673 as_val=`expr "$@" || test $? -eq 1`
35674 }
35675fi # as_fn_arith
35676
35677
cristy3ed852e2009-09-05 21:47:34 +000035678if expr a : '\(a\)' >/dev/null 2>&1 &&
35679 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35680 as_expr=expr
35681else
35682 as_expr=false
35683fi
35684
35685if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35686 as_basename=basename
35687else
35688 as_basename=false
35689fi
35690
cristy8b350f62009-11-15 23:12:43 +000035691if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35692 as_dirname=dirname
35693else
35694 as_dirname=false
35695fi
cristy3ed852e2009-09-05 21:47:34 +000035696
cristy3ed852e2009-09-05 21:47:34 +000035697as_me=`$as_basename -- "$0" ||
35698$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35699 X"$0" : 'X\(//\)$' \| \
35700 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35701$as_echo X/"$0" |
35702 sed '/^.*\/\([^/][^/]*\)\/*$/{
35703 s//\1/
35704 q
35705 }
35706 /^X\/\(\/\/\)$/{
35707 s//\1/
35708 q
35709 }
35710 /^X\/\(\/\).*/{
35711 s//\1/
35712 q
35713 }
35714 s/.*/./; q'`
35715
cristy8b350f62009-11-15 23:12:43 +000035716# Avoid depending upon Character Ranges.
35717as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35718as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35719as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35720as_cr_digits='0123456789'
35721as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035722
35723ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035724case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035725-n*)
cristy8b350f62009-11-15 23:12:43 +000035726 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035727 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035728 xy) ECHO_C='\c';;
35729 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35730 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035731 esac;;
35732*)
35733 ECHO_N='-n';;
35734esac
cristy3ed852e2009-09-05 21:47:34 +000035735
35736rm -f conf$$ conf$$.exe conf$$.file
35737if test -d conf$$.dir; then
35738 rm -f conf$$.dir/conf$$.file
35739else
35740 rm -f conf$$.dir
35741 mkdir conf$$.dir 2>/dev/null
35742fi
35743if (echo >conf$$.file) 2>/dev/null; then
35744 if ln -s conf$$.file conf$$ 2>/dev/null; then
35745 as_ln_s='ln -s'
35746 # ... but there are two gotchas:
35747 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35748 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35749 # In both cases, we have to default to `cp -p'.
35750 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35751 as_ln_s='cp -p'
35752 elif ln conf$$.file conf$$ 2>/dev/null; then
35753 as_ln_s=ln
35754 else
35755 as_ln_s='cp -p'
35756 fi
35757else
35758 as_ln_s='cp -p'
35759fi
35760rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35761rmdir conf$$.dir 2>/dev/null
35762
cristy8b350f62009-11-15 23:12:43 +000035763
35764# as_fn_mkdir_p
35765# -------------
35766# Create "$as_dir" as a directory, including parents if necessary.
35767as_fn_mkdir_p ()
35768{
35769
35770 case $as_dir in #(
35771 -*) as_dir=./$as_dir;;
35772 esac
35773 test -d "$as_dir" || eval $as_mkdir_p || {
35774 as_dirs=
35775 while :; do
35776 case $as_dir in #(
35777 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35778 *) as_qdir=$as_dir;;
35779 esac
35780 as_dirs="'$as_qdir' $as_dirs"
35781 as_dir=`$as_dirname -- "$as_dir" ||
35782$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35783 X"$as_dir" : 'X\(//\)[^/]' \| \
35784 X"$as_dir" : 'X\(//\)$' \| \
35785 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35786$as_echo X"$as_dir" |
35787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35788 s//\1/
35789 q
35790 }
35791 /^X\(\/\/\)[^/].*/{
35792 s//\1/
35793 q
35794 }
35795 /^X\(\/\/\)$/{
35796 s//\1/
35797 q
35798 }
35799 /^X\(\/\).*/{
35800 s//\1/
35801 q
35802 }
35803 s/.*/./; q'`
35804 test -d "$as_dir" && break
35805 done
35806 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035807 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035808
35809
35810} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035811if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035812 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035813else
35814 test -d ./-p && rmdir ./-p
35815 as_mkdir_p=false
35816fi
35817
35818if test -x / >/dev/null 2>&1; then
35819 as_test_x='test -x'
35820else
35821 if ls -dL / >/dev/null 2>&1; then
35822 as_ls_L_option=L
35823 else
35824 as_ls_L_option=
35825 fi
35826 as_test_x='
35827 eval sh -c '\''
35828 if test -d "$1"; then
35829 test -d "$1/.";
35830 else
cristy8b350f62009-11-15 23:12:43 +000035831 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035832 -*)set "./$1";;
35833 esac;
cristy8b350f62009-11-15 23:12:43 +000035834 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035835 ???[sx]*):;;*)false;;esac;fi
35836 '\'' sh
35837 '
35838fi
35839as_executable_p=$as_test_x
35840
35841# Sed expression to map a string onto a valid CPP name.
35842as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35843
35844# Sed expression to map a string onto a valid variable name.
35845as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35846
35847
35848exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035849## ----------------------------------- ##
35850## Main body of $CONFIG_STATUS script. ##
35851## ----------------------------------- ##
35852_ASEOF
35853test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035854
cristy8b350f62009-11-15 23:12:43 +000035855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35856# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035857# report actual input values of CONFIG_FILES etc. instead of their
35858# values after options handling.
35859ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035860This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000035861generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035862
35863 CONFIG_FILES = $CONFIG_FILES
35864 CONFIG_HEADERS = $CONFIG_HEADERS
35865 CONFIG_LINKS = $CONFIG_LINKS
35866 CONFIG_COMMANDS = $CONFIG_COMMANDS
35867 $ $0 $@
35868
35869on `(hostname || uname -n) 2>/dev/null | sed 1q`
35870"
35871
35872_ACEOF
35873
35874case $ac_config_files in *"
35875"*) set x $ac_config_files; shift; ac_config_files=$*;;
35876esac
35877
35878case $ac_config_headers in *"
35879"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35880esac
35881
35882
35883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35884# Files that config.status was made for.
35885config_files="$ac_config_files"
35886config_headers="$ac_config_headers"
35887config_commands="$ac_config_commands"
35888
35889_ACEOF
35890
35891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35892ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035893\`$as_me' instantiates files and other configuration actions
35894from templates according to the current configuration. Unless the files
35895and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035896
cristy8b350f62009-11-15 23:12:43 +000035897Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035898
35899 -h, --help print this help, then exit
35900 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035901 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035902 -q, --quiet, --silent
35903 do not print progress messages
35904 -d, --debug don't remove temporary files
35905 --recheck update $as_me by reconfiguring in the same conditions
35906 --file=FILE[:TEMPLATE]
35907 instantiate the configuration file FILE
35908 --header=FILE[:TEMPLATE]
35909 instantiate the configuration header FILE
35910
35911Configuration files:
35912$config_files
35913
35914Configuration headers:
35915$config_headers
35916
35917Configuration commands:
35918$config_commands
35919
cristy8b350f62009-11-15 23:12:43 +000035920Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035921
35922_ACEOF
35923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035924ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035925ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035926ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000035927configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035928 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035929
cristy98dddb52010-11-04 00:30:15 +000035930Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035931This config.status script is free software; the Free Software Foundation
35932gives unlimited permission to copy, distribute and modify it."
35933
35934ac_pwd='$ac_pwd'
35935srcdir='$srcdir'
35936INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035937MKDIR_P='$MKDIR_P'
35938AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035939test -n "\$AWK" || AWK=awk
35940_ACEOF
35941
35942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35943# The default lists apply if the user does not specify any file.
35944ac_need_defaults=:
35945while test $# != 0
35946do
35947 case $1 in
cristyda16f162011-02-19 23:52:17 +000035948 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035949 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35950 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35951 ac_shift=:
35952 ;;
cristyda16f162011-02-19 23:52:17 +000035953 --*=)
35954 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35955 ac_optarg=
35956 ac_shift=:
35957 ;;
cristy3ed852e2009-09-05 21:47:34 +000035958 *)
35959 ac_option=$1
35960 ac_optarg=$2
35961 ac_shift=shift
35962 ;;
35963 esac
35964
35965 case $ac_option in
35966 # Handling of the options.
35967 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35968 ac_cs_recheck=: ;;
35969 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35970 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035971 --config | --confi | --conf | --con | --co | --c )
35972 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035973 --debug | --debu | --deb | --de | --d | -d )
35974 debug=: ;;
35975 --file | --fil | --fi | --f )
35976 $ac_shift
35977 case $ac_optarg in
35978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035979 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035980 esac
cristy8b350f62009-11-15 23:12:43 +000035981 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035982 ac_need_defaults=false;;
35983 --header | --heade | --head | --hea )
35984 $ac_shift
35985 case $ac_optarg in
35986 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35987 esac
cristy8b350f62009-11-15 23:12:43 +000035988 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035989 ac_need_defaults=false;;
35990 --he | --h)
35991 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035993Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035994 --help | --hel | -h )
35995 $as_echo "$ac_cs_usage"; exit ;;
35996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35997 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35998 ac_cs_silent=: ;;
35999
36000 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036001 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036002Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036003
cristy8b350f62009-11-15 23:12:43 +000036004 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036005 ac_need_defaults=false ;;
36006
36007 esac
36008 shift
36009done
36010
36011ac_configure_extra_args=
36012
36013if $ac_cs_silent; then
36014 exec 6>/dev/null
36015 ac_configure_extra_args="$ac_configure_extra_args --silent"
36016fi
36017
36018_ACEOF
36019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36020if \$ac_cs_recheck; then
36021 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36022 shift
36023 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36024 CONFIG_SHELL='$SHELL'
36025 export CONFIG_SHELL
36026 exec "\$@"
36027fi
36028
36029_ACEOF
36030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36031exec 5>>config.log
36032{
36033 echo
36034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36035## Running $as_me. ##
36036_ASBOX
36037 $as_echo "$ac_log"
36038} >&5
36039
36040_ACEOF
36041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036042#
36043# INIT-COMMANDS
36044#
36045PACKAGE="$PACKAGE"
36046AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36047
36048
36049# The HP-UX ksh and POSIX shell print the target directory to stdout
36050# if CDPATH is set.
36051(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36052
36053sed_quote_subst='$sed_quote_subst'
36054double_quote_subst='$double_quote_subst'
36055delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036056SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36057Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36058GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36059EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36060FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36061SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36062ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36063LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36064macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36065macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36066AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36067DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36068OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36069enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36070enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36071pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36072enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36073host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36074host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36075host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36076build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36077build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36078build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36079NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36080LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36081max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36082ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36083exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36084lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36085lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36086lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036087lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36088lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036089reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36090reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36091deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36092file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036093file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36094want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36095sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036096AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36097AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036098archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036099STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36100RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36101old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36102old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36103old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36104lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36105CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36106CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36107compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36108GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36109lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36110lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36111lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36112lt_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 +000036113nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36114lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036115objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36116MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36117lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036118lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036119lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036120lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36121lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36122need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036123MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036124DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36125NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36126LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36127OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36128OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36129libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36130shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36131extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36132archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36133enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36134export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36135whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36136compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36137old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36138old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36139archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36140archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36141module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36142module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36143with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36144allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36145no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36146hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36147hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
36148hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36149hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36150hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36151hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36152hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36153hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36154inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36155link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036156always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36157export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36158exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36159include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36160prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036161postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036162file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36163variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36164need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36165need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36166version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36167runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36168shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36169shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36170libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36171library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36172soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36173install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36174postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36175postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36176finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36177finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36178hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36179sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36180sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36181hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36182enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36183enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36184enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36185old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36186striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36187compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36188predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36189postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36190predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36191postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36192compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36193LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36194reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36195reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36196old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36197compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36198GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36199lt_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 +000036200lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036201lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036202lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36203lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36204archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36205enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36206export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36207whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36208compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36209old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36210old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36211archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36212archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36213module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36214module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36215with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36216allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36217no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36218hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36219hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
36220hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36221hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36222hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36223hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36224hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36225hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36226inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36227link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036228always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36229export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36230exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36231include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36232prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036233postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036234file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36235hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36236compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36237predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36238postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36239predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36240postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36241compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036242
36243LTCC='$LTCC'
36244LTCFLAGS='$LTCFLAGS'
36245compiler='$compiler_DEFAULT'
36246
cristy0c60a692010-11-04 01:09:47 +000036247# A function that is used when there is no print builtin or printf.
36248func_fallback_echo ()
36249{
36250 eval 'cat <<_LTECHO_EOF
36251\$1
36252_LTECHO_EOF'
36253}
36254
cristy73bd4a52010-10-05 11:24:23 +000036255# Quote evaled strings.
36256for var in SED \
36257GREP \
36258EGREP \
36259FGREP \
cristy0c60a692010-11-04 01:09:47 +000036260SHELL \
36261ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036262LD \
cristy0c60a692010-11-04 01:09:47 +000036263AS \
36264DLLTOOL \
36265OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000036266NM \
36267LN_S \
36268lt_SP2NL \
36269lt_NL2SP \
36270reload_flag \
36271deplibs_check_method \
36272file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036273file_magic_glob \
36274want_nocaseglob \
36275sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036276AR \
36277AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036278archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036279STRIP \
36280RANLIB \
36281CC \
36282CFLAGS \
36283compiler \
36284lt_cv_sys_global_symbol_pipe \
36285lt_cv_sys_global_symbol_to_cdecl \
36286lt_cv_sys_global_symbol_to_c_name_address \
36287lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036288nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036289lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036290lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036291lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036292lt_prog_compiler_static \
36293lt_cv_prog_compiler_c_o \
36294need_locks \
cristyda16f162011-02-19 23:52:17 +000036295MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036296DSYMUTIL \
36297NMEDIT \
36298LIPO \
36299OTOOL \
36300OTOOL64 \
36301shrext_cmds \
36302export_dynamic_flag_spec \
36303whole_archive_flag_spec \
36304compiler_needs_object \
36305with_gnu_ld \
36306allow_undefined_flag \
36307no_undefined_flag \
36308hardcode_libdir_flag_spec \
36309hardcode_libdir_flag_spec_ld \
36310hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036311exclude_expsyms \
36312include_expsyms \
36313file_list_spec \
36314variables_saved_for_relink \
36315libname_spec \
36316library_names_spec \
36317soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036318install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036319finish_eval \
36320old_striplib \
36321striplib \
36322compiler_lib_search_dirs \
36323predep_objects \
36324postdep_objects \
36325predeps \
36326postdeps \
36327compiler_lib_search_path \
36328LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036329reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036330compiler_CXX \
36331lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036332lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036333lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036334lt_prog_compiler_static_CXX \
36335lt_cv_prog_compiler_c_o_CXX \
36336export_dynamic_flag_spec_CXX \
36337whole_archive_flag_spec_CXX \
36338compiler_needs_object_CXX \
36339with_gnu_ld_CXX \
36340allow_undefined_flag_CXX \
36341no_undefined_flag_CXX \
36342hardcode_libdir_flag_spec_CXX \
36343hardcode_libdir_flag_spec_ld_CXX \
36344hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036345exclude_expsyms_CXX \
36346include_expsyms_CXX \
36347file_list_spec_CXX \
36348compiler_lib_search_dirs_CXX \
36349predep_objects_CXX \
36350postdep_objects_CXX \
36351predeps_CXX \
36352postdeps_CXX \
36353compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036354 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036355 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036356 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036357 ;;
36358 *)
36359 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36360 ;;
36361 esac
36362done
36363
36364# Double-quote double-evaled strings.
36365for var in reload_cmds \
36366old_postinstall_cmds \
36367old_postuninstall_cmds \
36368old_archive_cmds \
36369extract_expsyms_cmds \
36370old_archive_from_new_cmds \
36371old_archive_from_expsyms_cmds \
36372archive_cmds \
36373archive_expsym_cmds \
36374module_cmds \
36375module_expsym_cmds \
36376export_symbols_cmds \
36377prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036378postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036379postinstall_cmds \
36380postuninstall_cmds \
36381finish_cmds \
36382sys_lib_search_path_spec \
36383sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036384reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036385old_archive_cmds_CXX \
36386old_archive_from_new_cmds_CXX \
36387old_archive_from_expsyms_cmds_CXX \
36388archive_cmds_CXX \
36389archive_expsym_cmds_CXX \
36390module_cmds_CXX \
36391module_expsym_cmds_CXX \
36392export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036393prelink_cmds_CXX \
36394postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036395 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036396 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036398 ;;
36399 *)
36400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36401 ;;
36402 esac
36403done
36404
cristy73bd4a52010-10-05 11:24:23 +000036405ac_aux_dir='$ac_aux_dir'
36406xsi_shell='$xsi_shell'
36407lt_shell_append='$lt_shell_append'
36408
36409# See if we are running on zsh, and set the options which allow our
36410# commands through without removal of \ escapes INIT.
36411if test -n "\${ZSH_VERSION+set}" ; then
36412 setopt NO_GLOB_SUBST
36413fi
36414
36415
36416 PACKAGE='$PACKAGE'
36417 VERSION='$VERSION'
36418 TIMESTAMP='$TIMESTAMP'
36419 RM='$RM'
36420 ofile='$ofile'
36421
36422
36423
36424
36425
36426
cristy3ed852e2009-09-05 21:47:34 +000036427_ACEOF
36428
36429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36430
36431# Handling of arguments.
36432for ac_config_target in $ac_config_targets
36433do
36434 case $ac_config_target in
36435 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036436 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036437 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36438 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36439 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36440 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36441 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036442 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036443 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36444 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36445 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36446 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36447 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036448 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036449 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36450 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036451 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36452 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36453 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036454 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36455 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36456 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36457 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36458 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36459 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36460 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36461 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36462 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36463 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36464 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36465 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36466 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36467 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36468 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36469 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36470 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036471 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36472 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036473 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36474 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036475 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36476 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036477 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036478 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36479 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36480
cristy98dddb52010-11-04 00:30:15 +000036481 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036482 esac
36483done
36484
36485
36486# If the user did not use the arguments to specify the items to instantiate,
36487# then the envvar interface is used. Set only those that are not.
36488# We use the long form for the default assignment because of an extremely
36489# bizarre bug on SunOS 4.1.3.
36490if $ac_need_defaults; then
36491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36492 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36493 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36494fi
36495
36496# Have a temporary directory for convenience. Make it in the build tree
36497# simply because there is no reason against having it here, and in addition,
36498# creating and moving files from /tmp can sometimes cause problems.
36499# Hook for its removal unless debugging.
36500# Note that there is a small window in which the directory will not be cleaned:
36501# after its creation but before its name has been assigned to `$tmp'.
36502$debug ||
36503{
cristyda16f162011-02-19 23:52:17 +000036504 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036505 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036506 : "${ac_tmp:=$tmp}"
36507 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036508' 0
cristy8b350f62009-11-15 23:12:43 +000036509 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036510}
36511# Create a (secure) tmp directory for tmp files.
36512
36513{
36514 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036515 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036516} ||
36517{
36518 tmp=./conf$$-$RANDOM
36519 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036520} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036521ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036522
36523# Set up the scripts for CONFIG_FILES section.
36524# No need to generate them if there are no CONFIG_FILES.
36525# This happens for instance with `./config.status config.h'.
36526if test -n "$CONFIG_FILES"; then
36527
36528
cristy8b350f62009-11-15 23:12:43 +000036529ac_cr=`echo X | tr X '\015'`
36530# On cygwin, bash can eat \r inside `` if the user requested igncr.
36531# But we know of no other shell where ac_cr would be empty at this
36532# point, so we can use a bashism as a fallback.
36533if test "x$ac_cr" = x; then
36534 eval ac_cr=\$\'\\r\'
36535fi
cristy3ed852e2009-09-05 21:47:34 +000036536ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36537if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036538 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036539else
36540 ac_cs_awk_cr=$ac_cr
36541fi
36542
cristyda16f162011-02-19 23:52:17 +000036543echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036544_ACEOF
36545
36546
36547{
36548 echo "cat >conf$$subs.awk <<_ACEOF" &&
36549 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36550 echo "_ACEOF"
36551} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36553ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036554ac_delim='%!_!# '
36555for ac_last_try in false false false false false :; do
36556 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036557 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036558
36559 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36560 if test $ac_delim_n = $ac_delim_num; then
36561 break
36562 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036563 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036564 else
36565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36566 fi
36567done
36568rm -f conf$$subs.sh
36569
36570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036571cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036572_ACEOF
36573sed -n '
36574h
36575s/^/S["/; s/!.*/"]=/
36576p
36577g
36578s/^[^!]*!//
36579:repl
36580t repl
36581s/'"$ac_delim"'$//
36582t delim
36583:nl
36584h
cristycd4c5312009-11-22 01:19:08 +000036585s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036586t more1
36587s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36588p
36589n
36590b repl
36591:more1
36592s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36593p
36594g
36595s/.\{148\}//
36596t nl
36597:delim
36598h
cristycd4c5312009-11-22 01:19:08 +000036599s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036600t more2
36601s/["\\]/\\&/g; s/^/"/; s/$/"/
36602p
36603b
36604:more2
36605s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36606p
36607g
36608s/.\{148\}//
36609t delim
36610' <conf$$subs.awk | sed '
36611/^[^""]/{
36612 N
36613 s/\n//
36614}
36615' >>$CONFIG_STATUS || ac_write_fail=1
36616rm -f conf$$subs.awk
36617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36618_ACAWK
cristyda16f162011-02-19 23:52:17 +000036619cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036620 for (key in S) S_is_set[key] = 1
36621 FS = ""
36622
36623}
36624{
36625 line = $ 0
36626 nfields = split(line, field, "@")
36627 substed = 0
36628 len = length(field[1])
36629 for (i = 2; i < nfields; i++) {
36630 key = field[i]
36631 keylen = length(key)
36632 if (S_is_set[key]) {
36633 value = S[key]
36634 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36635 len += length(value) + length(field[++i])
36636 substed = 1
36637 } else
36638 len += 1 + keylen
36639 }
36640
36641 print line
36642}
36643
36644_ACAWK
36645_ACEOF
36646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36647if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36648 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36649else
36650 cat
cristyda16f162011-02-19 23:52:17 +000036651fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036652 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036653_ACEOF
36654
cristy98dddb52010-11-04 00:30:15 +000036655# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36656# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036657# trailing colons and then remove the whole line if VPATH becomes empty
36658# (actually we leave an empty line to preserve line numbers).
36659if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036660 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36661h
36662s///
36663s/^/:/
36664s/[ ]*$/:/
36665s/:\$(srcdir):/:/g
36666s/:\${srcdir}:/:/g
36667s/:@srcdir@:/:/g
36668s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036669s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036670x
36671s/\(=[ ]*\).*/\1/
36672G
36673s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036674s/^[^=]*=[ ]*$//
36675}'
36676fi
36677
36678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36679fi # test -n "$CONFIG_FILES"
36680
36681# Set up the scripts for CONFIG_HEADERS section.
36682# No need to generate them if there are no CONFIG_HEADERS.
36683# This happens for instance with `./config.status Makefile'.
36684if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036685cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036686BEGIN {
36687_ACEOF
36688
36689# Transform confdefs.h into an awk script `defines.awk', embedded as
36690# here-document in config.status, that substitutes the proper values into
36691# config.h.in to produce config.h.
36692
36693# Create a delimiter string that does not exist in confdefs.h, to ease
36694# handling of long lines.
36695ac_delim='%!_!# '
36696for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036697 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36698 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036699 break
36700 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036701 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036702 else
36703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36704 fi
36705done
36706
36707# For the awk script, D is an array of macro values keyed by name,
36708# likewise P contains macro parameters if any. Preserve backslash
36709# newline sequences.
36710
36711ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36712sed -n '
36713s/.\{148\}/&'"$ac_delim"'/g
36714t rset
36715:rset
36716s/^[ ]*#[ ]*define[ ][ ]*/ /
36717t def
36718d
36719:def
36720s/\\$//
36721t bsnl
36722s/["\\]/\\&/g
36723s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36724D["\1"]=" \3"/p
36725s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36726d
36727:bsnl
36728s/["\\]/\\&/g
36729s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36730D["\1"]=" \3\\\\\\n"\\/p
36731t cont
36732s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36733t cont
36734d
36735:cont
36736n
36737s/.\{148\}/&'"$ac_delim"'/g
36738t clear
36739:clear
36740s/\\$//
36741t bsnlc
36742s/["\\]/\\&/g; s/^/"/; s/$/"/p
36743d
36744:bsnlc
36745s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36746b cont
36747' <confdefs.h | sed '
36748s/'"$ac_delim"'/"\\\
36749"/g' >>$CONFIG_STATUS || ac_write_fail=1
36750
36751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36752 for (key in D) D_is_set[key] = 1
36753 FS = ""
36754}
36755/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36756 line = \$ 0
36757 split(line, arg, " ")
36758 if (arg[1] == "#") {
36759 defundef = arg[2]
36760 mac1 = arg[3]
36761 } else {
36762 defundef = substr(arg[1], 2)
36763 mac1 = arg[2]
36764 }
36765 split(mac1, mac2, "(") #)
36766 macro = mac2[1]
36767 prefix = substr(line, 1, index(line, defundef) - 1)
36768 if (D_is_set[macro]) {
36769 # Preserve the white space surrounding the "#".
36770 print prefix "define", macro P[macro] D[macro]
36771 next
36772 } else {
36773 # Replace #undef with comments. This is necessary, for example,
36774 # in the case of _POSIX_SOURCE, which is predefined and required
36775 # on some systems where configure will not decide to define it.
36776 if (defundef == "undef") {
36777 print "/*", prefix defundef, macro, "*/"
36778 next
36779 }
36780 }
36781}
36782{ print }
36783_ACAWK
36784_ACEOF
36785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036786 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036787fi # test -n "$CONFIG_HEADERS"
36788
36789
36790eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36791shift
36792for ac_tag
36793do
36794 case $ac_tag in
36795 :[FHLC]) ac_mode=$ac_tag; continue;;
36796 esac
36797 case $ac_mode$ac_tag in
36798 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036799 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036800 :[FH]-) ac_tag=-:-;;
36801 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36802 esac
36803 ac_save_IFS=$IFS
36804 IFS=:
36805 set x $ac_tag
36806 IFS=$ac_save_IFS
36807 shift
36808 ac_file=$1
36809 shift
36810
36811 case $ac_mode in
36812 :L) ac_source=$1;;
36813 :[FH])
36814 ac_file_inputs=
36815 for ac_f
36816 do
36817 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036818 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036819 *) # Look for the file first in the build tree, then in the source tree
36820 # (if the path is not absolute). The absolute path cannot be DOS-style,
36821 # because $ac_f cannot contain `:'.
36822 test -f "$ac_f" ||
36823 case $ac_f in
36824 [\\/$]*) false;;
36825 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36826 esac ||
cristy98dddb52010-11-04 00:30:15 +000036827 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036828 esac
36829 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036830 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036831 done
36832
36833 # Let's still pretend it is `configure' which instantiates (i.e., don't
36834 # use $as_me), people would be surprised to read:
36835 # /* config.h. Generated by config.status. */
36836 configure_input='Generated from '`
36837 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36838 `' by configure.'
36839 if test x"$ac_file" != x-; then
36840 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036842$as_echo "$as_me: creating $ac_file" >&6;}
36843 fi
36844 # Neutralize special characters interpreted by sed in replacement strings.
36845 case $configure_input in #(
36846 *\&* | *\|* | *\\* )
36847 ac_sed_conf_input=`$as_echo "$configure_input" |
36848 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36849 *) ac_sed_conf_input=$configure_input;;
36850 esac
36851
36852 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036853 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036855 esac
36856 ;;
36857 esac
36858
36859 ac_dir=`$as_dirname -- "$ac_file" ||
36860$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36861 X"$ac_file" : 'X\(//\)[^/]' \| \
36862 X"$ac_file" : 'X\(//\)$' \| \
36863 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36864$as_echo X"$ac_file" |
36865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36866 s//\1/
36867 q
36868 }
36869 /^X\(\/\/\)[^/].*/{
36870 s//\1/
36871 q
36872 }
36873 /^X\(\/\/\)$/{
36874 s//\1/
36875 q
36876 }
36877 /^X\(\/\).*/{
36878 s//\1/
36879 q
36880 }
36881 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036882 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036883 ac_builddir=.
36884
36885case "$ac_dir" in
36886.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36887*)
36888 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36889 # A ".." for each directory in $ac_dir_suffix.
36890 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36891 case $ac_top_builddir_sub in
36892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36894 esac ;;
36895esac
36896ac_abs_top_builddir=$ac_pwd
36897ac_abs_builddir=$ac_pwd$ac_dir_suffix
36898# for backward compatibility:
36899ac_top_builddir=$ac_top_build_prefix
36900
36901case $srcdir in
36902 .) # We are building in place.
36903 ac_srcdir=.
36904 ac_top_srcdir=$ac_top_builddir_sub
36905 ac_abs_top_srcdir=$ac_pwd ;;
36906 [\\/]* | ?:[\\/]* ) # Absolute name.
36907 ac_srcdir=$srcdir$ac_dir_suffix;
36908 ac_top_srcdir=$srcdir
36909 ac_abs_top_srcdir=$srcdir ;;
36910 *) # Relative name.
36911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36912 ac_top_srcdir=$ac_top_build_prefix$srcdir
36913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36914esac
36915ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36916
36917
36918 case $ac_mode in
36919 :F)
36920 #
36921 # CONFIG_FILE
36922 #
36923
36924 case $INSTALL in
36925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36926 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36927 esac
cristy73bd4a52010-10-05 11:24:23 +000036928 ac_MKDIR_P=$MKDIR_P
36929 case $MKDIR_P in
36930 [\\/$]* | ?:[\\/]* ) ;;
36931 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36932 esac
cristy3ed852e2009-09-05 21:47:34 +000036933_ACEOF
36934
36935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36936# If the template does not know about datarootdir, expand it.
36937# FIXME: This hack should be removed a few years after 2.60.
36938ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036939ac_sed_dataroot='
36940/datarootdir/ {
36941 p
36942 q
36943}
36944/@datadir@/p
36945/@docdir@/p
36946/@infodir@/p
36947/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036948/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036949case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36950*datarootdir*) ac_datarootdir_seen=yes;;
36951*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036953$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36954_ACEOF
36955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36956 ac_datarootdir_hack='
36957 s&@datadir@&$datadir&g
36958 s&@docdir@&$docdir&g
36959 s&@infodir@&$infodir&g
36960 s&@localedir@&$localedir&g
36961 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036962 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036963esac
36964_ACEOF
36965
36966# Neutralize VPATH when `$srcdir' = `.'.
36967# Shell code in configure.ac might set extrasub.
36968# FIXME: do we really want to maintain this feature?
36969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36970ac_sed_extra="$ac_vpsub
36971$extrasub
36972_ACEOF
36973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36974:t
36975/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36976s|@configure_input@|$ac_sed_conf_input|;t t
36977s&@top_builddir@&$ac_top_builddir_sub&;t t
36978s&@top_build_prefix@&$ac_top_build_prefix&;t t
36979s&@srcdir@&$ac_srcdir&;t t
36980s&@abs_srcdir@&$ac_abs_srcdir&;t t
36981s&@top_srcdir@&$ac_top_srcdir&;t t
36982s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36983s&@builddir@&$ac_builddir&;t t
36984s&@abs_builddir@&$ac_abs_builddir&;t t
36985s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36986s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036987s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036988$ac_datarootdir_hack
36989"
cristyda16f162011-02-19 23:52:17 +000036990eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36991 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036992
36993test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036994 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36995 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36996 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036998which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036999$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037000which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037001
cristyda16f162011-02-19 23:52:17 +000037002 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037003 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037004 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37005 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037006 esac \
cristy98dddb52010-11-04 00:30:15 +000037007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037008 ;;
37009 :H)
37010 #
37011 # CONFIG_HEADER
37012 #
37013 if test x"$ac_file" != x-; then
37014 {
37015 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037016 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37017 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037019 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037020 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037021$as_echo "$as_me: $ac_file is unchanged" >&6;}
37022 else
37023 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037024 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037026 fi
37027 else
37028 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037029 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037030 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037031 fi
cristy73bd4a52010-10-05 11:24:23 +000037032# Compute "$ac_file"'s index in $config_headers.
37033_am_arg="$ac_file"
37034_am_stamp_count=1
37035for _am_header in $config_headers :; do
37036 case $_am_header in
37037 $_am_arg | $_am_arg:* )
37038 break ;;
37039 * )
37040 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37041 esac
37042done
37043echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37044$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37045 X"$_am_arg" : 'X\(//\)[^/]' \| \
37046 X"$_am_arg" : 'X\(//\)$' \| \
37047 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37048$as_echo X"$_am_arg" |
37049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37050 s//\1/
37051 q
37052 }
37053 /^X\(\/\/\)[^/].*/{
37054 s//\1/
37055 q
37056 }
37057 /^X\(\/\/\)$/{
37058 s//\1/
37059 q
37060 }
37061 /^X\(\/\).*/{
37062 s//\1/
37063 q
37064 }
37065 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037066 ;;
37067
cristy8b350f62009-11-15 23:12:43 +000037068 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037069$as_echo "$as_me: executing $ac_file commands" >&6;}
37070 ;;
37071 esac
37072
37073
37074 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037075 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037076ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37077ac_prefix_conf_PKG=`echo MagickCore`
37078ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37079ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37080ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37081if test ".$ac_prefix_conf_INP" = "."; then
37082 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37083 case "$ac_file" in
37084 *.h) ac_prefix_conf_INP=$ac_file ;;
37085 *)
37086 esac
37087 test ".$ac_prefix_conf_INP" != "." && break
37088 done
37089fi
37090if test ".$ac_prefix_conf_INP" = "."; then
37091 case "$ac_prefix_conf_OUT" in
37092 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37093 ;;
37094 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37095 ;;
37096 *) ac_prefix_conf_INP=config.h
37097 ;;
37098 esac
37099fi
37100if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037101 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037102else
37103 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37104 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37105 fi fi
37106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37107$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37108 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037109 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37110 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37111 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37112 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37113 $as_echo "#endif/" >> conftest.prefix
37114 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37115 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37116 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037117 # now executing _script on _DEF input to create _OUT output file
37118 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37119 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37120 echo ' ' >>$tmp/pconfig.h
37121 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37122
37123 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37124 echo ' ' >>$tmp/pconfig.h
37125 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37126 echo "#endif" >>$tmp/pconfig.h
37127 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37128 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37129$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37130 else
37131 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37132$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37133 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37134 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37135 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37136$as_echo X"$ac_prefix_conf_OUT" |
37137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37138 s//\1/
37139 q
37140 }
37141 /^X\(\/\/\)[^/].*/{
37142 s//\1/
37143 q
37144 }
37145 /^X\(\/\/\)$/{
37146 s//\1/
37147 q
37148 }
37149 /^X\(\/\).*/{
37150 s//\1/
37151 q
37152 }
37153 s/.*/./; q'`
37154 as_dir="$ac_dir"; as_fn_mkdir_p
37155 rm -f "$ac_prefix_conf_OUT"
37156 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37157 fi
37158 cp conftest.prefix _configs.sed
37159 else
cristy98dddb52010-11-04 00:30:15 +000037160 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 +000037161 fi
37162 rm -f conftest.*
37163fi
37164 ;;
37165 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37166 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37167 # are listed without --file. Let's play safe and only enable the eval
37168 # if we detect the quoting.
37169 case $CONFIG_FILES in
37170 *\'*) eval set x "$CONFIG_FILES" ;;
37171 *) set x $CONFIG_FILES ;;
37172 esac
37173 shift
37174 for mf
37175 do
37176 # Strip MF so we end up with the name of the file.
37177 mf=`echo "$mf" | sed -e 's/:.*$//'`
37178 # Check whether this is an Automake generated Makefile or not.
37179 # We used to match only the files named `Makefile.in', but
37180 # some people rename them; so instead we look at the file content.
37181 # Grep'ing the first line is not enough: some people post-process
37182 # each Makefile.in and add a new line on top of each file to say so.
37183 # Grep'ing the whole file is not good either: AIX grep has a line
37184 # limit of 2048, but all sed's we know have understand at least 4000.
37185 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37186 dirpart=`$as_dirname -- "$mf" ||
37187$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37188 X"$mf" : 'X\(//\)[^/]' \| \
37189 X"$mf" : 'X\(//\)$' \| \
37190 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37191$as_echo X"$mf" |
37192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37193 s//\1/
37194 q
37195 }
37196 /^X\(\/\/\)[^/].*/{
37197 s//\1/
37198 q
37199 }
37200 /^X\(\/\/\)$/{
37201 s//\1/
37202 q
37203 }
37204 /^X\(\/\).*/{
37205 s//\1/
37206 q
37207 }
37208 s/.*/./; q'`
37209 else
37210 continue
37211 fi
37212 # Extract the definition of DEPDIR, am__include, and am__quote
37213 # from the Makefile without running `make'.
37214 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37215 test -z "$DEPDIR" && continue
37216 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37217 test -z "am__include" && continue
37218 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37219 # When using ansi2knr, U may be empty or an underscore; expand it
37220 U=`sed -n 's/^U = //p' < "$mf"`
37221 # Find all dependency output files, they are included files with
37222 # $(DEPDIR) in their names. We invoke sed twice because it is the
37223 # simplest approach to changing $(DEPDIR) to its actual value in the
37224 # expansion.
37225 for file in `sed -n "
37226 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37227 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37228 # Make sure the directory exists.
37229 test -f "$dirpart/$file" && continue
37230 fdir=`$as_dirname -- "$file" ||
37231$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37232 X"$file" : 'X\(//\)[^/]' \| \
37233 X"$file" : 'X\(//\)$' \| \
37234 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37235$as_echo X"$file" |
37236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37237 s//\1/
37238 q
37239 }
37240 /^X\(\/\/\)[^/].*/{
37241 s//\1/
37242 q
37243 }
37244 /^X\(\/\/\)$/{
37245 s//\1/
37246 q
37247 }
37248 /^X\(\/\).*/{
37249 s//\1/
37250 q
37251 }
37252 s/.*/./; q'`
37253 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37254 # echo "creating $dirpart/$file"
37255 echo '# dummy' > "$dirpart/$file"
37256 done
37257 done
37258}
37259 ;;
37260 "libtool":C)
37261
37262 # See if we are running on zsh, and set the options which allow our
37263 # commands through without removal of \ escapes.
37264 if test -n "${ZSH_VERSION+set}" ; then
37265 setopt NO_GLOB_SUBST
37266 fi
37267
37268 cfgfile="${ofile}T"
37269 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37270 $RM "$cfgfile"
37271
37272 cat <<_LT_EOF >> "$cfgfile"
37273#! $SHELL
37274
37275# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37276# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37277# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37278# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37279#
37280# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000037281# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37282# Inc.
cristy73bd4a52010-10-05 11:24:23 +000037283# Written by Gordon Matzigkeit, 1996
37284#
37285# This file is part of GNU Libtool.
37286#
37287# GNU Libtool is free software; you can redistribute it and/or
37288# modify it under the terms of the GNU General Public License as
37289# published by the Free Software Foundation; either version 2 of
37290# the License, or (at your option) any later version.
37291#
37292# As a special exception to the GNU General Public License,
37293# if you distribute this file as part of a program or library that
37294# is built using GNU Libtool, you may include this file under the
37295# same distribution terms that you use for the rest of that program.
37296#
37297# GNU Libtool is distributed in the hope that it will be useful,
37298# but WITHOUT ANY WARRANTY; without even the implied warranty of
37299# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37300# GNU General Public License for more details.
37301#
37302# You should have received a copy of the GNU General Public License
37303# along with GNU Libtool; see the file COPYING. If not, a copy
37304# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37305# obtained by writing to the Free Software Foundation, Inc.,
37306# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37307
37308
37309# The names of the tagged configurations supported by this script.
37310available_tags="CXX "
37311
37312# ### BEGIN LIBTOOL CONFIG
37313
37314# A sed program that does not truncate output.
37315SED=$lt_SED
37316
37317# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37318Xsed="\$SED -e 1s/^X//"
37319
37320# A grep program that handles long lines.
37321GREP=$lt_GREP
37322
37323# An ERE matcher.
37324EGREP=$lt_EGREP
37325
37326# A literal string matcher.
37327FGREP=$lt_FGREP
37328
cristy0c60a692010-11-04 01:09:47 +000037329# Shell to use when invoking shell scripts.
37330SHELL=$lt_SHELL
37331
37332# An echo program that protects backslashes.
37333ECHO=$lt_ECHO
37334
cristy73bd4a52010-10-05 11:24:23 +000037335# Which release of libtool.m4 was used?
37336macro_version=$macro_version
37337macro_revision=$macro_revision
37338
37339# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037340AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037341
37342# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037343DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037344
37345# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037346OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037347
37348# Whether or not to build shared libraries.
37349build_libtool_libs=$enable_shared
37350
37351# Whether or not to build static libraries.
37352build_old_libs=$enable_static
37353
37354# What type of objects to build.
37355pic_mode=$pic_mode
37356
37357# Whether or not to optimize for fast installation.
37358fast_install=$enable_fast_install
37359
37360# The host system.
37361host_alias=$host_alias
37362host=$host
37363host_os=$host_os
37364
37365# The build system.
37366build_alias=$build_alias
37367build=$build
37368build_os=$build_os
37369
37370# A BSD- or MS-compatible name lister.
37371NM=$lt_NM
37372
37373# Whether we need soft or hard links.
37374LN_S=$lt_LN_S
37375
37376# What is the maximum length of a command?
37377max_cmd_len=$max_cmd_len
37378
37379# Object file suffix (normally "o").
37380objext=$ac_objext
37381
37382# Executable file suffix (normally "").
37383exeext=$exeext
37384
37385# whether the shell understands "unset".
37386lt_unset=$lt_unset
37387
37388# turn spaces into newlines.
37389SP2NL=$lt_lt_SP2NL
37390
37391# turn newlines into spaces.
37392NL2SP=$lt_lt_NL2SP
37393
cristyda16f162011-02-19 23:52:17 +000037394# convert \$build file names to \$host format.
37395to_host_file_cmd=$lt_cv_to_host_file_cmd
37396
37397# convert \$build files to toolchain format.
37398to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37399
cristy73bd4a52010-10-05 11:24:23 +000037400# Method to check whether dependent libraries are shared objects.
37401deplibs_check_method=$lt_deplibs_check_method
37402
cristyda16f162011-02-19 23:52:17 +000037403# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037404file_magic_cmd=$lt_file_magic_cmd
37405
cristyda16f162011-02-19 23:52:17 +000037406# How to find potential files when deplibs_check_method = "file_magic".
37407file_magic_glob=$lt_file_magic_glob
37408
37409# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37410want_nocaseglob=$lt_want_nocaseglob
37411
37412# Command to associate shared and link libraries.
37413sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37414
cristy73bd4a52010-10-05 11:24:23 +000037415# The archiver.
37416AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037417
37418# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037419AR_FLAGS=$lt_AR_FLAGS
37420
cristyda16f162011-02-19 23:52:17 +000037421# How to feed a file listing to the archiver.
37422archiver_list_spec=$lt_archiver_list_spec
37423
cristy73bd4a52010-10-05 11:24:23 +000037424# A symbol stripping program.
37425STRIP=$lt_STRIP
37426
37427# Commands used to install an old-style archive.
37428RANLIB=$lt_RANLIB
37429old_postinstall_cmds=$lt_old_postinstall_cmds
37430old_postuninstall_cmds=$lt_old_postuninstall_cmds
37431
cristy0c60a692010-11-04 01:09:47 +000037432# Whether to use a lock for old archive extraction.
37433lock_old_archive_extraction=$lock_old_archive_extraction
37434
cristy73bd4a52010-10-05 11:24:23 +000037435# A C compiler.
37436LTCC=$lt_CC
37437
37438# LTCC compiler flags.
37439LTCFLAGS=$lt_CFLAGS
37440
37441# Take the output of nm and produce a listing of raw symbols and C names.
37442global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37443
37444# Transform the output of nm in a proper C declaration.
37445global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37446
37447# Transform the output of nm in a C name address pair.
37448global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37449
37450# Transform the output of nm in a C name address pair when lib prefix is needed.
37451global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37452
cristyda16f162011-02-19 23:52:17 +000037453# Specify filename containing input files for \$NM.
37454nm_file_list_spec=$lt_nm_file_list_spec
37455
37456# The root where to search for dependent libraries,and in which our libraries should be installed.
37457lt_sysroot=$lt_sysroot
37458
cristy73bd4a52010-10-05 11:24:23 +000037459# The name of the directory that contains temporary libtool files.
37460objdir=$objdir
37461
cristy73bd4a52010-10-05 11:24:23 +000037462# Used to examine libraries when file_magic_cmd begins with "file".
37463MAGIC_CMD=$MAGIC_CMD
37464
37465# Must we lock files when doing compilation?
37466need_locks=$lt_need_locks
37467
cristyda16f162011-02-19 23:52:17 +000037468# Manifest tool.
37469MANIFEST_TOOL=$lt_MANIFEST_TOOL
37470
cristy73bd4a52010-10-05 11:24:23 +000037471# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37472DSYMUTIL=$lt_DSYMUTIL
37473
37474# Tool to change global to local symbols on Mac OS X.
37475NMEDIT=$lt_NMEDIT
37476
37477# Tool to manipulate fat objects and archives on Mac OS X.
37478LIPO=$lt_LIPO
37479
37480# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37481OTOOL=$lt_OTOOL
37482
37483# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37484OTOOL64=$lt_OTOOL64
37485
37486# Old archive suffix (normally "a").
37487libext=$libext
37488
37489# Shared library suffix (normally ".so").
37490shrext_cmds=$lt_shrext_cmds
37491
37492# The commands to extract the exported symbol list from a shared archive.
37493extract_expsyms_cmds=$lt_extract_expsyms_cmds
37494
37495# Variables whose values should be saved in libtool wrapper scripts and
37496# restored at link time.
37497variables_saved_for_relink=$lt_variables_saved_for_relink
37498
37499# Do we need the "lib" prefix for modules?
37500need_lib_prefix=$need_lib_prefix
37501
37502# Do we need a version for libraries?
37503need_version=$need_version
37504
37505# Library versioning type.
37506version_type=$version_type
37507
37508# Shared library runtime path variable.
37509runpath_var=$runpath_var
37510
37511# Shared library path variable.
37512shlibpath_var=$shlibpath_var
37513
37514# Is shlibpath searched before the hard-coded library search path?
37515shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37516
37517# Format of library name prefix.
37518libname_spec=$lt_libname_spec
37519
37520# List of archive names. First name is the real one, the rest are links.
37521# The last name is the one that the linker finds with -lNAME
37522library_names_spec=$lt_library_names_spec
37523
37524# The coded name of the library, if different from the real name.
37525soname_spec=$lt_soname_spec
37526
cristy0c60a692010-11-04 01:09:47 +000037527# Permission mode override for installation of shared libraries.
37528install_override_mode=$lt_install_override_mode
37529
cristy73bd4a52010-10-05 11:24:23 +000037530# Command to use after installation of a shared archive.
37531postinstall_cmds=$lt_postinstall_cmds
37532
37533# Command to use after uninstallation of a shared archive.
37534postuninstall_cmds=$lt_postuninstall_cmds
37535
37536# Commands used to finish a libtool library installation in a directory.
37537finish_cmds=$lt_finish_cmds
37538
37539# As "finish_cmds", except a single script fragment to be evaled but
37540# not shown.
37541finish_eval=$lt_finish_eval
37542
37543# Whether we should hardcode library paths into libraries.
37544hardcode_into_libs=$hardcode_into_libs
37545
37546# Compile-time system search path for libraries.
37547sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37548
37549# Run-time system search path for libraries.
37550sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37551
37552# Whether dlopen is supported.
37553dlopen_support=$enable_dlopen
37554
37555# Whether dlopen of programs is supported.
37556dlopen_self=$enable_dlopen_self
37557
37558# Whether dlopen of statically linked programs is supported.
37559dlopen_self_static=$enable_dlopen_self_static
37560
37561# Commands to strip libraries.
37562old_striplib=$lt_old_striplib
37563striplib=$lt_striplib
37564
37565
37566# The linker used to build libraries.
37567LD=$lt_LD
37568
cristy0c60a692010-11-04 01:09:47 +000037569# How to create reloadable object files.
37570reload_flag=$lt_reload_flag
37571reload_cmds=$lt_reload_cmds
37572
cristy73bd4a52010-10-05 11:24:23 +000037573# Commands used to build an old-style archive.
37574old_archive_cmds=$lt_old_archive_cmds
37575
37576# A language specific compiler.
37577CC=$lt_compiler
37578
37579# Is the compiler the GNU compiler?
37580with_gcc=$GCC
37581
37582# Compiler flag to turn off builtin functions.
37583no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37584
cristy73bd4a52010-10-05 11:24:23 +000037585# Additional compiler flags for building library objects.
37586pic_flag=$lt_lt_prog_compiler_pic
37587
cristyda16f162011-02-19 23:52:17 +000037588# How to pass a linker flag through the compiler.
37589wl=$lt_lt_prog_compiler_wl
37590
cristy73bd4a52010-10-05 11:24:23 +000037591# Compiler flag to prevent dynamic linking.
37592link_static_flag=$lt_lt_prog_compiler_static
37593
37594# Does compiler simultaneously support -c and -o options?
37595compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37596
37597# Whether or not to add -lc for building shared libraries.
37598build_libtool_need_lc=$archive_cmds_need_lc
37599
37600# Whether or not to disallow shared libs when runtime libs are static.
37601allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37602
37603# Compiler flag to allow reflexive dlopens.
37604export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37605
37606# Compiler flag to generate shared objects directly from archives.
37607whole_archive_flag_spec=$lt_whole_archive_flag_spec
37608
37609# Whether the compiler copes with passing no objects directly.
37610compiler_needs_object=$lt_compiler_needs_object
37611
37612# Create an old-style archive from a shared archive.
37613old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37614
37615# Create a temporary old-style archive to link instead of a shared archive.
37616old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37617
37618# Commands used to build a shared archive.
37619archive_cmds=$lt_archive_cmds
37620archive_expsym_cmds=$lt_archive_expsym_cmds
37621
37622# Commands used to build a loadable module if different from building
37623# a shared archive.
37624module_cmds=$lt_module_cmds
37625module_expsym_cmds=$lt_module_expsym_cmds
37626
37627# Whether we are building with GNU ld or not.
37628with_gnu_ld=$lt_with_gnu_ld
37629
37630# Flag that allows shared libraries with undefined symbols to be built.
37631allow_undefined_flag=$lt_allow_undefined_flag
37632
37633# Flag that enforces no undefined symbols.
37634no_undefined_flag=$lt_no_undefined_flag
37635
37636# Flag to hardcode \$libdir into a binary during linking.
37637# This must work even if \$libdir does not exist
37638hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37639
37640# If ld is used when linking, flag to hardcode \$libdir into a binary
37641# during linking. This must work even if \$libdir does not exist.
37642hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37643
37644# Whether we need a single "-rpath" flag with a separated argument.
37645hardcode_libdir_separator=$lt_hardcode_libdir_separator
37646
37647# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37648# DIR into the resulting binary.
37649hardcode_direct=$hardcode_direct
37650
37651# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37652# DIR into the resulting binary and the resulting library dependency is
37653# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37654# library is relocated.
37655hardcode_direct_absolute=$hardcode_direct_absolute
37656
37657# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37658# into the resulting binary.
37659hardcode_minus_L=$hardcode_minus_L
37660
37661# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37662# into the resulting binary.
37663hardcode_shlibpath_var=$hardcode_shlibpath_var
37664
37665# Set to "yes" if building a shared library automatically hardcodes DIR
37666# into the library and all subsequent libraries and executables linked
37667# against it.
37668hardcode_automatic=$hardcode_automatic
37669
37670# Set to yes if linker adds runtime paths of dependent libraries
37671# to runtime path list.
37672inherit_rpath=$inherit_rpath
37673
37674# Whether libtool must link a program against all its dependency libraries.
37675link_all_deplibs=$link_all_deplibs
37676
cristy73bd4a52010-10-05 11:24:23 +000037677# Set to "yes" if exported symbols are required.
37678always_export_symbols=$always_export_symbols
37679
37680# The commands to list exported symbols.
37681export_symbols_cmds=$lt_export_symbols_cmds
37682
37683# Symbols that should not be listed in the preloaded symbols.
37684exclude_expsyms=$lt_exclude_expsyms
37685
37686# Symbols that must always be exported.
37687include_expsyms=$lt_include_expsyms
37688
37689# Commands necessary for linking programs (against libraries) with templates.
37690prelink_cmds=$lt_prelink_cmds
37691
cristyda16f162011-02-19 23:52:17 +000037692# Commands necessary for finishing linking programs.
37693postlink_cmds=$lt_postlink_cmds
37694
cristy73bd4a52010-10-05 11:24:23 +000037695# Specify filename containing input files.
37696file_list_spec=$lt_file_list_spec
37697
37698# How to hardcode a shared library path into an executable.
37699hardcode_action=$hardcode_action
37700
37701# The directories searched by this compiler when creating a shared library.
37702compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37703
37704# Dependencies to place before and after the objects being linked to
37705# create a shared library.
37706predep_objects=$lt_predep_objects
37707postdep_objects=$lt_postdep_objects
37708predeps=$lt_predeps
37709postdeps=$lt_postdeps
37710
37711# The library search path used internally by the compiler when linking
37712# a shared library.
37713compiler_lib_search_path=$lt_compiler_lib_search_path
37714
37715# ### END LIBTOOL CONFIG
37716
37717_LT_EOF
37718
37719 case $host_os in
37720 aix3*)
37721 cat <<\_LT_EOF >> "$cfgfile"
37722# AIX sometimes has problems with the GCC collect2 program. For some
37723# reason, if we set the COLLECT_NAMES environment variable, the problems
37724# vanish in a puff of smoke.
37725if test "X${COLLECT_NAMES+set}" != Xset; then
37726 COLLECT_NAMES=
37727 export COLLECT_NAMES
37728fi
37729_LT_EOF
37730 ;;
37731 esac
37732
37733
37734ltmain="$ac_aux_dir/ltmain.sh"
37735
37736
37737 # We use sed instead of cat because bash on DJGPP gets confused if
37738 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37739 # text mode, it properly converts lines to CR/LF. This bash problem
37740 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037741 sed '$q' "$ltmain" >> "$cfgfile" \
37742 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037743
cristyda16f162011-02-19 23:52:17 +000037744 if test x"$xsi_shell" = xyes; then
37745 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37746func_dirname ()\
37747{\
37748\ case ${1} in\
37749\ */*) func_dirname_result="${1%/*}${2}" ;;\
37750\ * ) func_dirname_result="${3}" ;;\
37751\ esac\
37752} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37753 && mv -f "$cfgfile.tmp" "$cfgfile" \
37754 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37755test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037756
37757
cristyda16f162011-02-19 23:52:17 +000037758 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37759func_basename ()\
37760{\
37761\ func_basename_result="${1##*/}"\
37762} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37763 && mv -f "$cfgfile.tmp" "$cfgfile" \
37764 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37765test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037766
37767
cristyda16f162011-02-19 23:52:17 +000037768 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37769func_dirname_and_basename ()\
37770{\
37771\ case ${1} in\
37772\ */*) func_dirname_result="${1%/*}${2}" ;;\
37773\ * ) func_dirname_result="${3}" ;;\
37774\ esac\
37775\ func_basename_result="${1##*/}"\
37776} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37777 && mv -f "$cfgfile.tmp" "$cfgfile" \
37778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37779test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037780
cristyda16f162011-02-19 23:52:17 +000037781
37782 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37783func_stripname ()\
37784{\
37785\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37786\ # positional parameters, so assign one to ordinary parameter first.\
37787\ func_stripname_result=${3}\
37788\ func_stripname_result=${func_stripname_result#"${1}"}\
37789\ func_stripname_result=${func_stripname_result%"${2}"}\
37790} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37791 && mv -f "$cfgfile.tmp" "$cfgfile" \
37792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37793test 0 -eq $? || _lt_function_replace_fail=:
37794
37795
37796 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37797func_split_long_opt ()\
37798{\
37799\ func_split_long_opt_name=${1%%=*}\
37800\ func_split_long_opt_arg=${1#*=}\
37801} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37802 && mv -f "$cfgfile.tmp" "$cfgfile" \
37803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37804test 0 -eq $? || _lt_function_replace_fail=:
37805
37806
37807 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37808func_split_short_opt ()\
37809{\
37810\ func_split_short_opt_arg=${1#??}\
37811\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37812} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37813 && mv -f "$cfgfile.tmp" "$cfgfile" \
37814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37815test 0 -eq $? || _lt_function_replace_fail=:
37816
37817
37818 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37819func_lo2o ()\
37820{\
37821\ case ${1} in\
37822\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37823\ *) func_lo2o_result=${1} ;;\
37824\ esac\
37825} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37826 && mv -f "$cfgfile.tmp" "$cfgfile" \
37827 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37828test 0 -eq $? || _lt_function_replace_fail=:
37829
37830
37831 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37832func_xform ()\
37833{\
37834 func_xform_result=${1%.*}.lo\
37835} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37836 && mv -f "$cfgfile.tmp" "$cfgfile" \
37837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37838test 0 -eq $? || _lt_function_replace_fail=:
37839
37840
37841 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37842func_arith ()\
37843{\
37844 func_arith_result=$(( $* ))\
37845} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37846 && mv -f "$cfgfile.tmp" "$cfgfile" \
37847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37848test 0 -eq $? || _lt_function_replace_fail=:
37849
37850
37851 sed -e '/^func_len ()$/,/^} # func_len /c\
37852func_len ()\
37853{\
37854 func_len_result=${#1}\
37855} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37856 && mv -f "$cfgfile.tmp" "$cfgfile" \
37857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37858test 0 -eq $? || _lt_function_replace_fail=:
37859
37860fi
37861
37862if test x"$lt_shell_append" = xyes; then
37863 sed -e '/^func_append ()$/,/^} # func_append /c\
37864func_append ()\
37865{\
37866 eval "${1}+=\\${2}"\
37867} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37868 && mv -f "$cfgfile.tmp" "$cfgfile" \
37869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37870test 0 -eq $? || _lt_function_replace_fail=:
37871
37872
37873 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37874func_append_quoted ()\
37875{\
37876\ func_quote_for_eval "${2}"\
37877\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37878} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37879 && mv -f "$cfgfile.tmp" "$cfgfile" \
37880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37881test 0 -eq $? || _lt_function_replace_fail=:
37882
37883
37884 # Save a `func_append' function call where possible by direct use of '+='
37885 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37886 && mv -f "$cfgfile.tmp" "$cfgfile" \
37887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37888 test 0 -eq $? || _lt_function_replace_fail=:
37889else
37890 # Save a `func_append' function call even when '+=' is not available
37891 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37892 && mv -f "$cfgfile.tmp" "$cfgfile" \
37893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37894 test 0 -eq $? || _lt_function_replace_fail=:
37895fi
37896
37897if test x"$_lt_function_replace_fail" = x":"; then
37898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37899$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37900fi
37901
37902
37903 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037904 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37905 chmod +x "$ofile"
37906
37907
37908 cat <<_LT_EOF >> "$ofile"
37909
37910# ### BEGIN LIBTOOL TAG CONFIG: CXX
37911
37912# The linker used to build libraries.
37913LD=$lt_LD_CXX
37914
cristy0c60a692010-11-04 01:09:47 +000037915# How to create reloadable object files.
37916reload_flag=$lt_reload_flag_CXX
37917reload_cmds=$lt_reload_cmds_CXX
37918
cristy73bd4a52010-10-05 11:24:23 +000037919# Commands used to build an old-style archive.
37920old_archive_cmds=$lt_old_archive_cmds_CXX
37921
37922# A language specific compiler.
37923CC=$lt_compiler_CXX
37924
37925# Is the compiler the GNU compiler?
37926with_gcc=$GCC_CXX
37927
37928# Compiler flag to turn off builtin functions.
37929no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37930
cristy73bd4a52010-10-05 11:24:23 +000037931# Additional compiler flags for building library objects.
37932pic_flag=$lt_lt_prog_compiler_pic_CXX
37933
cristyda16f162011-02-19 23:52:17 +000037934# How to pass a linker flag through the compiler.
37935wl=$lt_lt_prog_compiler_wl_CXX
37936
cristy73bd4a52010-10-05 11:24:23 +000037937# Compiler flag to prevent dynamic linking.
37938link_static_flag=$lt_lt_prog_compiler_static_CXX
37939
37940# Does compiler simultaneously support -c and -o options?
37941compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37942
37943# Whether or not to add -lc for building shared libraries.
37944build_libtool_need_lc=$archive_cmds_need_lc_CXX
37945
37946# Whether or not to disallow shared libs when runtime libs are static.
37947allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37948
37949# Compiler flag to allow reflexive dlopens.
37950export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37951
37952# Compiler flag to generate shared objects directly from archives.
37953whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37954
37955# Whether the compiler copes with passing no objects directly.
37956compiler_needs_object=$lt_compiler_needs_object_CXX
37957
37958# Create an old-style archive from a shared archive.
37959old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37960
37961# Create a temporary old-style archive to link instead of a shared archive.
37962old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37963
37964# Commands used to build a shared archive.
37965archive_cmds=$lt_archive_cmds_CXX
37966archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37967
37968# Commands used to build a loadable module if different from building
37969# a shared archive.
37970module_cmds=$lt_module_cmds_CXX
37971module_expsym_cmds=$lt_module_expsym_cmds_CXX
37972
37973# Whether we are building with GNU ld or not.
37974with_gnu_ld=$lt_with_gnu_ld_CXX
37975
37976# Flag that allows shared libraries with undefined symbols to be built.
37977allow_undefined_flag=$lt_allow_undefined_flag_CXX
37978
37979# Flag that enforces no undefined symbols.
37980no_undefined_flag=$lt_no_undefined_flag_CXX
37981
37982# Flag to hardcode \$libdir into a binary during linking.
37983# This must work even if \$libdir does not exist
37984hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37985
37986# If ld is used when linking, flag to hardcode \$libdir into a binary
37987# during linking. This must work even if \$libdir does not exist.
37988hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37989
37990# Whether we need a single "-rpath" flag with a separated argument.
37991hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37992
37993# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37994# DIR into the resulting binary.
37995hardcode_direct=$hardcode_direct_CXX
37996
37997# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37998# DIR into the resulting binary and the resulting library dependency is
37999# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38000# library is relocated.
38001hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38002
38003# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38004# into the resulting binary.
38005hardcode_minus_L=$hardcode_minus_L_CXX
38006
38007# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38008# into the resulting binary.
38009hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38010
38011# Set to "yes" if building a shared library automatically hardcodes DIR
38012# into the library and all subsequent libraries and executables linked
38013# against it.
38014hardcode_automatic=$hardcode_automatic_CXX
38015
38016# Set to yes if linker adds runtime paths of dependent libraries
38017# to runtime path list.
38018inherit_rpath=$inherit_rpath_CXX
38019
38020# Whether libtool must link a program against all its dependency libraries.
38021link_all_deplibs=$link_all_deplibs_CXX
38022
cristy73bd4a52010-10-05 11:24:23 +000038023# Set to "yes" if exported symbols are required.
38024always_export_symbols=$always_export_symbols_CXX
38025
38026# The commands to list exported symbols.
38027export_symbols_cmds=$lt_export_symbols_cmds_CXX
38028
38029# Symbols that should not be listed in the preloaded symbols.
38030exclude_expsyms=$lt_exclude_expsyms_CXX
38031
38032# Symbols that must always be exported.
38033include_expsyms=$lt_include_expsyms_CXX
38034
38035# Commands necessary for linking programs (against libraries) with templates.
38036prelink_cmds=$lt_prelink_cmds_CXX
38037
cristyda16f162011-02-19 23:52:17 +000038038# Commands necessary for finishing linking programs.
38039postlink_cmds=$lt_postlink_cmds_CXX
38040
cristy73bd4a52010-10-05 11:24:23 +000038041# Specify filename containing input files.
38042file_list_spec=$lt_file_list_spec_CXX
38043
38044# How to hardcode a shared library path into an executable.
38045hardcode_action=$hardcode_action_CXX
38046
38047# The directories searched by this compiler when creating a shared library.
38048compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38049
38050# Dependencies to place before and after the objects being linked to
38051# create a shared library.
38052predep_objects=$lt_predep_objects_CXX
38053postdep_objects=$lt_postdep_objects_CXX
38054predeps=$lt_predeps_CXX
38055postdeps=$lt_postdeps_CXX
38056
38057# The library search path used internally by the compiler when linking
38058# a shared library.
38059compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38060
38061# ### END LIBTOOL TAG CONFIG: CXX
38062_LT_EOF
38063
38064 ;;
cristy4c08aed2011-07-01 19:47:50 +000038065 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038066 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038067 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38068 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38069
38070 esac
38071done # for ac_tag
38072
38073
cristy8b350f62009-11-15 23:12:43 +000038074as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038075_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038076ac_clean_files=$ac_clean_files_save
38077
38078test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038079 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038080
38081
38082# configure is writing to config.log, and then calls config.status.
38083# config.status does its own redirection, appending to config.log.
38084# Unfortunately, on DOS this fails, as config.log is still kept open
38085# by configure, so config.status won't be able to write to it; its
38086# output is simply discarded. So we exec the FD to /dev/null,
38087# effectively closing config.log, so it can be properly (re)opened and
38088# appended to by config.status. When coming back to configure, we
38089# need to make the FD available again.
38090if test "$no_create" != yes; then
38091 ac_cs_success=:
38092 ac_config_status_args=
38093 test "$silent" = yes &&
38094 ac_config_status_args="$ac_config_status_args --quiet"
38095 exec 5>/dev/null
38096 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38097 exec 5>>config.log
38098 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38099 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038100 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038101fi
38102if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038104$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38105fi
38106
38107
38108rm -f magick-version
38109
cristy430a7312010-01-21 20:44:04 +000038110result_dejavu_font_dir='none'
38111if test "${dejavu_font_dir}x" != 'x'; then
38112 result_dejavu_font_dir=$dejavu_font_dir
38113fi
38114
cristy3ed852e2009-09-05 21:47:34 +000038115result_ghostscript_font_dir='none'
38116if test "${ghostscript_font_dir}x" != 'x'; then
38117 result_ghostscript_font_dir=$ghostscript_font_dir
38118fi
38119
38120result_windows_font_dir='none'
38121if test "${windows_font_dir}x" != 'x'; then
38122 result_windows_font_dir=${windows_font_dir}
38123fi
38124
cristy09b53e12011-10-14 12:47:22 +000038125{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038126ImageMagick is configured as follows. Please verify that this configuration
38127matches your expectations.
38128
38129Host system type: $host
38130Build system type: $build
38131
38132 Option Value
38133-------------------------------------------------------------------------------
38134Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38135Static libraries --enable-static=$enable_static $libtool_build_static_libs
38136Module support --with-modules=$with_modules $with_modules
38137GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38138Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38139High Dynamic Range Imagery
38140 --enable-hdri=$enable_hdri $enable_hdri
38141
38142Delegate Configuration:
38143BZLIB --with-bzlib=$with_bzlib $have_bzlib
38144Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038145Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038146DJVU --with-djvu=$with_djvu $have_djvu
38147DPS --with-dps=$with_dps $have_dps
38148FFTW --with-fftw=$with_fftw $have_fftw
38149FlashPIX --with-fpx=$with_fpx $have_fpx
38150FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38151FreeType --with-freetype=$with_freetype $have_freetype
38152GhostPCL None $PCLDelegate ($PCLVersion)
38153GhostXPS None $XPSDelegate ($XPSVersion)
38154Ghostscript None $PSDelegate ($GSVersion)
38155Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38156Ghostscript lib --with-gslib=$with_gslib $have_gslib
38157Graphviz --with-gvc=$with_gvc $have_gvc
38158JBIG --with-jbig=$with_jbig $have_jbig
38159JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38160JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038161LCMS v1 --with-lcms=$with_lcms $have_lcms
38162LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038163LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038164LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038165Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38166OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038167PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038168PERL --with-perl=$with_perl $have_perl
38169PNG --with-png=$with_png $have_png
38170RSVG --with-rsvg=$with_rsvg $have_rsvg
38171TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038172WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038173Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38174WMF --with-wmf=$with_wmf $have_wmf
38175X11 --with-x=$with_x $have_x
38176XML --with-xml=$with_xml $have_xml
38177ZLIB --with-zlib=$with_zlib $have_zlib
38178
38179X11 Configuration:
38180 X_CFLAGS = $X_CFLAGS
38181 X_PRE_LIBS = $X_PRE_LIBS
38182 X_LIBS = $X_LIBS
38183 X_EXTRA_LIBS = $X_EXTRA_LIBS
38184
38185Options used to compile and link:
38186 PREFIX = $PREFIX_DIR
38187 EXEC-PREFIX = $EXEC_PREFIX_DIR
38188 VERSION = $PACKAGE_VERSION
38189 CC = $CC
38190 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038191 CPPFLAGS = $MAGICK_CPPFLAGS
38192 PCFLAGS = $MAGICK_PCFLAGS
38193 DEFS = $DEFS
38194 LDFLAGS = $LDFLAGS
38195 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38196 LIBS = $MAGICK_LIBS
38197 CXX = $CXX
38198 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038199 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038200" >&5
cristy09b53e12011-10-14 12:47:22 +000038201$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038202ImageMagick is configured as follows. Please verify that this configuration
38203matches your expectations.
38204
38205Host system type: $host
38206Build system type: $build
38207
38208 Option Value
38209-------------------------------------------------------------------------------
38210Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38211Static libraries --enable-static=$enable_static $libtool_build_static_libs
38212Module support --with-modules=$with_modules $with_modules
38213GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38214Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38215High Dynamic Range Imagery
38216 --enable-hdri=$enable_hdri $enable_hdri
38217
38218Delegate Configuration:
38219BZLIB --with-bzlib=$with_bzlib $have_bzlib
38220Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038221Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038222DJVU --with-djvu=$with_djvu $have_djvu
38223DPS --with-dps=$with_dps $have_dps
38224FFTW --with-fftw=$with_fftw $have_fftw
38225FlashPIX --with-fpx=$with_fpx $have_fpx
38226FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38227FreeType --with-freetype=$with_freetype $have_freetype
38228GhostPCL None $PCLDelegate ($PCLVersion)
38229GhostXPS None $XPSDelegate ($XPSVersion)
38230Ghostscript None $PSDelegate ($GSVersion)
38231Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38232Ghostscript lib --with-gslib=$with_gslib $have_gslib
38233Graphviz --with-gvc=$with_gvc $have_gvc
38234JBIG --with-jbig=$with_jbig $have_jbig
38235JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38236JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038237LCMS v1 --with-lcms=$with_lcms $have_lcms
38238LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038239LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038240LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038241Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38242OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038243PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038244PERL --with-perl=$with_perl $have_perl
38245PNG --with-png=$with_png $have_png
38246RSVG --with-rsvg=$with_rsvg $have_rsvg
38247TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038248WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038249Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38250WMF --with-wmf=$with_wmf $have_wmf
38251X11 --with-x=$with_x $have_x
38252XML --with-xml=$with_xml $have_xml
38253ZLIB --with-zlib=$with_zlib $have_zlib
38254
38255X11 Configuration:
38256 X_CFLAGS = $X_CFLAGS
38257 X_PRE_LIBS = $X_PRE_LIBS
38258 X_LIBS = $X_LIBS
38259 X_EXTRA_LIBS = $X_EXTRA_LIBS
38260
38261Options used to compile and link:
38262 PREFIX = $PREFIX_DIR
38263 EXEC-PREFIX = $EXEC_PREFIX_DIR
38264 VERSION = $PACKAGE_VERSION
38265 CC = $CC
38266 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038267 CPPFLAGS = $MAGICK_CPPFLAGS
38268 PCFLAGS = $MAGICK_PCFLAGS
38269 DEFS = $DEFS
38270 LDFLAGS = $LDFLAGS
38271 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38272 LIBS = $MAGICK_LIBS
38273 CXX = $CXX
38274 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038275 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038276" >&6;}