blob: f12ff8d18e63252cb8d2664800b1acebf0935dd7 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy45dbd322011-03-27 16:40:38 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 6.6.9.
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'
cristy45dbd322011-03-27 16:40:38 +0000576PACKAGE_TARNAME='ImageMagick-6.6.9'
577PACKAGE_VERSION='6.6.9'
578PACKAGE_STRING='ImageMagick 6.6.9'
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
582ac_unique_file="magick/MagickCore.h"
583ac_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
724SHARE_CONFIGURE_PATH
cristy45dbd322011-03-27 16:40:38 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726SHARE_PATH
727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
732PERLMAINCC
733XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000734XML_DELEGATE_FALSE
735XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000736xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000737WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000738WMF_DELEGATE_FALSE
739WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000740WEBP_LIBS
741WEBP_DELEGATE_FALSE
742WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000743TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000744TIFF_DELEGATE_FALSE
745TIFF_DELEGATE_TRUE
746CAIRO_DELEGATE_FALSE
747CAIRO_DELEGATE_TRUE
748RSVG_DELEGATE_FALSE
749RSVG_DELEGATE_TRUE
750CAIRO_SVG_LIBS
751CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000752RSVG_LIBS
753RSVG_CFLAGS
754PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755PNG_DELEGATE_FALSE
756PNG_DELEGATE_TRUE
757OPENEXR_DELEGATE_FALSE
758OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000759OPENEXR_LIBS
760OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000761LZMA_LIBS
762LZMA_DELEGATE_FALSE
763LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000764LQR_DELEGATE_FALSE
765LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000766LQR_LIBS
767LQR_CFLAGS
768LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000769LCMS_DELEGATE_FALSE
770LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772JP2_DELEGATE_FALSE
773JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000774JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000775JPEG_DELEGATE_FALSE
776JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778JBIG_DELEGATE_FALSE
779JBIG_DELEGATE_TRUE
780GVC_DELEGATE_FALSE
781GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782GVC_LIBS
783GVC_CFLAGS
784GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785GS_DELEGATE_FALSE
786GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000788FREETYPE_DELEGATE_FALSE
789FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000790freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000791FONTCONFIG_DELEGATE_FALSE
792FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793FONTCONFIG_LIBS
794FONTCONFIG_CFLAGS
795FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000796FPX_DELEGATE_FALSE
797FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000799FFTW_DELEGATE_FALSE
800FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802DJVU_DELEGATE_FALSE
803DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805DPS_DELEGATE_FALSE
806DPS_DELEGATE_TRUE
807AUTOTRACE_DELEGATE_FALSE
808AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809AUTOTRACE_LIBS
810AUTOTRACE_CFLAGS
811LIB_DL
812ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813ZLIB_DELEGATE_FALSE
814ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815XEXT_LIBS
816X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817X11_DELEGATE_FALSE
818X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819X_EXTRA_LIBS
820X_LIBS
821X_PRE_LIBS
822X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000823XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000824BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825BZLIB_DELEGATE_FALSE
826BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827CCMALLOCDelegate
828UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000829HasUMEM_FALSE
830HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831THREAD_LIBS
832GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833WITH_MAGICK_PLUS_PLUS_FALSE
834WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000836MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000837POW_LIB
838LIBOBJS
839UINTPTR_T
840UINTMAX_T
841UINT64_T
842INT64_T
843UINT32_T
844INT32_T
845UINT16_T
846INT16_T
847UINT8_T
848INT8_T
849LIBRARY_EXTRA_CPPFLAGS
850MODULE_EXTRA_CPPFLAGS
851LIBSTDCLDFLAGS
852PERL_MAKE_OPTIONS
853QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000854MAINT
855MAINTAINER_MODE_FALSE
856MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000857MAGICK_HDRI
858DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000859WITH_LTDL_FALSE
860WITH_LTDL_TRUE
861WITH_MODULES_FALSE
862WITH_MODULES_TRUE
863WITH_SHARED_LIBS_FALSE
864WITH_SHARED_LIBS_TRUE
865LTDLOPEN
866LT_CONFIG_H
867CONVENIENCE_LTDL_FALSE
868CONVENIENCE_LTDL_TRUE
869INSTALL_LTDL_FALSE
870INSTALL_LTDL_TRUE
871ARGZ_H
872sys_symbol_underscore
873LIBADD_DL
874LT_DLPREOPEN
875LIBADD_DLD_LINK
876LIBADD_SHL_LOAD
877LIBADD_DLOPEN
878LT_DLLOADERS
879INCLTDL
880LTDLINCL
881LTDLDEPS
882LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000883LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000884CXXCPP
885OTOOL64
886OTOOL
887LIPO
888NMEDIT
889DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000890MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000891RANLIB
cristyda16f162011-02-19 23:52:17 +0000892ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000893AR
894NM
895ac_ct_DUMPBIN
896DUMPBIN
897LIBTOOL
898OBJDUMP
899DLLTOOL
900AS
cristy3ed852e2009-09-05 21:47:34 +0000901LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000902CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000903CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000904OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000905PTHREAD_CFLAGS
906PTHREAD_LIBS
907PTHREAD_CC
908ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000909WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000910USING_CL_FALSE
911USING_CL_TRUE
912CYGWIN_BUILD_FALSE
913CYGWIN_BUILD_TRUE
914WIN32_NATIVE_BUILD_FALSE
915WIN32_NATIVE_BUILD_TRUE
916WINGDI32_DELEGATE_FALSE
917WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000919PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000920LN_S
cristy3ed852e2009-09-05 21:47:34 +0000921LD
cristy73bd4a52010-10-05 11:24:23 +0000922FGREP
923SED
924am__fastdepCXX_FALSE
925am__fastdepCXX_TRUE
926CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000927ac_ct_CXX
928CXXFLAGS
929CXX
cristya0b81c32010-01-22 02:54:33 +0000930EGREP
931GREP
932CPP
cristy73bd4a52010-10-05 11:24:23 +0000933am__fastdepCC_FALSE
934am__fastdepCC_TRUE
935CCDEPMODE
936AMDEPBACKSLASH
937AMDEP_FALSE
938AMDEP_TRUE
939am__quote
940am__include
941DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000942OBJEXT
943EXEEXT
944ac_ct_CC
945CPPFLAGS
946LDFLAGS
947CFLAGS
948CC
949DIRSEP
950MAGICK_FILTER_MODULE_PATH
951MAGICK_CONFIGURE_BUILD_PATH
952MAGICK_CONFIGURE_SRC_PATH
953MAGICK_CODER_MODULE_PATH
954MAN_DIR
955INFO_DIR
956PERSISTINCLUDE_DIR
957INCLUDE_DIR
958LIB_DIR
959LOCALSTATE_DIR
960SHAREDSTATE_DIR
961SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000962DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000963DATA_DIR
964LIBEXEC_DIR
965SBIN_DIR
966BIN_DIR
967EXEC_PREFIX_DIR
968PREFIX_DIR
969CONFIG_STATUS_DEPENDENCIES
970MAGICK_LIB_VERSION_NUMBER
971MAGICK_LIB_VERSION_TEXT
972MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000973AM_BACKSLASH
974AM_DEFAULT_VERBOSITY
975am__untar
976am__tar
977AMTAR
978am__leading_dot
979SET_MAKE
980AWK
981mkdir_p
982MKDIR_P
983INSTALL_STRIP_PROGRAM
984STRIP
985install_sh
986MAKEINFO
987AUTOHEADER
988AUTOMAKE
989AUTOCONF
990ACLOCAL
991VERSION
992PACKAGE
993CYGPATH_W
994am__isrc
995INSTALL_DATA
996INSTALL_SCRIPT
997INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000998PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000999PACKAGE_RELEASE_DATE
1000PACKAGE_LIB_VERSION_NUMBER
1001PACKAGE_LIB_VERSION
1002PACKAGE_CHANGE_DATE
1003PACKAGE_RELEASE
cristyd694ca32011-03-27 21:42:54 +00001004MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001005MAGICK_LIBRARY_VERSION_INFO
1006MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001007MAGICK_LIBRARY_AGE
1008MAGICK_LIBRARY_REVISION
1009MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001010MAGICK_TARGET_OS
1011MAGICK_TARGET_VENDOR
1012MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001013target_os
1014target_vendor
1015target_cpu
1016target
1017host_os
1018host_vendor
1019host_cpu
1020host
1021build_os
1022build_vendor
1023build_cpu
1024build
1025CONFIGURE_ARGS
1026DISTCHECK_CONFIG_FLAGS
1027target_alias
1028host_alias
1029build_alias
1030LIBS
1031ECHO_T
1032ECHO_N
1033ECHO_C
1034DEFS
1035mandir
1036localedir
1037libdir
1038psdir
1039pdfdir
1040dvidir
1041htmldir
1042infodir
1043docdir
1044oldincludedir
1045includedir
1046localstatedir
1047sharedstatedir
1048sysconfdir
1049datadir
1050datarootdir
1051libexecdir
1052sbindir
1053bindir
1054program_transform_name
1055prefix
1056exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001057PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001058PACKAGE_BUGREPORT
1059PACKAGE_STRING
1060PACKAGE_VERSION
1061PACKAGE_TARNAME
1062PACKAGE_NAME
1063PATH_SEPARATOR
1064SHELL'
1065ac_subst_files=''
1066ac_user_opts='
1067enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001068enable_silent_rules
1069enable_dependency_tracking
1070with_gnu_ld
1071with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001072enable_bounds_checking
1073enable_osx_universal_binary
1074with_threads
1075enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001076enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001077enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001078enable_shared
1079enable_static
1080with_pic
1081enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001082with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001083enable_libtool_lock
1084with_included_ltdl
1085with_ltdl_include
1086with_ltdl_lib
1087enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001088with_modules
1089enable_delegate_build
1090enable_deprecated
1091enable_installed
1092enable_cipher
1093enable_embeddable
1094enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001095enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001096enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001097enable_ccmalloc
1098enable_efence
1099enable_prof
1100enable_gprof
1101enable_gcov
1102with_method_prefix
1103with_quantum_depth
1104with_cache
1105with_frozenpaths
1106with_magick_plus_plus
1107with_perl
1108with_perl_options
1109with_umem
1110with_libstdc
1111with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001112with_x
cristy3ed852e2009-09-05 21:47:34 +00001113with_zlib
1114with_autotrace
1115with_dps
1116with_djvu
cristy430a7312010-01-21 20:44:04 +00001117with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001118with_fftw
1119with_fpx
1120with_fontconfig
1121with_freetype
1122with_gslib
1123with_fontpath
1124with_gs_font_dir
1125with_gvc
1126with_jbig
1127with_jpeg
1128with_jp2
1129with_lcms
cristy71203402010-06-18 13:12:03 +00001130with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001131with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001132with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001133with_openexr
1134with_png
1135with_rsvg
1136with_tiff
cristyb1860752011-03-14 00:27:46 +00001137with_webp
cristy3ed852e2009-09-05 21:47:34 +00001138with_windows_font_dir
1139with_wmf
1140with_xml
1141'
1142 ac_precious_vars='build_alias
1143host_alias
1144target_alias
1145CC
1146CFLAGS
1147LDFLAGS
1148LIBS
1149CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001150CPP
cristy3ed852e2009-09-05 21:47:34 +00001151CXX
1152CXXFLAGS
1153CCC
cristy73bd4a52010-10-05 11:24:23 +00001154PKG_CONFIG
1155CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001156XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001157AUTOTRACE_CFLAGS
1158AUTOTRACE_LIBS
1159FONTCONFIG_CFLAGS
1160FONTCONFIG_LIBS
1161GVC_CFLAGS
1162GVC_LIBS
1163LQR_CFLAGS
1164LQR_LIBS
1165OPENEXR_CFLAGS
1166OPENEXR_LIBS
1167RSVG_CFLAGS
1168RSVG_LIBS
1169CAIRO_SVG_CFLAGS
1170CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001171
1172
1173# Initialize some variables set by options.
1174ac_init_help=
1175ac_init_version=false
1176ac_unrecognized_opts=
1177ac_unrecognized_sep=
1178# The variables have the same names as the options, with
1179# dashes changed to underlines.
1180cache_file=/dev/null
1181exec_prefix=NONE
1182no_create=
1183no_recursion=
1184prefix=NONE
1185program_prefix=NONE
1186program_suffix=NONE
1187program_transform_name=s,x,x,
1188silent=
1189site=
1190srcdir=
1191verbose=
1192x_includes=NONE
1193x_libraries=NONE
1194
1195# Installation directory options.
1196# These are left unexpanded so users can "make install exec_prefix=/foo"
1197# and all the variables that are supposed to be based on exec_prefix
1198# by default will actually change.
1199# Use braces instead of parens because sh, perl, etc. also accept them.
1200# (The list follows the same order as the GNU Coding Standards.)
1201bindir='${exec_prefix}/bin'
1202sbindir='${exec_prefix}/sbin'
1203libexecdir='${exec_prefix}/libexec'
1204datarootdir='${prefix}/share'
1205datadir='${datarootdir}'
1206sysconfdir='${prefix}/etc'
1207sharedstatedir='${prefix}/com'
1208localstatedir='${prefix}/var'
1209includedir='${prefix}/include'
1210oldincludedir='/usr/include'
1211docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1212infodir='${datarootdir}/info'
1213htmldir='${docdir}'
1214dvidir='${docdir}'
1215pdfdir='${docdir}'
1216psdir='${docdir}'
1217libdir='${exec_prefix}/lib'
1218localedir='${datarootdir}/locale'
1219mandir='${datarootdir}/man'
1220
1221ac_prev=
1222ac_dashdash=
1223for ac_option
1224do
1225 # If the previous option needs an argument, assign it.
1226 if test -n "$ac_prev"; then
1227 eval $ac_prev=\$ac_option
1228 ac_prev=
1229 continue
1230 fi
1231
1232 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001233 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1234 *=) ac_optarg= ;;
1235 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001236 esac
1237
1238 # Accept the important Cygnus configure options, so we can diagnose typos.
1239
1240 case $ac_dashdash$ac_option in
1241 --)
1242 ac_dashdash=yes ;;
1243
1244 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1245 ac_prev=bindir ;;
1246 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1247 bindir=$ac_optarg ;;
1248
1249 -build | --build | --buil | --bui | --bu)
1250 ac_prev=build_alias ;;
1251 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1252 build_alias=$ac_optarg ;;
1253
1254 -cache-file | --cache-file | --cache-fil | --cache-fi \
1255 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1256 ac_prev=cache_file ;;
1257 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1258 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1259 cache_file=$ac_optarg ;;
1260
1261 --config-cache | -C)
1262 cache_file=config.cache ;;
1263
1264 -datadir | --datadir | --datadi | --datad)
1265 ac_prev=datadir ;;
1266 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1267 datadir=$ac_optarg ;;
1268
1269 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1270 | --dataroo | --dataro | --datar)
1271 ac_prev=datarootdir ;;
1272 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1273 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1274 datarootdir=$ac_optarg ;;
1275
1276 -disable-* | --disable-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001280 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1284 *"
1285"enable_$ac_useropt"
1286"*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval enable_$ac_useropt=no ;;
1291
1292 -docdir | --docdir | --docdi | --doc | --do)
1293 ac_prev=docdir ;;
1294 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1295 docdir=$ac_optarg ;;
1296
1297 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1298 ac_prev=dvidir ;;
1299 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1300 dvidir=$ac_optarg ;;
1301
1302 -enable-* | --enable-*)
1303 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001306 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1310 *"
1311"enable_$ac_useropt"
1312"*) ;;
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1315 esac
1316 eval enable_$ac_useropt=\$ac_optarg ;;
1317
1318 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1319 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1320 | --exec | --exe | --ex)
1321 ac_prev=exec_prefix ;;
1322 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1323 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1324 | --exec=* | --exe=* | --ex=*)
1325 exec_prefix=$ac_optarg ;;
1326
1327 -gas | --gas | --ga | --g)
1328 # Obsolete; use --with-gas.
1329 with_gas=yes ;;
1330
1331 -help | --help | --hel | --he | -h)
1332 ac_init_help=long ;;
1333 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1334 ac_init_help=recursive ;;
1335 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1336 ac_init_help=short ;;
1337
1338 -host | --host | --hos | --ho)
1339 ac_prev=host_alias ;;
1340 -host=* | --host=* | --hos=* | --ho=*)
1341 host_alias=$ac_optarg ;;
1342
1343 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1344 ac_prev=htmldir ;;
1345 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1346 | --ht=*)
1347 htmldir=$ac_optarg ;;
1348
1349 -includedir | --includedir | --includedi | --included | --include \
1350 | --includ | --inclu | --incl | --inc)
1351 ac_prev=includedir ;;
1352 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1353 | --includ=* | --inclu=* | --incl=* | --inc=*)
1354 includedir=$ac_optarg ;;
1355
1356 -infodir | --infodir | --infodi | --infod | --info | --inf)
1357 ac_prev=infodir ;;
1358 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1359 infodir=$ac_optarg ;;
1360
1361 -libdir | --libdir | --libdi | --libd)
1362 ac_prev=libdir ;;
1363 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1364 libdir=$ac_optarg ;;
1365
1366 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1367 | --libexe | --libex | --libe)
1368 ac_prev=libexecdir ;;
1369 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1370 | --libexe=* | --libex=* | --libe=*)
1371 libexecdir=$ac_optarg ;;
1372
1373 -localedir | --localedir | --localedi | --localed | --locale)
1374 ac_prev=localedir ;;
1375 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1376 localedir=$ac_optarg ;;
1377
1378 -localstatedir | --localstatedir | --localstatedi | --localstated \
1379 | --localstate | --localstat | --localsta | --localst | --locals)
1380 ac_prev=localstatedir ;;
1381 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1382 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1383 localstatedir=$ac_optarg ;;
1384
1385 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1386 ac_prev=mandir ;;
1387 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1388 mandir=$ac_optarg ;;
1389
1390 -nfp | --nfp | --nf)
1391 # Obsolete; use --without-fp.
1392 with_fp=no ;;
1393
1394 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1395 | --no-cr | --no-c | -n)
1396 no_create=yes ;;
1397
1398 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1399 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1400 no_recursion=yes ;;
1401
1402 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1403 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1404 | --oldin | --oldi | --old | --ol | --o)
1405 ac_prev=oldincludedir ;;
1406 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1407 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1408 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1409 oldincludedir=$ac_optarg ;;
1410
1411 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1412 ac_prev=prefix ;;
1413 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1414 prefix=$ac_optarg ;;
1415
1416 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1417 | --program-pre | --program-pr | --program-p)
1418 ac_prev=program_prefix ;;
1419 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1420 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1421 program_prefix=$ac_optarg ;;
1422
1423 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1424 | --program-suf | --program-su | --program-s)
1425 ac_prev=program_suffix ;;
1426 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1427 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1428 program_suffix=$ac_optarg ;;
1429
1430 -program-transform-name | --program-transform-name \
1431 | --program-transform-nam | --program-transform-na \
1432 | --program-transform-n | --program-transform- \
1433 | --program-transform | --program-transfor \
1434 | --program-transfo | --program-transf \
1435 | --program-trans | --program-tran \
1436 | --progr-tra | --program-tr | --program-t)
1437 ac_prev=program_transform_name ;;
1438 -program-transform-name=* | --program-transform-name=* \
1439 | --program-transform-nam=* | --program-transform-na=* \
1440 | --program-transform-n=* | --program-transform-=* \
1441 | --program-transform=* | --program-transfor=* \
1442 | --program-transfo=* | --program-transf=* \
1443 | --program-trans=* | --program-tran=* \
1444 | --progr-tra=* | --program-tr=* | --program-t=*)
1445 program_transform_name=$ac_optarg ;;
1446
1447 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1448 ac_prev=pdfdir ;;
1449 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1450 pdfdir=$ac_optarg ;;
1451
1452 -psdir | --psdir | --psdi | --psd | --ps)
1453 ac_prev=psdir ;;
1454 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1455 psdir=$ac_optarg ;;
1456
1457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1458 | -silent | --silent | --silen | --sile | --sil)
1459 silent=yes ;;
1460
1461 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1462 ac_prev=sbindir ;;
1463 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1464 | --sbi=* | --sb=*)
1465 sbindir=$ac_optarg ;;
1466
1467 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1468 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1469 | --sharedst | --shareds | --shared | --share | --shar \
1470 | --sha | --sh)
1471 ac_prev=sharedstatedir ;;
1472 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1473 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1474 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1475 | --sha=* | --sh=*)
1476 sharedstatedir=$ac_optarg ;;
1477
1478 -site | --site | --sit)
1479 ac_prev=site ;;
1480 -site=* | --site=* | --sit=*)
1481 site=$ac_optarg ;;
1482
1483 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1484 ac_prev=srcdir ;;
1485 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1486 srcdir=$ac_optarg ;;
1487
1488 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1489 | --syscon | --sysco | --sysc | --sys | --sy)
1490 ac_prev=sysconfdir ;;
1491 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1492 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1493 sysconfdir=$ac_optarg ;;
1494
1495 -target | --target | --targe | --targ | --tar | --ta | --t)
1496 ac_prev=target_alias ;;
1497 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1498 target_alias=$ac_optarg ;;
1499
1500 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1501 verbose=yes ;;
1502
1503 -version | --version | --versio | --versi | --vers | -V)
1504 ac_init_version=: ;;
1505
1506 -with-* | --with-*)
1507 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1508 # Reject names that are not valid shell variable names.
1509 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001510 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001511 ac_useropt_orig=$ac_useropt
1512 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513 case $ac_user_opts in
1514 *"
1515"with_$ac_useropt"
1516"*) ;;
1517 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1518 ac_unrecognized_sep=', ';;
1519 esac
1520 eval with_$ac_useropt=\$ac_optarg ;;
1521
1522 -without-* | --without-*)
1523 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1524 # Reject names that are not valid shell variable names.
1525 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001526 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001527 ac_useropt_orig=$ac_useropt
1528 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1529 case $ac_user_opts in
1530 *"
1531"with_$ac_useropt"
1532"*) ;;
1533 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1534 ac_unrecognized_sep=', ';;
1535 esac
1536 eval with_$ac_useropt=no ;;
1537
1538 --x)
1539 # Obsolete; use --with-x.
1540 with_x=yes ;;
1541
1542 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1543 | --x-incl | --x-inc | --x-in | --x-i)
1544 ac_prev=x_includes ;;
1545 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1546 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1547 x_includes=$ac_optarg ;;
1548
1549 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1550 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1551 ac_prev=x_libraries ;;
1552 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1553 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1554 x_libraries=$ac_optarg ;;
1555
cristy98dddb52010-11-04 00:30:15 +00001556 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1557Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001558 ;;
1559
1560 *=*)
1561 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1562 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001563 case $ac_envvar in #(
1564 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001565 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001566 esac
cristy3ed852e2009-09-05 21:47:34 +00001567 eval $ac_envvar=\$ac_optarg
1568 export $ac_envvar ;;
1569
1570 *)
1571 # FIXME: should be removed in autoconf 3.0.
1572 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1573 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1574 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001575 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001576 ;;
1577
1578 esac
1579done
1580
1581if test -n "$ac_prev"; then
1582 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001583 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001584fi
1585
1586if test -n "$ac_unrecognized_opts"; then
1587 case $enable_option_checking in
1588 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001589 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001590 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1591 esac
1592fi
1593
1594# Check all directory arguments for consistency.
1595for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1596 datadir sysconfdir sharedstatedir localstatedir includedir \
1597 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1598 libdir localedir mandir
1599do
1600 eval ac_val=\$$ac_var
1601 # Remove trailing slashes.
1602 case $ac_val in
1603 */ )
1604 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1605 eval $ac_var=\$ac_val;;
1606 esac
1607 # Be sure to have absolute directory names.
1608 case $ac_val in
1609 [\\/$]* | ?:[\\/]* ) continue;;
1610 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1611 esac
cristy98dddb52010-11-04 00:30:15 +00001612 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001613done
1614
1615# There might be people who depend on the old broken behavior: `$host'
1616# used to hold the argument of --host etc.
1617# FIXME: To remove some day.
1618build=$build_alias
1619host=$host_alias
1620target=$target_alias
1621
1622# FIXME: To remove some day.
1623if test "x$host_alias" != x; then
1624 if test "x$build_alias" = x; then
1625 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001626 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1627 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001628 elif test "x$build_alias" != "x$host_alias"; then
1629 cross_compiling=yes
1630 fi
1631fi
1632
1633ac_tool_prefix=
1634test -n "$host_alias" && ac_tool_prefix=$host_alias-
1635
1636test "$silent" = yes && exec 6>/dev/null
1637
1638
1639ac_pwd=`pwd` && test -n "$ac_pwd" &&
1640ac_ls_di=`ls -di .` &&
1641ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001642 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001643test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001644 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001645
1646
1647# Find the source files, if location was not specified.
1648if test -z "$srcdir"; then
1649 ac_srcdir_defaulted=yes
1650 # Try the directory containing this script, then the parent directory.
1651 ac_confdir=`$as_dirname -- "$as_myself" ||
1652$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1653 X"$as_myself" : 'X\(//\)[^/]' \| \
1654 X"$as_myself" : 'X\(//\)$' \| \
1655 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1656$as_echo X"$as_myself" |
1657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1658 s//\1/
1659 q
1660 }
1661 /^X\(\/\/\)[^/].*/{
1662 s//\1/
1663 q
1664 }
1665 /^X\(\/\/\)$/{
1666 s//\1/
1667 q
1668 }
1669 /^X\(\/\).*/{
1670 s//\1/
1671 q
1672 }
1673 s/.*/./; q'`
1674 srcdir=$ac_confdir
1675 if test ! -r "$srcdir/$ac_unique_file"; then
1676 srcdir=..
1677 fi
1678else
1679 ac_srcdir_defaulted=no
1680fi
1681if test ! -r "$srcdir/$ac_unique_file"; then
1682 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001683 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001684fi
1685ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1686ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001687 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001688 pwd)`
1689# When building in place, set srcdir=.
1690if test "$ac_abs_confdir" = "$ac_pwd"; then
1691 srcdir=.
1692fi
1693# Remove unnecessary trailing slashes from srcdir.
1694# Double slashes in file names in object file debugging info
1695# mess up M-x gdb in Emacs.
1696case $srcdir in
1697*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1698esac
1699for ac_var in $ac_precious_vars; do
1700 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1701 eval ac_env_${ac_var}_value=\$${ac_var}
1702 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1703 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1704done
1705
1706#
1707# Report the --help message.
1708#
1709if test "$ac_init_help" = "long"; then
1710 # Omit some internal or obsolete options to make the list less imposing.
1711 # This message is too long to be a string in the A/UX 3.1 sh.
1712 cat <<_ACEOF
cristy45dbd322011-03-27 16:40:38 +00001713\`configure' configures ImageMagick 6.6.9 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001714
1715Usage: $0 [OPTION]... [VAR=VALUE]...
1716
1717To assign environment variables (e.g., CC, CFLAGS...), specify them as
1718VAR=VALUE. See below for descriptions of some of the useful variables.
1719
1720Defaults for the options are specified in brackets.
1721
1722Configuration:
1723 -h, --help display this help and exit
1724 --help=short display options specific to this package
1725 --help=recursive display the short help of all the included packages
1726 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001727 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001728 --cache-file=FILE cache test results in FILE [disabled]
1729 -C, --config-cache alias for \`--cache-file=config.cache'
1730 -n, --no-create do not create output files
1731 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1732
1733Installation directories:
1734 --prefix=PREFIX install architecture-independent files in PREFIX
1735 [$ac_default_prefix]
1736 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1737 [PREFIX]
1738
1739By default, \`make install' will install all the files in
1740\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1741an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1742for instance \`--prefix=\$HOME'.
1743
1744For better control, use the options below.
1745
1746Fine tuning of the installation directories:
1747 --bindir=DIR user executables [EPREFIX/bin]
1748 --sbindir=DIR system admin executables [EPREFIX/sbin]
1749 --libexecdir=DIR program executables [EPREFIX/libexec]
1750 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1751 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1752 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1753 --libdir=DIR object code libraries [EPREFIX/lib]
1754 --includedir=DIR C header files [PREFIX/include]
1755 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1756 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1757 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1758 --infodir=DIR info documentation [DATAROOTDIR/info]
1759 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1760 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001761 --docdir=DIR documentation root
cristy45dbd322011-03-27 16:40:38 +00001762 [DATAROOTDIR/doc/ImageMagick-6.6.9]
cristy3ed852e2009-09-05 21:47:34 +00001763 --htmldir=DIR html documentation [DOCDIR]
1764 --dvidir=DIR dvi documentation [DOCDIR]
1765 --pdfdir=DIR pdf documentation [DOCDIR]
1766 --psdir=DIR ps documentation [DOCDIR]
1767_ACEOF
1768
1769 cat <<\_ACEOF
1770
cristy73bd4a52010-10-05 11:24:23 +00001771Program names:
1772 --program-prefix=PREFIX prepend PREFIX to installed program names
1773 --program-suffix=SUFFIX append SUFFIX to installed program names
1774 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1775
cristy3ed852e2009-09-05 21:47:34 +00001776X features:
1777 --x-includes=DIR X include files are in DIR
1778 --x-libraries=DIR X library files are in DIR
1779
1780System types:
1781 --build=BUILD configure for building on BUILD [guessed]
1782 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1783 --target=TARGET configure for building compilers for TARGET [HOST]
1784_ACEOF
1785fi
1786
1787if test -n "$ac_init_help"; then
1788 case $ac_init_help in
cristy45dbd322011-03-27 16:40:38 +00001789 short | recursive ) echo "Configuration of ImageMagick 6.6.9:";;
cristy3ed852e2009-09-05 21:47:34 +00001790 esac
1791 cat <<\_ACEOF
1792
1793Optional Features:
1794 --disable-option-checking ignore unrecognized --enable/--with options
1795 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1796 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001797 --enable-silent-rules less verbose build output (undo: `make V=1')
1798 --disable-silent-rules verbose build output (undo: `make V=0')
1799 --disable-dependency-tracking speeds up one-time build
1800 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001801 --bounds-checking enable run-time bounds-checking
1802 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001803 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001804 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001805 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001806 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001807 --enable-shared[=PKGS] build shared libraries [default=yes]
1808 --enable-static[=PKGS] build static libraries [default=yes]
1809 --enable-fast-install[=PKGS]
1810 optimize for fast installation [default=yes]
1811 --disable-libtool-lock avoid locking (might break parallel builds)
1812 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001813 --enable-delegate-build look for delegate libraries in build directory
1814 --disable-deprecated exclude deprecated methods in MagickCore and
1815 MagickWand API's
1816 --disable-installed Formally install ImageMagick under PREFIX
1817 --disable-cipher disable enciphering and deciphering image pixels
1818 --enable-embeddable enable self-contained, embeddable,
1819 zero-configuration ImageMagick
1820 --enable-hdri accurately represent the wide range of intensity
1821 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001822 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001823 --enable-maintainer-mode enable make rules and dependencies not useful
1824 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001825 --enable-ccmalloc enable 'ccmalloc' memory debug support
1826 --enable-efence enable 'efence' memory debug support
1827 --enable-prof enable 'prof' profiling support
1828 --enable-gprof enable 'gprof' profiling support
1829 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001830 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001831
1832Optional Packages:
1833 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1834 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001835 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1836 --with-dmalloc use dmalloc, as in
1837 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001838 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001839 --with-pic try to use only PIC/non-PIC objects [default=use
1840 both]
cristyda16f162011-02-19 23:52:17 +00001841 --with-sysroot=DIR Search for dependent libraries within DIR
1842 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001843 --with-included-ltdl use the GNU ltdl sources included here
1844 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1845 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001846 --with-modules enable building dynamically loadable modules
1847 --with-method-prefix=PREFIX
1848 prefix MagickCore API methods
1849 --with-quantum-depth=DEPTH
1850 number of bits in a pixel quantum (default 16)
1851 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1852 memory)
1853 --with-frozenpaths freeze delegate paths
1854 --without-magick-plus-plus
1855 disable build/install of Magick++
1856 --with-perl enable build/install of PerlMagick
1857 --with-perl-options=OPTIONS
1858 options to pass on command-line when generating
1859 PerlMagick's build file
1860 --with-umem enable umem memory allocation library support
1861 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1862 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001863 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001864 --without-zlib disable ZLIB support
1865 --with-autotrace enable autotrace support
1866 --without-dps disable Display Postscript support
1867 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001868 --with-dejavu-font-dir=DIR
1869 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001870 --without-fftw disable FFTW support
1871 --without-fpx disable FlashPIX support
1872 --without-fontconfig disable fontconfig support
1873 --without-freetype disable Freetype support
1874 --without-gslib enable Ghostscript library support
1875 --with-fontpath=DIR prepend to default font search path
1876 --with-gs-font-dir=DIR Ghostscript font directory
1877 --without-gvc disable GVC support
1878 --without-jbig disable JBIG support
1879 --without-jpeg disable JPEG support
1880 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001881 --without-lcms disable lcms (v1.1X) support
1882 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001883 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001884 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001885 --without-openexr disable OpenEXR support
1886 --without-png disable PNG support
1887 --without-rsvg disable RSVG support
1888 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001889 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001890 --with-windows-font-dir=DIR
1891 directory containing MS-Windows fonts
1892 --without-wmf disable WMF support
1893 --without-xml disable XML support
1894
1895Some influential environment variables:
1896 CC C compiler command
1897 CFLAGS C compiler flags
1898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1899 nonstandard directory <lib dir>
1900 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001901 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001902 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001903 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001904 CXX C++ compiler command
1905 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001906 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001907 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001908 XMKMF Path to xmkmf, Makefile generator for X Window System
1909 AUTOTRACE_CFLAGS
1910 C compiler flags for AUTOTRACE, overriding pkg-config
1911 AUTOTRACE_LIBS
1912 linker flags for AUTOTRACE, overriding pkg-config
1913 FONTCONFIG_CFLAGS
1914 C compiler flags for FONTCONFIG, overriding pkg-config
1915 FONTCONFIG_LIBS
1916 linker flags for FONTCONFIG, overriding pkg-config
1917 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1918 GVC_LIBS linker flags for GVC, overriding pkg-config
1919 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1920 LQR_LIBS linker flags for LQR, overriding pkg-config
1921 OPENEXR_CFLAGS
1922 C compiler flags for OPENEXR, overriding pkg-config
1923 OPENEXR_LIBS
1924 linker flags for OPENEXR, overriding pkg-config
1925 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1926 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1927 CAIRO_SVG_CFLAGS
1928 C compiler flags for CAIRO_SVG, overriding pkg-config
1929 CAIRO_SVG_LIBS
1930 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001931
1932Use these variables to override the choices made by `configure' or to help
1933it to find libraries and programs with nonstandard names/locations.
1934
1935Report bugs to <http://www.imagemagick.org>.
1936_ACEOF
1937ac_status=$?
1938fi
1939
1940if test "$ac_init_help" = "recursive"; then
1941 # If there are subdirs, report their specific --help.
1942 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1943 test -d "$ac_dir" ||
1944 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1945 continue
1946 ac_builddir=.
1947
1948case "$ac_dir" in
1949.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1950*)
1951 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1952 # A ".." for each directory in $ac_dir_suffix.
1953 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1954 case $ac_top_builddir_sub in
1955 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1956 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1957 esac ;;
1958esac
1959ac_abs_top_builddir=$ac_pwd
1960ac_abs_builddir=$ac_pwd$ac_dir_suffix
1961# for backward compatibility:
1962ac_top_builddir=$ac_top_build_prefix
1963
1964case $srcdir in
1965 .) # We are building in place.
1966 ac_srcdir=.
1967 ac_top_srcdir=$ac_top_builddir_sub
1968 ac_abs_top_srcdir=$ac_pwd ;;
1969 [\\/]* | ?:[\\/]* ) # Absolute name.
1970 ac_srcdir=$srcdir$ac_dir_suffix;
1971 ac_top_srcdir=$srcdir
1972 ac_abs_top_srcdir=$srcdir ;;
1973 *) # Relative name.
1974 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1975 ac_top_srcdir=$ac_top_build_prefix$srcdir
1976 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1977esac
1978ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1979
1980 cd "$ac_dir" || { ac_status=$?; continue; }
1981 # Check for guested configure.
1982 if test -f "$ac_srcdir/configure.gnu"; then
1983 echo &&
1984 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1985 elif test -f "$ac_srcdir/configure"; then
1986 echo &&
1987 $SHELL "$ac_srcdir/configure" --help=recursive
1988 else
1989 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1990 fi || ac_status=$?
1991 cd "$ac_pwd" || { ac_status=$?; break; }
1992 done
1993fi
1994
1995test -n "$ac_init_help" && exit $ac_status
1996if $ac_init_version; then
1997 cat <<\_ACEOF
cristy45dbd322011-03-27 16:40:38 +00001998ImageMagick configure 6.6.9
cristyda16f162011-02-19 23:52:17 +00001999generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002000
cristy98dddb52010-11-04 00:30:15 +00002001Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002002This configure script is free software; the Free Software Foundation
2003gives unlimited permission to copy, distribute and modify it.
2004_ACEOF
2005 exit
2006fi
cristy8b350f62009-11-15 23:12:43 +00002007
2008## ------------------------ ##
2009## Autoconf initialization. ##
2010## ------------------------ ##
2011
2012# ac_fn_c_try_compile LINENO
2013# --------------------------
2014# Try to compile conftest.$ac_ext, and return whether this succeeded.
2015ac_fn_c_try_compile ()
2016{
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext
2019 if { { ac_try="$ac_compile"
2020case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023esac
2024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025$as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2027 ac_status=$?
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2032 fi
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_c_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2038 ac_retval=0
2039else
2040 $as_echo "$as_me: failed program was:" >&5
2041sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 ac_retval=1
2044fi
cristyda16f162011-02-19 23:52:17 +00002045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002046 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002047
2048} # ac_fn_c_try_compile
2049
cristy95646052009-11-28 23:05:30 +00002050# ac_fn_c_try_cpp LINENO
2051# ----------------------
2052# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053ac_fn_c_try_cpp ()
2054{
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060esac
2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062$as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2069 fi
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002071 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2073 test ! -s conftest.err
2074 }; then :
2075 ac_retval=0
2076else
2077 $as_echo "$as_me: failed program was:" >&5
2078sed 's/^/| /' conftest.$ac_ext >&5
2079
2080 ac_retval=1
2081fi
cristyda16f162011-02-19 23:52:17 +00002082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002083 as_fn_set_status $ac_retval
2084
2085} # ac_fn_c_try_cpp
2086
cristy8b350f62009-11-15 23:12:43 +00002087# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2088# -------------------------------------------------------
2089# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090# the include files in INCLUDES and setting the cache variable VAR
2091# accordingly.
2092ac_fn_c_check_header_mongrel ()
2093{
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002095 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002098if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002099 $as_echo_n "(cached) " >&6
2100fi
2101eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104else
2105 # Is the header compilable?
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107$as_echo_n "checking $2 usability... " >&6; }
2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h. */
2110$4
2111#include <$2>
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2115else
2116 ac_header_compiler=no
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120$as_echo "$ac_header_compiler" >&6; }
2121
2122# Is the header present?
2123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124$as_echo_n "checking $2 presence... " >&6; }
2125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h. */
2127#include <$2>
2128_ACEOF
2129if ac_fn_c_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2131else
2132 ac_header_preproc=no
2133fi
cristyda16f162011-02-19 23:52:17 +00002134rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136$as_echo "$ac_header_preproc" >&6; }
2137
2138# So? What about this header?
2139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2140 yes:no: )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145 ;;
2146 no:yes:* )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002157( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002158## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002159## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002160 ) | sed "s/^/$as_me: WARNING: /" >&2
2161 ;;
2162esac
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002165if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002166 $as_echo_n "(cached) " >&6
2167else
2168 eval "$3=\$ac_header_compiler"
2169fi
2170eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172$as_echo "$ac_res" >&6; }
2173fi
cristyda16f162011-02-19 23:52:17 +00002174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002175
2176} # ac_fn_c_check_header_mongrel
2177
2178# ac_fn_c_try_run LINENO
2179# ----------------------
2180# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2181# that executables *can* be run.
2182ac_fn_c_try_run ()
2183{
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if { { ac_try="$ac_link"
2186case "(($ac_try" in
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2189esac
2190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191$as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_link") 2>&5
2193 ac_status=$?
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2196 { { case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2199esac
2200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201$as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_try") 2>&5
2203 ac_status=$?
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; }; }; then :
2206 ac_retval=0
2207else
2208 $as_echo "$as_me: program exited with status $ac_status" >&5
2209 $as_echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212 ac_retval=$ac_status
2213fi
2214 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002216 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002217
2218} # ac_fn_c_try_run
2219
2220# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2221# -------------------------------------------------------
2222# Tests whether HEADER exists and can be compiled using the include files in
2223# INCLUDES, setting the cache variable VAR accordingly.
2224ac_fn_c_check_header_compile ()
2225{
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002229if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002230 $as_echo_n "(cached) " >&6
2231else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h. */
2234$4
2235#include <$2>
2236_ACEOF
2237if ac_fn_c_try_compile "$LINENO"; then :
2238 eval "$3=yes"
2239else
2240 eval "$3=no"
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243fi
2244eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002248
2249} # ac_fn_c_check_header_compile
2250
cristya0b81c32010-01-22 02:54:33 +00002251# ac_fn_cxx_try_compile LINENO
2252# ----------------------------
2253# Try to compile conftest.$ac_ext, and return whether this succeeded.
2254ac_fn_cxx_try_compile ()
2255{
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 rm -f conftest.$ac_objext
2258 if { { ac_try="$ac_compile"
2259case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2262esac
2263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264$as_echo "$ac_try_echo"; } >&5
2265 (eval "$ac_compile") 2>conftest.err
2266 ac_status=$?
2267 if test -s conftest.err; then
2268 grep -v '^ *+' conftest.err >conftest.er1
2269 cat conftest.er1 >&5
2270 mv -f conftest.er1 conftest.err
2271 fi
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; } && {
2274 test -z "$ac_cxx_werror_flag" ||
2275 test ! -s conftest.err
2276 } && test -s conftest.$ac_objext; then :
2277 ac_retval=0
2278else
2279 $as_echo "$as_me: failed program was:" >&5
2280sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 ac_retval=1
2283fi
cristyda16f162011-02-19 23:52:17 +00002284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002285 as_fn_set_status $ac_retval
2286
2287} # ac_fn_cxx_try_compile
2288
cristy8b350f62009-11-15 23:12:43 +00002289# ac_fn_c_try_link LINENO
2290# -----------------------
2291# Try to link conftest.$ac_ext, and return whether this succeeded.
2292ac_fn_c_try_link ()
2293{
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 rm -f conftest.$ac_objext conftest$ac_exeext
2296 if { { ac_try="$ac_link"
2297case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300esac
2301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302$as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_link") 2>conftest.err
2304 ac_status=$?
2305 if test -s conftest.err; then
2306 grep -v '^ *+' conftest.err >conftest.er1
2307 cat conftest.er1 >&5
2308 mv -f conftest.er1 conftest.err
2309 fi
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; } && {
2312 test -z "$ac_c_werror_flag" ||
2313 test ! -s conftest.err
2314 } && test -s conftest$ac_exeext && {
2315 test "$cross_compiling" = yes ||
2316 $as_test_x conftest$ac_exeext
2317 }; then :
2318 ac_retval=0
2319else
2320 $as_echo "$as_me: failed program was:" >&5
2321sed 's/^/| /' conftest.$ac_ext >&5
2322
2323 ac_retval=1
2324fi
2325 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2326 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2327 # interfere with the next link command; also delete a directory that is
2328 # left behind by Apple's compiler. We do this before executing the actions.
2329 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002331 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002332
2333} # ac_fn_c_try_link
2334
cristy73bd4a52010-10-05 11:24:23 +00002335# ac_fn_c_check_func LINENO FUNC VAR
2336# ----------------------------------
2337# Tests whether FUNC exists, setting the cache variable VAR accordingly
2338ac_fn_c_check_func ()
2339{
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002343if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002344 $as_echo_n "(cached) " >&6
2345else
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347/* end confdefs.h. */
2348/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2350#define $2 innocuous_$2
2351
2352/* System header to define __stub macros and hopefully few prototypes,
2353 which can conflict with char $2 (); below.
2354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2355 <limits.h> exists even on freestanding compilers. */
2356
2357#ifdef __STDC__
2358# include <limits.h>
2359#else
2360# include <assert.h>
2361#endif
2362
2363#undef $2
2364
2365/* Override any GCC internal prototype to avoid an error.
2366 Use char because int might match the return type of a GCC
2367 builtin and then its argument prototype would still apply. */
2368#ifdef __cplusplus
2369extern "C"
2370#endif
2371char $2 ();
2372/* The GNU C library defines this for functions which it implements
2373 to always fail with ENOSYS. Some functions are actually named
2374 something starting with __ and the normal name is an alias. */
2375#if defined __stub_$2 || defined __stub___$2
2376choke me
2377#endif
2378
2379int
2380main ()
2381{
2382return $2 ();
2383 ;
2384 return 0;
2385}
2386_ACEOF
2387if ac_fn_c_try_link "$LINENO"; then :
2388 eval "$3=yes"
2389else
2390 eval "$3=no"
2391fi
2392rm -f core conftest.err conftest.$ac_objext \
2393 conftest$ac_exeext conftest.$ac_ext
2394fi
2395eval ac_res=\$$3
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002399
2400} # ac_fn_c_check_func
2401
2402# ac_fn_cxx_try_cpp LINENO
2403# ------------------------
2404# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2405ac_fn_cxx_try_cpp ()
2406{
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 if { { ac_try="$ac_cpp conftest.$ac_ext"
2409case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412esac
2413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414$as_echo "$ac_try_echo"; } >&5
2415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2416 ac_status=$?
2417 if test -s conftest.err; then
2418 grep -v '^ *+' conftest.err >conftest.er1
2419 cat conftest.er1 >&5
2420 mv -f conftest.er1 conftest.err
2421 fi
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002423 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002424 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2425 test ! -s conftest.err
2426 }; then :
2427 ac_retval=0
2428else
2429 $as_echo "$as_me: failed program was:" >&5
2430sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 ac_retval=1
2433fi
cristyda16f162011-02-19 23:52:17 +00002434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002435 as_fn_set_status $ac_retval
2436
2437} # ac_fn_cxx_try_cpp
2438
2439# ac_fn_cxx_try_link LINENO
2440# -------------------------
2441# Try to link conftest.$ac_ext, and return whether this succeeded.
2442ac_fn_cxx_try_link ()
2443{
2444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { { ac_try="$ac_link"
2447case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450esac
2451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452$as_echo "$ac_try_echo"; } >&5
2453 (eval "$ac_link") 2>conftest.err
2454 ac_status=$?
2455 if test -s conftest.err; then
2456 grep -v '^ *+' conftest.err >conftest.er1
2457 cat conftest.er1 >&5
2458 mv -f conftest.er1 conftest.err
2459 fi
2460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461 test $ac_status = 0; } && {
2462 test -z "$ac_cxx_werror_flag" ||
2463 test ! -s conftest.err
2464 } && test -s conftest$ac_exeext && {
2465 test "$cross_compiling" = yes ||
2466 $as_test_x conftest$ac_exeext
2467 }; then :
2468 ac_retval=0
2469else
2470 $as_echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 ac_retval=1
2474fi
2475 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2476 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2477 # interfere with the next link command; also delete a directory that is
2478 # left behind by Apple's compiler. We do this before executing the actions.
2479 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002481 as_fn_set_status $ac_retval
2482
2483} # ac_fn_cxx_try_link
2484
cristy98dddb52010-11-04 00:30:15 +00002485# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2486# ---------------------------------------------
2487# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2488# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002489ac_fn_c_check_decl ()
2490{
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002492 as_decl_name=`echo $2|sed 's/ *(.*//'`
2493 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2495$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002496if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002497 $as_echo_n "(cached) " >&6
2498else
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500/* end confdefs.h. */
2501$4
2502int
2503main ()
2504{
cristy98dddb52010-11-04 00:30:15 +00002505#ifndef $as_decl_name
2506#ifdef __cplusplus
2507 (void) $as_decl_use;
2508#else
2509 (void) $as_decl_name;
2510#endif
cristy73bd4a52010-10-05 11:24:23 +00002511#endif
2512
2513 ;
2514 return 0;
2515}
2516_ACEOF
2517if ac_fn_c_try_compile "$LINENO"; then :
2518 eval "$3=yes"
2519else
2520 eval "$3=no"
2521fi
2522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523fi
2524eval ac_res=\$$3
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002528
2529} # ac_fn_c_check_decl
2530
cristy8b350f62009-11-15 23:12:43 +00002531# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2532# -------------------------------------------
2533# Tests whether TYPE exists after having included INCLUDES, setting cache
2534# variable VAR accordingly.
2535ac_fn_c_check_type ()
2536{
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002540if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002541 $as_echo_n "(cached) " >&6
2542else
2543 eval "$3=no"
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545/* end confdefs.h. */
2546$4
2547int
2548main ()
2549{
2550if (sizeof ($2))
2551 return 0;
2552 ;
2553 return 0;
2554}
2555_ACEOF
2556if ac_fn_c_try_compile "$LINENO"; then :
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558/* end confdefs.h. */
2559$4
2560int
2561main ()
2562{
2563if (sizeof (($2)))
2564 return 0;
2565 ;
2566 return 0;
2567}
2568_ACEOF
2569if ac_fn_c_try_compile "$LINENO"; then :
2570
2571else
2572 eval "$3=yes"
2573fi
2574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575fi
2576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577fi
2578eval ac_res=\$$3
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2580$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002582
2583} # ac_fn_c_check_type
2584
cristy92703d82010-04-26 00:18:18 +00002585# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2586# ----------------------------------------------------
2587# Tries to find if the field MEMBER exists in type AGGR, after including
2588# INCLUDES, setting cache variable VAR accordingly.
2589ac_fn_c_check_member ()
2590{
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2593$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002594if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002595 $as_echo_n "(cached) " >&6
2596else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598/* end confdefs.h. */
2599$5
2600int
2601main ()
2602{
2603static $2 ac_aggr;
2604if (ac_aggr.$3)
2605return 0;
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610if ac_fn_c_try_compile "$LINENO"; then :
2611 eval "$4=yes"
2612else
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614/* end confdefs.h. */
2615$5
2616int
2617main ()
2618{
2619static $2 ac_aggr;
2620if (sizeof ac_aggr.$3)
2621return 0;
2622 ;
2623 return 0;
2624}
2625_ACEOF
2626if ac_fn_c_try_compile "$LINENO"; then :
2627 eval "$4=yes"
2628else
2629 eval "$4=no"
2630fi
2631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632fi
2633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634fi
2635eval ac_res=\$$4
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002639
2640} # ac_fn_c_check_member
2641
cristy8b350f62009-11-15 23:12:43 +00002642# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2643# --------------------------------------------
2644# Tries to find the compile-time value of EXPR in a program that includes
2645# INCLUDES, setting VAR accordingly. Returns whether the value could be
2646# computed
2647ac_fn_c_compute_int ()
2648{
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 if test "$cross_compiling" = yes; then
2651 # Depending upon the size, compute the lo and hi bounds.
2652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653/* end confdefs.h. */
2654$4
2655int
2656main ()
2657{
2658static int test_array [1 - 2 * !(($2) >= 0)];
2659test_array [0] = 0
2660
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665if ac_fn_c_try_compile "$LINENO"; then :
2666 ac_lo=0 ac_mid=0
2667 while :; do
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669/* end confdefs.h. */
2670$4
2671int
2672main ()
2673{
2674static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2675test_array [0] = 0
2676
2677 ;
2678 return 0;
2679}
2680_ACEOF
2681if ac_fn_c_try_compile "$LINENO"; then :
2682 ac_hi=$ac_mid; break
2683else
2684 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2685 if test $ac_lo -le $ac_mid; then
2686 ac_lo= ac_hi=
2687 break
2688 fi
2689 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2690fi
2691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 done
2693else
2694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695/* end confdefs.h. */
2696$4
2697int
2698main ()
2699{
2700static int test_array [1 - 2 * !(($2) < 0)];
2701test_array [0] = 0
2702
2703 ;
2704 return 0;
2705}
2706_ACEOF
2707if ac_fn_c_try_compile "$LINENO"; then :
2708 ac_hi=-1 ac_mid=-1
2709 while :; do
2710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711/* end confdefs.h. */
2712$4
2713int
2714main ()
2715{
2716static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2717test_array [0] = 0
2718
2719 ;
2720 return 0;
2721}
2722_ACEOF
2723if ac_fn_c_try_compile "$LINENO"; then :
2724 ac_lo=$ac_mid; break
2725else
2726 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2727 if test $ac_mid -le $ac_hi; then
2728 ac_lo= ac_hi=
2729 break
2730 fi
2731 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2732fi
2733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 done
2735else
2736 ac_lo= ac_hi=
2737fi
2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739fi
2740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741# Binary search between lo and hi bounds.
2742while test "x$ac_lo" != "x$ac_hi"; do
2743 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746$4
2747int
2748main ()
2749{
2750static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2751test_array [0] = 0
2752
2753 ;
2754 return 0;
2755}
2756_ACEOF
2757if ac_fn_c_try_compile "$LINENO"; then :
2758 ac_hi=$ac_mid
2759else
2760 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2761fi
2762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763done
2764case $ac_lo in #((
2765?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2766'') ac_retval=1 ;;
2767esac
2768 else
2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770/* end confdefs.h. */
2771$4
2772static long int longval () { return $2; }
2773static unsigned long int ulongval () { return $2; }
2774#include <stdio.h>
2775#include <stdlib.h>
2776int
2777main ()
2778{
2779
2780 FILE *f = fopen ("conftest.val", "w");
2781 if (! f)
2782 return 1;
2783 if (($2) < 0)
2784 {
2785 long int i = longval ();
2786 if (i != ($2))
2787 return 1;
2788 fprintf (f, "%ld", i);
2789 }
2790 else
2791 {
2792 unsigned long int i = ulongval ();
2793 if (i != ($2))
2794 return 1;
2795 fprintf (f, "%lu", i);
2796 }
2797 /* Do not output a trailing newline, as this causes \r\n confusion
2798 on some platforms. */
2799 return ferror (f) || fclose (f) != 0;
2800
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805if ac_fn_c_try_run "$LINENO"; then :
2806 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2807else
2808 ac_retval=1
2809fi
2810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2811 conftest.$ac_objext conftest.beam conftest.$ac_ext
2812rm -f conftest.val
2813
2814 fi
cristyda16f162011-02-19 23:52:17 +00002815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002816 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002817
2818} # ac_fn_c_compute_int
2819
2820# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2821# ---------------------------------------------------------
2822# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2823# the include files in INCLUDES and setting the cache variable VAR
2824# accordingly.
2825ac_fn_cxx_check_header_mongrel ()
2826{
2827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002828 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2830$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002831if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002832 $as_echo_n "(cached) " >&6
2833fi
2834eval ac_res=\$$3
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2836$as_echo "$ac_res" >&6; }
2837else
2838 # Is the header compilable?
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2840$as_echo_n "checking $2 usability... " >&6; }
2841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842/* end confdefs.h. */
2843$4
2844#include <$2>
2845_ACEOF
2846if ac_fn_cxx_try_compile "$LINENO"; then :
2847 ac_header_compiler=yes
2848else
2849 ac_header_compiler=no
2850fi
2851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2853$as_echo "$ac_header_compiler" >&6; }
2854
2855# Is the header present?
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2857$as_echo_n "checking $2 presence... " >&6; }
2858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859/* end confdefs.h. */
2860#include <$2>
2861_ACEOF
2862if ac_fn_cxx_try_cpp "$LINENO"; then :
2863 ac_header_preproc=yes
2864else
2865 ac_header_preproc=no
2866fi
cristyda16f162011-02-19 23:52:17 +00002867rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2869$as_echo "$ac_header_preproc" >&6; }
2870
2871# So? What about this header?
2872case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2873 yes:no: )
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2875$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2877$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2878 ;;
2879 no:yes:* )
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2881$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2883$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2885$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2887$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2889$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002890( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002891## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002892## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002893 ) | sed "s/^/$as_me: WARNING: /" >&2
2894 ;;
2895esac
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2897$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002898if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002899 $as_echo_n "(cached) " >&6
2900else
2901 eval "$3=\$ac_header_compiler"
2902fi
2903eval ac_res=\$$3
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2905$as_echo "$ac_res" >&6; }
2906fi
cristyda16f162011-02-19 23:52:17 +00002907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002908
2909} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002910cat >config.log <<_ACEOF
2911This file contains any messages produced by compilers while
2912running configure, to aid debugging if configure makes a mistake.
2913
cristy45dbd322011-03-27 16:40:38 +00002914It was created by ImageMagick $as_me 6.6.9, which was
cristyda16f162011-02-19 23:52:17 +00002915generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002916
2917 $ $0 $@
2918
2919_ACEOF
2920exec 5>>config.log
2921{
2922cat <<_ASUNAME
2923## --------- ##
2924## Platform. ##
2925## --------- ##
2926
2927hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2928uname -m = `(uname -m) 2>/dev/null || echo unknown`
2929uname -r = `(uname -r) 2>/dev/null || echo unknown`
2930uname -s = `(uname -s) 2>/dev/null || echo unknown`
2931uname -v = `(uname -v) 2>/dev/null || echo unknown`
2932
2933/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2934/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2935
2936/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2937/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2938/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2939/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2940/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2941/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2942/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2943
2944_ASUNAME
2945
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002951 $as_echo "PATH: $as_dir"
2952 done
cristy3ed852e2009-09-05 21:47:34 +00002953IFS=$as_save_IFS
2954
2955} >&5
2956
2957cat >&5 <<_ACEOF
2958
2959
2960## ----------- ##
2961## Core tests. ##
2962## ----------- ##
2963
2964_ACEOF
2965
2966
2967# Keep a trace of the command line.
2968# Strip out --no-create and --no-recursion so they do not pile up.
2969# Strip out --silent because we don't want to record it for future runs.
2970# Also quote any args containing shell meta-characters.
2971# Make two passes to allow for proper duplicate-argument suppression.
2972ac_configure_args=
2973ac_configure_args0=
2974ac_configure_args1=
2975ac_must_keep_next=false
2976for ac_pass in 1 2
2977do
2978 for ac_arg
2979 do
2980 case $ac_arg in
2981 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2983 | -silent | --silent | --silen | --sile | --sil)
2984 continue ;;
2985 *\'*)
2986 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2987 esac
2988 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002989 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002990 2)
cristy8b350f62009-11-15 23:12:43 +00002991 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002992 if test $ac_must_keep_next = true; then
2993 ac_must_keep_next=false # Got value, back to normal.
2994 else
2995 case $ac_arg in
2996 *=* | --config-cache | -C | -disable-* | --disable-* \
2997 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2998 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2999 | -with-* | --with-* | -without-* | --without-* | --x)
3000 case "$ac_configure_args0 " in
3001 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3002 esac
3003 ;;
3004 -* ) ac_must_keep_next=true ;;
3005 esac
3006 fi
cristy8b350f62009-11-15 23:12:43 +00003007 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003008 ;;
3009 esac
3010 done
3011done
cristy8b350f62009-11-15 23:12:43 +00003012{ ac_configure_args0=; unset ac_configure_args0;}
3013{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003014
3015# When interrupted or exit'd, cleanup temporary files, and complete
3016# config.log. We remove comments because anyway the quotes in there
3017# would cause problems or look ugly.
3018# WARNING: Use '\'' to represent an apostrophe within the trap.
3019# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3020trap 'exit_status=$?
3021 # Save into config.log some information that might help in debugging.
3022 {
3023 echo
3024
cristy98dddb52010-11-04 00:30:15 +00003025 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003026## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003027## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003028 echo
3029 # The following way of writing the cache mishandles newlines in values,
3030(
3031 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3032 eval ac_val=\$$ac_var
3033 case $ac_val in #(
3034 *${as_nl}*)
3035 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003037$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3038 esac
3039 case $ac_var in #(
3040 _ | IFS | as_nl) ;; #(
3041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003042 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003043 esac ;;
3044 esac
3045 done
3046 (set) 2>&1 |
3047 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3048 *${as_nl}ac_space=\ *)
3049 sed -n \
3050 "s/'\''/'\''\\\\'\'''\''/g;
3051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3052 ;; #(
3053 *)
3054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3055 ;;
3056 esac |
3057 sort
3058)
3059 echo
3060
cristy98dddb52010-11-04 00:30:15 +00003061 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003062## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003063## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003064 echo
3065 for ac_var in $ac_subst_vars
3066 do
3067 eval ac_val=\$$ac_var
3068 case $ac_val in
3069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3070 esac
3071 $as_echo "$ac_var='\''$ac_val'\''"
3072 done | sort
3073 echo
3074
3075 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003076 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003077## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003078## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003079 echo
3080 for ac_var in $ac_subst_files
3081 do
3082 eval ac_val=\$$ac_var
3083 case $ac_val in
3084 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3085 esac
3086 $as_echo "$ac_var='\''$ac_val'\''"
3087 done | sort
3088 echo
3089 fi
3090
3091 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003092 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003093## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003094## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003095 echo
3096 cat confdefs.h
3097 echo
3098 fi
3099 test "$ac_signal" != 0 &&
3100 $as_echo "$as_me: caught signal $ac_signal"
3101 $as_echo "$as_me: exit $exit_status"
3102 } >&5
3103 rm -f core *.core core.conftest.* &&
3104 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3105 exit $exit_status
3106' 0
3107for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003108 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003109done
3110ac_signal=0
3111
3112# confdefs.h avoids OS command line length limits that DEFS can exceed.
3113rm -f -r conftest* confdefs.h
3114
cristy8b350f62009-11-15 23:12:43 +00003115$as_echo "/* confdefs.h */" > confdefs.h
3116
cristy3ed852e2009-09-05 21:47:34 +00003117# Predefined preprocessor variables.
3118
3119cat >>confdefs.h <<_ACEOF
3120#define PACKAGE_NAME "$PACKAGE_NAME"
3121_ACEOF
3122
cristy3ed852e2009-09-05 21:47:34 +00003123cat >>confdefs.h <<_ACEOF
3124#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3125_ACEOF
3126
cristy3ed852e2009-09-05 21:47:34 +00003127cat >>confdefs.h <<_ACEOF
3128#define PACKAGE_VERSION "$PACKAGE_VERSION"
3129_ACEOF
3130
cristy3ed852e2009-09-05 21:47:34 +00003131cat >>confdefs.h <<_ACEOF
3132#define PACKAGE_STRING "$PACKAGE_STRING"
3133_ACEOF
3134
cristy3ed852e2009-09-05 21:47:34 +00003135cat >>confdefs.h <<_ACEOF
3136#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3137_ACEOF
3138
cristy8b350f62009-11-15 23:12:43 +00003139cat >>confdefs.h <<_ACEOF
3140#define PACKAGE_URL "$PACKAGE_URL"
3141_ACEOF
3142
cristy3ed852e2009-09-05 21:47:34 +00003143
3144# Let the site file select an alternate cache file if it wants to.
3145# Prefer an explicitly selected file to automatically selected ones.
3146ac_site_file1=NONE
3147ac_site_file2=NONE
3148if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003149 # We do not want a PATH search for config.site.
3150 case $CONFIG_SITE in #((
3151 -*) ac_site_file1=./$CONFIG_SITE;;
3152 */*) ac_site_file1=$CONFIG_SITE;;
3153 *) ac_site_file1=./$CONFIG_SITE;;
3154 esac
cristy3ed852e2009-09-05 21:47:34 +00003155elif test "x$prefix" != xNONE; then
3156 ac_site_file1=$prefix/share/config.site
3157 ac_site_file2=$prefix/etc/config.site
3158else
3159 ac_site_file1=$ac_default_prefix/share/config.site
3160 ac_site_file2=$ac_default_prefix/etc/config.site
3161fi
3162for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3163do
3164 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003165 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003167$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3168 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003169 . "$ac_site_file" \
3170 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172as_fn_error $? "failed to load site script $ac_site_file
3173See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003174 fi
3175done
3176
3177if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003178 # Some versions of bash will fail to source /dev/null (special files
3179 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3180 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003181 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003182$as_echo "$as_me: loading cache $cache_file" >&6;}
3183 case $cache_file in
3184 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3185 *) . "./$cache_file";;
3186 esac
3187 fi
3188else
cristy8b350f62009-11-15 23:12:43 +00003189 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003190$as_echo "$as_me: creating cache $cache_file" >&6;}
3191 >$cache_file
3192fi
3193
cristycd4c5312009-11-22 01:19:08 +00003194as_fn_append ac_header_list " stdlib.h"
3195as_fn_append ac_header_list " unistd.h"
3196as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003197# Check that the precious variables saved in the cache have kept the same
3198# value.
3199ac_cache_corrupted=false
3200for ac_var in $ac_precious_vars; do
3201 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3202 eval ac_new_set=\$ac_env_${ac_var}_set
3203 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3204 eval ac_new_val=\$ac_env_${ac_var}_value
3205 case $ac_old_set,$ac_new_set in
3206 set,)
cristy8b350f62009-11-15 23:12:43 +00003207 { $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 +00003208$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3209 ac_cache_corrupted=: ;;
3210 ,set)
cristy8b350f62009-11-15 23:12:43 +00003211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003212$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3213 ac_cache_corrupted=: ;;
3214 ,);;
3215 *)
3216 if test "x$ac_old_val" != "x$ac_new_val"; then
3217 # differences in whitespace do not lead to failure.
3218 ac_old_val_w=`echo x $ac_old_val`
3219 ac_new_val_w=`echo x $ac_new_val`
3220 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003222$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3223 ac_cache_corrupted=:
3224 else
cristy8b350f62009-11-15 23:12:43 +00003225 { $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 +00003226$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3227 eval $ac_var=\$ac_old_val
3228 fi
cristy8b350f62009-11-15 23:12:43 +00003229 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003230$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003231 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003232$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3233 fi;;
3234 esac
3235 # Pass precious variables to config.status.
3236 if test "$ac_new_set" = set; then
3237 case $ac_new_val in
3238 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3239 *) ac_arg=$ac_var=$ac_new_val ;;
3240 esac
3241 case " $ac_configure_args " in
3242 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003243 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003244 esac
3245 fi
3246done
3247if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003251$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003252 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003253fi
cristy8b350f62009-11-15 23:12:43 +00003254## -------------------- ##
3255## Main body of script. ##
3256## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003257
3258ac_ext=c
3259ac_cpp='$CPP $CPPFLAGS'
3260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263
3264
3265
3266ac_aux_dir=
3267for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003268 if test -f "$ac_dir/install-sh"; then
3269 ac_aux_dir=$ac_dir
3270 ac_install_sh="$ac_aux_dir/install-sh -c"
3271 break
3272 elif test -f "$ac_dir/install.sh"; then
3273 ac_aux_dir=$ac_dir
3274 ac_install_sh="$ac_aux_dir/install.sh -c"
3275 break
3276 elif test -f "$ac_dir/shtool"; then
3277 ac_aux_dir=$ac_dir
3278 ac_install_sh="$ac_aux_dir/shtool install -c"
3279 break
3280 fi
cristy3ed852e2009-09-05 21:47:34 +00003281done
3282if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003283 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003284fi
3285
3286# These three variables are undocumented and unsupported,
3287# and are intended to be withdrawn in a future Autoconf release.
3288# They can cause serious problems if a builder's source tree is in a directory
3289# whose full name contains unusual characters.
3290ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3291ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3292ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3293
3294
3295
3296
3297ac_config_headers="$ac_config_headers config/config.h"
3298
cristy24fc1fe2010-10-23 21:13:01 +00003299
cristy73bd4a52010-10-05 11:24:23 +00003300ac_config_commands="$ac_config_commands magick/magick-config.h"
3301
cristy430a7312010-01-21 20:44:04 +00003302ac_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 magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/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 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003303
3304
3305#
3306# Save initial user-tunable values
3307#
3308USER_LIBS=$LIBS
3309for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3310 eval isset=\${$var+set}
3311 if test "$isset" = 'set'; then
3312 eval val=$`echo $var`
3313 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3314 fi
3315done
3316
3317
3318CONFIGURE_ARGS="$0 ${ac_configure_args}"
3319
3320
3321# Source file containing package/library versioning information.
3322. ${srcdir}/version.sh
3323
cristy15a88782010-01-31 23:24:49 +00003324echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003325# Make sure we can run config.sub.
3326$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003327 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003328
cristy8b350f62009-11-15 23:12:43 +00003329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003330$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003331if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003332 $as_echo_n "(cached) " >&6
3333else
3334 ac_build_alias=$build_alias
3335test "x$ac_build_alias" = x &&
3336 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3337test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003338 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003339ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003340 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003341
3342fi
cristy8b350f62009-11-15 23:12:43 +00003343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003344$as_echo "$ac_cv_build" >&6; }
3345case $ac_cv_build in
3346*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003347*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003348esac
3349build=$ac_cv_build
3350ac_save_IFS=$IFS; IFS='-'
3351set x $ac_cv_build
3352shift
3353build_cpu=$1
3354build_vendor=$2
3355shift; shift
3356# Remember, the first character of IFS is used to create $*,
3357# except with old shells:
3358build_os=$*
3359IFS=$ac_save_IFS
3360case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3361
3362
cristy8b350f62009-11-15 23:12:43 +00003363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003364$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003365if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003366 $as_echo_n "(cached) " >&6
3367else
3368 if test "x$host_alias" = x; then
3369 ac_cv_host=$ac_cv_build
3370else
3371 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003373fi
3374
3375fi
cristy8b350f62009-11-15 23:12:43 +00003376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003377$as_echo "$ac_cv_host" >&6; }
3378case $ac_cv_host in
3379*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003380*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003381esac
3382host=$ac_cv_host
3383ac_save_IFS=$IFS; IFS='-'
3384set x $ac_cv_host
3385shift
3386host_cpu=$1
3387host_vendor=$2
3388shift; shift
3389# Remember, the first character of IFS is used to create $*,
3390# except with old shells:
3391host_os=$*
3392IFS=$ac_save_IFS
3393case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3394
3395
cristy8b350f62009-11-15 23:12:43 +00003396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003397$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003398if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003399 $as_echo_n "(cached) " >&6
3400else
3401 if test "x$target_alias" = x; then
3402 ac_cv_target=$ac_cv_host
3403else
3404 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003406fi
3407
3408fi
cristy8b350f62009-11-15 23:12:43 +00003409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003410$as_echo "$ac_cv_target" >&6; }
3411case $ac_cv_target in
3412*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003413*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003414esac
3415target=$ac_cv_target
3416ac_save_IFS=$IFS; IFS='-'
3417set x $ac_cv_target
3418shift
3419target_cpu=$1
3420target_vendor=$2
3421shift; shift
3422# Remember, the first character of IFS is used to create $*,
3423# except with old shells:
3424target_os=$*
3425IFS=$ac_save_IFS
3426case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3427
3428
3429# The aliases save the names the user supplied, while $host etc.
3430# will get canonicalized.
3431test -n "$target_alias" &&
3432 test "$program_prefix$program_suffix$program_transform_name" = \
3433 NONENONEs,x,x, &&
3434 program_prefix=${target_alias}-
3435
cristy837d6dc2010-02-27 01:16:57 +00003436
3437
3438
3439
cristy3225a072010-04-17 01:47:28 +00003440MAGICK_TARGET_CPU=$target_cpu
3441
3442
3443MAGICK_TARGET_VENDOR=$target_vendor
3444
3445
3446MAGICK_TARGET_OS=$target_os
3447
3448
cristy3ed852e2009-09-05 21:47:34 +00003449# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003450MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3451
3452MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3453
cristy252cedf2011-03-31 17:38:54 +00003454MAGICK_SVN_REVISION=4126
cristyd694ca32011-03-27 21:42:54 +00003455
3456
cristy3ed852e2009-09-05 21:47:34 +00003457
3458
3459# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3461$as_echo_n "checking whether build environment is sane... " >&6; }
3462# Just in case
3463sleep 1
3464echo timestamp > conftest.file
3465# Reject unsafe characters in $srcdir or the absolute working directory
3466# name. Accept space and tab only in the latter.
3467am_lf='
3468'
3469case `pwd` in
3470 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003471 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003472esac
3473case $srcdir in
3474 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003475 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003476esac
cristy3ed852e2009-09-05 21:47:34 +00003477
cristy73bd4a52010-10-05 11:24:23 +00003478# Do `set' in a subshell so we don't clobber the current shell's
3479# arguments. Must try -L first in case configure is actually a
3480# symlink; some systems play weird games with the mod time of symlinks
3481# (eg FreeBSD returns the mod time of the symlink's containing
3482# directory).
3483if (
3484 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3485 if test "$*" = "X"; then
3486 # -L didn't work.
3487 set X `ls -t "$srcdir/configure" conftest.file`
3488 fi
3489 rm -f conftest.file
3490 if test "$*" != "X $srcdir/configure conftest.file" \
3491 && test "$*" != "X conftest.file $srcdir/configure"; then
3492
3493 # If neither matched, then we have a broken ls. This can happen
3494 # if, for instance, CONFIG_SHELL is bash and it inherits a
3495 # broken ls alias from the environment. This has actually
3496 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003497 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003498alias in your environment" "$LINENO" 5
3499 fi
3500
3501 test "$2" = conftest.file
3502 )
3503then
3504 # Ok.
3505 :
3506else
cristy98dddb52010-11-04 00:30:15 +00003507 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003508Check your system clock" "$LINENO" 5
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3511$as_echo "yes" >&6; }
3512
3513am__api_version='1.11'
3514
3515# Find a good install program. We prefer a C program (faster),
3516# so one script is as good as another. But avoid the broken or
3517# incompatible versions:
3518# SysV /etc/install, /usr/sbin/install
3519# SunOS /usr/etc/install
3520# IRIX /sbin/install
3521# AIX /bin/install
3522# AmigaOS /C/install, which installs bootblocks on floppy discs
3523# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3524# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3525# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3526# OS/2's system install, which has a completely different semantic
3527# ./install, which can be erroneously created by make from ./install.sh.
3528# Reject install programs that cannot install multiple files.
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3530$as_echo_n "checking for a BSD-compatible install... " >&6; }
3531if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003532if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003533 $as_echo_n "(cached) " >&6
3534else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536for as_dir in $PATH
3537do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 # Account for people who put trailing slashes in PATH elements.
3541case $as_dir/ in #((
3542 ./ | .// | /[cC]/* | \
3543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3545 /usr/ucb/* ) ;;
3546 *)
3547 # OSF1 and SCO ODT 3.0 have their own names for install.
3548 # Don't use installbsd from OSF since it installs stuff as root
3549 # by default.
3550 for ac_prog in ginstall scoinst install; do
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3553 if test $ac_prog = install &&
3554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3555 # AIX install. It has an incompatible calling convention.
3556 :
3557 elif test $ac_prog = install &&
3558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3559 # program-specific install script used by HP pwplus--don't use.
3560 :
3561 else
3562 rm -rf conftest.one conftest.two conftest.dir
3563 echo one > conftest.one
3564 echo two > conftest.two
3565 mkdir conftest.dir
3566 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3567 test -s conftest.one && test -s conftest.two &&
3568 test -s conftest.dir/conftest.one &&
3569 test -s conftest.dir/conftest.two
3570 then
3571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3572 break 3
3573 fi
3574 fi
3575 fi
3576 done
3577 done
3578 ;;
3579esac
3580
3581 done
3582IFS=$as_save_IFS
3583
3584rm -rf conftest.one conftest.two conftest.dir
3585
3586fi
3587 if test "${ac_cv_path_install+set}" = set; then
3588 INSTALL=$ac_cv_path_install
3589 else
3590 # As a last resort, use the slow shell script. Don't cache a
3591 # value for INSTALL within a source directory, because that will
3592 # break other packages using the cache if that directory is
3593 # removed, or if the value is a relative name.
3594 INSTALL=$ac_install_sh
3595 fi
3596fi
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3598$as_echo "$INSTALL" >&6; }
3599
3600# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3601# It thinks the first close brace ends the variable substitution.
3602test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3603
3604test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3605
3606test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3607
3608test "$program_prefix" != NONE &&
3609 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3610# Use a double $ so make ignores it.
3611test "$program_suffix" != NONE &&
3612 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3613# Double any \ or $.
3614# By default was `s,x,x', remove it if useless.
3615ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3616program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3617
3618# expand $ac_aux_dir to an absolute path
3619am_aux_dir=`cd $ac_aux_dir && pwd`
3620
3621if test x"${MISSING+set}" != xset; then
3622 case $am_aux_dir in
3623 *\ * | *\ *)
3624 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3625 *)
3626 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3627 esac
3628fi
3629# Use eval to expand $SHELL
3630if eval "$MISSING --run true"; then
3631 am_missing_run="$MISSING --run "
3632else
3633 am_missing_run=
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3635$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3636fi
3637
3638if test x"${install_sh}" != xset; then
3639 case $am_aux_dir in
3640 *\ * | *\ *)
3641 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3642 *)
3643 install_sh="\${SHELL} $am_aux_dir/install-sh"
3644 esac
3645fi
3646
3647# Installed binaries are usually stripped using `strip' when the user
3648# run `make install-strip'. However `strip' might not be the right
3649# tool to use in cross-compilation environments, therefore Automake
3650# will honor the `STRIP' environment variable to overrule this program.
3651if test "$cross_compiling" != no; then
3652 if test -n "$ac_tool_prefix"; then
3653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3654set dummy ${ac_tool_prefix}strip; ac_word=$2
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003657if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003658 $as_echo_n "(cached) " >&6
3659else
3660 if test -n "$STRIP"; then
3661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3662else
3663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664for as_dir in $PATH
3665do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674done
3675 done
3676IFS=$as_save_IFS
3677
3678fi
3679fi
3680STRIP=$ac_cv_prog_STRIP
3681if test -n "$STRIP"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3683$as_echo "$STRIP" >&6; }
3684else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686$as_echo "no" >&6; }
3687fi
3688
3689
3690fi
3691if test -z "$ac_cv_prog_STRIP"; then
3692 ac_ct_STRIP=$STRIP
3693 # Extract the first word of "strip", so it can be a program name with args.
3694set dummy strip; ac_word=$2
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003697if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003698 $as_echo_n "(cached) " >&6
3699else
3700 if test -n "$ac_ct_STRIP"; then
3701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3702else
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_ac_ct_STRIP="strip"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 break 2
3713 fi
3714done
3715 done
3716IFS=$as_save_IFS
3717
3718fi
3719fi
3720ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3721if test -n "$ac_ct_STRIP"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3723$as_echo "$ac_ct_STRIP" >&6; }
3724else
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726$as_echo "no" >&6; }
3727fi
3728
3729 if test "x$ac_ct_STRIP" = x; then
3730 STRIP=":"
3731 else
3732 case $cross_compiling:$ac_tool_warned in
3733yes:)
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3736ac_tool_warned=yes ;;
3737esac
3738 STRIP=$ac_ct_STRIP
3739 fi
3740else
3741 STRIP="$ac_cv_prog_STRIP"
3742fi
3743
3744fi
3745INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3746
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3748$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3749if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003750 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003751 $as_echo_n "(cached) " >&6
3752else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3755do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_prog in mkdir gmkdir; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3761 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3762 'mkdir (GNU coreutils) '* | \
3763 'mkdir (coreutils) '* | \
3764 'mkdir (fileutils) '4.1*)
3765 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3766 break 3;;
3767 esac
3768 done
3769 done
3770 done
3771IFS=$as_save_IFS
3772
3773fi
3774
3775 test -d ./--version && rmdir ./--version
3776 if test "${ac_cv_path_mkdir+set}" = set; then
3777 MKDIR_P="$ac_cv_path_mkdir -p"
3778 else
3779 # As a last resort, use the slow shell script. Don't cache a
3780 # value for MKDIR_P within a source directory, because that will
3781 # break other packages using the cache if that directory is
3782 # removed, or if the value is a relative name.
3783 MKDIR_P="$ac_install_sh -d"
3784 fi
3785fi
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3787$as_echo "$MKDIR_P" >&6; }
3788
3789mkdir_p="$MKDIR_P"
3790case $mkdir_p in
3791 [\\/$]* | ?:[\\/]*) ;;
3792 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3793esac
3794
3795for ac_prog in gawk mawk nawk awk
3796do
3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
3798set dummy $ac_prog; ac_word=$2
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003801if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003802 $as_echo_n "(cached) " >&6
3803else
3804 if test -n "$AWK"; then
3805 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3806else
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_prog_AWK="$ac_prog"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818done
3819 done
3820IFS=$as_save_IFS
3821
3822fi
3823fi
3824AWK=$ac_cv_prog_AWK
3825if test -n "$AWK"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3827$as_echo "$AWK" >&6; }
3828else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830$as_echo "no" >&6; }
3831fi
3832
3833
3834 test -n "$AWK" && break
3835done
3836
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3838$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3839set x ${MAKE-make}
3840ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003841if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003842 $as_echo_n "(cached) " >&6
3843else
3844 cat >conftest.make <<\_ACEOF
3845SHELL = /bin/sh
3846all:
3847 @echo '@@@%%%=$(MAKE)=@@@%%%'
3848_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003849# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003850case `${MAKE-make} -f conftest.make 2>/dev/null` in
3851 *@@@%%%=?*=@@@%%%*)
3852 eval ac_cv_prog_make_${ac_make}_set=yes;;
3853 *)
3854 eval ac_cv_prog_make_${ac_make}_set=no;;
3855esac
3856rm -f conftest.make
3857fi
3858if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3860$as_echo "yes" >&6; }
3861 SET_MAKE=
3862else
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864$as_echo "no" >&6; }
3865 SET_MAKE="MAKE=${MAKE-make}"
3866fi
3867
3868rm -rf .tst 2>/dev/null
3869mkdir .tst 2>/dev/null
3870if test -d .tst; then
3871 am__leading_dot=.
3872else
3873 am__leading_dot=_
3874fi
3875rmdir .tst 2>/dev/null
3876
3877if test "`cd $srcdir && pwd`" != "`pwd`"; then
3878 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3879 # is not polluted with repeated "-I."
3880 am__isrc=' -I$(srcdir)'
3881 # test to see if srcdir already configured
3882 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003883 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003884 fi
3885fi
3886
3887# test whether we have cygpath
3888if test -z "$CYGPATH_W"; then
3889 if (cygpath --version) >/dev/null 2>/dev/null; then
3890 CYGPATH_W='cygpath -w'
3891 else
3892 CYGPATH_W=echo
3893 fi
3894fi
3895
3896
3897# Define the identity of the package.
3898 PACKAGE=$PACKAGE_NAME
3899 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3900
3901
3902# Some tools Automake needs.
3903
3904ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3905
3906
3907AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3908
3909
3910AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3911
3912
3913AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3914
3915
3916MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3917
3918# We need awk for the "check" target. The system "awk" is bad on
3919# some platforms.
3920# Always define AMTAR for backward compatibility.
3921
3922AMTAR=${AMTAR-"${am_missing_run}tar"}
3923
3924am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3925
3926
3927
3928
3929
cristy3ed852e2009-09-05 21:47:34 +00003930
3931# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003932# Check whether --enable-silent-rules was given.
3933if test "${enable_silent_rules+set}" = set; then :
3934 enableval=$enable_silent_rules;
3935fi
3936
3937case $enable_silent_rules in
3938yes) AM_DEFAULT_VERBOSITY=0;;
3939no) AM_DEFAULT_VERBOSITY=1;;
3940*) AM_DEFAULT_VERBOSITY=0;;
3941esac
3942AM_BACKSLASH='\'
3943
cristy3ed852e2009-09-05 21:47:34 +00003944
3945MAGICK_LIB_VERSION="0x"
3946if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3947 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3948fi
3949MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3950if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3951 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3952fi
3953MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3954if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3955 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3956fi
3957MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3958
3959
3960# Definition used to define MagickLibVersionText in version.h
3961MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3962
3963
3964# Definition used to define MagickLibVersionNumber in version.h
3965MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3966
3967
3968# Regenerate config.status if ChangeLog or version.sh is updated.
3969CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3970
3971
3972PERLMAINCC=$CC
3973
3974MAGICK_CFLAGS=''
3975MAGICK_CPPFLAGS=$CPPFLAGS_USER
3976MAGICK_PCFLAGS=$CPPFLAGS_USER
3977MAGICK_LDFLAGS=''
3978MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003979MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003980
3981#
3982# Evaluate shell variable equivalents to Makefile directory variables
3983#
3984if test "x$prefix" = xNONE; then
3985 prefix=$ac_default_prefix
3986fi
3987# Let make expand exec_prefix.
3988if test "x$exec_prefix" = xNONE; then
3989 exec_prefix='${prefix}'
3990fi
3991
3992#
3993eval "eval PREFIX_DIR=${prefix}"
3994
3995eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3996
3997eval "eval BIN_DIR=$bindir"
3998
3999eval "eval SBIN_DIR=$sbindir"
4000
4001eval "eval LIBEXEC_DIR=$libexecdir"
4002
4003eval "eval DATA_DIR=$datadir"
4004
cristyd55889c2011-03-27 00:50:24 +00004005eval "eval DOC_DIR=$docdir"
4006
cristy3ed852e2009-09-05 21:47:34 +00004007eval "eval SYSCONF_DIR=$sysconfdir"
4008
4009eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4010
4011eval "eval LOCALSTATE_DIR=$localstatedir"
4012
4013eval "eval LIB_DIR=$libdir"
4014
4015eval "eval INCLUDE_DIR=$includedir"
4016
4017eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4018
4019eval "eval INFO_DIR=$infodir"
4020
4021eval "eval MAN_DIR=$mandir"
4022
4023
4024# Get full paths to source and build directories
4025srcdirfull="`cd $srcdir && pwd`"
4026builddir="`pwd`"
4027
4028#
4029# Compute variables useful for running uninstalled software.
4030#
4031MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4032MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4033MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4034MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4035DIRSEP=':'
4036case "${build_os}" in
4037 mingw* )
4038 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4039 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4040 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4041 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4042 DIRSEP=';'
4043 ;;
4044esac
4045case "${host_os}" in
4046 mingw* )
4047 DIRSEP=';'
4048 ;;
4049esac
4050
4051
4052
4053
4054
4055
cristya0b81c32010-01-22 02:54:33 +00004056
4057#
4058# Enable OS features.
4059#
cristy73bd4a52010-10-05 11:24:23 +00004060DEPDIR="${am__leading_dot}deps"
4061
4062ac_config_commands="$ac_config_commands depfiles"
4063
4064
4065am_make=${MAKE-make}
4066cat > confinc << 'END'
4067am__doit:
4068 @echo this is the am__doit target
4069.PHONY: am__doit
4070END
4071# If we don't find an include directive, just comment out the code.
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4073$as_echo_n "checking for style of include used by $am_make... " >&6; }
4074am__include="#"
4075am__quote=
4076_am_result=none
4077# First try GNU make style include.
4078echo "include confinc" > confmf
4079# Ignore all kinds of additional output from `make'.
4080case `$am_make -s -f confmf 2> /dev/null` in #(
4081*the\ am__doit\ target*)
4082 am__include=include
4083 am__quote=
4084 _am_result=GNU
4085 ;;
4086esac
4087# Now try BSD make style include.
4088if test "$am__include" = "#"; then
4089 echo '.include "confinc"' > confmf
4090 case `$am_make -s -f confmf 2> /dev/null` in #(
4091 *the\ am__doit\ target*)
4092 am__include=.include
4093 am__quote="\""
4094 _am_result=BSD
4095 ;;
4096 esac
4097fi
4098
4099
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4101$as_echo "$_am_result" >&6; }
4102rm -f confinc confmf
4103
4104# Check whether --enable-dependency-tracking was given.
4105if test "${enable_dependency_tracking+set}" = set; then :
4106 enableval=$enable_dependency_tracking;
4107fi
4108
4109if test "x$enable_dependency_tracking" != xno; then
4110 am_depcomp="$ac_aux_dir/depcomp"
4111 AMDEPBACKSLASH='\'
4112fi
4113 if test "x$enable_dependency_tracking" != xno; then
4114 AMDEP_TRUE=
4115 AMDEP_FALSE='#'
4116else
4117 AMDEP_TRUE='#'
4118 AMDEP_FALSE=
4119fi
4120
4121
cristy3ed852e2009-09-05 21:47:34 +00004122ac_ext=c
4123ac_cpp='$CPP $CPPFLAGS'
4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127if test -n "$ac_tool_prefix"; then
4128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4129set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004132if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004133 $as_echo_n "(cached) " >&6
4134else
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4137else
4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004147 break 2
4148 fi
4149done
cristy8b350f62009-11-15 23:12:43 +00004150 done
cristy3ed852e2009-09-05 21:47:34 +00004151IFS=$as_save_IFS
4152
4153fi
4154fi
4155CC=$ac_cv_prog_CC
4156if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004158$as_echo "$CC" >&6; }
4159else
cristy8b350f62009-11-15 23:12:43 +00004160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004161$as_echo "no" >&6; }
4162fi
4163
4164
4165fi
4166if test -z "$ac_cv_prog_CC"; then
4167 ac_ct_CC=$CC
4168 # Extract the first word of "gcc", so it can be a program name with args.
4169set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004172if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004173 $as_echo_n "(cached) " >&6
4174else
4175 if test -n "$ac_ct_CC"; then
4176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4177else
4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004183 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004187 break 2
4188 fi
4189done
cristy8b350f62009-11-15 23:12:43 +00004190 done
cristy3ed852e2009-09-05 21:47:34 +00004191IFS=$as_save_IFS
4192
4193fi
4194fi
4195ac_ct_CC=$ac_cv_prog_ac_ct_CC
4196if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004198$as_echo "$ac_ct_CC" >&6; }
4199else
cristy8b350f62009-11-15 23:12:43 +00004200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004201$as_echo "no" >&6; }
4202fi
4203
4204 if test "x$ac_ct_CC" = x; then
4205 CC=""
4206 else
4207 case $cross_compiling:$ac_tool_warned in
4208yes:)
cristy8b350f62009-11-15 23:12:43 +00004209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211ac_tool_warned=yes ;;
4212esac
4213 CC=$ac_ct_CC
4214 fi
4215else
4216 CC="$ac_cv_prog_CC"
4217fi
4218
4219if test -z "$CC"; then
4220 if test -n "$ac_tool_prefix"; then
4221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4222set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004225if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004226 $as_echo_n "(cached) " >&6
4227else
4228 if test -n "$CC"; then
4229 ac_cv_prog_CC="$CC" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004240 break 2
4241 fi
4242done
cristy8b350f62009-11-15 23:12:43 +00004243 done
cristy3ed852e2009-09-05 21:47:34 +00004244IFS=$as_save_IFS
4245
4246fi
4247fi
4248CC=$ac_cv_prog_CC
4249if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004251$as_echo "$CC" >&6; }
4252else
cristy8b350f62009-11-15 23:12:43 +00004253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254$as_echo "no" >&6; }
4255fi
4256
4257
4258 fi
4259fi
4260if test -z "$CC"; then
4261 # Extract the first word of "cc", so it can be a program name with args.
4262set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004264$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004265if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004266 $as_echo_n "(cached) " >&6
4267else
4268 if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4270else
4271 ac_prog_rejected=no
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4280 ac_prog_rejected=yes
4281 continue
4282 fi
4283 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004285 break 2
4286 fi
4287done
cristy8b350f62009-11-15 23:12:43 +00004288 done
cristy3ed852e2009-09-05 21:47:34 +00004289IFS=$as_save_IFS
4290
4291if test $ac_prog_rejected = yes; then
4292 # We found a bogon in the path, so make sure we never use it.
4293 set dummy $ac_cv_prog_CC
4294 shift
4295 if test $# != 0; then
4296 # We chose a different compiler from the bogus one.
4297 # However, it has the same basename, so the bogon will be chosen
4298 # first if we set CC to just the basename; use the full file name.
4299 shift
4300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4301 fi
4302fi
4303fi
4304fi
4305CC=$ac_cv_prog_CC
4306if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004308$as_echo "$CC" >&6; }
4309else
cristy8b350f62009-11-15 23:12:43 +00004310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004311$as_echo "no" >&6; }
4312fi
4313
4314
4315fi
4316if test -z "$CC"; then
4317 if test -n "$ac_tool_prefix"; then
4318 for ac_prog in cl.exe
4319 do
4320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004324if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004325 $as_echo_n "(cached) " >&6
4326else
4327 if test -n "$CC"; then
4328 ac_cv_prog_CC="$CC" # Let the user override the test.
4329else
4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
4332do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004339 break 2
4340 fi
4341done
cristy8b350f62009-11-15 23:12:43 +00004342 done
cristy3ed852e2009-09-05 21:47:34 +00004343IFS=$as_save_IFS
4344
4345fi
4346fi
4347CC=$ac_cv_prog_CC
4348if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004350$as_echo "$CC" >&6; }
4351else
cristy8b350f62009-11-15 23:12:43 +00004352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004353$as_echo "no" >&6; }
4354fi
4355
4356
4357 test -n "$CC" && break
4358 done
4359fi
4360if test -z "$CC"; then
4361 ac_ct_CC=$CC
4362 for ac_prog in cl.exe
4363do
4364 # Extract the first word of "$ac_prog", so it can be a program name with args.
4365set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004368if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004369 $as_echo_n "(cached) " >&6
4370else
4371 if test -n "$ac_ct_CC"; then
4372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4373else
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004383 break 2
4384 fi
4385done
cristy8b350f62009-11-15 23:12:43 +00004386 done
cristy3ed852e2009-09-05 21:47:34 +00004387IFS=$as_save_IFS
4388
4389fi
4390fi
4391ac_ct_CC=$ac_cv_prog_ac_ct_CC
4392if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004394$as_echo "$ac_ct_CC" >&6; }
4395else
cristy8b350f62009-11-15 23:12:43 +00004396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004397$as_echo "no" >&6; }
4398fi
4399
4400
4401 test -n "$ac_ct_CC" && break
4402done
4403
4404 if test "x$ac_ct_CC" = x; then
4405 CC=""
4406 else
4407 case $cross_compiling:$ac_tool_warned in
4408yes:)
cristy8b350f62009-11-15 23:12:43 +00004409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411ac_tool_warned=yes ;;
4412esac
4413 CC=$ac_ct_CC
4414 fi
4415fi
4416
4417fi
4418
4419
cristy8b350f62009-11-15 23:12:43 +00004420test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004422as_fn_error $? "no acceptable C compiler found in \$PATH
4423See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004424
4425# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004426$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004427set X $ac_compile
4428ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004429for ac_option in --version -v -V -qversion; do
4430 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004431case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434esac
cristy8b350f62009-11-15 23:12:43 +00004435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436$as_echo "$ac_try_echo"; } >&5
4437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004438 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004439 if test -s conftest.err; then
4440 sed '10a\
4441... rest of stderr output deleted ...
4442 10q' conftest.err >conftest.er1
4443 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004444 fi
cristycd4c5312009-11-22 01:19:08 +00004445 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447 test $ac_status = 0; }
4448done
cristy3ed852e2009-09-05 21:47:34 +00004449
cristy8b350f62009-11-15 23:12:43 +00004450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004451/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004452
cristy3ed852e2009-09-05 21:47:34 +00004453int
4454main ()
4455{
4456
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004462ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004463# Try to create an executable without -o first, disregard a.out.
4464# It will help us diagnose broken compilers, and finding out an intuition
4465# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4467$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004468ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4469
4470# The possible output files:
4471ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4472
4473ac_rmfiles=
4474for ac_file in $ac_files
4475do
4476 case $ac_file in
4477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4478 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4479 esac
4480done
4481rm -f $ac_rmfiles
4482
cristy8b350f62009-11-15 23:12:43 +00004483if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004484case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487esac
cristy8b350f62009-11-15 23:12:43 +00004488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004490 (eval "$ac_link_default") 2>&5
4491 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4495# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4496# in a Makefile. We should not override ac_cv_exeext if it was cached,
4497# so that the user can short-circuit this test for compilers unknown to
4498# Autoconf.
4499for ac_file in $ac_files ''
4500do
4501 test -f "$ac_file" || continue
4502 case $ac_file in
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4504 ;;
4505 [ab].out )
4506 # We found the default executable, but exeext='' is most
4507 # certainly right.
4508 break;;
4509 *.* )
cristy8b350f62009-11-15 23:12:43 +00004510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004511 then :; else
4512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513 fi
4514 # We set ac_cv_exeext here because the later test for it is not
4515 # safe: cross compilers may not add the suffix if given an `-o'
4516 # argument, so we may need to know it at that point already.
4517 # Even if this section looks crufty: it has the advantage of
4518 # actually working.
4519 break;;
4520 * )
4521 break;;
4522 esac
4523done
4524test "$ac_cv_exeext" = no && ac_cv_exeext=
4525
4526else
4527 ac_file=''
4528fi
cristy8b350f62009-11-15 23:12:43 +00004529if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531$as_echo "no" >&6; }
4532$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533sed 's/^/| /' conftest.$ac_ext >&5
4534
cristy8b350f62009-11-15 23:12:43 +00004535{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004537as_fn_error 77 "C compiler cannot create executables
4538See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004539else
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4541$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004542fi
cristycd4c5312009-11-22 01:19:08 +00004543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4544$as_echo_n "checking for C compiler default output file name... " >&6; }
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4546$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004547ac_exeext=$ac_cv_exeext
4548
cristycd4c5312009-11-22 01:19:08 +00004549rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004550ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004552$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004553if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004554case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
cristy8b350f62009-11-15 23:12:43 +00004558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004560 (eval "$ac_link") 2>&5
4561 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4565# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4566# work properly (i.e., refer to `conftest.exe'), while it won't with
4567# `rm'.
4568for ac_file in conftest.exe conftest conftest.*; do
4569 test -f "$ac_file" || continue
4570 case $ac_file in
4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4573 break;;
4574 * ) break;;
4575 esac
4576done
4577else
cristy8b350f62009-11-15 23:12:43 +00004578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004580as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4581See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004582fi
cristycd4c5312009-11-22 01:19:08 +00004583rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004585$as_echo "$ac_cv_exeext" >&6; }
4586
4587rm -f conftest.$ac_ext
4588EXEEXT=$ac_cv_exeext
4589ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h. */
4592#include <stdio.h>
4593int
4594main ()
4595{
4596FILE *f = fopen ("conftest.out", "w");
4597 return ferror (f) || fclose (f) != 0;
4598
4599 ;
4600 return 0;
4601}
4602_ACEOF
4603ac_clean_files="$ac_clean_files conftest.out"
4604# Check that the compiler produces executables we can run. If not, either
4605# the compiler is broken, or we cross compile.
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4607$as_echo_n "checking whether we are cross compiling... " >&6; }
4608if test "$cross_compiling" != yes; then
4609 { { ac_try="$ac_link"
4610case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
4614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615$as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_link") 2>&5
4617 ac_status=$?
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; }
4620 if { ac_try='./conftest$ac_cv_exeext'
4621 { { case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624esac
4625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626$as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_try") 2>&5
4628 ac_status=$?
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; }; then
4631 cross_compiling=no
4632 else
4633 if test "$cross_compiling" = maybe; then
4634 cross_compiling=yes
4635 else
4636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004638as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004639If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004640See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004641 fi
4642 fi
4643fi
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4645$as_echo "$cross_compiling" >&6; }
4646
4647rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4648ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004650$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004651if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004652 $as_echo_n "(cached) " >&6
4653else
cristy8b350f62009-11-15 23:12:43 +00004654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004655/* end confdefs.h. */
4656
4657int
4658main ()
4659{
4660
4661 ;
4662 return 0;
4663}
4664_ACEOF
4665rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004666if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004667case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670esac
cristy8b350f62009-11-15 23:12:43 +00004671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4672$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004673 (eval "$ac_compile") 2>&5
4674 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004677 for ac_file in conftest.o conftest.obj conftest.*; do
4678 test -f "$ac_file" || continue;
4679 case $ac_file in
4680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4682 break;;
4683 esac
4684done
4685else
4686 $as_echo "$as_me: failed program was:" >&5
4687sed 's/^/| /' conftest.$ac_ext >&5
4688
cristy8b350f62009-11-15 23:12:43 +00004689{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004691as_fn_error $? "cannot compute suffix of object files: cannot compile
4692See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004693fi
cristy3ed852e2009-09-05 21:47:34 +00004694rm -f conftest.$ac_cv_objext conftest.$ac_ext
4695fi
cristy8b350f62009-11-15 23:12:43 +00004696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004697$as_echo "$ac_cv_objext" >&6; }
4698OBJEXT=$ac_cv_objext
4699ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004701$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004702if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004703 $as_echo_n "(cached) " >&6
4704else
cristy8b350f62009-11-15 23:12:43 +00004705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004706/* end confdefs.h. */
4707
4708int
4709main ()
4710{
4711#ifndef __GNUC__
4712 choke me
4713#endif
4714
4715 ;
4716 return 0;
4717}
4718_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004719if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004720 ac_compiler_gnu=yes
4721else
cristy8b350f62009-11-15 23:12:43 +00004722 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004723fi
cristy3ed852e2009-09-05 21:47:34 +00004724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725ac_cv_c_compiler_gnu=$ac_compiler_gnu
4726
4727fi
cristy8b350f62009-11-15 23:12:43 +00004728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004729$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4730if test $ac_compiler_gnu = yes; then
4731 GCC=yes
4732else
4733 GCC=
4734fi
4735ac_test_CFLAGS=${CFLAGS+set}
4736ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004738$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004739if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004740 $as_echo_n "(cached) " >&6
4741else
4742 ac_save_c_werror_flag=$ac_c_werror_flag
4743 ac_c_werror_flag=yes
4744 ac_cv_prog_cc_g=no
4745 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004747/* end confdefs.h. */
4748
4749int
4750main ()
4751{
4752
4753 ;
4754 return 0;
4755}
4756_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004757if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004758 ac_cv_prog_cc_g=yes
4759else
cristy8b350f62009-11-15 23:12:43 +00004760 CFLAGS=""
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004762/* end confdefs.h. */
4763
4764int
4765main ()
4766{
4767
4768 ;
4769 return 0;
4770}
4771_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004772if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004773
cristy8b350f62009-11-15 23:12:43 +00004774else
4775 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004776 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004778/* end confdefs.h. */
4779
4780int
4781main ()
4782{
4783
4784 ;
4785 return 0;
4786}
4787_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004788if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004789 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004790fi
cristy3ed852e2009-09-05 21:47:34 +00004791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792fi
cristy3ed852e2009-09-05 21:47:34 +00004793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794fi
cristy3ed852e2009-09-05 21:47:34 +00004795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ac_c_werror_flag=$ac_save_c_werror_flag
4797fi
cristy8b350f62009-11-15 23:12:43 +00004798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004799$as_echo "$ac_cv_prog_cc_g" >&6; }
4800if test "$ac_test_CFLAGS" = set; then
4801 CFLAGS=$ac_save_CFLAGS
4802elif test $ac_cv_prog_cc_g = yes; then
4803 if test "$GCC" = yes; then
4804 CFLAGS="-g -O2"
4805 else
4806 CFLAGS="-g"
4807 fi
4808else
4809 if test "$GCC" = yes; then
4810 CFLAGS="-O2"
4811 else
4812 CFLAGS=
4813 fi
4814fi
cristy8b350f62009-11-15 23:12:43 +00004815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004817if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004818 $as_echo_n "(cached) " >&6
4819else
4820 ac_cv_prog_cc_c89=no
4821ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004823/* end confdefs.h. */
4824#include <stdarg.h>
4825#include <stdio.h>
4826#include <sys/types.h>
4827#include <sys/stat.h>
4828/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4829struct buf { int x; };
4830FILE * (*rcsopen) (struct buf *, struct stat *, int);
4831static char *e (p, i)
4832 char **p;
4833 int i;
4834{
4835 return p[i];
4836}
4837static char *f (char * (*g) (char **, int), char **p, ...)
4838{
4839 char *s;
4840 va_list v;
4841 va_start (v,p);
4842 s = g (p, va_arg (v,int));
4843 va_end (v);
4844 return s;
4845}
4846
4847/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4848 function prototypes and stuff, but not '\xHH' hex character constants.
4849 These don't provoke an error unfortunately, instead are silently treated
4850 as 'x'. The following induces an error, until -std is added to get
4851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4852 array size at least. It's necessary to write '\x00'==0 to get something
4853 that's true only with -std. */
4854int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4855
4856/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4857 inside strings and character constants. */
4858#define FOO(x) 'x'
4859int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4860
4861int test (int i, double x);
4862struct s1 {int (*f) (int a);};
4863struct s2 {int (*f) (double a);};
4864int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4865int argc;
4866char **argv;
4867int
4868main ()
4869{
4870return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4871 ;
4872 return 0;
4873}
4874_ACEOF
4875for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4877do
4878 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004879 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004880 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004881fi
cristy3ed852e2009-09-05 21:47:34 +00004882rm -f core conftest.err conftest.$ac_objext
4883 test "x$ac_cv_prog_cc_c89" != "xno" && break
4884done
4885rm -f conftest.$ac_ext
4886CC=$ac_save_CC
4887
4888fi
4889# AC_CACHE_VAL
4890case "x$ac_cv_prog_cc_c89" in
4891 x)
cristy8b350f62009-11-15 23:12:43 +00004892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004893$as_echo "none needed" >&6; } ;;
4894 xno)
cristy8b350f62009-11-15 23:12:43 +00004895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004896$as_echo "unsupported" >&6; } ;;
4897 *)
4898 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004900$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4901esac
cristy8b350f62009-11-15 23:12:43 +00004902if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004903
cristy8b350f62009-11-15 23:12:43 +00004904fi
cristy3ed852e2009-09-05 21:47:34 +00004905
4906ac_ext=c
4907ac_cpp='$CPP $CPPFLAGS'
4908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004911
cristy73bd4a52010-10-05 11:24:23 +00004912depcc="$CC" am_compiler_list=
4913
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4915$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004916if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004917 $as_echo_n "(cached) " >&6
4918else
4919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4920 # We make a subdir and do the tests there. Otherwise we can end up
4921 # making bogus files that we don't know about and never remove. For
4922 # instance it was reported that on HP-UX the gcc test will end up
4923 # making a dummy file named `D' -- because `-MD' means `put the output
4924 # in D'.
4925 mkdir conftest.dir
4926 # Copy depcomp to subdir because otherwise we won't find it if we're
4927 # using a relative directory.
4928 cp "$am_depcomp" conftest.dir
4929 cd conftest.dir
4930 # We will build objects and dependencies in a subdirectory because
4931 # it helps to detect inapplicable dependency modes. For instance
4932 # both Tru64's cc and ICC support -MD to output dependencies as a
4933 # side effect of compilation, but ICC will put the dependencies in
4934 # the current directory while Tru64 will put them in the object
4935 # directory.
4936 mkdir sub
4937
4938 am_cv_CC_dependencies_compiler_type=none
4939 if test "$am_compiler_list" = ""; then
4940 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4941 fi
4942 am__universal=false
4943 case " $depcc " in #(
4944 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4945 esac
4946
4947 for depmode in $am_compiler_list; do
4948 # Setup a source with many dependencies, because some compilers
4949 # like to wrap large dependency lists on column 80 (with \), and
4950 # we should not choose a depcomp mode which is confused by this.
4951 #
4952 # We need to recreate these files for each test, as the compiler may
4953 # overwrite some of them when testing with obscure command lines.
4954 # This happens at least with the AIX C compiler.
4955 : > sub/conftest.c
4956 for i in 1 2 3 4 5 6; do
4957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4959 # Solaris 8's {/usr,}/bin/sh.
4960 touch sub/conftst$i.h
4961 done
4962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4963
4964 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4965 # mode. It turns out that the SunPro C++ compiler does not properly
4966 # handle `-M -o', and we need to detect this. Also, some Intel
4967 # versions had trouble with output in subdirs
4968 am__obj=sub/conftest.${OBJEXT-o}
4969 am__minus_obj="-o $am__obj"
4970 case $depmode in
4971 gcc)
4972 # This depmode causes a compiler race in universal mode.
4973 test "$am__universal" = false || continue
4974 ;;
4975 nosideeffect)
4976 # after this tag, mechanisms are not by side-effect, so they'll
4977 # only be used when explicitly requested
4978 if test "x$enable_dependency_tracking" = xyes; then
4979 continue
4980 else
4981 break
4982 fi
4983 ;;
4984 msvisualcpp | msvcmsys)
4985 # This compiler won't grok `-c -o', but also, the minuso test has
4986 # not run yet. These depmodes are late enough in the game, and
4987 # so weak that their functioning should not be impacted.
4988 am__obj=conftest.${OBJEXT-o}
4989 am__minus_obj=
4990 ;;
4991 none) break ;;
4992 esac
4993 if depmode=$depmode \
4994 source=sub/conftest.c object=$am__obj \
4995 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4996 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4997 >/dev/null 2>conftest.err &&
4998 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5000 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5002 # icc doesn't choke on unknown options, it will just issue warnings
5003 # or remarks (even with -Werror). So we grep stderr for any message
5004 # that says an option was ignored or not supported.
5005 # When given -MP, icc 7.0 and 7.1 complain thusly:
5006 # icc: Command line warning: ignoring option '-M'; no argument required
5007 # The diagnosis changed in icc 8.0:
5008 # icc: Command line remark: option '-MP' not supported
5009 if (grep 'ignoring option' conftest.err ||
5010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5011 am_cv_CC_dependencies_compiler_type=$depmode
5012 break
5013 fi
5014 fi
5015 done
5016
5017 cd ..
5018 rm -rf conftest.dir
5019else
5020 am_cv_CC_dependencies_compiler_type=none
5021fi
5022
5023fi
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5025$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5026CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5027
5028 if
5029 test "x$enable_dependency_tracking" != xno \
5030 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5031 am__fastdepCC_TRUE=
5032 am__fastdepCC_FALSE='#'
5033else
5034 am__fastdepCC_TRUE='#'
5035 am__fastdepCC_FALSE=
5036fi
5037
5038
cristy3ed852e2009-09-05 21:47:34 +00005039
cristya0b81c32010-01-22 02:54:33 +00005040ac_ext=c
5041ac_cpp='$CPP $CPPFLAGS'
5042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5046$as_echo_n "checking how to run the C preprocessor... " >&6; }
5047# On Suns, sometimes $CPP names a directory.
5048if test -n "$CPP" && test -d "$CPP"; then
5049 CPP=
5050fi
5051if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005052 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005053 $as_echo_n "(cached) " >&6
5054else
5055 # Double quotes because CPP needs to be expanded
5056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5057 do
5058 ac_preproc_ok=false
5059for ac_c_preproc_warn_flag in '' yes
5060do
5061 # Use a header file that comes with gcc, so configuring glibc
5062 # with a fresh cross-compiler works.
5063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064 # <limits.h> exists even on freestanding compilers.
5065 # On the NeXT, cc -E runs the code through the compiler's parser,
5066 # not just through cpp. "Syntax error" is here to catch this case.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h. */
5069#ifdef __STDC__
5070# include <limits.h>
5071#else
5072# include <assert.h>
5073#endif
5074 Syntax error
5075_ACEOF
5076if ac_fn_c_try_cpp "$LINENO"; then :
5077
5078else
5079 # Broken: fails on valid input.
5080continue
5081fi
cristyda16f162011-02-19 23:52:17 +00005082rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005083
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h. */
5088#include <ac_nonexistent.h>
5089_ACEOF
5090if ac_fn_c_try_cpp "$LINENO"; then :
5091 # Broken: success on invalid input.
5092continue
5093else
5094 # Passes both tests.
5095ac_preproc_ok=:
5096break
5097fi
cristyda16f162011-02-19 23:52:17 +00005098rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005099
5100done
5101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005102rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005103if $ac_preproc_ok; then :
5104 break
5105fi
5106
5107 done
5108 ac_cv_prog_CPP=$CPP
5109
5110fi
5111 CPP=$ac_cv_prog_CPP
5112else
5113 ac_cv_prog_CPP=$CPP
5114fi
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5116$as_echo "$CPP" >&6; }
5117ac_preproc_ok=false
5118for ac_c_preproc_warn_flag in '' yes
5119do
5120 # Use a header file that comes with gcc, so configuring glibc
5121 # with a fresh cross-compiler works.
5122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123 # <limits.h> exists even on freestanding compilers.
5124 # On the NeXT, cc -E runs the code through the compiler's parser,
5125 # not just through cpp. "Syntax error" is here to catch this case.
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127/* end confdefs.h. */
5128#ifdef __STDC__
5129# include <limits.h>
5130#else
5131# include <assert.h>
5132#endif
5133 Syntax error
5134_ACEOF
5135if ac_fn_c_try_cpp "$LINENO"; then :
5136
5137else
5138 # Broken: fails on valid input.
5139continue
5140fi
cristyda16f162011-02-19 23:52:17 +00005141rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005142
5143 # OK, works on sane cases. Now check whether nonexistent headers
5144 # can be detected and how.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h. */
5147#include <ac_nonexistent.h>
5148_ACEOF
5149if ac_fn_c_try_cpp "$LINENO"; then :
5150 # Broken: success on invalid input.
5151continue
5152else
5153 # Passes both tests.
5154ac_preproc_ok=:
5155break
5156fi
cristyda16f162011-02-19 23:52:17 +00005157rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005158
5159done
5160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005161rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005162if $ac_preproc_ok; then :
5163
5164else
5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005167as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5168See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005169fi
5170
5171ac_ext=c
5172ac_cpp='$CPP $CPPFLAGS'
5173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176
5177
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5179$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005180if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005181 $as_echo_n "(cached) " >&6
5182else
5183 if test -z "$GREP"; then
5184 ac_path_GREP_found=false
5185 # Loop through the user's path and test for each of PROGNAME-LIST
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5188do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_prog in grep ggrep; do
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5194 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5195# Check for GNU ac_path_GREP and select it if it is found.
5196 # Check for GNU $ac_path_GREP
5197case `"$ac_path_GREP" --version 2>&1` in
5198*GNU*)
5199 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5200*)
5201 ac_count=0
5202 $as_echo_n 0123456789 >"conftest.in"
5203 while :
5204 do
5205 cat "conftest.in" "conftest.in" >"conftest.tmp"
5206 mv "conftest.tmp" "conftest.in"
5207 cp "conftest.in" "conftest.nl"
5208 $as_echo 'GREP' >> "conftest.nl"
5209 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5211 as_fn_arith $ac_count + 1 && ac_count=$as_val
5212 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5213 # Best one so far, save it but keep looking for a better one
5214 ac_cv_path_GREP="$ac_path_GREP"
5215 ac_path_GREP_max=$ac_count
5216 fi
5217 # 10*(2^10) chars as input seems more than enough
5218 test $ac_count -gt 10 && break
5219 done
5220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221esac
5222
5223 $ac_path_GREP_found && break 3
5224 done
5225 done
5226 done
5227IFS=$as_save_IFS
5228 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005229 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005230 fi
5231else
5232 ac_cv_path_GREP=$GREP
5233fi
5234
5235fi
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5237$as_echo "$ac_cv_path_GREP" >&6; }
5238 GREP="$ac_cv_path_GREP"
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5242$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005243if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005244 $as_echo_n "(cached) " >&6
5245else
5246 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5247 then ac_cv_path_EGREP="$GREP -E"
5248 else
5249 if test -z "$EGREP"; then
5250 ac_path_EGREP_found=false
5251 # Loop through the user's path and test for each of PROGNAME-LIST
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_prog in egrep; do
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5260 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5261# Check for GNU ac_path_EGREP and select it if it is found.
5262 # Check for GNU $ac_path_EGREP
5263case `"$ac_path_EGREP" --version 2>&1` in
5264*GNU*)
5265 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5266*)
5267 ac_count=0
5268 $as_echo_n 0123456789 >"conftest.in"
5269 while :
5270 do
5271 cat "conftest.in" "conftest.in" >"conftest.tmp"
5272 mv "conftest.tmp" "conftest.in"
5273 cp "conftest.in" "conftest.nl"
5274 $as_echo 'EGREP' >> "conftest.nl"
5275 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5277 as_fn_arith $ac_count + 1 && ac_count=$as_val
5278 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5279 # Best one so far, save it but keep looking for a better one
5280 ac_cv_path_EGREP="$ac_path_EGREP"
5281 ac_path_EGREP_max=$ac_count
5282 fi
5283 # 10*(2^10) chars as input seems more than enough
5284 test $ac_count -gt 10 && break
5285 done
5286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5287esac
5288
5289 $ac_path_EGREP_found && break 3
5290 done
5291 done
5292 done
5293IFS=$as_save_IFS
5294 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005295 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005296 fi
5297else
5298 ac_cv_path_EGREP=$EGREP
5299fi
5300
5301 fi
5302fi
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5304$as_echo "$ac_cv_path_EGREP" >&6; }
5305 EGREP="$ac_cv_path_EGREP"
5306
5307
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5309$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005310if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005311 $as_echo_n "(cached) " >&6
5312else
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h. */
5315#include <stdlib.h>
5316#include <stdarg.h>
5317#include <string.h>
5318#include <float.h>
5319
5320int
5321main ()
5322{
5323
5324 ;
5325 return 0;
5326}
5327_ACEOF
5328if ac_fn_c_try_compile "$LINENO"; then :
5329 ac_cv_header_stdc=yes
5330else
5331 ac_cv_header_stdc=no
5332fi
5333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334
5335if test $ac_cv_header_stdc = yes; then
5336 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h. */
5339#include <string.h>
5340
5341_ACEOF
5342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5343 $EGREP "memchr" >/dev/null 2>&1; then :
5344
5345else
5346 ac_cv_header_stdc=no
5347fi
5348rm -f conftest*
5349
5350fi
5351
5352if test $ac_cv_header_stdc = yes; then
5353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h. */
5356#include <stdlib.h>
5357
5358_ACEOF
5359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "free" >/dev/null 2>&1; then :
5361
5362else
5363 ac_cv_header_stdc=no
5364fi
5365rm -f conftest*
5366
5367fi
5368
5369if test $ac_cv_header_stdc = yes; then
5370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5371 if test "$cross_compiling" = yes; then :
5372 :
5373else
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375/* end confdefs.h. */
5376#include <ctype.h>
5377#include <stdlib.h>
5378#if ((' ' & 0x0FF) == 0x020)
5379# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5380# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5381#else
5382# define ISLOWER(c) \
5383 (('a' <= (c) && (c) <= 'i') \
5384 || ('j' <= (c) && (c) <= 'r') \
5385 || ('s' <= (c) && (c) <= 'z'))
5386# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5387#endif
5388
5389#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5390int
5391main ()
5392{
5393 int i;
5394 for (i = 0; i < 256; i++)
5395 if (XOR (islower (i), ISLOWER (i))
5396 || toupper (i) != TOUPPER (i))
5397 return 2;
5398 return 0;
5399}
5400_ACEOF
5401if ac_fn_c_try_run "$LINENO"; then :
5402
5403else
5404 ac_cv_header_stdc=no
5405fi
5406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5407 conftest.$ac_objext conftest.beam conftest.$ac_ext
5408fi
5409
5410fi
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5413$as_echo "$ac_cv_header_stdc" >&6; }
5414if test $ac_cv_header_stdc = yes; then
5415
5416$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5417
5418fi
5419
5420# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5421for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5422 inttypes.h stdint.h unistd.h
5423do :
5424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5425ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5426"
cristy98dddb52010-11-04 00:30:15 +00005427if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005428 cat >>confdefs.h <<_ACEOF
5429#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5430_ACEOF
5431
5432fi
5433
5434done
5435
5436
5437
5438 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 +00005439if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005440 MINIX=yes
5441else
5442 MINIX=
5443fi
5444
5445
5446 if test "$MINIX" = yes; then
5447
5448$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5449
5450
5451$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5452
5453
5454$as_echo "#define _MINIX 1" >>confdefs.h
5455
5456 fi
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5460$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005461if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005462 $as_echo_n "(cached) " >&6
5463else
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465/* end confdefs.h. */
5466
5467# define __EXTENSIONS__ 1
5468 $ac_includes_default
5469int
5470main ()
5471{
5472
5473 ;
5474 return 0;
5475}
5476_ACEOF
5477if ac_fn_c_try_compile "$LINENO"; then :
5478 ac_cv_safe_to_define___extensions__=yes
5479else
5480 ac_cv_safe_to_define___extensions__=no
5481fi
5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483fi
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5485$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5486 test $ac_cv_safe_to_define___extensions__ = yes &&
5487 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5488
5489 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5490
5491 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5492
5493 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5494
5495 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5496
5497
5498
5499# Check for programs
5500ac_ext=c
5501ac_cpp='$CPP $CPPFLAGS'
5502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5507set dummy ${ac_tool_prefix}gcc; ac_word=$2
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005510if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005511 $as_echo_n "(cached) " >&6
5512else
5513 if test -n "$CC"; then
5514 ac_cv_prog_CC="$CC" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528 done
5529IFS=$as_save_IFS
5530
5531fi
5532fi
5533CC=$ac_cv_prog_CC
5534if test -n "$CC"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5536$as_echo "$CC" >&6; }
5537else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539$as_echo "no" >&6; }
5540fi
5541
5542
5543fi
5544if test -z "$ac_cv_prog_CC"; then
5545 ac_ct_CC=$CC
5546 # Extract the first word of "gcc", so it can be a program name with args.
5547set dummy gcc; ac_word=$2
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005550if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005551 $as_echo_n "(cached) " >&6
5552else
5553 if test -n "$ac_ct_CC"; then
5554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_CC="gcc"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567done
5568 done
5569IFS=$as_save_IFS
5570
5571fi
5572fi
5573ac_ct_CC=$ac_cv_prog_ac_ct_CC
5574if test -n "$ac_ct_CC"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5576$as_echo "$ac_ct_CC" >&6; }
5577else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579$as_echo "no" >&6; }
5580fi
5581
5582 if test "x$ac_ct_CC" = x; then
5583 CC=""
5584 else
5585 case $cross_compiling:$ac_tool_warned in
5586yes:)
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589ac_tool_warned=yes ;;
5590esac
5591 CC=$ac_ct_CC
5592 fi
5593else
5594 CC="$ac_cv_prog_CC"
5595fi
5596
5597if test -z "$CC"; then
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5600set dummy ${ac_tool_prefix}cc; ac_word=$2
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005603if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005604 $as_echo_n "(cached) " >&6
5605else
5606 if test -n "$CC"; then
5607 ac_cv_prog_CC="$CC" # Let the user override the test.
5608else
5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
5611do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_CC="${ac_tool_prefix}cc"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620done
5621 done
5622IFS=$as_save_IFS
5623
5624fi
5625fi
5626CC=$ac_cv_prog_CC
5627if test -n "$CC"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5629$as_echo "$CC" >&6; }
5630else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632$as_echo "no" >&6; }
5633fi
5634
5635
5636 fi
5637fi
5638if test -z "$CC"; then
5639 # Extract the first word of "cc", so it can be a program name with args.
5640set dummy cc; ac_word=$2
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005643if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005644 $as_echo_n "(cached) " >&6
5645else
5646 if test -n "$CC"; then
5647 ac_cv_prog_CC="$CC" # Let the user override the test.
5648else
5649 ac_prog_rejected=no
5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5658 ac_prog_rejected=yes
5659 continue
5660 fi
5661 ac_cv_prog_CC="cc"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5664 fi
5665done
5666 done
5667IFS=$as_save_IFS
5668
5669if test $ac_prog_rejected = yes; then
5670 # We found a bogon in the path, so make sure we never use it.
5671 set dummy $ac_cv_prog_CC
5672 shift
5673 if test $# != 0; then
5674 # We chose a different compiler from the bogus one.
5675 # However, it has the same basename, so the bogon will be chosen
5676 # first if we set CC to just the basename; use the full file name.
5677 shift
5678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5679 fi
5680fi
5681fi
5682fi
5683CC=$ac_cv_prog_CC
5684if test -n "$CC"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5686$as_echo "$CC" >&6; }
5687else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }
5690fi
5691
5692
5693fi
5694if test -z "$CC"; then
5695 if test -n "$ac_tool_prefix"; then
5696 for ac_prog in cl.exe
5697 do
5698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005702if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005703 $as_echo_n "(cached) " >&6
5704else
5705 if test -n "$CC"; then
5706 ac_cv_prog_CC="$CC" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5718 fi
5719done
5720 done
5721IFS=$as_save_IFS
5722
5723fi
5724fi
5725CC=$ac_cv_prog_CC
5726if test -n "$CC"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5728$as_echo "$CC" >&6; }
5729else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }
5732fi
5733
5734
5735 test -n "$CC" && break
5736 done
5737fi
5738if test -z "$CC"; then
5739 ac_ct_CC=$CC
5740 for ac_prog in cl.exe
5741do
5742 # Extract the first word of "$ac_prog", so it can be a program name with args.
5743set dummy $ac_prog; ac_word=$2
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005746if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005747 $as_echo_n "(cached) " >&6
5748else
5749 if test -n "$ac_ct_CC"; then
5750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5751else
5752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 ac_cv_prog_ac_ct_CC="$ac_prog"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763done
5764 done
5765IFS=$as_save_IFS
5766
5767fi
5768fi
5769ac_ct_CC=$ac_cv_prog_ac_ct_CC
5770if test -n "$ac_ct_CC"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5772$as_echo "$ac_ct_CC" >&6; }
5773else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775$as_echo "no" >&6; }
5776fi
5777
5778
5779 test -n "$ac_ct_CC" && break
5780done
5781
5782 if test "x$ac_ct_CC" = x; then
5783 CC=""
5784 else
5785 case $cross_compiling:$ac_tool_warned in
5786yes:)
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789ac_tool_warned=yes ;;
5790esac
5791 CC=$ac_ct_CC
5792 fi
5793fi
5794
5795fi
5796
5797
5798test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005800as_fn_error $? "no acceptable C compiler found in \$PATH
5801See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005802
5803# Provide some information about the compiler.
5804$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5805set X $ac_compile
5806ac_compiler=$2
5807for ac_option in --version -v -V -qversion; do
5808 { { ac_try="$ac_compiler $ac_option >&5"
5809case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5814$as_echo "$ac_try_echo"; } >&5
5815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5816 ac_status=$?
5817 if test -s conftest.err; then
5818 sed '10a\
5819... rest of stderr output deleted ...
5820 10q' conftest.err >conftest.er1
5821 cat conftest.er1 >&5
5822 fi
5823 rm -f conftest.er1 conftest.err
5824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5825 test $ac_status = 0; }
5826done
5827
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5829$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005830if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005831 $as_echo_n "(cached) " >&6
5832else
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h. */
5835
5836int
5837main ()
5838{
5839#ifndef __GNUC__
5840 choke me
5841#endif
5842
5843 ;
5844 return 0;
5845}
5846_ACEOF
5847if ac_fn_c_try_compile "$LINENO"; then :
5848 ac_compiler_gnu=yes
5849else
5850 ac_compiler_gnu=no
5851fi
5852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853ac_cv_c_compiler_gnu=$ac_compiler_gnu
5854
5855fi
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5857$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5858if test $ac_compiler_gnu = yes; then
5859 GCC=yes
5860else
5861 GCC=
5862fi
5863ac_test_CFLAGS=${CFLAGS+set}
5864ac_save_CFLAGS=$CFLAGS
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5866$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005867if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005868 $as_echo_n "(cached) " >&6
5869else
5870 ac_save_c_werror_flag=$ac_c_werror_flag
5871 ac_c_werror_flag=yes
5872 ac_cv_prog_cc_g=no
5873 CFLAGS="-g"
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h. */
5876
5877int
5878main ()
5879{
5880
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"; then :
5886 ac_cv_prog_cc_g=yes
5887else
5888 CFLAGS=""
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h. */
5891
5892int
5893main ()
5894{
5895
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900if ac_fn_c_try_compile "$LINENO"; then :
5901
5902else
5903 ac_c_werror_flag=$ac_save_c_werror_flag
5904 CFLAGS="-g"
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h. */
5907
5908int
5909main ()
5910{
5911
5912 ;
5913 return 0;
5914}
5915_ACEOF
5916if ac_fn_c_try_compile "$LINENO"; then :
5917 ac_cv_prog_cc_g=yes
5918fi
5919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920fi
5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922fi
5923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 ac_c_werror_flag=$ac_save_c_werror_flag
5925fi
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5927$as_echo "$ac_cv_prog_cc_g" >&6; }
5928if test "$ac_test_CFLAGS" = set; then
5929 CFLAGS=$ac_save_CFLAGS
5930elif test $ac_cv_prog_cc_g = yes; then
5931 if test "$GCC" = yes; then
5932 CFLAGS="-g -O2"
5933 else
5934 CFLAGS="-g"
5935 fi
5936else
5937 if test "$GCC" = yes; then
5938 CFLAGS="-O2"
5939 else
5940 CFLAGS=
5941 fi
5942fi
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5944$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005945if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005946 $as_echo_n "(cached) " >&6
5947else
5948 ac_cv_prog_cc_c89=no
5949ac_save_CC=$CC
5950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h. */
5952#include <stdarg.h>
5953#include <stdio.h>
5954#include <sys/types.h>
5955#include <sys/stat.h>
5956/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5957struct buf { int x; };
5958FILE * (*rcsopen) (struct buf *, struct stat *, int);
5959static char *e (p, i)
5960 char **p;
5961 int i;
5962{
5963 return p[i];
5964}
5965static char *f (char * (*g) (char **, int), char **p, ...)
5966{
5967 char *s;
5968 va_list v;
5969 va_start (v,p);
5970 s = g (p, va_arg (v,int));
5971 va_end (v);
5972 return s;
5973}
5974
5975/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5976 function prototypes and stuff, but not '\xHH' hex character constants.
5977 These don't provoke an error unfortunately, instead are silently treated
5978 as 'x'. The following induces an error, until -std is added to get
5979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5980 array size at least. It's necessary to write '\x00'==0 to get something
5981 that's true only with -std. */
5982int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5983
5984/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5985 inside strings and character constants. */
5986#define FOO(x) 'x'
5987int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5988
5989int test (int i, double x);
5990struct s1 {int (*f) (int a);};
5991struct s2 {int (*f) (double a);};
5992int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5993int argc;
5994char **argv;
5995int
5996main ()
5997{
5998return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5999 ;
6000 return 0;
6001}
6002_ACEOF
6003for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6005do
6006 CC="$ac_save_CC $ac_arg"
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008 ac_cv_prog_cc_c89=$ac_arg
6009fi
6010rm -f core conftest.err conftest.$ac_objext
6011 test "x$ac_cv_prog_cc_c89" != "xno" && break
6012done
6013rm -f conftest.$ac_ext
6014CC=$ac_save_CC
6015
6016fi
6017# AC_CACHE_VAL
6018case "x$ac_cv_prog_cc_c89" in
6019 x)
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6021$as_echo "none needed" >&6; } ;;
6022 xno)
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6024$as_echo "unsupported" >&6; } ;;
6025 *)
6026 CC="$CC $ac_cv_prog_cc_c89"
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6028$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6029esac
6030if test "x$ac_cv_prog_cc_c89" != xno; then :
6031
6032fi
6033
6034ac_ext=c
6035ac_cpp='$CPP $CPPFLAGS'
6036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038ac_compiler_gnu=$ac_cv_c_compiler_gnu
6039
cristy73bd4a52010-10-05 11:24:23 +00006040depcc="$CC" am_compiler_list=
6041
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6043$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006044if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006045 $as_echo_n "(cached) " >&6
6046else
6047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6048 # We make a subdir and do the tests there. Otherwise we can end up
6049 # making bogus files that we don't know about and never remove. For
6050 # instance it was reported that on HP-UX the gcc test will end up
6051 # making a dummy file named `D' -- because `-MD' means `put the output
6052 # in D'.
6053 mkdir conftest.dir
6054 # Copy depcomp to subdir because otherwise we won't find it if we're
6055 # using a relative directory.
6056 cp "$am_depcomp" conftest.dir
6057 cd conftest.dir
6058 # We will build objects and dependencies in a subdirectory because
6059 # it helps to detect inapplicable dependency modes. For instance
6060 # both Tru64's cc and ICC support -MD to output dependencies as a
6061 # side effect of compilation, but ICC will put the dependencies in
6062 # the current directory while Tru64 will put them in the object
6063 # directory.
6064 mkdir sub
6065
6066 am_cv_CC_dependencies_compiler_type=none
6067 if test "$am_compiler_list" = ""; then
6068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6069 fi
6070 am__universal=false
6071 case " $depcc " in #(
6072 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6073 esac
6074
6075 for depmode in $am_compiler_list; do
6076 # Setup a source with many dependencies, because some compilers
6077 # like to wrap large dependency lists on column 80 (with \), and
6078 # we should not choose a depcomp mode which is confused by this.
6079 #
6080 # We need to recreate these files for each test, as the compiler may
6081 # overwrite some of them when testing with obscure command lines.
6082 # This happens at least with the AIX C compiler.
6083 : > sub/conftest.c
6084 for i in 1 2 3 4 5 6; do
6085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6087 # Solaris 8's {/usr,}/bin/sh.
6088 touch sub/conftst$i.h
6089 done
6090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6091
6092 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6093 # mode. It turns out that the SunPro C++ compiler does not properly
6094 # handle `-M -o', and we need to detect this. Also, some Intel
6095 # versions had trouble with output in subdirs
6096 am__obj=sub/conftest.${OBJEXT-o}
6097 am__minus_obj="-o $am__obj"
6098 case $depmode in
6099 gcc)
6100 # This depmode causes a compiler race in universal mode.
6101 test "$am__universal" = false || continue
6102 ;;
6103 nosideeffect)
6104 # after this tag, mechanisms are not by side-effect, so they'll
6105 # only be used when explicitly requested
6106 if test "x$enable_dependency_tracking" = xyes; then
6107 continue
6108 else
6109 break
6110 fi
6111 ;;
6112 msvisualcpp | msvcmsys)
6113 # This compiler won't grok `-c -o', but also, the minuso test has
6114 # not run yet. These depmodes are late enough in the game, and
6115 # so weak that their functioning should not be impacted.
6116 am__obj=conftest.${OBJEXT-o}
6117 am__minus_obj=
6118 ;;
6119 none) break ;;
6120 esac
6121 if depmode=$depmode \
6122 source=sub/conftest.c object=$am__obj \
6123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6124 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6125 >/dev/null 2>conftest.err &&
6126 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6128 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6130 # icc doesn't choke on unknown options, it will just issue warnings
6131 # or remarks (even with -Werror). So we grep stderr for any message
6132 # that says an option was ignored or not supported.
6133 # When given -MP, icc 7.0 and 7.1 complain thusly:
6134 # icc: Command line warning: ignoring option '-M'; no argument required
6135 # The diagnosis changed in icc 8.0:
6136 # icc: Command line remark: option '-MP' not supported
6137 if (grep 'ignoring option' conftest.err ||
6138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6139 am_cv_CC_dependencies_compiler_type=$depmode
6140 break
6141 fi
6142 fi
6143 done
6144
6145 cd ..
6146 rm -rf conftest.dir
6147else
6148 am_cv_CC_dependencies_compiler_type=none
6149fi
6150
6151fi
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6153$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6154CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6155
6156 if
6157 test "x$enable_dependency_tracking" != xno \
6158 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6159 am__fastdepCC_TRUE=
6160 am__fastdepCC_FALSE='#'
6161else
6162 am__fastdepCC_TRUE='#'
6163 am__fastdepCC_FALSE=
6164fi
6165
6166
cristy95646052009-11-28 23:05:30 +00006167ac_ext=cpp
6168ac_cpp='$CXXCPP $CPPFLAGS'
6169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6172if test -z "$CXX"; then
6173 if test -n "$CCC"; then
6174 CXX=$CCC
6175 else
6176 if test -n "$ac_tool_prefix"; then
6177 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6178 do
6179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006183if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006184 $as_echo_n "(cached) " >&6
6185else
6186 if test -n "$CXX"; then
6187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200done
6201 done
6202IFS=$as_save_IFS
6203
6204fi
6205fi
6206CXX=$ac_cv_prog_CXX
6207if test -n "$CXX"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6209$as_echo "$CXX" >&6; }
6210else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215
6216 test -n "$CXX" && break
6217 done
6218fi
6219if test -z "$CXX"; then
6220 ac_ct_CXX=$CXX
6221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6222do
6223 # Extract the first word of "$ac_prog", so it can be a program name with args.
6224set dummy $ac_prog; ac_word=$2
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006227if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006228 $as_echo_n "(cached) " >&6
6229else
6230 if test -n "$ac_ct_CXX"; then
6231 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240 ac_cv_prog_ac_ct_CXX="$ac_prog"
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6243 fi
6244done
6245 done
6246IFS=$as_save_IFS
6247
6248fi
6249fi
6250ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6251if test -n "$ac_ct_CXX"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6253$as_echo "$ac_ct_CXX" >&6; }
6254else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256$as_echo "no" >&6; }
6257fi
6258
6259
6260 test -n "$ac_ct_CXX" && break
6261done
6262
6263 if test "x$ac_ct_CXX" = x; then
6264 CXX="g++"
6265 else
6266 case $cross_compiling:$ac_tool_warned in
6267yes:)
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270ac_tool_warned=yes ;;
6271esac
6272 CXX=$ac_ct_CXX
6273 fi
6274fi
6275
6276 fi
6277fi
6278# Provide some information about the compiler.
6279$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6280set X $ac_compile
6281ac_compiler=$2
6282for ac_option in --version -v -V -qversion; do
6283 { { ac_try="$ac_compiler $ac_option >&5"
6284case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287esac
6288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6289$as_echo "$ac_try_echo"; } >&5
6290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6291 ac_status=$?
6292 if test -s conftest.err; then
6293 sed '10a\
6294... rest of stderr output deleted ...
6295 10q' conftest.err >conftest.er1
6296 cat conftest.er1 >&5
6297 fi
6298 rm -f conftest.er1 conftest.err
6299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300 test $ac_status = 0; }
6301done
6302
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6304$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006305if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006306 $as_echo_n "(cached) " >&6
6307else
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h. */
6310
6311int
6312main ()
6313{
6314#ifndef __GNUC__
6315 choke me
6316#endif
6317
6318 ;
6319 return 0;
6320}
6321_ACEOF
6322if ac_fn_cxx_try_compile "$LINENO"; then :
6323 ac_compiler_gnu=yes
6324else
6325 ac_compiler_gnu=no
6326fi
6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6329
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6332$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6333if test $ac_compiler_gnu = yes; then
6334 GXX=yes
6335else
6336 GXX=
6337fi
6338ac_test_CXXFLAGS=${CXXFLAGS+set}
6339ac_save_CXXFLAGS=$CXXFLAGS
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6341$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006342if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006343 $as_echo_n "(cached) " >&6
6344else
6345 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6346 ac_cxx_werror_flag=yes
6347 ac_cv_prog_cxx_g=no
6348 CXXFLAGS="-g"
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h. */
6351
6352int
6353main ()
6354{
6355
6356 ;
6357 return 0;
6358}
6359_ACEOF
6360if ac_fn_cxx_try_compile "$LINENO"; then :
6361 ac_cv_prog_cxx_g=yes
6362else
6363 CXXFLAGS=""
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365/* end confdefs.h. */
6366
6367int
6368main ()
6369{
6370
6371 ;
6372 return 0;
6373}
6374_ACEOF
6375if ac_fn_cxx_try_compile "$LINENO"; then :
6376
6377else
6378 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6379 CXXFLAGS="-g"
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381/* end confdefs.h. */
6382
6383int
6384main ()
6385{
6386
6387 ;
6388 return 0;
6389}
6390_ACEOF
6391if ac_fn_cxx_try_compile "$LINENO"; then :
6392 ac_cv_prog_cxx_g=yes
6393fi
6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395fi
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397fi
6398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6400fi
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6402$as_echo "$ac_cv_prog_cxx_g" >&6; }
6403if test "$ac_test_CXXFLAGS" = set; then
6404 CXXFLAGS=$ac_save_CXXFLAGS
6405elif test $ac_cv_prog_cxx_g = yes; then
6406 if test "$GXX" = yes; then
6407 CXXFLAGS="-g -O2"
6408 else
6409 CXXFLAGS="-g"
6410 fi
6411else
6412 if test "$GXX" = yes; then
6413 CXXFLAGS="-O2"
6414 else
6415 CXXFLAGS=
6416 fi
6417fi
6418ac_ext=c
6419ac_cpp='$CPP $CPPFLAGS'
6420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422ac_compiler_gnu=$ac_cv_c_compiler_gnu
6423
cristy73bd4a52010-10-05 11:24:23 +00006424depcc="$CXX" am_compiler_list=
6425
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6427$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006428if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006429 $as_echo_n "(cached) " >&6
6430else
6431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6432 # We make a subdir and do the tests there. Otherwise we can end up
6433 # making bogus files that we don't know about and never remove. For
6434 # instance it was reported that on HP-UX the gcc test will end up
6435 # making a dummy file named `D' -- because `-MD' means `put the output
6436 # in D'.
6437 mkdir conftest.dir
6438 # Copy depcomp to subdir because otherwise we won't find it if we're
6439 # using a relative directory.
6440 cp "$am_depcomp" conftest.dir
6441 cd conftest.dir
6442 # We will build objects and dependencies in a subdirectory because
6443 # it helps to detect inapplicable dependency modes. For instance
6444 # both Tru64's cc and ICC support -MD to output dependencies as a
6445 # side effect of compilation, but ICC will put the dependencies in
6446 # the current directory while Tru64 will put them in the object
6447 # directory.
6448 mkdir sub
6449
6450 am_cv_CXX_dependencies_compiler_type=none
6451 if test "$am_compiler_list" = ""; then
6452 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6453 fi
6454 am__universal=false
6455 case " $depcc " in #(
6456 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6457 esac
6458
6459 for depmode in $am_compiler_list; do
6460 # Setup a source with many dependencies, because some compilers
6461 # like to wrap large dependency lists on column 80 (with \), and
6462 # we should not choose a depcomp mode which is confused by this.
6463 #
6464 # We need to recreate these files for each test, as the compiler may
6465 # overwrite some of them when testing with obscure command lines.
6466 # This happens at least with the AIX C compiler.
6467 : > sub/conftest.c
6468 for i in 1 2 3 4 5 6; do
6469 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6470 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6471 # Solaris 8's {/usr,}/bin/sh.
6472 touch sub/conftst$i.h
6473 done
6474 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6475
6476 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6477 # mode. It turns out that the SunPro C++ compiler does not properly
6478 # handle `-M -o', and we need to detect this. Also, some Intel
6479 # versions had trouble with output in subdirs
6480 am__obj=sub/conftest.${OBJEXT-o}
6481 am__minus_obj="-o $am__obj"
6482 case $depmode in
6483 gcc)
6484 # This depmode causes a compiler race in universal mode.
6485 test "$am__universal" = false || continue
6486 ;;
6487 nosideeffect)
6488 # after this tag, mechanisms are not by side-effect, so they'll
6489 # only be used when explicitly requested
6490 if test "x$enable_dependency_tracking" = xyes; then
6491 continue
6492 else
6493 break
6494 fi
6495 ;;
6496 msvisualcpp | msvcmsys)
6497 # This compiler won't grok `-c -o', but also, the minuso test has
6498 # not run yet. These depmodes are late enough in the game, and
6499 # so weak that their functioning should not be impacted.
6500 am__obj=conftest.${OBJEXT-o}
6501 am__minus_obj=
6502 ;;
6503 none) break ;;
6504 esac
6505 if depmode=$depmode \
6506 source=sub/conftest.c object=$am__obj \
6507 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6508 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6509 >/dev/null 2>conftest.err &&
6510 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6512 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6514 # icc doesn't choke on unknown options, it will just issue warnings
6515 # or remarks (even with -Werror). So we grep stderr for any message
6516 # that says an option was ignored or not supported.
6517 # When given -MP, icc 7.0 and 7.1 complain thusly:
6518 # icc: Command line warning: ignoring option '-M'; no argument required
6519 # The diagnosis changed in icc 8.0:
6520 # icc: Command line remark: option '-MP' not supported
6521 if (grep 'ignoring option' conftest.err ||
6522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6523 am_cv_CXX_dependencies_compiler_type=$depmode
6524 break
6525 fi
6526 fi
6527 done
6528
6529 cd ..
6530 rm -rf conftest.dir
6531else
6532 am_cv_CXX_dependencies_compiler_type=none
6533fi
6534
6535fi
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6537$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6538CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6539
6540 if
6541 test "x$enable_dependency_tracking" != xno \
6542 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6543 am__fastdepCXX_TRUE=
6544 am__fastdepCXX_FALSE='#'
6545else
6546 am__fastdepCXX_TRUE='#'
6547 am__fastdepCXX_FALSE=
6548fi
6549
6550
cristy8b350f62009-11-15 23:12:43 +00006551 case $ac_cv_prog_cc_stdc in #(
6552 no) :
6553 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6554 *) :
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006556$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006557if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006558 $as_echo_n "(cached) " >&6
6559else
6560 ac_cv_prog_cc_c99=no
6561ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006563/* end confdefs.h. */
6564#include <stdarg.h>
6565#include <stdbool.h>
6566#include <stdlib.h>
6567#include <wchar.h>
6568#include <stdio.h>
6569
6570// Check varargs macros. These examples are taken from C99 6.10.3.5.
6571#define debug(...) fprintf (stderr, __VA_ARGS__)
6572#define showlist(...) puts (#__VA_ARGS__)
6573#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6574static void
6575test_varargs_macros (void)
6576{
6577 int x = 1234;
6578 int y = 5678;
6579 debug ("Flag");
6580 debug ("X = %d\n", x);
6581 showlist (The first, second, and third items.);
6582 report (x>y, "x is %d but y is %d", x, y);
6583}
6584
6585// Check long long types.
6586#define BIG64 18446744073709551615ull
6587#define BIG32 4294967295ul
6588#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6589#if !BIG_OK
6590 your preprocessor is broken;
6591#endif
6592#if BIG_OK
6593#else
6594 your preprocessor is broken;
6595#endif
6596static long long int bignum = -9223372036854775807LL;
6597static unsigned long long int ubignum = BIG64;
6598
6599struct incomplete_array
6600{
6601 int datasize;
6602 double data[];
6603};
6604
6605struct named_init {
6606 int number;
6607 const wchar_t *name;
6608 double average;
6609};
6610
6611typedef const char *ccp;
6612
6613static inline int
6614test_restrict (ccp restrict text)
6615{
6616 // See if C++-style comments work.
6617 // Iterate through items via the restricted pointer.
6618 // Also check for declarations in for loops.
6619 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6620 continue;
6621 return 0;
6622}
6623
6624// Check varargs and va_copy.
6625static void
6626test_varargs (const char *format, ...)
6627{
6628 va_list args;
6629 va_start (args, format);
6630 va_list args_copy;
6631 va_copy (args_copy, args);
6632
6633 const char *str;
6634 int number;
6635 float fnumber;
6636
6637 while (*format)
6638 {
6639 switch (*format++)
6640 {
6641 case 's': // string
6642 str = va_arg (args_copy, const char *);
6643 break;
6644 case 'd': // int
6645 number = va_arg (args_copy, int);
6646 break;
6647 case 'f': // float
6648 fnumber = va_arg (args_copy, double);
6649 break;
6650 default:
6651 break;
6652 }
6653 }
6654 va_end (args_copy);
6655 va_end (args);
6656}
6657
6658int
6659main ()
6660{
6661
6662 // Check bool.
6663 _Bool success = false;
6664
6665 // Check restrict.
6666 if (test_restrict ("String literal") == 0)
6667 success = true;
6668 char *restrict newvar = "Another string";
6669
6670 // Check varargs.
6671 test_varargs ("s, d' f .", "string", 65, 34.234);
6672 test_varargs_macros ();
6673
6674 // Check flexible array members.
6675 struct incomplete_array *ia =
6676 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6677 ia->datasize = 10;
6678 for (int i = 0; i < ia->datasize; ++i)
6679 ia->data[i] = i * 1.234;
6680
6681 // Check named initializers.
6682 struct named_init ni = {
6683 .number = 34,
6684 .name = L"Test wide string",
6685 .average = 543.34343,
6686 };
6687
6688 ni.number = 58;
6689
6690 int dynamic_array[ni.number];
6691 dynamic_array[ni.number - 1] = 543;
6692
6693 // work around unused variable warnings
6694 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6695 || dynamic_array[ni.number - 1] != 543);
6696
6697 ;
6698 return 0;
6699}
6700_ACEOF
6701for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6702do
6703 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006704 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006705 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006706fi
cristy3ed852e2009-09-05 21:47:34 +00006707rm -f core conftest.err conftest.$ac_objext
6708 test "x$ac_cv_prog_cc_c99" != "xno" && break
6709done
6710rm -f conftest.$ac_ext
6711CC=$ac_save_CC
6712
6713fi
6714# AC_CACHE_VAL
6715case "x$ac_cv_prog_cc_c99" in
6716 x)
cristy8b350f62009-11-15 23:12:43 +00006717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006718$as_echo "none needed" >&6; } ;;
6719 xno)
cristy8b350f62009-11-15 23:12:43 +00006720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006721$as_echo "unsupported" >&6; } ;;
6722 *)
6723 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006725$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6726esac
cristy8b350f62009-11-15 23:12:43 +00006727if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006728 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6729else
cristy8b350f62009-11-15 23:12:43 +00006730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006731$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006732if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006733 $as_echo_n "(cached) " >&6
6734else
6735 ac_cv_prog_cc_c89=no
6736ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006738/* end confdefs.h. */
6739#include <stdarg.h>
6740#include <stdio.h>
6741#include <sys/types.h>
6742#include <sys/stat.h>
6743/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6744struct buf { int x; };
6745FILE * (*rcsopen) (struct buf *, struct stat *, int);
6746static char *e (p, i)
6747 char **p;
6748 int i;
6749{
6750 return p[i];
6751}
6752static char *f (char * (*g) (char **, int), char **p, ...)
6753{
6754 char *s;
6755 va_list v;
6756 va_start (v,p);
6757 s = g (p, va_arg (v,int));
6758 va_end (v);
6759 return s;
6760}
6761
6762/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6763 function prototypes and stuff, but not '\xHH' hex character constants.
6764 These don't provoke an error unfortunately, instead are silently treated
6765 as 'x'. The following induces an error, until -std is added to get
6766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6767 array size at least. It's necessary to write '\x00'==0 to get something
6768 that's true only with -std. */
6769int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6770
6771/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6772 inside strings and character constants. */
6773#define FOO(x) 'x'
6774int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6775
6776int test (int i, double x);
6777struct s1 {int (*f) (int a);};
6778struct s2 {int (*f) (double a);};
6779int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6780int argc;
6781char **argv;
6782int
6783main ()
6784{
6785return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6786 ;
6787 return 0;
6788}
6789_ACEOF
6790for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6792do
6793 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006794 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006795 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006796fi
cristy3ed852e2009-09-05 21:47:34 +00006797rm -f core conftest.err conftest.$ac_objext
6798 test "x$ac_cv_prog_cc_c89" != "xno" && break
6799done
6800rm -f conftest.$ac_ext
6801CC=$ac_save_CC
6802
6803fi
6804# AC_CACHE_VAL
6805case "x$ac_cv_prog_cc_c89" in
6806 x)
cristy8b350f62009-11-15 23:12:43 +00006807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006808$as_echo "none needed" >&6; } ;;
6809 xno)
cristy8b350f62009-11-15 23:12:43 +00006810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006811$as_echo "unsupported" >&6; } ;;
6812 *)
6813 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006815$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6816esac
cristy8b350f62009-11-15 23:12:43 +00006817if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006818 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6819else
6820 ac_cv_prog_cc_stdc=no
6821fi
6822
cristy3ed852e2009-09-05 21:47:34 +00006823fi
cristy3ed852e2009-09-05 21:47:34 +00006824 ;;
6825esac
cristy8b350f62009-11-15 23:12:43 +00006826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006827$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006828 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006829 $as_echo_n "(cached) " >&6
6830fi
6831
cristy8b350f62009-11-15 23:12:43 +00006832 case $ac_cv_prog_cc_stdc in #(
6833 no) :
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6835$as_echo "unsupported" >&6; } ;; #(
6836 '') :
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6838$as_echo "none needed" >&6; } ;; #(
6839 *) :
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006841$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6842esac
6843
cristy3ed852e2009-09-05 21:47:34 +00006844ac_ext=c
6845ac_cpp='$CPP $CPPFLAGS'
6846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006850$as_echo_n "checking how to run the C preprocessor... " >&6; }
6851# On Suns, sometimes $CPP names a directory.
6852if test -n "$CPP" && test -d "$CPP"; then
6853 CPP=
6854fi
6855if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006856 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006857 $as_echo_n "(cached) " >&6
6858else
6859 # Double quotes because CPP needs to be expanded
6860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6861 do
6862 ac_preproc_ok=false
6863for ac_c_preproc_warn_flag in '' yes
6864do
6865 # Use a header file that comes with gcc, so configuring glibc
6866 # with a fresh cross-compiler works.
6867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6868 # <limits.h> exists even on freestanding compilers.
6869 # On the NeXT, cc -E runs the code through the compiler's parser,
6870 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006872/* end confdefs.h. */
6873#ifdef __STDC__
6874# include <limits.h>
6875#else
6876# include <assert.h>
6877#endif
6878 Syntax error
6879_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006880if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006881
cristy8b350f62009-11-15 23:12:43 +00006882else
cristy3ed852e2009-09-05 21:47:34 +00006883 # Broken: fails on valid input.
6884continue
6885fi
cristyda16f162011-02-19 23:52:17 +00006886rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006887
6888 # OK, works on sane cases. Now check whether nonexistent headers
6889 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006891/* end confdefs.h. */
6892#include <ac_nonexistent.h>
6893_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006894if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006895 # Broken: success on invalid input.
6896continue
6897else
cristy3ed852e2009-09-05 21:47:34 +00006898 # Passes both tests.
6899ac_preproc_ok=:
6900break
6901fi
cristyda16f162011-02-19 23:52:17 +00006902rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006903
6904done
6905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006906rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006907if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006908 break
6909fi
6910
6911 done
6912 ac_cv_prog_CPP=$CPP
6913
6914fi
6915 CPP=$ac_cv_prog_CPP
6916else
6917 ac_cv_prog_CPP=$CPP
6918fi
cristy8b350f62009-11-15 23:12:43 +00006919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006920$as_echo "$CPP" >&6; }
6921ac_preproc_ok=false
6922for ac_c_preproc_warn_flag in '' yes
6923do
6924 # Use a header file that comes with gcc, so configuring glibc
6925 # with a fresh cross-compiler works.
6926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6927 # <limits.h> exists even on freestanding compilers.
6928 # On the NeXT, cc -E runs the code through the compiler's parser,
6929 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006931/* end confdefs.h. */
6932#ifdef __STDC__
6933# include <limits.h>
6934#else
6935# include <assert.h>
6936#endif
6937 Syntax error
6938_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006939if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006940
cristy8b350f62009-11-15 23:12:43 +00006941else
cristy3ed852e2009-09-05 21:47:34 +00006942 # Broken: fails on valid input.
6943continue
6944fi
cristyda16f162011-02-19 23:52:17 +00006945rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006946
6947 # OK, works on sane cases. Now check whether nonexistent headers
6948 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006950/* end confdefs.h. */
6951#include <ac_nonexistent.h>
6952_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006953if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006954 # Broken: success on invalid input.
6955continue
6956else
cristy3ed852e2009-09-05 21:47:34 +00006957 # Passes both tests.
6958ac_preproc_ok=:
6959break
6960fi
cristyda16f162011-02-19 23:52:17 +00006961rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006962
6963done
6964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006965rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006966if $ac_preproc_ok; then :
6967
cristy3ed852e2009-09-05 21:47:34 +00006968else
cristy8b350f62009-11-15 23:12:43 +00006969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006971as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6972See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006973fi
6974
6975ac_ext=c
6976ac_cpp='$CPP $CPPFLAGS'
6977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979ac_compiler_gnu=$ac_cv_c_compiler_gnu
6980
cristy73bd4a52010-10-05 11:24:23 +00006981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6982$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006983if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006984 $as_echo_n "(cached) " >&6
6985else
6986 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6987 for ac_i in 1 2 3 4 5 6 7; do
6988 ac_script="$ac_script$as_nl$ac_script"
6989 done
6990 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6991 { ac_script=; unset ac_script;}
6992 if test -z "$SED"; then
6993 ac_path_SED_found=false
6994 # Loop through the user's path and test for each of PROGNAME-LIST
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_prog in sed gsed; do
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7003 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7004# Check for GNU ac_path_SED and select it if it is found.
7005 # Check for GNU $ac_path_SED
7006case `"$ac_path_SED" --version 2>&1` in
7007*GNU*)
7008 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7009*)
7010 ac_count=0
7011 $as_echo_n 0123456789 >"conftest.in"
7012 while :
7013 do
7014 cat "conftest.in" "conftest.in" >"conftest.tmp"
7015 mv "conftest.tmp" "conftest.in"
7016 cp "conftest.in" "conftest.nl"
7017 $as_echo '' >> "conftest.nl"
7018 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7020 as_fn_arith $ac_count + 1 && ac_count=$as_val
7021 if test $ac_count -gt ${ac_path_SED_max-0}; then
7022 # Best one so far, save it but keep looking for a better one
7023 ac_cv_path_SED="$ac_path_SED"
7024 ac_path_SED_max=$ac_count
7025 fi
7026 # 10*(2^10) chars as input seems more than enough
7027 test $ac_count -gt 10 && break
7028 done
7029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7030esac
7031
7032 $ac_path_SED_found && break 3
7033 done
7034 done
7035 done
7036IFS=$as_save_IFS
7037 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007038 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007039 fi
7040else
7041 ac_cv_path_SED=$SED
7042fi
7043
7044fi
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7046$as_echo "$ac_cv_path_SED" >&6; }
7047 SED="$ac_cv_path_SED"
7048 rm -f conftest.sed
7049
7050test -z "$SED" && SED=sed
7051Xsed="$SED -e 1s/^X//"
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7064$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007065if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007066 $as_echo_n "(cached) " >&6
7067else
7068 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7069 then ac_cv_path_FGREP="$GREP -F"
7070 else
7071 if test -z "$FGREP"; then
7072 ac_path_FGREP_found=false
7073 # Loop through the user's path and test for each of PROGNAME-LIST
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_prog in fgrep; do
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7082 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7083# Check for GNU ac_path_FGREP and select it if it is found.
7084 # Check for GNU $ac_path_FGREP
7085case `"$ac_path_FGREP" --version 2>&1` in
7086*GNU*)
7087 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7088*)
7089 ac_count=0
7090 $as_echo_n 0123456789 >"conftest.in"
7091 while :
7092 do
7093 cat "conftest.in" "conftest.in" >"conftest.tmp"
7094 mv "conftest.tmp" "conftest.in"
7095 cp "conftest.in" "conftest.nl"
7096 $as_echo 'FGREP' >> "conftest.nl"
7097 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7099 as_fn_arith $ac_count + 1 && ac_count=$as_val
7100 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7101 # Best one so far, save it but keep looking for a better one
7102 ac_cv_path_FGREP="$ac_path_FGREP"
7103 ac_path_FGREP_max=$ac_count
7104 fi
7105 # 10*(2^10) chars as input seems more than enough
7106 test $ac_count -gt 10 && break
7107 done
7108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7109esac
7110
7111 $ac_path_FGREP_found && break 3
7112 done
7113 done
7114 done
7115IFS=$as_save_IFS
7116 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007117 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007118 fi
7119else
7120 ac_cv_path_FGREP=$FGREP
7121fi
7122
7123 fi
7124fi
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7126$as_echo "$ac_cv_path_FGREP" >&6; }
7127 FGREP="$ac_cv_path_FGREP"
7128
7129
7130test -z "$GREP" && GREP=grep
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
cristy0c60a692010-11-04 01:09:47 +00007148ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7149ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7150ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7151
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7153$as_echo_n "checking how to print strings... " >&6; }
7154# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007155if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007156 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7157 ECHO='print -r --'
7158elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7159 ECHO='printf %s\n'
7160else
7161 # Use this function as a fallback that always works.
7162 func_fallback_echo ()
7163 {
7164 eval 'cat <<_LTECHO_EOF
7165$1
7166_LTECHO_EOF'
7167 }
7168 ECHO='func_fallback_echo'
7169fi
7170
7171# func_echo_all arg...
7172# Invoke $ECHO with all args, space-separated.
7173func_echo_all ()
7174{
7175 $ECHO ""
7176}
7177
7178case "$ECHO" in
7179 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7180$as_echo "printf" >&6; } ;;
7181 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7182$as_echo "print -r" >&6; } ;;
7183 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7184$as_echo "cat" >&6; } ;;
7185esac
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
cristy73bd4a52010-10-05 11:24:23 +00007200
7201
7202# Check whether --with-gnu-ld was given.
7203if test "${with_gnu_ld+set}" = set; then :
7204 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7205else
7206 with_gnu_ld=no
7207fi
7208
7209ac_prog=ld
7210if test "$GCC" = yes; then
7211 # Check if gcc -print-prog-name=ld gives a path.
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7213$as_echo_n "checking for ld used by $CC... " >&6; }
7214 case $host in
7215 *-*-mingw*)
7216 # gcc leaves a trailing carriage return which upsets mingw
7217 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7218 *)
7219 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7220 esac
7221 case $ac_prog in
7222 # Accept absolute paths.
7223 [\\/]* | ?:[\\/]*)
7224 re_direlt='/[^/][^/]*/\.\./'
7225 # Canonicalize the pathname of ld
7226 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7227 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7228 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7229 done
7230 test -z "$LD" && LD="$ac_prog"
7231 ;;
7232 "")
7233 # If it fails, then pretend we aren't using GCC.
7234 ac_prog=ld
7235 ;;
7236 *)
7237 # If it is relative, then search for the first ld in PATH.
7238 with_gnu_ld=unknown
7239 ;;
7240 esac
7241elif test "$with_gnu_ld" = yes; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7243$as_echo_n "checking for GNU ld... " >&6; }
7244else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7246$as_echo_n "checking for non-GNU ld... " >&6; }
7247fi
cristyda16f162011-02-19 23:52:17 +00007248if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007249 $as_echo_n "(cached) " >&6
7250else
7251 if test -z "$LD"; then
7252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7253 for ac_dir in $PATH; do
7254 IFS="$lt_save_ifs"
7255 test -z "$ac_dir" && ac_dir=.
7256 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7257 lt_cv_path_LD="$ac_dir/$ac_prog"
7258 # Check to see if the program is GNU ld. I'd rather use --version,
7259 # but apparently some variants of GNU ld only accept -v.
7260 # Break only if it was the GNU/non-GNU ld that we prefer.
7261 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7262 *GNU* | *'with BFD'*)
7263 test "$with_gnu_ld" != no && break
7264 ;;
7265 *)
7266 test "$with_gnu_ld" != yes && break
7267 ;;
7268 esac
7269 fi
7270 done
7271 IFS="$lt_save_ifs"
7272else
7273 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7274fi
7275fi
7276
7277LD="$lt_cv_path_LD"
7278if test -n "$LD"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7280$as_echo "$LD" >&6; }
7281else
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283$as_echo "no" >&6; }
7284fi
cristy98dddb52010-11-04 00:30:15 +00007285test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7287$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007288if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007289 $as_echo_n "(cached) " >&6
7290else
7291 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7292case `$LD -v 2>&1 </dev/null` in
7293*GNU* | *'with BFD'*)
7294 lt_cv_prog_gnu_ld=yes
7295 ;;
7296*)
7297 lt_cv_prog_gnu_ld=no
7298 ;;
7299esac
7300fi
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7302$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7303with_gnu_ld=$lt_cv_prog_gnu_ld
7304
7305
7306
7307
7308
7309
7310
7311
7312
cristy3ed852e2009-09-05 21:47:34 +00007313
cristy837d6dc2010-02-27 01:16:57 +00007314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7315$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007316if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007317 $as_echo_n "(cached) " >&6
7318else
7319 ac_cv_prog_cc_c99=no
7320ac_save_CC=$CC
7321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322/* end confdefs.h. */
7323#include <stdarg.h>
7324#include <stdbool.h>
7325#include <stdlib.h>
7326#include <wchar.h>
7327#include <stdio.h>
7328
7329// Check varargs macros. These examples are taken from C99 6.10.3.5.
7330#define debug(...) fprintf (stderr, __VA_ARGS__)
7331#define showlist(...) puts (#__VA_ARGS__)
7332#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7333static void
7334test_varargs_macros (void)
7335{
7336 int x = 1234;
7337 int y = 5678;
7338 debug ("Flag");
7339 debug ("X = %d\n", x);
7340 showlist (The first, second, and third items.);
7341 report (x>y, "x is %d but y is %d", x, y);
7342}
7343
7344// Check long long types.
7345#define BIG64 18446744073709551615ull
7346#define BIG32 4294967295ul
7347#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7348#if !BIG_OK
7349 your preprocessor is broken;
7350#endif
7351#if BIG_OK
7352#else
7353 your preprocessor is broken;
7354#endif
7355static long long int bignum = -9223372036854775807LL;
7356static unsigned long long int ubignum = BIG64;
7357
7358struct incomplete_array
7359{
7360 int datasize;
7361 double data[];
7362};
7363
7364struct named_init {
7365 int number;
7366 const wchar_t *name;
7367 double average;
7368};
7369
7370typedef const char *ccp;
7371
7372static inline int
7373test_restrict (ccp restrict text)
7374{
7375 // See if C++-style comments work.
7376 // Iterate through items via the restricted pointer.
7377 // Also check for declarations in for loops.
7378 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7379 continue;
7380 return 0;
7381}
7382
7383// Check varargs and va_copy.
7384static void
7385test_varargs (const char *format, ...)
7386{
7387 va_list args;
7388 va_start (args, format);
7389 va_list args_copy;
7390 va_copy (args_copy, args);
7391
7392 const char *str;
7393 int number;
7394 float fnumber;
7395
7396 while (*format)
7397 {
7398 switch (*format++)
7399 {
7400 case 's': // string
7401 str = va_arg (args_copy, const char *);
7402 break;
7403 case 'd': // int
7404 number = va_arg (args_copy, int);
7405 break;
7406 case 'f': // float
7407 fnumber = va_arg (args_copy, double);
7408 break;
7409 default:
7410 break;
7411 }
7412 }
7413 va_end (args_copy);
7414 va_end (args);
7415}
7416
7417int
7418main ()
7419{
7420
7421 // Check bool.
7422 _Bool success = false;
7423
7424 // Check restrict.
7425 if (test_restrict ("String literal") == 0)
7426 success = true;
7427 char *restrict newvar = "Another string";
7428
7429 // Check varargs.
7430 test_varargs ("s, d' f .", "string", 65, 34.234);
7431 test_varargs_macros ();
7432
7433 // Check flexible array members.
7434 struct incomplete_array *ia =
7435 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7436 ia->datasize = 10;
7437 for (int i = 0; i < ia->datasize; ++i)
7438 ia->data[i] = i * 1.234;
7439
7440 // Check named initializers.
7441 struct named_init ni = {
7442 .number = 34,
7443 .name = L"Test wide string",
7444 .average = 543.34343,
7445 };
7446
7447 ni.number = 58;
7448
7449 int dynamic_array[ni.number];
7450 dynamic_array[ni.number - 1] = 543;
7451
7452 // work around unused variable warnings
7453 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7454 || dynamic_array[ni.number - 1] != 543);
7455
7456 ;
7457 return 0;
7458}
7459_ACEOF
7460for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7461do
7462 CC="$ac_save_CC $ac_arg"
7463 if ac_fn_c_try_compile "$LINENO"; then :
7464 ac_cv_prog_cc_c99=$ac_arg
7465fi
7466rm -f core conftest.err conftest.$ac_objext
7467 test "x$ac_cv_prog_cc_c99" != "xno" && break
7468done
7469rm -f conftest.$ac_ext
7470CC=$ac_save_CC
7471
7472fi
7473# AC_CACHE_VAL
7474case "x$ac_cv_prog_cc_c99" in
7475 x)
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7477$as_echo "none needed" >&6; } ;;
7478 xno)
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7480$as_echo "unsupported" >&6; } ;;
7481 *)
7482 CC="$CC $ac_cv_prog_cc_c99"
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7484$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7485esac
7486if test "x$ac_cv_prog_cc_c99" != xno; then :
7487
7488fi
7489
7490
cristy73bd4a52010-10-05 11:24:23 +00007491if test "x$CC" != xcc; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7493$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7494else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7496$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7497fi
7498set dummy $CC; ac_cc=`$as_echo "$2" |
7499 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007500if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007501 $as_echo_n "(cached) " >&6
7502else
cristy73bd4a52010-10-05 11:24:23 +00007503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h. */
7505
7506int
7507main ()
7508{
7509
7510 ;
7511 return 0;
7512}
7513_ACEOF
7514# Make sure it works both with $CC and with simple cc.
7515# We do the test twice because some compilers refuse to overwrite an
7516# existing .o file with -o, though they will create one.
7517ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7518rm -f conftest2.*
7519if { { case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7522esac
7523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7524$as_echo "$ac_try_echo"; } >&5
7525 (eval "$ac_try") 2>&5
7526 ac_status=$?
7527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528 test $ac_status = 0; } &&
7529 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7532esac
7533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7534$as_echo "$ac_try_echo"; } >&5
7535 (eval "$ac_try") 2>&5
7536 ac_status=$?
7537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538 test $ac_status = 0; };
7539then
7540 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7541 if test "x$CC" != xcc; then
7542 # Test first that cc exists at all.
7543 if { ac_try='cc -c conftest.$ac_ext >&5'
7544 { { case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547esac
7548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7549$as_echo "$ac_try_echo"; } >&5
7550 (eval "$ac_try") 2>&5
7551 ac_status=$?
7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; }; }; then
7554 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7555 rm -f conftest2.*
7556 if { { case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559esac
7560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7561$as_echo "$ac_try_echo"; } >&5
7562 (eval "$ac_try") 2>&5
7563 ac_status=$?
7564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565 test $ac_status = 0; } &&
7566 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569esac
7570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7571$as_echo "$ac_try_echo"; } >&5
7572 (eval "$ac_try") 2>&5
7573 ac_status=$?
7574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575 test $ac_status = 0; };
7576 then
7577 # cc works too.
7578 :
7579 else
7580 # cc exists but doesn't like -o.
7581 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7582 fi
7583 fi
7584 fi
7585else
7586 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7587fi
7588rm -f core conftest*
7589
7590fi
7591if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7593$as_echo "yes" >&6; }
7594else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596$as_echo "no" >&6; }
7597
7598$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7599
7600fi
7601
7602# FIXME: we rely on the cache variable name because
7603# there is no other way.
7604set dummy $CC
7605am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7606eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7607if test "$am_t" != yes; then
7608 # Losing compiler, so override with the script.
7609 # FIXME: It is wrong to rewrite CC.
7610 # But if we don't then we get into trouble of one sort or another.
7611 # A longer-term fix would be to have automake use am__CC in this case,
7612 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7613 CC="$am_aux_dir/compile $CC"
7614fi
7615
7616
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7618$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007619if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007620 $as_echo_n "(cached) " >&6
7621else
7622 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007623 ac_ext=c
7624ac_cpp='$CPP $CPPFLAGS'
7625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7627ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628
7629 ac_save_CFLAGS="$CFLAGS"
7630for 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" #
7631do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633/* end confdefs.h. */
7634
7635int
7636main ()
7637{
cristy24fc1fe2010-10-23 21:13:01 +00007638
cristy73bd4a52010-10-05 11:24:23 +00007639 ;
7640 return 0;
7641}
7642_ACEOF
7643if ac_fn_c_try_compile "$LINENO"; then :
7644 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7645fi
7646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647done
7648 CFLAGS="$ac_save_CFLAGS"
7649 ac_ext=c
7650ac_cpp='$CPP $CPPFLAGS'
7651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655
7656fi
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7658$as_echo "$ac_cv_cflags_warn_all" >&6; }
7659case ".$ac_cv_cflags_warn_all" in
7660 .ok|.ok,*) ;;
7661 .|.no|.no,*)
7662 ;;
7663 *)
7664 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7665 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7666 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7667 ac_status=$?
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; }
7670 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7671 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7672 ac_status=$?
7673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7674 test $ac_status = 0; }
7675 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7676 fi
7677 ;;
nicolas6237c462010-10-05 06:11:49 +00007678esac
cristy3ed852e2009-09-05 21:47:34 +00007679
cristya0b81c32010-01-22 02:54:33 +00007680
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7682$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7683set x ${MAKE-make}
7684ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007685if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007686 $as_echo_n "(cached) " >&6
7687else
7688 cat >conftest.make <<\_ACEOF
7689SHELL = /bin/sh
7690all:
7691 @echo '@@@%%%=$(MAKE)=@@@%%%'
7692_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007693# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007694case `${MAKE-make} -f conftest.make 2>/dev/null` in
7695 *@@@%%%=?*=@@@%%%*)
7696 eval ac_cv_prog_make_${ac_make}_set=yes;;
7697 *)
7698 eval ac_cv_prog_make_${ac_make}_set=no;;
7699esac
7700rm -f conftest.make
7701fi
7702if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7704$as_echo "yes" >&6; }
7705 SET_MAKE=
7706else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
7709 SET_MAKE="MAKE=${MAKE-make}"
7710fi
7711
cristy8b350f62009-11-15 23:12:43 +00007712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007713$as_echo_n "checking whether ln -s works... " >&6; }
7714LN_S=$as_ln_s
7715if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007717$as_echo "yes" >&6; }
7718else
cristy8b350f62009-11-15 23:12:43 +00007719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007720$as_echo "no, using $LN_S" >&6; }
7721fi
7722
cristy73bd4a52010-10-05 11:24:23 +00007723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7724$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7725
7726# Check whether --with-dmalloc was given.
7727if test "${with_dmalloc+set}" = set; then :
7728 withval=$with_dmalloc; if test "$withval" = yes; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7730$as_echo "yes" >&6; }
7731
7732$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7733
7734 LIBS="$LIBS -ldmalloc"
7735 LDFLAGS="$LDFLAGS -g"
7736else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
7739fi
7740else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742$as_echo "no" >&6; }
7743fi
7744
7745
7746
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7748$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007749if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007750 $as_echo_n "(cached) " >&6
7751else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h. */
7754#include <stdlib.h>
7755 static void foo(void) __attribute__ ((unused));
7756 static void
7757 foo(void) {
7758 exit(1);
7759 }
7760
7761int
7762main ()
7763{
7764
7765 ;
7766 return 0;
7767}
7768_ACEOF
7769if ac_fn_c_try_compile "$LINENO"; then :
7770 ax_cv___attribute__=yes
7771else
7772 ax_cv___attribute__=no
7773
7774fi
7775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7776
7777fi
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7779$as_echo "$ax_cv___attribute__" >&6; }
7780 if test "$ax_cv___attribute__" = "yes"; then
7781
7782$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7783
7784 fi
7785
7786
7787
7788if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7791set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007794if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007795 $as_echo_n "(cached) " >&6
7796else
7797 case $PKG_CONFIG in
7798 [\\/]* | ?:[\\/]*)
7799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7800 ;;
7801 *)
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813done
7814 done
7815IFS=$as_save_IFS
7816
7817 ;;
7818esac
7819fi
7820PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7821if test -n "$PKG_CONFIG"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7823$as_echo "$PKG_CONFIG" >&6; }
7824else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
7827fi
7828
7829
7830fi
7831if test -z "$ac_cv_path_PKG_CONFIG"; then
7832 ac_pt_PKG_CONFIG=$PKG_CONFIG
7833 # Extract the first word of "pkg-config", so it can be a program name with args.
7834set dummy pkg-config; ac_word=$2
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007837if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007838 $as_echo_n "(cached) " >&6
7839else
7840 case $ac_pt_PKG_CONFIG in
7841 [\\/]* | ?:[\\/]*)
7842 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7843 ;;
7844 *)
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857 done
7858IFS=$as_save_IFS
7859
7860 ;;
7861esac
7862fi
7863ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7864if test -n "$ac_pt_PKG_CONFIG"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7866$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7867else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869$as_echo "no" >&6; }
7870fi
7871
7872 if test "x$ac_pt_PKG_CONFIG" = x; then
7873 PKG_CONFIG=""
7874 else
7875 case $cross_compiling:$ac_tool_warned in
7876yes:)
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879ac_tool_warned=yes ;;
7880esac
7881 PKG_CONFIG=$ac_pt_PKG_CONFIG
7882 fi
7883else
7884 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7885fi
7886
7887fi
7888if test -n "$PKG_CONFIG"; then
7889 _pkg_min_version=0.9.0
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7891$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7892 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894$as_echo "yes" >&6; }
7895 else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
7898 PKG_CONFIG=""
7899 fi
7900
7901fi
cristy3ed852e2009-09-05 21:47:34 +00007902
7903#
cristy3ed852e2009-09-05 21:47:34 +00007904# Enable run-time checking.
7905#
7906# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007907if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007908 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7909else
7910 enable_bounds_checking='no'
7911fi
7912
7913
7914if test "$enable_bounds_checking" = yes; then
7915
cristy8b350f62009-11-15 23:12:43 +00007916$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007917
7918fi
7919
7920#
7921# Tests for Windows
7922#
7923
7924
cristy73bd4a52010-10-05 11:24:23 +00007925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7926$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007927if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007928 $as_echo_n "(cached) " >&6
7929else
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931/* end confdefs.h. */
7932
7933int
7934main ()
7935{
7936#ifndef _MSC_VER
7937 choke me
7938#endif
7939
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944if ac_fn_c_try_compile "$LINENO"; then :
7945 ax_compiler_ms=yes
7946else
7947 ax_compiler_ms=no
7948fi
7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950ax_cv_c_compiler_ms=$ax_compiler_ms
7951
7952fi
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7954$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007955
7956GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007957native_win32_build='no'
7958cygwin_build='no'
7959case "${host_os}" in
7960 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007961 cygwin_build='yes'
7962 GDI32_LIBS='-lgdi32'
7963 ;;
7964 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007965 native_win32_build='yes'
7966 GDI32_LIBS='-lgdi32'
7967 ;;
7968esac
7969if test "${GDI32_LIBS}x" != 'x'; then
7970
cristy8b350f62009-11-15 23:12:43 +00007971$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007972
7973fi
7974
cristy73bd4a52010-10-05 11:24:23 +00007975 if test "${GDI32_LIBS}x" != 'x' ; then
7976 WINGDI32_DELEGATE_TRUE=
7977 WINGDI32_DELEGATE_FALSE='#'
7978else
7979 WINGDI32_DELEGATE_TRUE='#'
7980 WINGDI32_DELEGATE_FALSE=
7981fi
7982
7983 if test "${native_win32_build}" = 'yes' ; then
7984 WIN32_NATIVE_BUILD_TRUE=
7985 WIN32_NATIVE_BUILD_FALSE='#'
7986else
7987 WIN32_NATIVE_BUILD_TRUE='#'
7988 WIN32_NATIVE_BUILD_FALSE=
7989fi
7990
7991 if test "${cygwin_build}" = 'yes' ; then
7992 CYGWIN_BUILD_TRUE=
7993 CYGWIN_BUILD_FALSE='#'
7994else
7995 CYGWIN_BUILD_TRUE='#'
7996 CYGWIN_BUILD_FALSE=
7997fi
7998
7999 if test "x${CC}" = 'xcl.exe' ; then
8000 USING_CL_TRUE=
8001 USING_CL_FALSE='#'
8002else
8003 USING_CL_TRUE='#'
8004 USING_CL_FALSE=
8005fi
8006
cristy3ed852e2009-09-05 21:47:34 +00008007
8008WinPathScript="${srcdirfull}/winpath.sh"
8009
8010
8011#
8012# Compiler flags tweaks
8013#
8014if test "${GCC}" != "yes"; then
8015 case "${host}" in
8016 *-*-hpux* )
8017 # aCC: HP ANSI C++ B3910B A.03.34
8018 CFLAGS="${CFLAGS} -Wp,-H30000"
8019 if test -n "${CXXFLAGS}"; then
8020 CXXFLAGS='-AA'
8021 else
8022 CXXFLAGS="${CXXFLAGS} -AA"
8023 fi
8024 ;;
8025 *-dec-osf5.* )
8026 # Compaq alphaev68-dec-osf5.1 compiler
8027 if test -n "${CXXFLAGS}"; then
8028 CXXFLAGS='-std strict_ansi -noimplicit_include'
8029 else
8030 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8031 fi
8032 esac
8033fi
8034
8035# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008037$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008038if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008039 $as_echo_n "(cached) " >&6
8040else
8041
8042im_cv_ld_lazyload='none'
8043case "${host}" in
8044 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8045 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8046 im_cv_ld_lazyload='-Wl,-zlazyload'
8047 fi
8048 ;;
8049esac
8050
8051fi
cristy8b350f62009-11-15 23:12:43 +00008052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008053$as_echo "$im_cv_ld_lazyload" >&6; }
8054if test "${im_cv_ld_lazyload}" != 'none' ; then
8055 if test -z "${LDFLAGS}" ; then
8056 LDFLAGS="${im_cv_ld_lazyload}"
8057 else
8058 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8059 fi
8060fi
8061
8062case "$host" in
8063*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008064 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008065if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008066 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8067else
8068 build_osxuniversal=no
8069fi
8070
8071
8072 if test "${build_osxuniversal}" != no ; then
8073 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008074 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008075Please re-run configure with these options:
8076 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008077 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008078 fi
8079 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8080 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8081 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8082 fi
8083 ;;
8084esac
8085
8086# Enable support for threads
8087
8088# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008089if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008090 withval=$with_threads; with_threads=$withval
8091else
8092 with_threads='yes'
8093fi
8094
8095
8096have_threads=no
8097if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008098
8099
8100
8101ac_ext=c
8102ac_cpp='$CPP $CPPFLAGS'
8103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8105ac_compiler_gnu=$ac_cv_c_compiler_gnu
8106
8107ax_pthread_ok=no
8108
8109# We used to check for pthread.h first, but this fails if pthread.h
8110# requires special compiler flags (e.g. on True64 or Sequent).
8111# It gets checked for in the link test anyway.
8112
8113# First of all, check if the user has set any of the PTHREAD_LIBS,
8114# etcetera environment variables, and if threads linking works using
8115# them:
8116if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8117 save_CFLAGS="$CFLAGS"
8118 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8119 save_LIBS="$LIBS"
8120 LIBS="$PTHREAD_LIBS $LIBS"
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8122$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124/* end confdefs.h. */
8125
8126/* Override any GCC internal prototype to avoid an error.
8127 Use char because int might match the return type of a GCC
8128 builtin and then its argument prototype would still apply. */
8129#ifdef __cplusplus
8130extern "C"
8131#endif
8132char pthread_join ();
8133int
8134main ()
8135{
8136return pthread_join ();
8137 ;
8138 return 0;
8139}
8140_ACEOF
8141if ac_fn_c_try_link "$LINENO"; then :
8142 ax_pthread_ok=yes
8143fi
8144rm -f core conftest.err conftest.$ac_objext \
8145 conftest$ac_exeext conftest.$ac_ext
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8147$as_echo "$ax_pthread_ok" >&6; }
8148 if test x"$ax_pthread_ok" = xno; then
8149 PTHREAD_LIBS=""
8150 PTHREAD_CFLAGS=""
8151 fi
8152 LIBS="$save_LIBS"
8153 CFLAGS="$save_CFLAGS"
8154fi
8155
8156# We must check for the threads library under a number of different
8157# names; the ordering is very important because some systems
8158# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8159# libraries is broken (non-POSIX).
8160
8161# Create a list of thread flags to try. Items starting with a "-" are
8162# C compiler flags, and other items are library names, except for "none"
8163# which indicates that we try without any flags at all, and "pthread-config"
8164# which is a program returning the flags for the Pth emulation library.
8165
8166ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8167
8168# The ordering *is* (sometimes) important. Some notes on the
8169# individual items follow:
8170
8171# pthreads: AIX (must check this before -lpthread)
8172# none: in case threads are in libc; should be tried before -Kthread and
8173# other compiler flags to prevent continual compiler warnings
8174# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8175# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8176# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8177# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8178# -pthreads: Solaris/gcc
8179# -mthreads: Mingw32/gcc, Lynx/gcc
8180# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8181# doesn't hurt to check since this sometimes defines pthreads too;
8182# also defines -D_REENTRANT)
8183# ... -mt is also the pthreads flag for HP/aCC
8184# pthread: Linux, etcetera
8185# --thread-safe: KAI C++
8186# pthread-config: use pthread-config program (for GNU Pth library)
8187
8188case "${host_cpu}-${host_os}" in
8189 *solaris*)
8190
8191 # On Solaris (at least, for some versions), libc contains stubbed
8192 # (non-functional) versions of the pthreads routines, so link-based
8193 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8194 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8195 # a function called by this macro, so we could check for that, but
8196 # who knows whether they'll stub that too in a future libc.) So,
8197 # we'll just look for -pthreads and -lpthread first:
8198
8199 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8200 ;;
8201
8202 *-darwin*)
8203 ax_pthread_flags="-pthread $ax_pthread_flags"
8204 ;;
8205esac
8206
8207if test x"$ax_pthread_ok" = xno; then
8208for flag in $ax_pthread_flags; do
8209
8210 case $flag in
8211 none)
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8213$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8214 ;;
8215
8216 -*)
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8218$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8219 PTHREAD_CFLAGS="$flag"
8220 ;;
8221
8222 pthread-config)
8223 # Extract the first word of "pthread-config", so it can be a program name with args.
8224set dummy pthread-config; ac_word=$2
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008227if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008228 $as_echo_n "(cached) " >&6
8229else
8230 if test -n "$ax_pthread_config"; then
8231 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8232else
8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234for as_dir in $PATH
8235do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_prog_ax_pthread_config="yes"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8243 fi
8244done
8245 done
8246IFS=$as_save_IFS
8247
8248 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8249fi
8250fi
8251ax_pthread_config=$ac_cv_prog_ax_pthread_config
8252if test -n "$ax_pthread_config"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8254$as_echo "$ax_pthread_config" >&6; }
8255else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257$as_echo "no" >&6; }
8258fi
8259
8260
8261 if test x"$ax_pthread_config" = xno; then continue; fi
8262 PTHREAD_CFLAGS="`pthread-config --cflags`"
8263 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8264 ;;
8265
8266 *)
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8268$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8269 PTHREAD_LIBS="-l$flag"
8270 ;;
8271 esac
8272
8273 save_LIBS="$LIBS"
8274 save_CFLAGS="$CFLAGS"
8275 LIBS="$PTHREAD_LIBS $LIBS"
8276 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8277
8278 # Check for various functions. We must include pthread.h,
8279 # since some functions may be macros. (On the Sequent, we
8280 # need a special flag -Kthread to make this header compile.)
8281 # We check for pthread_join because it is in -lpthread on IRIX
8282 # while pthread_create is in libc. We check for pthread_attr_init
8283 # due to DEC craziness with -lpthreads. We check for
8284 # pthread_cleanup_push because it is one of the few pthread
8285 # functions on Solaris that doesn't have a non-functional libc stub.
8286 # We try pthread_create on general principles.
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288/* end confdefs.h. */
8289#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008290 static void routine(void* a) {a=0;}
8291 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008292int
8293main ()
8294{
8295pthread_t th; pthread_attr_t attr;
8296 pthread_create(&th,0,start_routine,0);
8297 pthread_join(th, 0);
8298 pthread_attr_init(&attr);
8299 pthread_cleanup_push(routine, 0);
8300 pthread_cleanup_pop(0);
8301 ;
8302 return 0;
8303}
8304_ACEOF
8305if ac_fn_c_try_link "$LINENO"; then :
8306 ax_pthread_ok=yes
8307fi
8308rm -f core conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
8310
8311 LIBS="$save_LIBS"
8312 CFLAGS="$save_CFLAGS"
8313
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8315$as_echo "$ax_pthread_ok" >&6; }
8316 if test "x$ax_pthread_ok" = xyes; then
8317 break;
8318 fi
8319
8320 PTHREAD_LIBS=""
8321 PTHREAD_CFLAGS=""
8322done
8323fi
8324
8325# Various other checks:
8326if test "x$ax_pthread_ok" = xyes; then
8327 save_LIBS="$LIBS"
8328 LIBS="$PTHREAD_LIBS $LIBS"
8329 save_CFLAGS="$CFLAGS"
8330 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8331
8332 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8334$as_echo_n "checking for joinable pthread attribute... " >&6; }
8335 attr_name=unknown
8336 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338/* end confdefs.h. */
8339#include <pthread.h>
8340int
8341main ()
8342{
8343int attr=$attr; return attr;
8344 ;
8345 return 0;
8346}
8347_ACEOF
8348if ac_fn_c_try_link "$LINENO"; then :
8349 attr_name=$attr; break
8350fi
8351rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 done
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8355$as_echo "$attr_name" >&6; }
8356 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8357
8358cat >>confdefs.h <<_ACEOF
8359#define PTHREAD_CREATE_JOINABLE $attr_name
8360_ACEOF
8361
8362 fi
8363
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8365$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8366 flag=no
8367 case "${host_cpu}-${host_os}" in
8368 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8369 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8370 esac
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8372$as_echo "${flag}" >&6; }
8373 if test "x$flag" != xno; then
8374 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8375 fi
8376
8377 LIBS="$save_LIBS"
8378 CFLAGS="$save_CFLAGS"
8379
8380 # More AIX lossage: must compile with xlc_r or cc_r
8381 if test x"$GCC" != xyes; then
8382 for ac_prog in xlc_r cc_r
8383do
8384 # Extract the first word of "$ac_prog", so it can be a program name with args.
8385set dummy $ac_prog; ac_word=$2
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008388if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008389 $as_echo_n "(cached) " >&6
8390else
8391 if test -n "$PTHREAD_CC"; then
8392 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8393else
8394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_prog_PTHREAD_CC="$ac_prog"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405done
8406 done
8407IFS=$as_save_IFS
8408
8409fi
8410fi
8411PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8412if test -n "$PTHREAD_CC"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8414$as_echo "$PTHREAD_CC" >&6; }
8415else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417$as_echo "no" >&6; }
8418fi
8419
8420
8421 test -n "$PTHREAD_CC" && break
8422done
8423test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8424
8425 else
8426 PTHREAD_CC=$CC
8427 fi
8428else
8429 PTHREAD_CC="$CC"
8430fi
8431
8432
8433
8434
8435
8436# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8437if test x"$ax_pthread_ok" = xyes; then
8438
8439$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8440
8441 :
8442else
8443 ax_pthread_ok=no
8444
8445fi
8446ac_ext=c
8447ac_cpp='$CPP $CPPFLAGS'
8448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450ac_compiler_gnu=$ac_cv_c_compiler_gnu
8451
8452
cristy7acf8fb2010-09-23 19:58:53 +00008453 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008454 have_threads=yes
8455 DEF_THREAD="$PTHREAD_CFLAGS"
8456 CFLAGS="$CFLAGS $DEF_THREAD"
8457 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8458 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008459 { $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 +00008460$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8461 CC="$PTHREAD_CC"
8462 fi
cristy55bf91c2010-09-24 00:29:41 +00008463
8464$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8465
cristy3ed852e2009-09-05 21:47:34 +00008466 fi
8467fi
8468
8469# Enable support for OpenMP
8470if test "$have_threads" != 'yes'; then
8471 ac_cv_prog_c_openmp=unsupported
8472fi
8473
8474 OPENMP_CFLAGS=
8475 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008476if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008477 enableval=$enable_openmp;
8478fi
8479
8480 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008482$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008483if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008484 $as_echo_n "(cached) " >&6
8485else
cristy8b350f62009-11-15 23:12:43 +00008486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008488
8489#ifndef _OPENMP
8490 choke me
8491#endif
8492#include <omp.h>
8493int main () { return omp_get_num_threads (); }
8494
8495_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008496if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008497 ac_cv_prog_c_openmp='none needed'
8498else
cristy8b350f62009-11-15 23:12:43 +00008499 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008500 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8501 ac_save_CFLAGS=$CFLAGS
8502 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008505
8506#ifndef _OPENMP
8507 choke me
8508#endif
8509#include <omp.h>
8510int main () { return omp_get_num_threads (); }
8511
8512_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008513if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008514 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008515fi
cristy8b350f62009-11-15 23:12:43 +00008516rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008518 CFLAGS=$ac_save_CFLAGS
8519 if test "$ac_cv_prog_c_openmp" != unsupported; then
8520 break
8521 fi
8522 done
8523fi
cristy8b350f62009-11-15 23:12:43 +00008524rm -f core conftest.err conftest.$ac_objext \
8525 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008526fi
cristy8b350f62009-11-15 23:12:43 +00008527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008528$as_echo "$ac_cv_prog_c_openmp" >&6; }
8529 case $ac_cv_prog_c_openmp in #(
8530 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008531 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008532 *)
cristy8b350f62009-11-15 23:12:43 +00008533 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008534 esac
8535 fi
8536
8537
8538CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8539MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8540
cristy391f1ce2010-09-09 17:23:28 +00008541if test "$enable_openmp" != no; then
8542 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8543 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8544 fi
8545fi
cristy3ed852e2009-09-05 21:47:34 +00008546
cristy736173a2009-09-20 21:18:22 +00008547# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008548
8549
8550
8551ac_ext=c
8552ac_cpp='$CPP $CPPFLAGS'
8553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8555ac_compiler_gnu=$ac_cv_c_compiler_gnu
8556
8557ax_pthread_ok=no
8558
8559# We used to check for pthread.h first, but this fails if pthread.h
8560# requires special compiler flags (e.g. on True64 or Sequent).
8561# It gets checked for in the link test anyway.
8562
8563# First of all, check if the user has set any of the PTHREAD_LIBS,
8564# etcetera environment variables, and if threads linking works using
8565# them:
8566if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8567 save_CFLAGS="$CFLAGS"
8568 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8569 save_LIBS="$LIBS"
8570 LIBS="$PTHREAD_LIBS $LIBS"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8572$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574/* end confdefs.h. */
8575
8576/* Override any GCC internal prototype to avoid an error.
8577 Use char because int might match the return type of a GCC
8578 builtin and then its argument prototype would still apply. */
8579#ifdef __cplusplus
8580extern "C"
8581#endif
8582char pthread_join ();
8583int
8584main ()
8585{
8586return pthread_join ();
8587 ;
8588 return 0;
8589}
8590_ACEOF
8591if ac_fn_c_try_link "$LINENO"; then :
8592 ax_pthread_ok=yes
8593fi
8594rm -f core conftest.err conftest.$ac_objext \
8595 conftest$ac_exeext conftest.$ac_ext
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8597$as_echo "$ax_pthread_ok" >&6; }
8598 if test x"$ax_pthread_ok" = xno; then
8599 PTHREAD_LIBS=""
8600 PTHREAD_CFLAGS=""
8601 fi
8602 LIBS="$save_LIBS"
8603 CFLAGS="$save_CFLAGS"
8604fi
8605
8606# We must check for the threads library under a number of different
8607# names; the ordering is very important because some systems
8608# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8609# libraries is broken (non-POSIX).
8610
8611# Create a list of thread flags to try. Items starting with a "-" are
8612# C compiler flags, and other items are library names, except for "none"
8613# which indicates that we try without any flags at all, and "pthread-config"
8614# which is a program returning the flags for the Pth emulation library.
8615
8616ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8617
8618# The ordering *is* (sometimes) important. Some notes on the
8619# individual items follow:
8620
8621# pthreads: AIX (must check this before -lpthread)
8622# none: in case threads are in libc; should be tried before -Kthread and
8623# other compiler flags to prevent continual compiler warnings
8624# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8625# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8626# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8627# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8628# -pthreads: Solaris/gcc
8629# -mthreads: Mingw32/gcc, Lynx/gcc
8630# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8631# doesn't hurt to check since this sometimes defines pthreads too;
8632# also defines -D_REENTRANT)
8633# ... -mt is also the pthreads flag for HP/aCC
8634# pthread: Linux, etcetera
8635# --thread-safe: KAI C++
8636# pthread-config: use pthread-config program (for GNU Pth library)
8637
8638case "${host_cpu}-${host_os}" in
8639 *solaris*)
8640
8641 # On Solaris (at least, for some versions), libc contains stubbed
8642 # (non-functional) versions of the pthreads routines, so link-based
8643 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8644 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8645 # a function called by this macro, so we could check for that, but
8646 # who knows whether they'll stub that too in a future libc.) So,
8647 # we'll just look for -pthreads and -lpthread first:
8648
8649 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8650 ;;
8651
8652 *-darwin*)
8653 ax_pthread_flags="-pthread $ax_pthread_flags"
8654 ;;
8655esac
8656
8657if test x"$ax_pthread_ok" = xno; then
8658for flag in $ax_pthread_flags; do
8659
8660 case $flag in
8661 none)
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8663$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8664 ;;
8665
8666 -*)
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8668$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8669 PTHREAD_CFLAGS="$flag"
8670 ;;
8671
8672 pthread-config)
8673 # Extract the first word of "pthread-config", so it can be a program name with args.
8674set dummy pthread-config; ac_word=$2
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008677if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008678 $as_echo_n "(cached) " >&6
8679else
8680 if test -n "$ax_pthread_config"; then
8681 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8682else
8683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684for as_dir in $PATH
8685do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690 ac_cv_prog_ax_pthread_config="yes"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694done
8695 done
8696IFS=$as_save_IFS
8697
8698 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8699fi
8700fi
8701ax_pthread_config=$ac_cv_prog_ax_pthread_config
8702if test -n "$ax_pthread_config"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8704$as_echo "$ax_pthread_config" >&6; }
8705else
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707$as_echo "no" >&6; }
8708fi
8709
8710
8711 if test x"$ax_pthread_config" = xno; then continue; fi
8712 PTHREAD_CFLAGS="`pthread-config --cflags`"
8713 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8714 ;;
8715
8716 *)
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8718$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8719 PTHREAD_LIBS="-l$flag"
8720 ;;
8721 esac
8722
8723 save_LIBS="$LIBS"
8724 save_CFLAGS="$CFLAGS"
8725 LIBS="$PTHREAD_LIBS $LIBS"
8726 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8727
8728 # Check for various functions. We must include pthread.h,
8729 # since some functions may be macros. (On the Sequent, we
8730 # need a special flag -Kthread to make this header compile.)
8731 # We check for pthread_join because it is in -lpthread on IRIX
8732 # while pthread_create is in libc. We check for pthread_attr_init
8733 # due to DEC craziness with -lpthreads. We check for
8734 # pthread_cleanup_push because it is one of the few pthread
8735 # functions on Solaris that doesn't have a non-functional libc stub.
8736 # We try pthread_create on general principles.
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738/* end confdefs.h. */
8739#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008740 static void routine(void* a) {a=0;}
8741 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008742int
8743main ()
8744{
8745pthread_t th; pthread_attr_t attr;
8746 pthread_create(&th,0,start_routine,0);
8747 pthread_join(th, 0);
8748 pthread_attr_init(&attr);
8749 pthread_cleanup_push(routine, 0);
8750 pthread_cleanup_pop(0);
8751 ;
8752 return 0;
8753}
8754_ACEOF
8755if ac_fn_c_try_link "$LINENO"; then :
8756 ax_pthread_ok=yes
8757fi
8758rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760
8761 LIBS="$save_LIBS"
8762 CFLAGS="$save_CFLAGS"
8763
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8765$as_echo "$ax_pthread_ok" >&6; }
8766 if test "x$ax_pthread_ok" = xyes; then
8767 break;
8768 fi
8769
8770 PTHREAD_LIBS=""
8771 PTHREAD_CFLAGS=""
8772done
8773fi
8774
8775# Various other checks:
8776if test "x$ax_pthread_ok" = xyes; then
8777 save_LIBS="$LIBS"
8778 LIBS="$PTHREAD_LIBS $LIBS"
8779 save_CFLAGS="$CFLAGS"
8780 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8781
8782 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8784$as_echo_n "checking for joinable pthread attribute... " >&6; }
8785 attr_name=unknown
8786 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788/* end confdefs.h. */
8789#include <pthread.h>
8790int
8791main ()
8792{
8793int attr=$attr; return attr;
8794 ;
8795 return 0;
8796}
8797_ACEOF
8798if ac_fn_c_try_link "$LINENO"; then :
8799 attr_name=$attr; break
8800fi
8801rm -f core conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8803 done
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8805$as_echo "$attr_name" >&6; }
8806 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8807
8808cat >>confdefs.h <<_ACEOF
8809#define PTHREAD_CREATE_JOINABLE $attr_name
8810_ACEOF
8811
8812 fi
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8815$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8816 flag=no
8817 case "${host_cpu}-${host_os}" in
8818 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8819 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8820 esac
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8822$as_echo "${flag}" >&6; }
8823 if test "x$flag" != xno; then
8824 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8825 fi
8826
8827 LIBS="$save_LIBS"
8828 CFLAGS="$save_CFLAGS"
8829
8830 # More AIX lossage: must compile with xlc_r or cc_r
8831 if test x"$GCC" != xyes; then
8832 for ac_prog in xlc_r cc_r
8833do
8834 # Extract the first word of "$ac_prog", so it can be a program name with args.
8835set dummy $ac_prog; ac_word=$2
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008838if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008839 $as_echo_n "(cached) " >&6
8840else
8841 if test -n "$PTHREAD_CC"; then
8842 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8843else
8844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845for as_dir in $PATH
8846do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851 ac_cv_prog_PTHREAD_CC="$ac_prog"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8854 fi
8855done
8856 done
8857IFS=$as_save_IFS
8858
8859fi
8860fi
8861PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8862if test -n "$PTHREAD_CC"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8864$as_echo "$PTHREAD_CC" >&6; }
8865else
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867$as_echo "no" >&6; }
8868fi
8869
8870
8871 test -n "$PTHREAD_CC" && break
8872done
8873test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8874
8875 else
8876 PTHREAD_CC=$CC
8877 fi
8878else
8879 PTHREAD_CC="$CC"
8880fi
8881
8882
8883
8884
8885
8886# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8887if test x"$ax_pthread_ok" = xyes; then
8888
8889$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8890
8891 :
8892else
8893 ax_pthread_ok=no
8894
8895fi
8896ac_ext=c
8897ac_cpp='$CPP $CPPFLAGS'
8898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900ac_compiler_gnu=$ac_cv_c_compiler_gnu
8901
8902
8903
8904# Check whether --enable-opencl was given.
8905if test "${enable_opencl+set}" = set; then :
8906 enableval=$enable_opencl; disable_opencl=$enableval
8907else
8908 disable_opencl='yes'
8909fi
8910
8911
8912if test "$disable_opencl" = 'yes'; then
8913 ac_ext=c
8914ac_cpp='$CPP $CPPFLAGS'
8915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917ac_compiler_gnu=$ac_cv_c_compiler_gnu
8918
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8920$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008921if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008922 $as_echo_n "(cached) " >&6
8923else
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h. */
8926
8927int
8928main ()
8929{
8930#ifndef _MSC_VER
8931 choke me
8932#endif
8933
8934 ;
8935 return 0;
8936}
8937_ACEOF
8938if ac_fn_c_try_compile "$LINENO"; then :
8939 ax_compiler_ms=yes
8940else
8941 ax_compiler_ms=no
8942fi
8943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944ax_cv_c_compiler_ms=$ax_compiler_ms
8945
8946fi
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8948$as_echo "$ax_cv_c_compiler_ms" >&6; }
8949 if test X$ax_compiler_ms = Xno; then :
8950 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8951fi
8952
8953 ax_save_CPPFLAGS=$CPPFLAGS
8954 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8955 for ac_header in CL/cl.h OpenCL/cl.h
8956do :
8957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8958ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008959if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008960 cat >>confdefs.h <<_ACEOF
8961#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8962_ACEOF
8963
8964fi
8965
8966done
8967
8968 CPPFLAGS=$ax_save_CPPFLAGS
8969
8970 for ac_header in windows.h
8971do :
8972 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00008973if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00008974 cat >>confdefs.h <<_ACEOF
8975#define HAVE_WINDOWS_H 1
8976_ACEOF
8977
8978fi
8979
8980done
8981
8982
8983
8984
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8986$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008987if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008988 $as_echo_n "(cached) " >&6
8989else
8990 ax_cv_check_cl_libcl=no
8991 case $host_cpu in
8992 x86_64) ax_check_cl_libdir=lib64 ;;
8993 *) ax_check_cl_libdir=lib ;;
8994 esac
8995 ax_save_CPPFLAGS=$CPPFLAGS
8996 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8997 ax_save_LIBS=$LIBS
8998 LIBS=""
8999 ax_check_libs="-lOpenCL -lCL -lclparser"
9000 for ax_lib in $ax_check_libs; do
9001 if test X$ax_compiler_ms = Xyes; then :
9002 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9003else
9004 ax_try_lib=$ax_lib
9005fi
9006 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008/* end confdefs.h. */
9009
9010 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9011 # include <windows.h>
9012 # endif
9013 # ifdef HAVE_CL_CL_H
9014 # include <CL/cl.h>
9015 # elif defined(HAVE_OPENCL_CL_H)
9016 # include <OpenCL/cl.h>
9017 # else
9018 # error no CL.h
9019 # endif
9020int
9021main ()
9022{
9023clCreateContextFromType(0,0,0,0,0)
9024 ;
9025 return 0;
9026}
9027_ACEOF
9028if ac_fn_c_try_link "$LINENO"; then :
9029 ax_cv_check_cl_libcl=$ax_try_lib; break
9030else
9031 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"
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h. */
9034
9035 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9036 # include <windows.h>
9037 # endif
9038 # ifdef HAVE_CL_CL_H
9039 # include <CL/cl.h>
9040 # elif defined(HAVE_OPENCL_CL_H)
9041 # include <OpenCL/cl.h>
9042 # else
9043 # error no CL.h
9044 # endif
9045int
9046main ()
9047{
9048clCreateContextFromType(0,0,0,0,0)
9049 ;
9050 return 0;
9051}
9052_ACEOF
9053if ac_fn_c_try_link "$LINENO"; then :
9054 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9055else
cristy78c5a0c2010-12-04 20:00:59 +00009056 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 +00009057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058/* end confdefs.h. */
9059
9060 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9061 # include <windows.h>
9062 # endif
9063 # ifdef HAVE_CL_CL_H
9064 # include <CL/cl.h>
9065 # elif defined(HAVE_OPENCL_CL_H)
9066 # include <OpenCL/cl.h>
9067 # else
9068 # error no CL.h
9069 # endif
9070int
9071main ()
9072{
9073clCreateContextFromType(0,0,0,0,0)
9074 ;
9075 return 0;
9076}
9077_ACEOF
9078if ac_fn_c_try_link "$LINENO"; then :
9079 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9080fi
9081rm -f core conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9083fi
9084rm -f core conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9086fi
9087rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9089 done
9090
9091 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009092 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094/* end confdefs.h. */
9095
9096 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9097 # include <windows.h>
9098 # endif
9099 # ifdef HAVE_CL_CL_H
9100 # include <CL/cl.h>
9101 # elif defined(HAVE_OPENCL_CL_H)
9102 # include <OpenCL/cl.h>
9103 # else
9104 # error no CL.h
9105 # endif
9106int
9107main ()
9108{
9109clCreateContextFromType(0,0,0,0,0)
9110 ;
9111 return 0;
9112}
9113_ACEOF
9114if ac_fn_c_try_link "$LINENO"; then :
9115 ax_cv_check_cl_libcl=$LIBS
9116fi
9117rm -f core conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9119fi
9120
9121 LIBS=$ax_save_LIBS
9122 CPPFLAGS=$ax_save_CPPFLAGS
9123fi
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9125$as_echo "$ax_cv_check_cl_libcl" >&6; }
9126
9127 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9128 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9129else
9130 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9131$as_echo "#define _OPENCL 1" >>confdefs.h
9132
9133fi
9134 ac_ext=c
9135ac_cpp='$CPP $CPPFLAGS'
9136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9138ac_compiler_gnu=$ac_cv_c_compiler_gnu
9139
9140fi
9141
9142
9143
9144
cristyc7083c12009-10-14 03:16:55 +00009145CFLAGS="$CL_CFLAGS $CFLAGS"
9146LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009147
cristy391f1ce2010-09-09 17:23:28 +00009148if test "$enable_opencl" != no; then
9149 if test "_OPENCL" = '1'; then
9150 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9151 fi
cristyfd9dcd42010-08-08 18:07:02 +00009152fi
cristy2e8b51d2009-10-17 18:26:15 +00009153
cristy3ed852e2009-09-05 21:47:34 +00009154########
9155#
9156# Check for large file support
9157#
9158########
9159# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009160if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009161 enableval=$enable_largefile;
9162fi
9163
9164if test "$enable_largefile" != no; then
9165
cristy8b350f62009-11-15 23:12:43 +00009166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009167$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009168if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009169 $as_echo_n "(cached) " >&6
9170else
9171 ac_cv_sys_largefile_CC=no
9172 if test "$GCC" != yes; then
9173 ac_save_CC=$CC
9174 while :; do
9175 # IRIX 6.2 and later do not support large files by default,
9176 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009178/* end confdefs.h. */
9179#include <sys/types.h>
9180 /* Check that off_t can represent 2**63 - 1 correctly.
9181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9182 since some C++ compilers masquerading as C compilers
9183 incorrectly reject 9223372036854775807. */
9184#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9186 && LARGE_OFF_T % 2147483647 == 1)
9187 ? 1 : -1];
9188int
9189main ()
9190{
9191
9192 ;
9193 return 0;
9194}
9195_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009196 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009197 break
cristy3ed852e2009-09-05 21:47:34 +00009198fi
cristy3ed852e2009-09-05 21:47:34 +00009199rm -f core conftest.err conftest.$ac_objext
9200 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009201 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009202 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009203fi
cristy3ed852e2009-09-05 21:47:34 +00009204rm -f core conftest.err conftest.$ac_objext
9205 break
9206 done
9207 CC=$ac_save_CC
9208 rm -f conftest.$ac_ext
9209 fi
9210fi
cristy8b350f62009-11-15 23:12:43 +00009211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009212$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9213 if test "$ac_cv_sys_largefile_CC" != no; then
9214 CC=$CC$ac_cv_sys_largefile_CC
9215 fi
9216
cristy8b350f62009-11-15 23:12:43 +00009217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009218$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009219if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009220 $as_echo_n "(cached) " >&6
9221else
9222 while :; do
cristy8b350f62009-11-15 23:12:43 +00009223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009224/* end confdefs.h. */
9225#include <sys/types.h>
9226 /* Check that off_t can represent 2**63 - 1 correctly.
9227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9228 since some C++ compilers masquerading as C compilers
9229 incorrectly reject 9223372036854775807. */
9230#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9232 && LARGE_OFF_T % 2147483647 == 1)
9233 ? 1 : -1];
9234int
9235main ()
9236{
9237
9238 ;
9239 return 0;
9240}
9241_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009242if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009243 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009244fi
cristy3ed852e2009-09-05 21:47:34 +00009245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009247/* end confdefs.h. */
9248#define _FILE_OFFSET_BITS 64
9249#include <sys/types.h>
9250 /* Check that off_t can represent 2**63 - 1 correctly.
9251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9252 since some C++ compilers masquerading as C compilers
9253 incorrectly reject 9223372036854775807. */
9254#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9256 && LARGE_OFF_T % 2147483647 == 1)
9257 ? 1 : -1];
9258int
9259main ()
9260{
9261
9262 ;
9263 return 0;
9264}
9265_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009266if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009267 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009268fi
cristy3ed852e2009-09-05 21:47:34 +00009269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 ac_cv_sys_file_offset_bits=unknown
9271 break
9272done
9273fi
cristy8b350f62009-11-15 23:12:43 +00009274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009275$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9276case $ac_cv_sys_file_offset_bits in #(
9277 no | unknown) ;;
9278 *)
9279cat >>confdefs.h <<_ACEOF
9280#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9281_ACEOF
9282;;
9283esac
9284rm -rf conftest*
9285 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009287$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009288if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009289 $as_echo_n "(cached) " >&6
9290else
9291 while :; do
cristy8b350f62009-11-15 23:12:43 +00009292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009293/* end confdefs.h. */
9294#include <sys/types.h>
9295 /* Check that off_t can represent 2**63 - 1 correctly.
9296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9297 since some C++ compilers masquerading as C compilers
9298 incorrectly reject 9223372036854775807. */
9299#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9301 && LARGE_OFF_T % 2147483647 == 1)
9302 ? 1 : -1];
9303int
9304main ()
9305{
9306
9307 ;
9308 return 0;
9309}
9310_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009311if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009312 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009313fi
cristy3ed852e2009-09-05 21:47:34 +00009314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009316/* end confdefs.h. */
9317#define _LARGE_FILES 1
9318#include <sys/types.h>
9319 /* Check that off_t can represent 2**63 - 1 correctly.
9320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9321 since some C++ compilers masquerading as C compilers
9322 incorrectly reject 9223372036854775807. */
9323#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9325 && LARGE_OFF_T % 2147483647 == 1)
9326 ? 1 : -1];
9327int
9328main ()
9329{
9330
9331 ;
9332 return 0;
9333}
9334_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009335if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009336 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009337fi
cristy3ed852e2009-09-05 21:47:34 +00009338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339 ac_cv_sys_large_files=unknown
9340 break
9341done
9342fi
cristy8b350f62009-11-15 23:12:43 +00009343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009344$as_echo "$ac_cv_sys_large_files" >&6; }
9345case $ac_cv_sys_large_files in #(
9346 no | unknown) ;;
9347 *)
9348cat >>confdefs.h <<_ACEOF
9349#define _LARGE_FILES $ac_cv_sys_large_files
9350_ACEOF
9351;;
9352esac
9353rm -rf conftest*
9354 fi
9355fi
9356
cristy8b350f62009-11-15 23:12:43 +00009357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009358$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009359if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009360 $as_echo_n "(cached) " >&6
9361else
9362 while :; do
cristy8b350f62009-11-15 23:12:43 +00009363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009364/* end confdefs.h. */
9365#include <sys/types.h> /* for off_t */
9366 #include <stdio.h>
9367int
9368main ()
9369{
9370int (*fp) (FILE *, off_t, int) = fseeko;
9371 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9372 ;
9373 return 0;
9374}
9375_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009376if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009377 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009378fi
cristy8b350f62009-11-15 23:12:43 +00009379rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009382/* end confdefs.h. */
9383#define _LARGEFILE_SOURCE 1
9384#include <sys/types.h> /* for off_t */
9385 #include <stdio.h>
9386int
9387main ()
9388{
9389int (*fp) (FILE *, off_t, int) = fseeko;
9390 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9391 ;
9392 return 0;
9393}
9394_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009396 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009397fi
cristy8b350f62009-11-15 23:12:43 +00009398rm -f core conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009400 ac_cv_sys_largefile_source=unknown
9401 break
9402done
9403fi
cristy8b350f62009-11-15 23:12:43 +00009404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009405$as_echo "$ac_cv_sys_largefile_source" >&6; }
9406case $ac_cv_sys_largefile_source in #(
9407 no | unknown) ;;
9408 *)
9409cat >>confdefs.h <<_ACEOF
9410#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9411_ACEOF
9412;;
9413esac
9414rm -rf conftest*
9415
9416# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9417# in glibc 2.1.3, but that breaks too many other things.
9418# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9419if test $ac_cv_sys_largefile_source != unknown; then
9420
cristy8b350f62009-11-15 23:12:43 +00009421$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009422
9423fi
9424
9425LFS_CPPFLAGS=''
9426if test "$enable_largefile" != no; then
9427 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9428 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9429 else
cristy8b350f62009-11-15 23:12:43 +00009430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009431$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009432 if test "$cross_compiling" = yes; then :
9433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009435as_fn_error $? "cannot run test program while cross compiling
9436See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009437else
cristy8b350f62009-11-15 23:12:43 +00009438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009440#include <unistd.h>
9441 main () {
9442 exit(!(sizeof(off_t) == 8));
9443 }
cristyda16f162011-02-19 23:52:17 +00009444int
9445main ()
9446{
9447
9448 ;
9449 return 0;
9450}
cristy3ed852e2009-09-05 21:47:34 +00009451_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009452if ac_fn_c_try_run "$LINENO"; then :
9453 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009454
cristy8b350f62009-11-15 23:12:43 +00009455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009456$as_echo "yes" >&6; }
9457else
cristy8b350f62009-11-15 23:12:43 +00009458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009459$as_echo "no" >&6; }
9460fi
cristy8b350f62009-11-15 23:12:43 +00009461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9462 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009463fi
9464
cristy3ed852e2009-09-05 21:47:34 +00009465 fi
9466 if test "$ac_cv_sys_large_files" != 'no'; then
9467 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9468 fi
9469 if test "$ac_cv_sys_largefile_source" != 'no'; then
9470 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9471 fi
9472fi
9473
9474
9475#
9476# Configure libtool & libltdl
9477#
9478# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009479enable_dlopen=yes
9480
9481
9482
9483case `pwd` in
9484 *\ * | *\ *)
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9486$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9487esac
9488
9489
9490
cristyda16f162011-02-19 23:52:17 +00009491macro_version='2.4'
9492macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506ltmain="$ac_aux_dir/ltmain.sh"
9507
cristy0c60a692010-11-04 01:09:47 +00009508# Backslashify metacharacters that are still active within
9509# double-quoted strings.
9510sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9511
9512# Same as above, but do not quote variable references.
9513double_quote_subst='s/\(["`\\]\)/\\\1/g'
9514
9515# Sed substitution to delay expansion of an escaped shell variable in a
9516# double_quote_subst'ed string.
9517delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9518
9519# Sed substitution to delay expansion of an escaped single quote.
9520delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9521
9522# Sed substitution to avoid accidental globbing in evaled expressions
9523no_glob_subst='s/\*/\\\*/g'
9524
cristy73bd4a52010-10-05 11:24:23 +00009525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9526$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009527if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009528 $as_echo_n "(cached) " >&6
9529else
9530 if test -n "$NM"; then
9531 # Let the user override the test.
9532 lt_cv_path_NM="$NM"
9533else
9534 lt_nm_to_check="${ac_tool_prefix}nm"
9535 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9536 lt_nm_to_check="$lt_nm_to_check nm"
9537 fi
9538 for lt_tmp_nm in $lt_nm_to_check; do
9539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9540 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9541 IFS="$lt_save_ifs"
9542 test -z "$ac_dir" && ac_dir=.
9543 tmp_nm="$ac_dir/$lt_tmp_nm"
9544 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9545 # Check to see if the nm accepts a BSD-compat flag.
9546 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9547 # nm: unknown option "B" ignored
9548 # Tru64's nm complains that /dev/null is an invalid object file
9549 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9550 */dev/null* | *'Invalid file or object type'*)
9551 lt_cv_path_NM="$tmp_nm -B"
9552 break
9553 ;;
9554 *)
9555 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9556 */dev/null*)
9557 lt_cv_path_NM="$tmp_nm -p"
9558 break
9559 ;;
9560 *)
9561 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9562 continue # so that we can try to find one that supports BSD flags
9563 ;;
9564 esac
9565 ;;
9566 esac
9567 fi
9568 done
9569 IFS="$lt_save_ifs"
9570 done
9571 : ${lt_cv_path_NM=no}
9572fi
9573fi
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9575$as_echo "$lt_cv_path_NM" >&6; }
9576if test "$lt_cv_path_NM" != "no"; then
9577 NM="$lt_cv_path_NM"
9578else
9579 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009580 if test -n "$DUMPBIN"; then :
9581 # Let the user override the test.
9582 else
9583 if test -n "$ac_tool_prefix"; then
9584 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009585 do
9586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009590if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009591 $as_echo_n "(cached) " >&6
9592else
9593 if test -n "$DUMPBIN"; then
9594 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9595else
9596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597for as_dir in $PATH
9598do
9599 IFS=$as_save_IFS
9600 test -z "$as_dir" && as_dir=.
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9603 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9605 break 2
9606 fi
9607done
9608 done
9609IFS=$as_save_IFS
9610
9611fi
9612fi
9613DUMPBIN=$ac_cv_prog_DUMPBIN
9614if test -n "$DUMPBIN"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9616$as_echo "$DUMPBIN" >&6; }
9617else
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619$as_echo "no" >&6; }
9620fi
9621
9622
9623 test -n "$DUMPBIN" && break
9624 done
9625fi
9626if test -z "$DUMPBIN"; then
9627 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009628 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009629do
9630 # Extract the first word of "$ac_prog", so it can be a program name with args.
9631set dummy $ac_prog; ac_word=$2
9632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009634if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009635 $as_echo_n "(cached) " >&6
9636else
9637 if test -n "$ac_ct_DUMPBIN"; then
9638 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9639else
9640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641for as_dir in $PATH
9642do
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 break 2
9650 fi
9651done
9652 done
9653IFS=$as_save_IFS
9654
9655fi
9656fi
9657ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9658if test -n "$ac_ct_DUMPBIN"; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9660$as_echo "$ac_ct_DUMPBIN" >&6; }
9661else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663$as_echo "no" >&6; }
9664fi
9665
9666
9667 test -n "$ac_ct_DUMPBIN" && break
9668done
9669
9670 if test "x$ac_ct_DUMPBIN" = x; then
9671 DUMPBIN=":"
9672 else
9673 case $cross_compiling:$ac_tool_warned in
9674yes:)
9675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9677ac_tool_warned=yes ;;
9678esac
9679 DUMPBIN=$ac_ct_DUMPBIN
9680 fi
9681fi
9682
cristy0c60a692010-11-04 01:09:47 +00009683 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9684 *COFF*)
9685 DUMPBIN="$DUMPBIN -symbols"
9686 ;;
9687 *)
9688 DUMPBIN=:
9689 ;;
9690 esac
9691 fi
cristy73bd4a52010-10-05 11:24:23 +00009692
9693 if test "$DUMPBIN" != ":"; then
9694 NM="$DUMPBIN"
9695 fi
9696fi
9697test -z "$NM" && NM=nm
9698
9699
9700
9701
9702
9703
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9705$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009706if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009707 $as_echo_n "(cached) " >&6
9708else
9709 lt_cv_nm_interface="BSD nm"
9710 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009711 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009712 (eval "$ac_compile" 2>conftest.err)
9713 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009714 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009715 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9716 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009717 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009718 cat conftest.out >&5
9719 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9720 lt_cv_nm_interface="MS dumpbin"
9721 fi
9722 rm -f conftest*
9723fi
9724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9725$as_echo "$lt_cv_nm_interface" >&6; }
9726
9727# find the maximum length of command line arguments
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9729$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009730if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009731 $as_echo_n "(cached) " >&6
9732else
9733 i=0
9734 teststring="ABCD"
9735
9736 case $build_os in
9737 msdosdjgpp*)
9738 # On DJGPP, this test can blow up pretty badly due to problems in libc
9739 # (any single argument exceeding 2000 bytes causes a buffer overrun
9740 # during glob expansion). Even if it were fixed, the result of this
9741 # check would be larger than it should be.
9742 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9743 ;;
9744
9745 gnu*)
9746 # Under GNU Hurd, this test is not required because there is
9747 # no limit to the length of command line arguments.
9748 # Libtool will interpret -1 as no limit whatsoever
9749 lt_cv_sys_max_cmd_len=-1;
9750 ;;
9751
9752 cygwin* | mingw* | cegcc*)
9753 # On Win9x/ME, this test blows up -- it succeeds, but takes
9754 # about 5 minutes as the teststring grows exponentially.
9755 # Worse, since 9x/ME are not pre-emptively multitasking,
9756 # you end up with a "frozen" computer, even though with patience
9757 # the test eventually succeeds (with a max line length of 256k).
9758 # Instead, let's just punt: use the minimum linelength reported by
9759 # all of the supported platforms: 8192 (on NT/2K/XP).
9760 lt_cv_sys_max_cmd_len=8192;
9761 ;;
9762
cristy0c60a692010-11-04 01:09:47 +00009763 mint*)
9764 # On MiNT this can take a long time and run out of memory.
9765 lt_cv_sys_max_cmd_len=8192;
9766 ;;
9767
cristy73bd4a52010-10-05 11:24:23 +00009768 amigaos*)
9769 # On AmigaOS with pdksh, this test takes hours, literally.
9770 # So we just punt and use a minimum line length of 8192.
9771 lt_cv_sys_max_cmd_len=8192;
9772 ;;
9773
9774 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9775 # This has been around since 386BSD, at least. Likely further.
9776 if test -x /sbin/sysctl; then
9777 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9778 elif test -x /usr/sbin/sysctl; then
9779 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9780 else
9781 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9782 fi
9783 # And add a safety zone
9784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9786 ;;
9787
9788 interix*)
9789 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9790 lt_cv_sys_max_cmd_len=196608
9791 ;;
9792
9793 osf*)
9794 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9795 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9796 # nice to cause kernel panics so lets avoid the loop below.
9797 # First set a reasonable default.
9798 lt_cv_sys_max_cmd_len=16384
9799 #
9800 if test -x /sbin/sysconfig; then
9801 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9802 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9803 esac
9804 fi
9805 ;;
9806 sco3.2v5*)
9807 lt_cv_sys_max_cmd_len=102400
9808 ;;
9809 sysv5* | sco5v6* | sysv4.2uw2*)
9810 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9811 if test -n "$kargmax"; then
9812 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9813 else
9814 lt_cv_sys_max_cmd_len=32768
9815 fi
9816 ;;
9817 *)
9818 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9819 if test -n "$lt_cv_sys_max_cmd_len"; then
9820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9822 else
9823 # Make teststring a little bigger before we do anything with it.
9824 # a 1K string should be a reasonable start.
9825 for i in 1 2 3 4 5 6 7 8 ; do
9826 teststring=$teststring$teststring
9827 done
9828 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9829 # If test is not a shell built-in, we'll probably end up computing a
9830 # maximum length that is only half of the actual maximum length, but
9831 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009832 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9833 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009834 test $i != 17 # 1/2 MB should be enough
9835 do
9836 i=`expr $i + 1`
9837 teststring=$teststring$teststring
9838 done
9839 # Only check the string length outside the loop.
9840 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9841 teststring=
9842 # Add a significant safety factor because C++ compilers can tack on
9843 # massive amounts of additional arguments before passing them to the
9844 # linker. It appears as though 1/2 is a usable value.
9845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9846 fi
9847 ;;
9848 esac
9849
9850fi
9851
9852if test -n $lt_cv_sys_max_cmd_len ; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9854$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9855else
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9857$as_echo "none" >&6; }
9858fi
9859max_cmd_len=$lt_cv_sys_max_cmd_len
9860
9861
9862
9863
9864
9865
9866: ${CP="cp -f"}
9867: ${MV="mv -f"}
9868: ${RM="rm -f"}
9869
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9871$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9872# Try some XSI features
9873xsi_shell=no
9874( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +00009875 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9876 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +00009877 && eval 'test $(( 1 + 1 )) -eq 2 \
9878 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9879 && xsi_shell=yes
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9881$as_echo "$xsi_shell" >&6; }
9882
9883
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9885$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9886lt_shell_append=no
9887( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9888 >/dev/null 2>&1 \
9889 && lt_shell_append=yes
9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9891$as_echo "$lt_shell_append" >&6; }
9892
9893
9894if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9895 lt_unset=unset
9896else
9897 lt_unset=false
9898fi
9899
9900
9901
9902
9903
9904# test EBCDIC or ASCII
9905case `echo X|tr X '\101'` in
9906 A) # ASCII based system
9907 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9908 lt_SP2NL='tr \040 \012'
9909 lt_NL2SP='tr \015\012 \040\040'
9910 ;;
9911 *) # EBCDIC based system
9912 lt_SP2NL='tr \100 \n'
9913 lt_NL2SP='tr \r\n \100\100'
9914 ;;
9915esac
9916
9917
9918
9919
9920
9921
9922
9923
9924
cristyda16f162011-02-19 23:52:17 +00009925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9926$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9927if ${lt_cv_to_host_file_cmd+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929else
9930 case $host in
9931 *-*-mingw* )
9932 case $build in
9933 *-*-mingw* ) # actually msys
9934 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9935 ;;
9936 *-*-cygwin* )
9937 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9938 ;;
9939 * ) # otherwise, assume *nix
9940 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9941 ;;
9942 esac
9943 ;;
9944 *-*-cygwin* )
9945 case $build in
9946 *-*-mingw* ) # actually msys
9947 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9948 ;;
9949 *-*-cygwin* )
9950 lt_cv_to_host_file_cmd=func_convert_file_noop
9951 ;;
9952 * ) # otherwise, assume *nix
9953 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9954 ;;
9955 esac
9956 ;;
9957 * ) # unhandled hosts (and "normal" native builds)
9958 lt_cv_to_host_file_cmd=func_convert_file_noop
9959 ;;
9960esac
9961
9962fi
9963
9964to_host_file_cmd=$lt_cv_to_host_file_cmd
9965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9966$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9967
9968
9969
9970
9971
9972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9973$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9974if ${lt_cv_to_tool_file_cmd+:} false; then :
9975 $as_echo_n "(cached) " >&6
9976else
9977 #assume ordinary cross tools, or native build.
9978lt_cv_to_tool_file_cmd=func_convert_file_noop
9979case $host in
9980 *-*-mingw* )
9981 case $build in
9982 *-*-mingw* ) # actually msys
9983 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9984 ;;
9985 esac
9986 ;;
9987esac
9988
9989fi
9990
9991to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9993$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9994
9995
9996
9997
9998
cristy73bd4a52010-10-05 11:24:23 +00009999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10000$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010001if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010002 $as_echo_n "(cached) " >&6
10003else
10004 lt_cv_ld_reload_flag='-r'
10005fi
10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10007$as_echo "$lt_cv_ld_reload_flag" >&6; }
10008reload_flag=$lt_cv_ld_reload_flag
10009case $reload_flag in
10010"" | " "*) ;;
10011*) reload_flag=" $reload_flag" ;;
10012esac
10013reload_cmds='$LD$reload_flag -o $output$reload_objs'
10014case $host_os in
cristyda16f162011-02-19 23:52:17 +000010015 cygwin* | mingw* | pw32* | cegcc*)
10016 if test "$GCC" != yes; then
10017 reload_cmds=false
10018 fi
10019 ;;
cristy73bd4a52010-10-05 11:24:23 +000010020 darwin*)
10021 if test "$GCC" = yes; then
10022 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10023 else
10024 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10025 fi
10026 ;;
10027esac
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037if test -n "$ac_tool_prefix"; then
10038 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10039set dummy ${ac_tool_prefix}objdump; ac_word=$2
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010042if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010043 $as_echo_n "(cached) " >&6
10044else
10045 if test -n "$OBJDUMP"; then
10046 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10047else
10048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $PATH
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10058 fi
10059done
10060 done
10061IFS=$as_save_IFS
10062
10063fi
10064fi
10065OBJDUMP=$ac_cv_prog_OBJDUMP
10066if test -n "$OBJDUMP"; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10068$as_echo "$OBJDUMP" >&6; }
10069else
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071$as_echo "no" >&6; }
10072fi
10073
10074
10075fi
10076if test -z "$ac_cv_prog_OBJDUMP"; then
10077 ac_ct_OBJDUMP=$OBJDUMP
10078 # Extract the first word of "objdump", so it can be a program name with args.
10079set dummy objdump; ac_word=$2
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010082if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010083 $as_echo_n "(cached) " >&6
10084else
10085 if test -n "$ac_ct_OBJDUMP"; then
10086 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10087else
10088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089for as_dir in $PATH
10090do
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10098 fi
10099done
10100 done
10101IFS=$as_save_IFS
10102
10103fi
10104fi
10105ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10106if test -n "$ac_ct_OBJDUMP"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10108$as_echo "$ac_ct_OBJDUMP" >&6; }
10109else
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111$as_echo "no" >&6; }
10112fi
10113
10114 if test "x$ac_ct_OBJDUMP" = x; then
10115 OBJDUMP="false"
10116 else
10117 case $cross_compiling:$ac_tool_warned in
10118yes:)
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121ac_tool_warned=yes ;;
10122esac
10123 OBJDUMP=$ac_ct_OBJDUMP
10124 fi
10125else
10126 OBJDUMP="$ac_cv_prog_OBJDUMP"
10127fi
10128
10129test -z "$OBJDUMP" && OBJDUMP=objdump
10130
10131
10132
10133
10134
10135
10136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10137$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010138if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010139 $as_echo_n "(cached) " >&6
10140else
10141 lt_cv_file_magic_cmd='$MAGIC_CMD'
10142lt_cv_file_magic_test_file=
10143lt_cv_deplibs_check_method='unknown'
10144# Need to set the preceding variable on all platforms that support
10145# interlibrary dependencies.
10146# 'none' -- dependencies not supported.
10147# `unknown' -- same as none, but documents that we really don't know.
10148# 'pass_all' -- all dependencies passed with no checks.
10149# 'test_compile' -- check by making test program.
10150# 'file_magic [[regex]]' -- check by looking for files in library path
10151# which responds to the $file_magic_cmd with a given extended regex.
10152# If you have `file' or equivalent on your system and you're not sure
10153# whether `pass_all' will *always* work, you probably want this one.
10154
10155case $host_os in
10156aix[4-9]*)
10157 lt_cv_deplibs_check_method=pass_all
10158 ;;
10159
10160beos*)
10161 lt_cv_deplibs_check_method=pass_all
10162 ;;
10163
10164bsdi[45]*)
10165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10166 lt_cv_file_magic_cmd='/usr/bin/file -L'
10167 lt_cv_file_magic_test_file=/shlib/libc.so
10168 ;;
10169
10170cygwin*)
10171 # func_win32_libid is a shell function defined in ltmain.sh
10172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10173 lt_cv_file_magic_cmd='func_win32_libid'
10174 ;;
10175
10176mingw* | pw32*)
10177 # Base MSYS/MinGW do not provide the 'file' command needed by
10178 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10179 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010180 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10181 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10183 lt_cv_file_magic_cmd='func_win32_libid'
10184 else
cristy0c60a692010-11-04 01:09:47 +000010185 # Keep this pattern in sync with the one in func_win32_libid.
10186 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 +000010187 lt_cv_file_magic_cmd='$OBJDUMP -f'
10188 fi
10189 ;;
10190
cristy0c60a692010-11-04 01:09:47 +000010191cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010192 # use the weaker test based on 'objdump'. See mingw*.
10193 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10194 lt_cv_file_magic_cmd='$OBJDUMP -f'
10195 ;;
10196
10197darwin* | rhapsody*)
10198 lt_cv_deplibs_check_method=pass_all
10199 ;;
10200
10201freebsd* | dragonfly*)
10202 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10203 case $host_cpu in
10204 i*86 )
10205 # Not sure whether the presence of OpenBSD here was a mistake.
10206 # Let's accept both of them until this is cleared up.
10207 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10208 lt_cv_file_magic_cmd=/usr/bin/file
10209 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10210 ;;
10211 esac
10212 else
10213 lt_cv_deplibs_check_method=pass_all
10214 fi
10215 ;;
10216
10217gnu*)
10218 lt_cv_deplibs_check_method=pass_all
10219 ;;
10220
cristy0c60a692010-11-04 01:09:47 +000010221haiku*)
10222 lt_cv_deplibs_check_method=pass_all
10223 ;;
10224
cristy73bd4a52010-10-05 11:24:23 +000010225hpux10.20* | hpux11*)
10226 lt_cv_file_magic_cmd=/usr/bin/file
10227 case $host_cpu in
10228 ia64*)
10229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10230 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10231 ;;
10232 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010233 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 +000010234 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10235 ;;
10236 *)
cristy0c60a692010-11-04 01:09:47 +000010237 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 +000010238 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10239 ;;
10240 esac
10241 ;;
10242
10243interix[3-9]*)
10244 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10246 ;;
10247
10248irix5* | irix6* | nonstopux*)
10249 case $LD in
10250 *-32|*"-32 ") libmagic=32-bit;;
10251 *-n32|*"-n32 ") libmagic=N32;;
10252 *-64|*"-64 ") libmagic=64-bit;;
10253 *) libmagic=never-match;;
10254 esac
10255 lt_cv_deplibs_check_method=pass_all
10256 ;;
10257
10258# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010259linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010260 lt_cv_deplibs_check_method=pass_all
10261 ;;
10262
10263netbsd*)
10264 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10266 else
10267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10268 fi
10269 ;;
10270
10271newos6*)
10272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10273 lt_cv_file_magic_cmd=/usr/bin/file
10274 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10275 ;;
10276
10277*nto* | *qnx*)
10278 lt_cv_deplibs_check_method=pass_all
10279 ;;
10280
10281openbsd*)
10282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10284 else
10285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10286 fi
10287 ;;
10288
10289osf3* | osf4* | osf5*)
10290 lt_cv_deplibs_check_method=pass_all
10291 ;;
10292
10293rdos*)
10294 lt_cv_deplibs_check_method=pass_all
10295 ;;
10296
10297solaris*)
10298 lt_cv_deplibs_check_method=pass_all
10299 ;;
10300
10301sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10302 lt_cv_deplibs_check_method=pass_all
10303 ;;
10304
10305sysv4 | sysv4.3*)
10306 case $host_vendor in
10307 motorola)
10308 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]'
10309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10310 ;;
10311 ncr)
10312 lt_cv_deplibs_check_method=pass_all
10313 ;;
10314 sequent)
10315 lt_cv_file_magic_cmd='/bin/file'
10316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10317 ;;
10318 sni)
10319 lt_cv_file_magic_cmd='/bin/file'
10320 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10321 lt_cv_file_magic_test_file=/lib/libc.so
10322 ;;
10323 siemens)
10324 lt_cv_deplibs_check_method=pass_all
10325 ;;
10326 pc)
10327 lt_cv_deplibs_check_method=pass_all
10328 ;;
10329 esac
10330 ;;
10331
10332tpf*)
10333 lt_cv_deplibs_check_method=pass_all
10334 ;;
10335esac
10336
10337fi
10338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10339$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010340
10341file_magic_glob=
10342want_nocaseglob=no
10343if test "$build" = "$host"; then
10344 case $host_os in
10345 mingw* | pw32*)
10346 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10347 want_nocaseglob=yes
10348 else
10349 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10350 fi
10351 ;;
10352 esac
10353fi
10354
cristy73bd4a52010-10-05 11:24:23 +000010355file_magic_cmd=$lt_cv_file_magic_cmd
10356deplibs_check_method=$lt_cv_deplibs_check_method
10357test -z "$deplibs_check_method" && deplibs_check_method=unknown
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
cristyda16f162011-02-19 23:52:17 +000010370
10371
10372
10373
10374
10375
10376
10377
10378
10379
cristy73bd4a52010-10-05 11:24:23 +000010380if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010381 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10382set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010385if ${ac_cv_prog_DLLTOOL+:} false; then :
10386 $as_echo_n "(cached) " >&6
10387else
10388 if test -n "$DLLTOOL"; then
10389 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10390else
10391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392for as_dir in $PATH
10393do
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10398 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10400 break 2
10401 fi
10402done
10403 done
10404IFS=$as_save_IFS
10405
10406fi
10407fi
10408DLLTOOL=$ac_cv_prog_DLLTOOL
10409if test -n "$DLLTOOL"; then
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10411$as_echo "$DLLTOOL" >&6; }
10412else
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414$as_echo "no" >&6; }
10415fi
10416
10417
10418fi
10419if test -z "$ac_cv_prog_DLLTOOL"; then
10420 ac_ct_DLLTOOL=$DLLTOOL
10421 # Extract the first word of "dlltool", so it can be a program name with args.
10422set dummy dlltool; ac_word=$2
10423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10424$as_echo_n "checking for $ac_word... " >&6; }
10425if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10426 $as_echo_n "(cached) " >&6
10427else
10428 if test -n "$ac_ct_DLLTOOL"; then
10429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10430else
10431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10432for as_dir in $PATH
10433do
10434 IFS=$as_save_IFS
10435 test -z "$as_dir" && as_dir=.
10436 for ac_exec_ext in '' $ac_executable_extensions; do
10437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10438 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10440 break 2
10441 fi
10442done
10443 done
10444IFS=$as_save_IFS
10445
10446fi
10447fi
10448ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10449if test -n "$ac_ct_DLLTOOL"; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10451$as_echo "$ac_ct_DLLTOOL" >&6; }
10452else
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454$as_echo "no" >&6; }
10455fi
10456
10457 if test "x$ac_ct_DLLTOOL" = x; then
10458 DLLTOOL="false"
10459 else
10460 case $cross_compiling:$ac_tool_warned in
10461yes:)
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10464ac_tool_warned=yes ;;
10465esac
10466 DLLTOOL=$ac_ct_DLLTOOL
10467 fi
10468else
10469 DLLTOOL="$ac_cv_prog_DLLTOOL"
10470fi
10471
10472test -z "$DLLTOOL" && DLLTOOL=dlltool
10473
10474
10475
10476
10477
10478
10479
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10481$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10482if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10483 $as_echo_n "(cached) " >&6
10484else
10485 lt_cv_sharedlib_from_linklib_cmd='unknown'
10486
10487case $host_os in
10488cygwin* | mingw* | pw32* | cegcc*)
10489 # two different shell functions defined in ltmain.sh
10490 # decide which to use based on capabilities of $DLLTOOL
10491 case `$DLLTOOL --help 2>&1` in
10492 *--identify-strict*)
10493 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10494 ;;
10495 *)
10496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10497 ;;
10498 esac
10499 ;;
10500*)
10501 # fallback: assume linklib IS sharedlib
10502 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10503 ;;
10504esac
10505
10506fi
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10508$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10509sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10510test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10511
10512
10513
10514
10515
10516
10517
10518if test -n "$ac_tool_prefix"; then
10519 for ac_prog in ar
10520 do
10521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10522set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524$as_echo_n "checking for $ac_word... " >&6; }
10525if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010526 $as_echo_n "(cached) " >&6
10527else
10528 if test -n "$AR"; then
10529 ac_cv_prog_AR="$AR" # Let the user override the test.
10530else
10531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532for as_dir in $PATH
10533do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 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 +000010538 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542done
10543 done
10544IFS=$as_save_IFS
10545
10546fi
10547fi
10548AR=$ac_cv_prog_AR
10549if test -n "$AR"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10551$as_echo "$AR" >&6; }
10552else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554$as_echo "no" >&6; }
10555fi
10556
10557
cristyda16f162011-02-19 23:52:17 +000010558 test -n "$AR" && break
10559 done
cristy73bd4a52010-10-05 11:24:23 +000010560fi
cristyda16f162011-02-19 23:52:17 +000010561if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010562 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010563 for ac_prog in ar
10564do
10565 # Extract the first word of "$ac_prog", so it can be a program name with args.
10566set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010569if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010570 $as_echo_n "(cached) " >&6
10571else
10572 if test -n "$ac_ct_AR"; then
10573 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10574else
10575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576for as_dir in $PATH
10577do
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 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 +000010582 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584 break 2
10585 fi
10586done
10587 done
10588IFS=$as_save_IFS
10589
10590fi
10591fi
10592ac_ct_AR=$ac_cv_prog_ac_ct_AR
10593if test -n "$ac_ct_AR"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10595$as_echo "$ac_ct_AR" >&6; }
10596else
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598$as_echo "no" >&6; }
10599fi
10600
cristyda16f162011-02-19 23:52:17 +000010601
10602 test -n "$ac_ct_AR" && break
10603done
10604
cristy73bd4a52010-10-05 11:24:23 +000010605 if test "x$ac_ct_AR" = x; then
10606 AR="false"
10607 else
10608 case $cross_compiling:$ac_tool_warned in
10609yes:)
10610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10612ac_tool_warned=yes ;;
10613esac
10614 AR=$ac_ct_AR
10615 fi
cristy73bd4a52010-10-05 11:24:23 +000010616fi
10617
cristyda16f162011-02-19 23:52:17 +000010618: ${AR=ar}
10619: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
cristyda16f162011-02-19 23:52:17 +000010631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10632$as_echo_n "checking for archiver @FILE support... " >&6; }
10633if ${lt_cv_ar_at_file+:} false; then :
10634 $as_echo_n "(cached) " >&6
10635else
10636 lt_cv_ar_at_file=no
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638/* end confdefs.h. */
10639
10640int
10641main ()
10642{
10643
10644 ;
10645 return 0;
10646}
10647_ACEOF
10648if ac_fn_c_try_compile "$LINENO"; then :
10649 echo conftest.$ac_objext > conftest.lst
10650 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10652 (eval $lt_ar_try) 2>&5
10653 ac_status=$?
10654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10655 test $ac_status = 0; }
10656 if test "$ac_status" -eq 0; then
10657 # Ensure the archiver fails upon bogus file names.
10658 rm -f conftest.$ac_objext libconftest.a
10659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10660 (eval $lt_ar_try) 2>&5
10661 ac_status=$?
10662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10663 test $ac_status = 0; }
10664 if test "$ac_status" -ne 0; then
10665 lt_cv_ar_at_file=@
10666 fi
10667 fi
10668 rm -f conftest.* libconftest.a
10669
10670fi
10671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672
10673fi
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10675$as_echo "$lt_cv_ar_at_file" >&6; }
10676
10677if test "x$lt_cv_ar_at_file" = xno; then
10678 archiver_list_spec=
10679else
10680 archiver_list_spec=$lt_cv_ar_at_file
10681fi
10682
10683
10684
10685
10686
10687
10688
cristy73bd4a52010-10-05 11:24:23 +000010689if test -n "$ac_tool_prefix"; then
10690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10691set dummy ${ac_tool_prefix}strip; ac_word=$2
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010694if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010695 $as_echo_n "(cached) " >&6
10696else
10697 if test -n "$STRIP"; then
10698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10699else
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709 break 2
10710 fi
10711done
10712 done
10713IFS=$as_save_IFS
10714
10715fi
10716fi
10717STRIP=$ac_cv_prog_STRIP
10718if test -n "$STRIP"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10720$as_echo "$STRIP" >&6; }
10721else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
10724fi
10725
10726
10727fi
10728if test -z "$ac_cv_prog_STRIP"; then
10729 ac_ct_STRIP=$STRIP
10730 # Extract the first word of "strip", so it can be a program name with args.
10731set dummy strip; ac_word=$2
10732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010734if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010735 $as_echo_n "(cached) " >&6
10736else
10737 if test -n "$ac_ct_STRIP"; then
10738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10739else
10740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741for as_dir in $PATH
10742do
10743 IFS=$as_save_IFS
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10747 ac_cv_prog_ac_ct_STRIP="strip"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 break 2
10750 fi
10751done
10752 done
10753IFS=$as_save_IFS
10754
10755fi
10756fi
10757ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10758if test -n "$ac_ct_STRIP"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10760$as_echo "$ac_ct_STRIP" >&6; }
10761else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763$as_echo "no" >&6; }
10764fi
10765
10766 if test "x$ac_ct_STRIP" = x; then
10767 STRIP=":"
10768 else
10769 case $cross_compiling:$ac_tool_warned in
10770yes:)
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10773ac_tool_warned=yes ;;
10774esac
10775 STRIP=$ac_ct_STRIP
10776 fi
10777else
10778 STRIP="$ac_cv_prog_STRIP"
10779fi
10780
10781test -z "$STRIP" && STRIP=:
10782
10783
10784
10785
10786
10787
10788if test -n "$ac_tool_prefix"; then
10789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10790set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010793if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010794 $as_echo_n "(cached) " >&6
10795else
10796 if test -n "$RANLIB"; then
10797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10798else
10799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800for as_dir in $PATH
10801do
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 break 2
10809 fi
10810done
10811 done
10812IFS=$as_save_IFS
10813
10814fi
10815fi
10816RANLIB=$ac_cv_prog_RANLIB
10817if test -n "$RANLIB"; then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10819$as_echo "$RANLIB" >&6; }
10820else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822$as_echo "no" >&6; }
10823fi
10824
10825
10826fi
10827if test -z "$ac_cv_prog_RANLIB"; then
10828 ac_ct_RANLIB=$RANLIB
10829 # Extract the first word of "ranlib", so it can be a program name with args.
10830set dummy ranlib; ac_word=$2
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010833if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010834 $as_echo_n "(cached) " >&6
10835else
10836 if test -n "$ac_ct_RANLIB"; then
10837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10838else
10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846 ac_cv_prog_ac_ct_RANLIB="ranlib"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850done
10851 done
10852IFS=$as_save_IFS
10853
10854fi
10855fi
10856ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10857if test -n "$ac_ct_RANLIB"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10859$as_echo "$ac_ct_RANLIB" >&6; }
10860else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862$as_echo "no" >&6; }
10863fi
10864
10865 if test "x$ac_ct_RANLIB" = x; then
10866 RANLIB=":"
10867 else
10868 case $cross_compiling:$ac_tool_warned in
10869yes:)
10870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10872ac_tool_warned=yes ;;
10873esac
10874 RANLIB=$ac_ct_RANLIB
10875 fi
10876else
10877 RANLIB="$ac_cv_prog_RANLIB"
10878fi
10879
10880test -z "$RANLIB" && RANLIB=:
10881
10882
10883
10884
10885
10886
10887# Determine commands to create old-style static archives.
10888old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10889old_postinstall_cmds='chmod 644 $oldlib'
10890old_postuninstall_cmds=
10891
10892if test -n "$RANLIB"; then
10893 case $host_os in
10894 openbsd*)
10895 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10896 ;;
10897 *)
10898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10899 ;;
10900 esac
10901 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10902fi
10903
cristy0c60a692010-11-04 01:09:47 +000010904case $host_os in
10905 darwin*)
10906 lock_old_archive_extraction=yes ;;
10907 *)
10908 lock_old_archive_extraction=no ;;
10909esac
10910
10911
10912
10913
10914
10915
cristy73bd4a52010-10-05 11:24:23 +000010916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949# If no C compiler was specified, use CC.
10950LTCC=${LTCC-"$CC"}
10951
10952# If no C compiler flags were specified, use CFLAGS.
10953LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10954
10955# Allow CC to be a program name with arguments.
10956compiler=$CC
10957
10958
10959# Check for command to grab the raw symbol name followed by C symbol from nm.
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10961$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010962if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010963 $as_echo_n "(cached) " >&6
10964else
10965
10966# These are sane defaults that work on at least a few old systems.
10967# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10968
10969# Character class describing NM global symbol codes.
10970symcode='[BCDEGRST]'
10971
10972# Regexp to match symbols that can be accessed directly from C.
10973sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10974
10975# Define system-specific variables.
10976case $host_os in
10977aix*)
10978 symcode='[BCDT]'
10979 ;;
10980cygwin* | mingw* | pw32* | cegcc*)
10981 symcode='[ABCDGISTW]'
10982 ;;
10983hpux*)
10984 if test "$host_cpu" = ia64; then
10985 symcode='[ABCDEGRST]'
10986 fi
10987 ;;
10988irix* | nonstopux*)
10989 symcode='[BCDEGRST]'
10990 ;;
10991osf*)
10992 symcode='[BCDEGQRST]'
10993 ;;
10994solaris*)
10995 symcode='[BDRT]'
10996 ;;
10997sco3.2v5*)
10998 symcode='[DT]'
10999 ;;
11000sysv4.2uw2*)
11001 symcode='[DT]'
11002 ;;
11003sysv5* | sco5v6* | unixware* | OpenUNIX*)
11004 symcode='[ABDT]'
11005 ;;
11006sysv4)
11007 symcode='[DFNSTU]'
11008 ;;
11009esac
11010
11011# If we're using GNU nm, then use its standard symbol codes.
11012case `$NM -V 2>&1` in
11013*GNU* | *'with BFD'*)
11014 symcode='[ABCDGIRSTW]' ;;
11015esac
11016
11017# Transform an extracted symbol line into a proper C declaration.
11018# Some systems (esp. on ia64) link data and code symbols differently,
11019# so use this general approach.
11020lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11021
11022# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011023lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11024lt_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 +000011025
11026# Handle CRLF in mingw tool chain
11027opt_cr=
11028case $build_os in
11029mingw*)
11030 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11031 ;;
11032esac
11033
11034# Try without a prefix underscore, then with it.
11035for ac_symprfx in "" "_"; do
11036
11037 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11038 symxfrm="\\1 $ac_symprfx\\2 \\2"
11039
11040 # Write the raw and C identifiers.
11041 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11042 # Fake it for dumpbin and say T for any non-static function
11043 # and D for any global variable.
11044 # Also find C++ and __fastcall symbols from MSVC++,
11045 # which start with @ or ?.
11046 lt_cv_sys_global_symbol_pipe="$AWK '"\
11047" {last_section=section; section=\$ 3};"\
11048" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11049" \$ 0!~/External *\|/{next};"\
11050" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11051" {if(hide[section]) next};"\
11052" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11053" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11054" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11055" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11056" ' prfx=^$ac_symprfx"
11057 else
11058 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11059 fi
cristyda16f162011-02-19 23:52:17 +000011060 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011061
11062 # Check to see that the pipe works correctly.
11063 pipe_works=no
11064
11065 rm -f conftest*
11066 cat > conftest.$ac_ext <<_LT_EOF
11067#ifdef __cplusplus
11068extern "C" {
11069#endif
11070char nm_test_var;
11071void nm_test_func(void);
11072void nm_test_func(void){}
11073#ifdef __cplusplus
11074}
11075#endif
11076int main(){nm_test_var='a';nm_test_func();return(0);}
11077_LT_EOF
11078
11079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11080 (eval $ac_compile) 2>&5
11081 ac_status=$?
11082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11083 test $ac_status = 0; }; then
11084 # Now try to grab the symbols.
11085 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11087 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011088 ac_status=$?
11089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11090 test $ac_status = 0; } && test -s "$nlist"; then
11091 # Try sorting and uniquifying the output.
11092 if sort "$nlist" | uniq > "$nlist"T; then
11093 mv -f "$nlist"T "$nlist"
11094 else
11095 rm -f "$nlist"T
11096 fi
11097
11098 # Make sure that we snagged all the symbols we need.
11099 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11100 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11101 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011102/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11103#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11104/* DATA imports from DLLs on WIN32 con't be const, because runtime
11105 relocations are performed -- see ld's documentation on pseudo-relocs. */
11106# define LT_DLSYM_CONST
11107#elif defined(__osf__)
11108/* This system does not cope well with relocations in const data. */
11109# define LT_DLSYM_CONST
11110#else
11111# define LT_DLSYM_CONST const
11112#endif
11113
cristy73bd4a52010-10-05 11:24:23 +000011114#ifdef __cplusplus
11115extern "C" {
11116#endif
11117
11118_LT_EOF
11119 # Now generate the symbol file.
11120 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11121
11122 cat <<_LT_EOF >> conftest.$ac_ext
11123
11124/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011125LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011126 const char *name;
11127 void *address;
11128}
11129lt__PROGRAM__LTX_preloaded_symbols[] =
11130{
11131 { "@PROGRAM@", (void *) 0 },
11132_LT_EOF
11133 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11134 cat <<\_LT_EOF >> conftest.$ac_ext
11135 {0, (void *) 0}
11136};
11137
11138/* This works around a problem in FreeBSD linker */
11139#ifdef FREEBSD_WORKAROUND
11140static const void *lt_preloaded_setup() {
11141 return lt__PROGRAM__LTX_preloaded_symbols;
11142}
11143#endif
11144
11145#ifdef __cplusplus
11146}
11147#endif
11148_LT_EOF
11149 # Now try linking the two files.
11150 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011151 lt_globsym_save_LIBS=$LIBS
11152 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011153 LIBS="conftstm.$ac_objext"
11154 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11156 (eval $ac_link) 2>&5
11157 ac_status=$?
11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11160 pipe_works=yes
11161 fi
cristyda16f162011-02-19 23:52:17 +000011162 LIBS=$lt_globsym_save_LIBS
11163 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011164 else
11165 echo "cannot find nm_test_func in $nlist" >&5
11166 fi
11167 else
11168 echo "cannot find nm_test_var in $nlist" >&5
11169 fi
11170 else
11171 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11172 fi
11173 else
11174 echo "$progname: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 fi
11177 rm -rf conftest* conftst*
11178
11179 # Do not use the global_symbol_pipe unless it works.
11180 if test "$pipe_works" = yes; then
11181 break
11182 else
11183 lt_cv_sys_global_symbol_pipe=
11184 fi
11185done
11186
11187fi
11188
11189if test -z "$lt_cv_sys_global_symbol_pipe"; then
11190 lt_cv_sys_global_symbol_to_cdecl=
11191fi
11192if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11194$as_echo "failed" >&6; }
11195else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11197$as_echo "ok" >&6; }
11198fi
11199
cristyda16f162011-02-19 23:52:17 +000011200# Response file support.
11201if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11202 nm_file_list_spec='@'
11203elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11204 nm_file_list_spec='@'
11205fi
cristy73bd4a52010-10-05 11:24:23 +000011206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
cristyda16f162011-02-19 23:52:17 +000011227
11228
11229
11230
11231
11232
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11234$as_echo_n "checking for sysroot... " >&6; }
11235
11236# Check whether --with-sysroot was given.
11237if test "${with_sysroot+set}" = set; then :
11238 withval=$with_sysroot;
11239else
11240 with_sysroot=no
11241fi
11242
11243
11244lt_sysroot=
11245case ${with_sysroot} in #(
11246 yes)
11247 if test "$GCC" = yes; then
11248 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11249 fi
11250 ;; #(
11251 /*)
11252 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11253 ;; #(
11254 no|'')
11255 ;; #(
11256 *)
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11258$as_echo "${with_sysroot}" >&6; }
11259 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11260 ;;
11261esac
11262
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11264$as_echo "${lt_sysroot:-no}" >&6; }
11265
11266
11267
11268
11269
cristy73bd4a52010-10-05 11:24:23 +000011270# Check whether --enable-libtool-lock was given.
11271if test "${enable_libtool_lock+set}" = set; then :
11272 enableval=$enable_libtool_lock;
11273fi
11274
11275test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11276
11277# Some flags need to be propagated to the compiler or linker for good
11278# libtool support.
11279case $host in
11280ia64-*-hpux*)
11281 # Find out which ABI we are using.
11282 echo 'int i;' > conftest.$ac_ext
11283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11284 (eval $ac_compile) 2>&5
11285 ac_status=$?
11286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287 test $ac_status = 0; }; then
11288 case `/usr/bin/file conftest.$ac_objext` in
11289 *ELF-32*)
11290 HPUX_IA64_MODE="32"
11291 ;;
11292 *ELF-64*)
11293 HPUX_IA64_MODE="64"
11294 ;;
11295 esac
11296 fi
11297 rm -rf conftest*
11298 ;;
11299*-*-irix6*)
11300 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011301 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11303 (eval $ac_compile) 2>&5
11304 ac_status=$?
11305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11306 test $ac_status = 0; }; then
11307 if test "$lt_cv_prog_gnu_ld" = yes; then
11308 case `/usr/bin/file conftest.$ac_objext` in
11309 *32-bit*)
11310 LD="${LD-ld} -melf32bsmip"
11311 ;;
11312 *N32*)
11313 LD="${LD-ld} -melf32bmipn32"
11314 ;;
11315 *64-bit*)
11316 LD="${LD-ld} -melf64bmip"
11317 ;;
11318 esac
11319 else
11320 case `/usr/bin/file conftest.$ac_objext` in
11321 *32-bit*)
11322 LD="${LD-ld} -32"
11323 ;;
11324 *N32*)
11325 LD="${LD-ld} -n32"
11326 ;;
11327 *64-bit*)
11328 LD="${LD-ld} -64"
11329 ;;
11330 esac
11331 fi
11332 fi
11333 rm -rf conftest*
11334 ;;
11335
11336x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11337s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11338 # Find out which ABI we are using.
11339 echo 'int i;' > conftest.$ac_ext
11340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11341 (eval $ac_compile) 2>&5
11342 ac_status=$?
11343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11344 test $ac_status = 0; }; then
11345 case `/usr/bin/file conftest.o` in
11346 *32-bit*)
11347 case $host in
11348 x86_64-*kfreebsd*-gnu)
11349 LD="${LD-ld} -m elf_i386_fbsd"
11350 ;;
11351 x86_64-*linux*)
11352 LD="${LD-ld} -m elf_i386"
11353 ;;
11354 ppc64-*linux*|powerpc64-*linux*)
11355 LD="${LD-ld} -m elf32ppclinux"
11356 ;;
11357 s390x-*linux*)
11358 LD="${LD-ld} -m elf_s390"
11359 ;;
11360 sparc64-*linux*)
11361 LD="${LD-ld} -m elf32_sparc"
11362 ;;
11363 esac
11364 ;;
11365 *64-bit*)
11366 case $host in
11367 x86_64-*kfreebsd*-gnu)
11368 LD="${LD-ld} -m elf_x86_64_fbsd"
11369 ;;
11370 x86_64-*linux*)
11371 LD="${LD-ld} -m elf_x86_64"
11372 ;;
11373 ppc*-*linux*|powerpc*-*linux*)
11374 LD="${LD-ld} -m elf64ppc"
11375 ;;
11376 s390*-*linux*|s390*-*tpf*)
11377 LD="${LD-ld} -m elf64_s390"
11378 ;;
11379 sparc*-*linux*)
11380 LD="${LD-ld} -m elf64_sparc"
11381 ;;
11382 esac
11383 ;;
11384 esac
11385 fi
11386 rm -rf conftest*
11387 ;;
11388
11389*-*-sco3.2v5*)
11390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11391 SAVE_CFLAGS="$CFLAGS"
11392 CFLAGS="$CFLAGS -belf"
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11394$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011395if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011396 $as_echo_n "(cached) " >&6
11397else
11398 ac_ext=c
11399ac_cpp='$CPP $CPPFLAGS'
11400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11402ac_compiler_gnu=$ac_cv_c_compiler_gnu
11403
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405/* end confdefs.h. */
11406
11407int
11408main ()
11409{
11410
11411 ;
11412 return 0;
11413}
11414_ACEOF
11415if ac_fn_c_try_link "$LINENO"; then :
11416 lt_cv_cc_needs_belf=yes
11417else
11418 lt_cv_cc_needs_belf=no
11419fi
11420rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422 ac_ext=c
11423ac_cpp='$CPP $CPPFLAGS'
11424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426ac_compiler_gnu=$ac_cv_c_compiler_gnu
11427
11428fi
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11430$as_echo "$lt_cv_cc_needs_belf" >&6; }
11431 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11433 CFLAGS="$SAVE_CFLAGS"
11434 fi
11435 ;;
11436sparc*-*solaris*)
11437 # Find out which ABI we are using.
11438 echo 'int i;' > conftest.$ac_ext
11439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11440 (eval $ac_compile) 2>&5
11441 ac_status=$?
11442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11443 test $ac_status = 0; }; then
11444 case `/usr/bin/file conftest.o` in
11445 *64-bit*)
11446 case $lt_cv_prog_gnu_ld in
11447 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11448 *)
11449 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11450 LD="${LD-ld} -64"
11451 fi
11452 ;;
11453 esac
11454 ;;
11455 esac
11456 fi
11457 rm -rf conftest*
11458 ;;
11459esac
11460
11461need_locks="$enable_libtool_lock"
11462
cristyda16f162011-02-19 23:52:17 +000011463if test -n "$ac_tool_prefix"; then
11464 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11465set dummy ${ac_tool_prefix}mt; ac_word=$2
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467$as_echo_n "checking for $ac_word... " >&6; }
11468if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470else
11471 if test -n "$MANIFEST_TOOL"; then
11472 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11473else
11474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475for as_dir in $PATH
11476do
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 break 2
11484 fi
11485done
11486 done
11487IFS=$as_save_IFS
11488
11489fi
11490fi
11491MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11492if test -n "$MANIFEST_TOOL"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11494$as_echo "$MANIFEST_TOOL" >&6; }
11495else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497$as_echo "no" >&6; }
11498fi
11499
11500
11501fi
11502if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11503 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11504 # Extract the first word of "mt", so it can be a program name with args.
11505set dummy mt; ac_word=$2
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507$as_echo_n "checking for $ac_word... " >&6; }
11508if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510else
11511 if test -n "$ac_ct_MANIFEST_TOOL"; then
11512 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11513else
11514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515for as_dir in $PATH
11516do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11524 fi
11525done
11526 done
11527IFS=$as_save_IFS
11528
11529fi
11530fi
11531ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11532if test -n "$ac_ct_MANIFEST_TOOL"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11534$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11535else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537$as_echo "no" >&6; }
11538fi
11539
11540 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11541 MANIFEST_TOOL=":"
11542 else
11543 case $cross_compiling:$ac_tool_warned in
11544yes:)
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11547ac_tool_warned=yes ;;
11548esac
11549 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11550 fi
11551else
11552 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11553fi
11554
11555test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11557$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11558if ${lt_cv_path_mainfest_tool+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560else
11561 lt_cv_path_mainfest_tool=no
11562 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11563 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11564 cat conftest.err >&5
11565 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11566 lt_cv_path_mainfest_tool=yes
11567 fi
11568 rm -f conftest*
11569fi
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11571$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11572if test "x$lt_cv_path_mainfest_tool" != xyes; then
11573 MANIFEST_TOOL=:
11574fi
11575
11576
11577
11578
11579
cristy73bd4a52010-10-05 11:24:23 +000011580
11581 case $host_os in
11582 rhapsody* | darwin*)
11583 if test -n "$ac_tool_prefix"; then
11584 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11585set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011588if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011589 $as_echo_n "(cached) " >&6
11590else
11591 if test -n "$DSYMUTIL"; then
11592 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11593else
11594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595for as_dir in $PATH
11596do
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11601 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 break 2
11604 fi
11605done
11606 done
11607IFS=$as_save_IFS
11608
11609fi
11610fi
11611DSYMUTIL=$ac_cv_prog_DSYMUTIL
11612if test -n "$DSYMUTIL"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11614$as_echo "$DSYMUTIL" >&6; }
11615else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617$as_echo "no" >&6; }
11618fi
11619
11620
11621fi
11622if test -z "$ac_cv_prog_DSYMUTIL"; then
11623 ac_ct_DSYMUTIL=$DSYMUTIL
11624 # Extract the first word of "dsymutil", so it can be a program name with args.
11625set dummy dsymutil; ac_word=$2
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011628if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011629 $as_echo_n "(cached) " >&6
11630else
11631 if test -n "$ac_ct_DSYMUTIL"; then
11632 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11633else
11634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635for as_dir in $PATH
11636do
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11644 fi
11645done
11646 done
11647IFS=$as_save_IFS
11648
11649fi
11650fi
11651ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11652if test -n "$ac_ct_DSYMUTIL"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11654$as_echo "$ac_ct_DSYMUTIL" >&6; }
11655else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
11658fi
11659
11660 if test "x$ac_ct_DSYMUTIL" = x; then
11661 DSYMUTIL=":"
11662 else
11663 case $cross_compiling:$ac_tool_warned in
11664yes:)
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11667ac_tool_warned=yes ;;
11668esac
11669 DSYMUTIL=$ac_ct_DSYMUTIL
11670 fi
11671else
11672 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11673fi
11674
11675 if test -n "$ac_tool_prefix"; then
11676 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11677set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011680if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011681 $as_echo_n "(cached) " >&6
11682else
11683 if test -n "$NMEDIT"; then
11684 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11685else
11686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687for as_dir in $PATH
11688do
11689 IFS=$as_save_IFS
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11693 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11695 break 2
11696 fi
11697done
11698 done
11699IFS=$as_save_IFS
11700
11701fi
11702fi
11703NMEDIT=$ac_cv_prog_NMEDIT
11704if test -n "$NMEDIT"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11706$as_echo "$NMEDIT" >&6; }
11707else
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709$as_echo "no" >&6; }
11710fi
11711
11712
11713fi
11714if test -z "$ac_cv_prog_NMEDIT"; then
11715 ac_ct_NMEDIT=$NMEDIT
11716 # Extract the first word of "nmedit", so it can be a program name with args.
11717set dummy nmedit; ac_word=$2
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011720if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011721 $as_echo_n "(cached) " >&6
11722else
11723 if test -n "$ac_ct_NMEDIT"; then
11724 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11725else
11726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727for as_dir in $PATH
11728do
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735 break 2
11736 fi
11737done
11738 done
11739IFS=$as_save_IFS
11740
11741fi
11742fi
11743ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11744if test -n "$ac_ct_NMEDIT"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11746$as_echo "$ac_ct_NMEDIT" >&6; }
11747else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
11750fi
11751
11752 if test "x$ac_ct_NMEDIT" = x; then
11753 NMEDIT=":"
11754 else
11755 case $cross_compiling:$ac_tool_warned in
11756yes:)
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11759ac_tool_warned=yes ;;
11760esac
11761 NMEDIT=$ac_ct_NMEDIT
11762 fi
11763else
11764 NMEDIT="$ac_cv_prog_NMEDIT"
11765fi
11766
11767 if test -n "$ac_tool_prefix"; then
11768 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11769set dummy ${ac_tool_prefix}lipo; ac_word=$2
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11771$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011772if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011773 $as_echo_n "(cached) " >&6
11774else
11775 if test -n "$LIPO"; then
11776 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11777else
11778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779for as_dir in $PATH
11780do
11781 IFS=$as_save_IFS
11782 test -z "$as_dir" && as_dir=.
11783 for ac_exec_ext in '' $ac_executable_extensions; do
11784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11785 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11787 break 2
11788 fi
11789done
11790 done
11791IFS=$as_save_IFS
11792
11793fi
11794fi
11795LIPO=$ac_cv_prog_LIPO
11796if test -n "$LIPO"; then
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11798$as_echo "$LIPO" >&6; }
11799else
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801$as_echo "no" >&6; }
11802fi
11803
11804
11805fi
11806if test -z "$ac_cv_prog_LIPO"; then
11807 ac_ct_LIPO=$LIPO
11808 # Extract the first word of "lipo", so it can be a program name with args.
11809set dummy lipo; ac_word=$2
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011812if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011813 $as_echo_n "(cached) " >&6
11814else
11815 if test -n "$ac_ct_LIPO"; then
11816 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11817else
11818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819for as_dir in $PATH
11820do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825 ac_cv_prog_ac_ct_LIPO="lipo"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11828 fi
11829done
11830 done
11831IFS=$as_save_IFS
11832
11833fi
11834fi
11835ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11836if test -n "$ac_ct_LIPO"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11838$as_echo "$ac_ct_LIPO" >&6; }
11839else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841$as_echo "no" >&6; }
11842fi
11843
11844 if test "x$ac_ct_LIPO" = x; then
11845 LIPO=":"
11846 else
11847 case $cross_compiling:$ac_tool_warned in
11848yes:)
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11851ac_tool_warned=yes ;;
11852esac
11853 LIPO=$ac_ct_LIPO
11854 fi
11855else
11856 LIPO="$ac_cv_prog_LIPO"
11857fi
11858
11859 if test -n "$ac_tool_prefix"; then
11860 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11861set dummy ${ac_tool_prefix}otool; ac_word=$2
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011864if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011865 $as_echo_n "(cached) " >&6
11866else
11867 if test -n "$OTOOL"; then
11868 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11869else
11870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871for as_dir in $PATH
11872do
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11877 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 break 2
11880 fi
11881done
11882 done
11883IFS=$as_save_IFS
11884
11885fi
11886fi
11887OTOOL=$ac_cv_prog_OTOOL
11888if test -n "$OTOOL"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11890$as_echo "$OTOOL" >&6; }
11891else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893$as_echo "no" >&6; }
11894fi
11895
11896
11897fi
11898if test -z "$ac_cv_prog_OTOOL"; then
11899 ac_ct_OTOOL=$OTOOL
11900 # Extract the first word of "otool", so it can be a program name with args.
11901set dummy otool; ac_word=$2
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011904if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011905 $as_echo_n "(cached) " >&6
11906else
11907 if test -n "$ac_ct_OTOOL"; then
11908 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11909else
11910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911for as_dir in $PATH
11912do
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917 ac_cv_prog_ac_ct_OTOOL="otool"
11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919 break 2
11920 fi
11921done
11922 done
11923IFS=$as_save_IFS
11924
11925fi
11926fi
11927ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11928if test -n "$ac_ct_OTOOL"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11930$as_echo "$ac_ct_OTOOL" >&6; }
11931else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
11934fi
11935
11936 if test "x$ac_ct_OTOOL" = x; then
11937 OTOOL=":"
11938 else
11939 case $cross_compiling:$ac_tool_warned in
11940yes:)
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11943ac_tool_warned=yes ;;
11944esac
11945 OTOOL=$ac_ct_OTOOL
11946 fi
11947else
11948 OTOOL="$ac_cv_prog_OTOOL"
11949fi
11950
11951 if test -n "$ac_tool_prefix"; then
11952 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11953set dummy ${ac_tool_prefix}otool64; ac_word=$2
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011956if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011957 $as_echo_n "(cached) " >&6
11958else
11959 if test -n "$OTOOL64"; then
11960 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11961else
11962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963for as_dir in $PATH
11964do
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971 break 2
11972 fi
11973done
11974 done
11975IFS=$as_save_IFS
11976
11977fi
11978fi
11979OTOOL64=$ac_cv_prog_OTOOL64
11980if test -n "$OTOOL64"; then
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11982$as_echo "$OTOOL64" >&6; }
11983else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
11986fi
11987
11988
11989fi
11990if test -z "$ac_cv_prog_OTOOL64"; then
11991 ac_ct_OTOOL64=$OTOOL64
11992 # Extract the first word of "otool64", so it can be a program name with args.
11993set dummy otool64; ac_word=$2
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011996if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011997 $as_echo_n "(cached) " >&6
11998else
11999 if test -n "$ac_ct_OTOOL64"; then
12000 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12001else
12002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003for as_dir in $PATH
12004do
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_prog_ac_ct_OTOOL64="otool64"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12012 fi
12013done
12014 done
12015IFS=$as_save_IFS
12016
12017fi
12018fi
12019ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12020if test -n "$ac_ct_OTOOL64"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12022$as_echo "$ac_ct_OTOOL64" >&6; }
12023else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025$as_echo "no" >&6; }
12026fi
12027
12028 if test "x$ac_ct_OTOOL64" = x; then
12029 OTOOL64=":"
12030 else
12031 case $cross_compiling:$ac_tool_warned in
12032yes:)
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12035ac_tool_warned=yes ;;
12036esac
12037 OTOOL64=$ac_ct_OTOOL64
12038 fi
12039else
12040 OTOOL64="$ac_cv_prog_OTOOL64"
12041fi
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12070$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012071if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012072 $as_echo_n "(cached) " >&6
12073else
12074 lt_cv_apple_cc_single_mod=no
12075 if test -z "${LT_MULTI_MODULE}"; then
12076 # By default we will add the -single_module flag. You can override
12077 # by either setting the environment variable LT_MULTI_MODULE
12078 # non-empty at configure time, or by adding -multi_module to the
12079 # link flags.
12080 rm -rf libconftest.dylib*
12081 echo "int foo(void){return 1;}" > conftest.c
12082 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12083-dynamiclib -Wl,-single_module conftest.c" >&5
12084 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12085 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12086 _lt_result=$?
12087 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12088 lt_cv_apple_cc_single_mod=yes
12089 else
12090 cat conftest.err >&5
12091 fi
12092 rm -rf libconftest.dylib*
12093 rm -f conftest.*
12094 fi
12095fi
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12097$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12099$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012100if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012101 $as_echo_n "(cached) " >&6
12102else
12103 lt_cv_ld_exported_symbols_list=no
12104 save_LDFLAGS=$LDFLAGS
12105 echo "_main" > conftest.sym
12106 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108/* end confdefs.h. */
12109
12110int
12111main ()
12112{
12113
12114 ;
12115 return 0;
12116}
12117_ACEOF
12118if ac_fn_c_try_link "$LINENO"; then :
12119 lt_cv_ld_exported_symbols_list=yes
12120else
12121 lt_cv_ld_exported_symbols_list=no
12122fi
12123rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125 LDFLAGS="$save_LDFLAGS"
12126
12127fi
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12129$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12131$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012132if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012133 $as_echo_n "(cached) " >&6
12134else
12135 lt_cv_ld_force_load=no
12136 cat > conftest.c << _LT_EOF
12137int forced_loaded() { return 2;}
12138_LT_EOF
12139 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12140 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12141 echo "$AR cru libconftest.a conftest.o" >&5
12142 $AR cru libconftest.a conftest.o 2>&5
12143 echo "$RANLIB libconftest.a" >&5
12144 $RANLIB libconftest.a 2>&5
12145 cat > conftest.c << _LT_EOF
12146int main() { return 0;}
12147_LT_EOF
12148 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12149 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12150 _lt_result=$?
12151 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12152 lt_cv_ld_force_load=yes
12153 else
12154 cat conftest.err >&5
12155 fi
12156 rm -f conftest.err libconftest.a conftest conftest.c
12157 rm -rf conftest.dSYM
12158
12159fi
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12161$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012162 case $host_os in
12163 rhapsody* | darwin1.[012])
12164 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12165 darwin1.*)
12166 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12167 darwin*) # darwin 5.x on
12168 # if running on 10.5 or later, the deployment target defaults
12169 # to the OS version, if on x86, and 10.4, the deployment
12170 # target defaults to 10.4. Don't you love it?
12171 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12172 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12173 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12174 10.[012]*)
12175 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12176 10.*)
12177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12178 esac
12179 ;;
12180 esac
12181 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12182 _lt_dar_single_mod='$single_module'
12183 fi
12184 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12185 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12186 else
12187 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12188 fi
cristy0c60a692010-11-04 01:09:47 +000012189 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012190 _lt_dsymutil='~$DSYMUTIL $lib || :'
12191 else
12192 _lt_dsymutil=
12193 fi
12194 ;;
12195 esac
12196
12197for ac_header in dlfcn.h
12198do :
12199 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12200"
cristyda16f162011-02-19 23:52:17 +000012201if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012202 cat >>confdefs.h <<_ACEOF
12203#define HAVE_DLFCN_H 1
12204_ACEOF
12205
12206fi
12207
12208done
12209
12210
12211
cristy73bd4a52010-10-05 11:24:23 +000012212
cristyda16f162011-02-19 23:52:17 +000012213func_stripname_cnf ()
12214{
12215 case ${2} in
12216 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12217 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12218 esac
12219} # func_stripname_cnf
12220
12221
12222
cristy73bd4a52010-10-05 11:24:23 +000012223
12224
12225# Set options
12226enable_win32_dll=yes
12227
12228case $host in
cristy0c60a692010-11-04 01:09:47 +000012229*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012230 if test -n "$ac_tool_prefix"; then
12231 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12232set dummy ${ac_tool_prefix}as; ac_word=$2
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012235if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012236 $as_echo_n "(cached) " >&6
12237else
12238 if test -n "$AS"; then
12239 ac_cv_prog_AS="$AS" # Let the user override the test.
12240else
12241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242for as_dir in $PATH
12243do
12244 IFS=$as_save_IFS
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12248 ac_cv_prog_AS="${ac_tool_prefix}as"
12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250 break 2
12251 fi
12252done
12253 done
12254IFS=$as_save_IFS
12255
12256fi
12257fi
12258AS=$ac_cv_prog_AS
12259if test -n "$AS"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12261$as_echo "$AS" >&6; }
12262else
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264$as_echo "no" >&6; }
12265fi
12266
12267
12268fi
12269if test -z "$ac_cv_prog_AS"; then
12270 ac_ct_AS=$AS
12271 # Extract the first word of "as", so it can be a program name with args.
12272set dummy as; ac_word=$2
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012275if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012276 $as_echo_n "(cached) " >&6
12277else
12278 if test -n "$ac_ct_AS"; then
12279 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12280else
12281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282for as_dir in $PATH
12283do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12288 ac_cv_prog_ac_ct_AS="as"
12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290 break 2
12291 fi
12292done
12293 done
12294IFS=$as_save_IFS
12295
12296fi
12297fi
12298ac_ct_AS=$ac_cv_prog_ac_ct_AS
12299if test -n "$ac_ct_AS"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12301$as_echo "$ac_ct_AS" >&6; }
12302else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
12305fi
12306
12307 if test "x$ac_ct_AS" = x; then
12308 AS="false"
12309 else
12310 case $cross_compiling:$ac_tool_warned in
12311yes:)
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12314ac_tool_warned=yes ;;
12315esac
12316 AS=$ac_ct_AS
12317 fi
12318else
12319 AS="$ac_cv_prog_AS"
12320fi
12321
12322 if test -n "$ac_tool_prefix"; then
12323 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12324set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12326$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012327if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012328 $as_echo_n "(cached) " >&6
12329else
12330 if test -n "$DLLTOOL"; then
12331 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12332else
12333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334for as_dir in $PATH
12335do
12336 IFS=$as_save_IFS
12337 test -z "$as_dir" && as_dir=.
12338 for ac_exec_ext in '' $ac_executable_extensions; do
12339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12340 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342 break 2
12343 fi
12344done
12345 done
12346IFS=$as_save_IFS
12347
12348fi
12349fi
12350DLLTOOL=$ac_cv_prog_DLLTOOL
12351if test -n "$DLLTOOL"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12353$as_echo "$DLLTOOL" >&6; }
12354else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356$as_echo "no" >&6; }
12357fi
12358
12359
12360fi
12361if test -z "$ac_cv_prog_DLLTOOL"; then
12362 ac_ct_DLLTOOL=$DLLTOOL
12363 # Extract the first word of "dlltool", so it can be a program name with args.
12364set dummy dlltool; ac_word=$2
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012367if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012368 $as_echo_n "(cached) " >&6
12369else
12370 if test -n "$ac_ct_DLLTOOL"; then
12371 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12372else
12373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374for as_dir in $PATH
12375do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12383 fi
12384done
12385 done
12386IFS=$as_save_IFS
12387
12388fi
12389fi
12390ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12391if test -n "$ac_ct_DLLTOOL"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12393$as_echo "$ac_ct_DLLTOOL" >&6; }
12394else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
12397fi
12398
12399 if test "x$ac_ct_DLLTOOL" = x; then
12400 DLLTOOL="false"
12401 else
12402 case $cross_compiling:$ac_tool_warned in
12403yes:)
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12406ac_tool_warned=yes ;;
12407esac
12408 DLLTOOL=$ac_ct_DLLTOOL
12409 fi
12410else
12411 DLLTOOL="$ac_cv_prog_DLLTOOL"
12412fi
12413
12414 if test -n "$ac_tool_prefix"; then
12415 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12416set dummy ${ac_tool_prefix}objdump; ac_word=$2
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012419if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012420 $as_echo_n "(cached) " >&6
12421else
12422 if test -n "$OBJDUMP"; then
12423 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12424else
12425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426for as_dir in $PATH
12427do
12428 IFS=$as_save_IFS
12429 test -z "$as_dir" && as_dir=.
12430 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12432 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 break 2
12435 fi
12436done
12437 done
12438IFS=$as_save_IFS
12439
12440fi
12441fi
12442OBJDUMP=$ac_cv_prog_OBJDUMP
12443if test -n "$OBJDUMP"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12445$as_echo "$OBJDUMP" >&6; }
12446else
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448$as_echo "no" >&6; }
12449fi
12450
12451
12452fi
12453if test -z "$ac_cv_prog_OBJDUMP"; then
12454 ac_ct_OBJDUMP=$OBJDUMP
12455 # Extract the first word of "objdump", so it can be a program name with args.
12456set dummy objdump; ac_word=$2
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012459if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012460 $as_echo_n "(cached) " >&6
12461else
12462 if test -n "$ac_ct_OBJDUMP"; then
12463 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12464else
12465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466for as_dir in $PATH
12467do
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12475 fi
12476done
12477 done
12478IFS=$as_save_IFS
12479
12480fi
12481fi
12482ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12483if test -n "$ac_ct_OBJDUMP"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12485$as_echo "$ac_ct_OBJDUMP" >&6; }
12486else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488$as_echo "no" >&6; }
12489fi
12490
12491 if test "x$ac_ct_OBJDUMP" = x; then
12492 OBJDUMP="false"
12493 else
12494 case $cross_compiling:$ac_tool_warned in
12495yes:)
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12498ac_tool_warned=yes ;;
12499esac
12500 OBJDUMP=$ac_ct_OBJDUMP
12501 fi
12502else
12503 OBJDUMP="$ac_cv_prog_OBJDUMP"
12504fi
12505
12506 ;;
12507esac
12508
12509test -z "$AS" && AS=as
12510
12511
12512
12513
12514
12515test -z "$DLLTOOL" && DLLTOOL=dlltool
12516
12517
12518
12519
12520
12521test -z "$OBJDUMP" && OBJDUMP=objdump
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531 # Check whether --enable-shared was given.
12532if test "${enable_shared+set}" = set; then :
12533 enableval=$enable_shared; p=${PACKAGE-default}
12534 case $enableval in
12535 yes) enable_shared=yes ;;
12536 no) enable_shared=no ;;
12537 *)
12538 enable_shared=no
12539 # Look at the argument we got. We use all the common list separators.
12540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12541 for pkg in $enableval; do
12542 IFS="$lt_save_ifs"
12543 if test "X$pkg" = "X$p"; then
12544 enable_shared=yes
12545 fi
12546 done
12547 IFS="$lt_save_ifs"
12548 ;;
12549 esac
12550else
12551 enable_shared=yes
12552fi
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562 # Check whether --enable-static was given.
12563if test "${enable_static+set}" = set; then :
12564 enableval=$enable_static; p=${PACKAGE-default}
12565 case $enableval in
12566 yes) enable_static=yes ;;
12567 no) enable_static=no ;;
12568 *)
12569 enable_static=no
12570 # Look at the argument we got. We use all the common list separators.
12571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12572 for pkg in $enableval; do
12573 IFS="$lt_save_ifs"
12574 if test "X$pkg" = "X$p"; then
12575 enable_static=yes
12576 fi
12577 done
12578 IFS="$lt_save_ifs"
12579 ;;
12580 esac
12581else
12582 enable_static=yes
12583fi
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594# Check whether --with-pic was given.
12595if test "${with_pic+set}" = set; then :
12596 withval=$with_pic; pic_mode="$withval"
12597else
12598 pic_mode=default
12599fi
12600
12601
12602test -z "$pic_mode" && pic_mode=default
12603
12604
12605
12606
12607
12608
12609
12610 # Check whether --enable-fast-install was given.
12611if test "${enable_fast_install+set}" = set; then :
12612 enableval=$enable_fast_install; p=${PACKAGE-default}
12613 case $enableval in
12614 yes) enable_fast_install=yes ;;
12615 no) enable_fast_install=no ;;
12616 *)
12617 enable_fast_install=no
12618 # Look at the argument we got. We use all the common list separators.
12619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12620 for pkg in $enableval; do
12621 IFS="$lt_save_ifs"
12622 if test "X$pkg" = "X$p"; then
12623 enable_fast_install=yes
12624 fi
12625 done
12626 IFS="$lt_save_ifs"
12627 ;;
12628 esac
12629else
12630 enable_fast_install=yes
12631fi
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643# This can be used to rebuild libtool when needed
12644LIBTOOL_DEPS="$ltmain"
12645
12646# Always use our own libtool.
12647LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
cristy0c60a692010-11-04 01:09:47 +000012673
cristy73bd4a52010-10-05 11:24:23 +000012674test -z "$LN_S" && LN_S="ln -s"
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689if test -n "${ZSH_VERSION+set}" ; then
12690 setopt NO_GLOB_SUBST
12691fi
12692
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12694$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012695if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012696 $as_echo_n "(cached) " >&6
12697else
12698 rm -f .libs 2>/dev/null
12699mkdir .libs 2>/dev/null
12700if test -d .libs; then
12701 lt_cv_objdir=.libs
12702else
12703 # MS-DOS does not allow filenames that begin with a dot.
12704 lt_cv_objdir=_libs
12705fi
12706rmdir .libs 2>/dev/null
12707fi
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12709$as_echo "$lt_cv_objdir" >&6; }
12710objdir=$lt_cv_objdir
12711
12712
12713
12714
12715
12716cat >>confdefs.h <<_ACEOF
12717#define LT_OBJDIR "$lt_cv_objdir/"
12718_ACEOF
12719
12720
12721
12722
cristy73bd4a52010-10-05 11:24:23 +000012723case $host_os in
12724aix3*)
12725 # AIX sometimes has problems with the GCC collect2 program. For some
12726 # reason, if we set the COLLECT_NAMES environment variable, the problems
12727 # vanish in a puff of smoke.
12728 if test "X${COLLECT_NAMES+set}" != Xset; then
12729 COLLECT_NAMES=
12730 export COLLECT_NAMES
12731 fi
12732 ;;
12733esac
12734
cristy73bd4a52010-10-05 11:24:23 +000012735# Global variables:
12736ofile=libtool
12737can_build_shared=yes
12738
12739# All known linkers require a `.a' archive for static linking (except MSVC,
12740# which needs '.lib').
12741libext=a
12742
12743with_gnu_ld="$lt_cv_prog_gnu_ld"
12744
12745old_CC="$CC"
12746old_CFLAGS="$CFLAGS"
12747
12748# Set sane defaults for various variables
12749test -z "$CC" && CC=cc
12750test -z "$LTCC" && LTCC=$CC
12751test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12752test -z "$LD" && LD=ld
12753test -z "$ac_objext" && ac_objext=o
12754
12755for cc_temp in $compiler""; do
12756 case $cc_temp in
12757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12759 \-*) ;;
12760 *) break;;
12761 esac
12762done
cristy0c60a692010-11-04 01:09:47 +000012763cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012764
12765
12766# Only perform the check for file, if the check method requires it
12767test -z "$MAGIC_CMD" && MAGIC_CMD=file
12768case $deplibs_check_method in
12769file_magic*)
12770 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12772$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012773if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012774 $as_echo_n "(cached) " >&6
12775else
12776 case $MAGIC_CMD in
12777[\\/*] | ?:[\\/]*)
12778 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12779 ;;
12780*)
12781 lt_save_MAGIC_CMD="$MAGIC_CMD"
12782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12783 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12784 for ac_dir in $ac_dummy; do
12785 IFS="$lt_save_ifs"
12786 test -z "$ac_dir" && ac_dir=.
12787 if test -f $ac_dir/${ac_tool_prefix}file; then
12788 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12789 if test -n "$file_magic_test_file"; then
12790 case $deplibs_check_method in
12791 "file_magic "*)
12792 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12794 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12795 $EGREP "$file_magic_regex" > /dev/null; then
12796 :
12797 else
12798 cat <<_LT_EOF 1>&2
12799
12800*** Warning: the command libtool uses to detect shared libraries,
12801*** $file_magic_cmd, produces output that libtool cannot recognize.
12802*** The result is that libtool may fail to recognize shared libraries
12803*** as such. This will affect the creation of libtool libraries that
12804*** depend on shared libraries, but programs linked with such libtool
12805*** libraries will work regardless of this problem. Nevertheless, you
12806*** may want to report the problem to your system manager and/or to
12807*** bug-libtool@gnu.org
12808
12809_LT_EOF
12810 fi ;;
12811 esac
12812 fi
12813 break
12814 fi
12815 done
12816 IFS="$lt_save_ifs"
12817 MAGIC_CMD="$lt_save_MAGIC_CMD"
12818 ;;
12819esac
12820fi
12821
12822MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12823if test -n "$MAGIC_CMD"; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12825$as_echo "$MAGIC_CMD" >&6; }
12826else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828$as_echo "no" >&6; }
12829fi
12830
12831
12832
12833
12834
12835if test -z "$lt_cv_path_MAGIC_CMD"; then
12836 if test -n "$ac_tool_prefix"; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12838$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012839if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012840 $as_echo_n "(cached) " >&6
12841else
12842 case $MAGIC_CMD in
12843[\\/*] | ?:[\\/]*)
12844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12845 ;;
12846*)
12847 lt_save_MAGIC_CMD="$MAGIC_CMD"
12848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12849 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12850 for ac_dir in $ac_dummy; do
12851 IFS="$lt_save_ifs"
12852 test -z "$ac_dir" && ac_dir=.
12853 if test -f $ac_dir/file; then
12854 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12855 if test -n "$file_magic_test_file"; then
12856 case $deplibs_check_method in
12857 "file_magic "*)
12858 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12861 $EGREP "$file_magic_regex" > /dev/null; then
12862 :
12863 else
12864 cat <<_LT_EOF 1>&2
12865
12866*** Warning: the command libtool uses to detect shared libraries,
12867*** $file_magic_cmd, produces output that libtool cannot recognize.
12868*** The result is that libtool may fail to recognize shared libraries
12869*** as such. This will affect the creation of libtool libraries that
12870*** depend on shared libraries, but programs linked with such libtool
12871*** libraries will work regardless of this problem. Nevertheless, you
12872*** may want to report the problem to your system manager and/or to
12873*** bug-libtool@gnu.org
12874
12875_LT_EOF
12876 fi ;;
12877 esac
12878 fi
12879 break
12880 fi
12881 done
12882 IFS="$lt_save_ifs"
12883 MAGIC_CMD="$lt_save_MAGIC_CMD"
12884 ;;
12885esac
12886fi
12887
12888MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12889if test -n "$MAGIC_CMD"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12891$as_echo "$MAGIC_CMD" >&6; }
12892else
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894$as_echo "no" >&6; }
12895fi
12896
12897
12898 else
12899 MAGIC_CMD=:
12900 fi
12901fi
12902
12903 fi
12904 ;;
12905esac
12906
12907# Use C for the default configuration in the libtool script
12908
12909lt_save_CC="$CC"
12910ac_ext=c
12911ac_cpp='$CPP $CPPFLAGS'
12912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12914ac_compiler_gnu=$ac_cv_c_compiler_gnu
12915
12916
12917# Source file extension for C test sources.
12918ac_ext=c
12919
12920# Object file extension for compiled C test sources.
12921objext=o
12922objext=$objext
12923
12924# Code to be used in simple compile tests
12925lt_simple_compile_test_code="int some_variable = 0;"
12926
12927# Code to be used in simple link tests
12928lt_simple_link_test_code='int main(){return(0);}'
12929
12930
12931
12932
12933
12934
12935
12936# If no C compiler was specified, use CC.
12937LTCC=${LTCC-"$CC"}
12938
12939# If no C compiler flags were specified, use CFLAGS.
12940LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12941
12942# Allow CC to be a program name with arguments.
12943compiler=$CC
12944
12945# Save the default compiler, since it gets overwritten when the other
12946# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12947compiler_DEFAULT=$CC
12948
12949# save warnings/boilerplate of simple test code
12950ac_outfile=conftest.$ac_objext
12951echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12952eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12953_lt_compiler_boilerplate=`cat conftest.err`
12954$RM conftest*
12955
12956ac_outfile=conftest.$ac_objext
12957echo "$lt_simple_link_test_code" >conftest.$ac_ext
12958eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12959_lt_linker_boilerplate=`cat conftest.err`
12960$RM -r conftest*
12961
12962
12963## CAVEAT EMPTOR:
12964## There is no encapsulation within the following macros, do not change
12965## the running order or otherwise move them around unless you know exactly
12966## what you are doing...
12967if test -n "$compiler"; then
12968
12969lt_prog_compiler_no_builtin_flag=
12970
12971if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012972 case $cc_basename in
12973 nvcc*)
12974 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12975 *)
12976 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12977 esac
cristy73bd4a52010-10-05 11:24:23 +000012978
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12980$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012981if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012982 $as_echo_n "(cached) " >&6
12983else
12984 lt_cv_prog_compiler_rtti_exceptions=no
12985 ac_outfile=conftest.$ac_objext
12986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12987 lt_compiler_flag="-fno-rtti -fno-exceptions"
12988 # Insert the option either (1) after the last *FLAGS variable, or
12989 # (2) before a word containing "conftest.", or (3) at the end.
12990 # Note that $ac_compile itself does not contain backslashes and begins
12991 # with a dollar sign (not a hyphen), so the echo should work correctly.
12992 # The option is referenced via a variable to avoid confusing sed.
12993 lt_compile=`echo "$ac_compile" | $SED \
12994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12996 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012998 (eval "$lt_compile" 2>conftest.err)
12999 ac_status=$?
13000 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013002 if (exit $ac_status) && test -s "$ac_outfile"; then
13003 # The compiler can only warn and ignore the option if not recognized
13004 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13008 lt_cv_prog_compiler_rtti_exceptions=yes
13009 fi
13010 fi
13011 $RM conftest*
13012
13013fi
13014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13015$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13016
13017if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13018 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13019else
13020 :
13021fi
13022
13023fi
13024
13025
13026
13027
13028
13029
13030 lt_prog_compiler_wl=
13031lt_prog_compiler_pic=
13032lt_prog_compiler_static=
13033
cristy73bd4a52010-10-05 11:24:23 +000013034
13035 if test "$GCC" = yes; then
13036 lt_prog_compiler_wl='-Wl,'
13037 lt_prog_compiler_static='-static'
13038
13039 case $host_os in
13040 aix*)
13041 # All AIX code is PIC.
13042 if test "$host_cpu" = ia64; then
13043 # AIX 5 now supports IA64 processor
13044 lt_prog_compiler_static='-Bstatic'
13045 fi
13046 ;;
13047
13048 amigaos*)
13049 case $host_cpu in
13050 powerpc)
13051 # see comment about AmigaOS4 .so support
13052 lt_prog_compiler_pic='-fPIC'
13053 ;;
13054 m68k)
13055 # FIXME: we need at least 68020 code to build shared libraries, but
13056 # adding the `-m68020' flag to GCC prevents building anything better,
13057 # like `-m68040'.
13058 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13059 ;;
13060 esac
13061 ;;
13062
13063 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13064 # PIC is the default for these OSes.
13065 ;;
13066
13067 mingw* | cygwin* | pw32* | os2* | cegcc*)
13068 # This hack is so that the source file can tell whether it is being
13069 # built for inclusion in a dll (and should export symbols for example).
13070 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13071 # (--disable-auto-import) libraries
13072 lt_prog_compiler_pic='-DDLL_EXPORT'
13073 ;;
13074
13075 darwin* | rhapsody*)
13076 # PIC is the default on this platform
13077 # Common symbols not allowed in MH_DYLIB files
13078 lt_prog_compiler_pic='-fno-common'
13079 ;;
13080
cristy0c60a692010-11-04 01:09:47 +000013081 haiku*)
13082 # PIC is the default for Haiku.
13083 # The "-static" flag exists, but is broken.
13084 lt_prog_compiler_static=
13085 ;;
13086
cristy73bd4a52010-10-05 11:24:23 +000013087 hpux*)
13088 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13089 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13090 # sets the default TLS model and affects inlining.
13091 case $host_cpu in
13092 hppa*64*)
13093 # +Z the default
13094 ;;
13095 *)
13096 lt_prog_compiler_pic='-fPIC'
13097 ;;
13098 esac
13099 ;;
13100
13101 interix[3-9]*)
13102 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13103 # Instead, we relocate shared libraries at runtime.
13104 ;;
13105
13106 msdosdjgpp*)
13107 # Just because we use GCC doesn't mean we suddenly get shared libraries
13108 # on systems that don't support them.
13109 lt_prog_compiler_can_build_shared=no
13110 enable_shared=no
13111 ;;
13112
13113 *nto* | *qnx*)
13114 # QNX uses GNU C++, but need to define -shared option too, otherwise
13115 # it will coredump.
13116 lt_prog_compiler_pic='-fPIC -shared'
13117 ;;
13118
13119 sysv4*MP*)
13120 if test -d /usr/nec; then
13121 lt_prog_compiler_pic=-Kconform_pic
13122 fi
13123 ;;
13124
13125 *)
13126 lt_prog_compiler_pic='-fPIC'
13127 ;;
13128 esac
cristy0c60a692010-11-04 01:09:47 +000013129
13130 case $cc_basename in
13131 nvcc*) # Cuda Compiler Driver 2.2
13132 lt_prog_compiler_wl='-Xlinker '
13133 lt_prog_compiler_pic='-Xcompiler -fPIC'
13134 ;;
13135 esac
cristy73bd4a52010-10-05 11:24:23 +000013136 else
13137 # PORTME Check for flag to pass linker flags through the system compiler.
13138 case $host_os in
13139 aix*)
13140 lt_prog_compiler_wl='-Wl,'
13141 if test "$host_cpu" = ia64; then
13142 # AIX 5 now supports IA64 processor
13143 lt_prog_compiler_static='-Bstatic'
13144 else
13145 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13146 fi
13147 ;;
13148
13149 mingw* | cygwin* | pw32* | os2* | cegcc*)
13150 # This hack is so that the source file can tell whether it is being
13151 # built for inclusion in a dll (and should export symbols for example).
13152 lt_prog_compiler_pic='-DDLL_EXPORT'
13153 ;;
13154
13155 hpux9* | hpux10* | hpux11*)
13156 lt_prog_compiler_wl='-Wl,'
13157 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13158 # not for PA HP-UX.
13159 case $host_cpu in
13160 hppa*64*|ia64*)
13161 # +Z the default
13162 ;;
13163 *)
13164 lt_prog_compiler_pic='+Z'
13165 ;;
13166 esac
13167 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13168 lt_prog_compiler_static='${wl}-a ${wl}archive'
13169 ;;
13170
13171 irix5* | irix6* | nonstopux*)
13172 lt_prog_compiler_wl='-Wl,'
13173 # PIC (with -KPIC) is the default.
13174 lt_prog_compiler_static='-non_shared'
13175 ;;
13176
cristy0c60a692010-11-04 01:09:47 +000013177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013178 case $cc_basename in
13179 # old Intel for x86_64 which still supported -KPIC.
13180 ecc*)
13181 lt_prog_compiler_wl='-Wl,'
13182 lt_prog_compiler_pic='-KPIC'
13183 lt_prog_compiler_static='-static'
13184 ;;
13185 # icc used to be incompatible with GCC.
13186 # ICC 10 doesn't accept -KPIC any more.
13187 icc* | ifort*)
13188 lt_prog_compiler_wl='-Wl,'
13189 lt_prog_compiler_pic='-fPIC'
13190 lt_prog_compiler_static='-static'
13191 ;;
13192 # Lahey Fortran 8.1.
13193 lf95*)
13194 lt_prog_compiler_wl='-Wl,'
13195 lt_prog_compiler_pic='--shared'
13196 lt_prog_compiler_static='--static'
13197 ;;
cristyda16f162011-02-19 23:52:17 +000013198 nagfor*)
13199 # NAG Fortran compiler
13200 lt_prog_compiler_wl='-Wl,-Wl,,'
13201 lt_prog_compiler_pic='-PIC'
13202 lt_prog_compiler_static='-Bstatic'
13203 ;;
cristy0c60a692010-11-04 01:09:47 +000013204 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013205 # Portland Group compilers (*not* the Pentium gcc compiler,
13206 # which looks to be a dead project)
13207 lt_prog_compiler_wl='-Wl,'
13208 lt_prog_compiler_pic='-fpic'
13209 lt_prog_compiler_static='-Bstatic'
13210 ;;
13211 ccc*)
13212 lt_prog_compiler_wl='-Wl,'
13213 # All Alpha code is PIC.
13214 lt_prog_compiler_static='-non_shared'
13215 ;;
cristy0c60a692010-11-04 01:09:47 +000013216 xl* | bgxl* | bgf* | mpixl*)
13217 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013218 lt_prog_compiler_wl='-Wl,'
13219 lt_prog_compiler_pic='-qpic'
13220 lt_prog_compiler_static='-qstaticlink'
13221 ;;
13222 *)
13223 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013224 *Sun\ F* | *Sun*Fortran*)
13225 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13226 lt_prog_compiler_pic='-KPIC'
13227 lt_prog_compiler_static='-Bstatic'
13228 lt_prog_compiler_wl=''
13229 ;;
cristy73bd4a52010-10-05 11:24:23 +000013230 *Sun\ C*)
13231 # Sun C 5.9
13232 lt_prog_compiler_pic='-KPIC'
13233 lt_prog_compiler_static='-Bstatic'
13234 lt_prog_compiler_wl='-Wl,'
13235 ;;
cristy73bd4a52010-10-05 11:24:23 +000013236 esac
13237 ;;
13238 esac
13239 ;;
13240
13241 newsos6)
13242 lt_prog_compiler_pic='-KPIC'
13243 lt_prog_compiler_static='-Bstatic'
13244 ;;
13245
13246 *nto* | *qnx*)
13247 # QNX uses GNU C++, but need to define -shared option too, otherwise
13248 # it will coredump.
13249 lt_prog_compiler_pic='-fPIC -shared'
13250 ;;
13251
13252 osf3* | osf4* | osf5*)
13253 lt_prog_compiler_wl='-Wl,'
13254 # All OSF/1 code is PIC.
13255 lt_prog_compiler_static='-non_shared'
13256 ;;
13257
13258 rdos*)
13259 lt_prog_compiler_static='-non_shared'
13260 ;;
13261
13262 solaris*)
13263 lt_prog_compiler_pic='-KPIC'
13264 lt_prog_compiler_static='-Bstatic'
13265 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013266 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013267 lt_prog_compiler_wl='-Qoption ld ';;
13268 *)
13269 lt_prog_compiler_wl='-Wl,';;
13270 esac
13271 ;;
13272
13273 sunos4*)
13274 lt_prog_compiler_wl='-Qoption ld '
13275 lt_prog_compiler_pic='-PIC'
13276 lt_prog_compiler_static='-Bstatic'
13277 ;;
13278
13279 sysv4 | sysv4.2uw2* | sysv4.3*)
13280 lt_prog_compiler_wl='-Wl,'
13281 lt_prog_compiler_pic='-KPIC'
13282 lt_prog_compiler_static='-Bstatic'
13283 ;;
13284
13285 sysv4*MP*)
13286 if test -d /usr/nec ;then
13287 lt_prog_compiler_pic='-Kconform_pic'
13288 lt_prog_compiler_static='-Bstatic'
13289 fi
13290 ;;
13291
13292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13293 lt_prog_compiler_wl='-Wl,'
13294 lt_prog_compiler_pic='-KPIC'
13295 lt_prog_compiler_static='-Bstatic'
13296 ;;
13297
13298 unicos*)
13299 lt_prog_compiler_wl='-Wl,'
13300 lt_prog_compiler_can_build_shared=no
13301 ;;
13302
13303 uts4*)
13304 lt_prog_compiler_pic='-pic'
13305 lt_prog_compiler_static='-Bstatic'
13306 ;;
13307
13308 *)
13309 lt_prog_compiler_can_build_shared=no
13310 ;;
13311 esac
13312 fi
13313
13314case $host_os in
13315 # For platforms which do not support PIC, -DPIC is meaningless:
13316 *djgpp*)
13317 lt_prog_compiler_pic=
13318 ;;
13319 *)
13320 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13321 ;;
13322esac
cristy73bd4a52010-10-05 11:24:23 +000013323
cristyda16f162011-02-19 23:52:17 +000013324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13325$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13326if ${lt_cv_prog_compiler_pic+:} false; then :
13327 $as_echo_n "(cached) " >&6
13328else
13329 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13330fi
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13332$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13333lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013334
13335#
13336# Check to make sure the PIC flag actually works.
13337#
13338if test -n "$lt_prog_compiler_pic"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13340$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013341if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013342 $as_echo_n "(cached) " >&6
13343else
13344 lt_cv_prog_compiler_pic_works=no
13345 ac_outfile=conftest.$ac_objext
13346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13347 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13348 # Insert the option either (1) after the last *FLAGS variable, or
13349 # (2) before a word containing "conftest.", or (3) at the end.
13350 # Note that $ac_compile itself does not contain backslashes and begins
13351 # with a dollar sign (not a hyphen), so the echo should work correctly.
13352 # The option is referenced via a variable to avoid confusing sed.
13353 lt_compile=`echo "$ac_compile" | $SED \
13354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13356 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013358 (eval "$lt_compile" 2>conftest.err)
13359 ac_status=$?
13360 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013362 if (exit $ac_status) && test -s "$ac_outfile"; then
13363 # The compiler can only warn and ignore the option if not recognized
13364 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13368 lt_cv_prog_compiler_pic_works=yes
13369 fi
13370 fi
13371 $RM conftest*
13372
13373fi
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13375$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13376
13377if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13378 case $lt_prog_compiler_pic in
13379 "" | " "*) ;;
13380 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13381 esac
13382else
13383 lt_prog_compiler_pic=
13384 lt_prog_compiler_can_build_shared=no
13385fi
13386
13387fi
13388
13389
13390
13391
13392
13393
cristyda16f162011-02-19 23:52:17 +000013394
13395
13396
13397
13398
cristy73bd4a52010-10-05 11:24:23 +000013399#
13400# Check to make sure the static flag actually works.
13401#
13402wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13404$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013405if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013406 $as_echo_n "(cached) " >&6
13407else
13408 lt_cv_prog_compiler_static_works=no
13409 save_LDFLAGS="$LDFLAGS"
13410 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13411 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13412 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13413 # The linker can only warn and ignore the option if not recognized
13414 # So say no if there are warnings
13415 if test -s conftest.err; then
13416 # Append any errors to the config.log.
13417 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013418 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13420 if diff conftest.exp conftest.er2 >/dev/null; then
13421 lt_cv_prog_compiler_static_works=yes
13422 fi
13423 else
13424 lt_cv_prog_compiler_static_works=yes
13425 fi
13426 fi
13427 $RM -r conftest*
13428 LDFLAGS="$save_LDFLAGS"
13429
13430fi
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13432$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13433
13434if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13435 :
13436else
13437 lt_prog_compiler_static=
13438fi
13439
13440
13441
13442
13443
13444
13445
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13447$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013448if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013449 $as_echo_n "(cached) " >&6
13450else
13451 lt_cv_prog_compiler_c_o=no
13452 $RM -r conftest 2>/dev/null
13453 mkdir conftest
13454 cd conftest
13455 mkdir out
13456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13457
13458 lt_compiler_flag="-o out/conftest2.$ac_objext"
13459 # Insert the option either (1) after the last *FLAGS variable, or
13460 # (2) before a word containing "conftest.", or (3) at the end.
13461 # Note that $ac_compile itself does not contain backslashes and begins
13462 # with a dollar sign (not a hyphen), so the echo should work correctly.
13463 lt_compile=`echo "$ac_compile" | $SED \
13464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13466 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013468 (eval "$lt_compile" 2>out/conftest.err)
13469 ac_status=$?
13470 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013472 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13473 then
13474 # The compiler can only warn and ignore the option if not recognized
13475 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013477 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13478 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13479 lt_cv_prog_compiler_c_o=yes
13480 fi
13481 fi
13482 chmod u+w . 2>&5
13483 $RM conftest*
13484 # SGI C++ compiler will create directory out/ii_files/ for
13485 # template instantiation
13486 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13487 $RM out/* && rmdir out
13488 cd ..
13489 $RM -r conftest
13490 $RM conftest*
13491
13492fi
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13494$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13495
13496
13497
13498
13499
13500
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13502$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013503if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013504 $as_echo_n "(cached) " >&6
13505else
13506 lt_cv_prog_compiler_c_o=no
13507 $RM -r conftest 2>/dev/null
13508 mkdir conftest
13509 cd conftest
13510 mkdir out
13511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13512
13513 lt_compiler_flag="-o out/conftest2.$ac_objext"
13514 # Insert the option either (1) after the last *FLAGS variable, or
13515 # (2) before a word containing "conftest.", or (3) at the end.
13516 # Note that $ac_compile itself does not contain backslashes and begins
13517 # with a dollar sign (not a hyphen), so the echo should work correctly.
13518 lt_compile=`echo "$ac_compile" | $SED \
13519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13521 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013523 (eval "$lt_compile" 2>out/conftest.err)
13524 ac_status=$?
13525 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13528 then
13529 # The compiler can only warn and ignore the option if not recognized
13530 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13534 lt_cv_prog_compiler_c_o=yes
13535 fi
13536 fi
13537 chmod u+w . 2>&5
13538 $RM conftest*
13539 # SGI C++ compiler will create directory out/ii_files/ for
13540 # template instantiation
13541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13542 $RM out/* && rmdir out
13543 cd ..
13544 $RM -r conftest
13545 $RM conftest*
13546
13547fi
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13549$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13550
13551
13552
13553
13554hard_links="nottested"
13555if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13556 # do not overwrite the value of need_locks provided by the user
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13558$as_echo_n "checking if we can lock with hard links... " >&6; }
13559 hard_links=yes
13560 $RM conftest*
13561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13562 touch conftest.a
13563 ln conftest.a conftest.b 2>&5 || hard_links=no
13564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13566$as_echo "$hard_links" >&6; }
13567 if test "$hard_links" = no; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13569$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13570 need_locks=warn
13571 fi
13572else
13573 need_locks=no
13574fi
13575
13576
13577
13578
13579
13580
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13582$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13583
13584 runpath_var=
13585 allow_undefined_flag=
13586 always_export_symbols=no
13587 archive_cmds=
13588 archive_expsym_cmds=
13589 compiler_needs_object=no
13590 enable_shared_with_static_runtimes=no
13591 export_dynamic_flag_spec=
13592 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13593 hardcode_automatic=no
13594 hardcode_direct=no
13595 hardcode_direct_absolute=no
13596 hardcode_libdir_flag_spec=
13597 hardcode_libdir_flag_spec_ld=
13598 hardcode_libdir_separator=
13599 hardcode_minus_L=no
13600 hardcode_shlibpath_var=unsupported
13601 inherit_rpath=no
13602 link_all_deplibs=unknown
13603 module_cmds=
13604 module_expsym_cmds=
13605 old_archive_from_new_cmds=
13606 old_archive_from_expsyms_cmds=
13607 thread_safe_flag_spec=
13608 whole_archive_flag_spec=
13609 # include_expsyms should be a list of space-separated symbols to be *always*
13610 # included in the symbol list
13611 include_expsyms=
13612 # exclude_expsyms can be an extended regexp of symbols to exclude
13613 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13614 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13615 # as well as any symbol that contains `d'.
13616 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13617 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13618 # platforms (ab)use it in PIC code, but their linkers get confused if
13619 # the symbol is explicitly referenced. Since portable code cannot
13620 # rely on this symbol name, it's probably fine to never include it in
13621 # preloaded symbol tables.
13622 # Exclude shared library initialization/finalization symbols.
13623 extract_expsyms_cmds=
13624
13625 case $host_os in
13626 cygwin* | mingw* | pw32* | cegcc*)
13627 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13628 # When not using gcc, we currently assume that we are using
13629 # Microsoft Visual C++.
13630 if test "$GCC" != yes; then
13631 with_gnu_ld=no
13632 fi
13633 ;;
13634 interix*)
13635 # we just hope/assume this is gcc and not c89 (= MSVC++)
13636 with_gnu_ld=yes
13637 ;;
13638 openbsd*)
13639 with_gnu_ld=no
13640 ;;
13641 esac
13642
13643 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013644
13645 # On some targets, GNU ld is compatible enough with the native linker
13646 # that we're better off using the native interface for both.
13647 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013648 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013649 case $host_os in
13650 aix*)
13651 # The AIX port of GNU ld has always aspired to compatibility
13652 # with the native linker. However, as the warning in the GNU ld
13653 # block says, versions before 2.19.5* couldn't really create working
13654 # shared libraries, regardless of the interface used.
13655 case `$LD -v 2>&1` in
13656 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13657 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13658 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13659 *)
13660 lt_use_gnu_ld_interface=yes
13661 ;;
13662 esac
13663 ;;
13664 *)
13665 lt_use_gnu_ld_interface=yes
13666 ;;
13667 esac
13668 fi
13669
13670 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013671 # If archive_cmds runs LD, not CC, wlarc should be empty
13672 wlarc='${wl}'
13673
13674 # Set some defaults for GNU ld with shared library support. These
13675 # are reset later if shared libraries are not supported. Putting them
13676 # here allows them to be overridden if necessary.
13677 runpath_var=LD_RUN_PATH
13678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13679 export_dynamic_flag_spec='${wl}--export-dynamic'
13680 # ancient GNU ld didn't support --whole-archive et. al.
13681 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13682 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13683 else
13684 whole_archive_flag_spec=
13685 fi
13686 supports_anon_versioning=no
13687 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013688 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013689 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13690 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13691 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13692 *\ 2.11.*) ;; # other 2.11 versions
13693 *) supports_anon_versioning=yes ;;
13694 esac
13695
13696 # See if GNU ld supports shared libraries.
13697 case $host_os in
13698 aix[3-9]*)
13699 # On AIX/PPC, the GNU linker is very broken
13700 if test "$host_cpu" != ia64; then
13701 ld_shlibs=no
13702 cat <<_LT_EOF 1>&2
13703
cristy0c60a692010-11-04 01:09:47 +000013704*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013705*** to be unable to reliably create shared libraries on AIX.
13706*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013707*** really care for shared libraries, you may want to install binutils
13708*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13709*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013710
13711_LT_EOF
13712 fi
13713 ;;
13714
13715 amigaos*)
13716 case $host_cpu in
13717 powerpc)
13718 # see comment about AmigaOS4 .so support
13719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13720 archive_expsym_cmds=''
13721 ;;
13722 m68k)
13723 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)'
13724 hardcode_libdir_flag_spec='-L$libdir'
13725 hardcode_minus_L=yes
13726 ;;
13727 esac
13728 ;;
13729
13730 beos*)
13731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13732 allow_undefined_flag=unsupported
13733 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13734 # support --undefined. This deserves some investigation. FIXME
13735 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13736 else
13737 ld_shlibs=no
13738 fi
13739 ;;
13740
13741 cygwin* | mingw* | pw32* | cegcc*)
13742 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13743 # as there is no search path for DLLs.
13744 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013745 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013746 allow_undefined_flag=unsupported
13747 always_export_symbols=no
13748 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013749 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'
13750 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 +000013751
13752 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13754 # If the export-symbols file already is a .def file (1st line
13755 # is EXPORTS), use it as is; otherwise, prepend...
13756 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13757 cp $export_symbols $output_objdir/$soname.def;
13758 else
13759 echo EXPORTS > $output_objdir/$soname.def;
13760 cat $export_symbols >> $output_objdir/$soname.def;
13761 fi~
13762 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13763 else
13764 ld_shlibs=no
13765 fi
13766 ;;
13767
cristy0c60a692010-11-04 01:09:47 +000013768 haiku*)
13769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13770 link_all_deplibs=yes
13771 ;;
13772
cristy73bd4a52010-10-05 11:24:23 +000013773 interix[3-9]*)
13774 hardcode_direct=no
13775 hardcode_shlibpath_var=no
13776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13777 export_dynamic_flag_spec='${wl}-E'
13778 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13779 # Instead, shared libraries are loaded at an image base (0x10000000 by
13780 # default) and relocated if they conflict, which is a slow very memory
13781 # consuming and fragmenting process. To avoid this, we pick a random,
13782 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13783 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13784 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13785 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'
13786 ;;
13787
cristy0c60a692010-11-04 01:09:47 +000013788 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013789 tmp_diet=no
13790 if test "$host_os" = linux-dietlibc; then
13791 case $cc_basename in
13792 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13793 esac
13794 fi
13795 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13796 && test "$tmp_diet" = no
13797 then
cristyda16f162011-02-19 23:52:17 +000013798 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013799 tmp_sharedflag='-shared'
13800 case $cc_basename,$host_cpu in
13801 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013802 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 +000013803 tmp_addflag=' $pic_flag'
13804 ;;
cristy0c60a692010-11-04 01:09:47 +000013805 pgf77* | pgf90* | pgf95* | pgfortran*)
13806 # Portland Group f77 and f90 compilers
13807 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 +000013808 tmp_addflag=' $pic_flag -Mnomain' ;;
13809 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13810 tmp_addflag=' -i_dynamic' ;;
13811 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13812 tmp_addflag=' -i_dynamic -nofor_main' ;;
13813 ifc* | ifort*) # Intel Fortran compiler
13814 tmp_addflag=' -nofor_main' ;;
13815 lf95*) # Lahey Fortran 8.1
13816 whole_archive_flag_spec=
13817 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013818 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013819 tmp_sharedflag='-qmkshrobj'
13820 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013821 nvcc*) # Cuda Compiler Driver 2.2
13822 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'
13823 compiler_needs_object=yes
13824 ;;
cristy73bd4a52010-10-05 11:24:23 +000013825 esac
13826 case `$CC -V 2>&1 | sed 5q` in
13827 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013828 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 +000013829 compiler_needs_object=yes
13830 tmp_sharedflag='-G' ;;
13831 *Sun\ F*) # Sun Fortran 8.3
13832 tmp_sharedflag='-G' ;;
13833 esac
13834 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13835
13836 if test "x$supports_anon_versioning" = xyes; then
13837 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13838 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13839 echo "local: *; };" >> $output_objdir/$libname.ver~
13840 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13841 fi
13842
13843 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013844 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013845 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13846 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13847 hardcode_libdir_flag_spec=
13848 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013849 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013850 if test "x$supports_anon_versioning" = xyes; then
13851 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13853 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013854 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013855 fi
13856 ;;
13857 esac
13858 else
13859 ld_shlibs=no
13860 fi
13861 ;;
13862
13863 netbsd*)
13864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13865 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13866 wlarc=
13867 else
cristyda16f162011-02-19 23:52:17 +000013868 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13869 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 +000013870 fi
13871 ;;
13872
13873 solaris*)
13874 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13875 ld_shlibs=no
13876 cat <<_LT_EOF 1>&2
13877
13878*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13879*** create shared libraries on Solaris systems. Therefore, libtool
13880*** is disabling shared libraries support. We urge you to upgrade GNU
13881*** binutils to release 2.9.1 or newer. Another option is to modify
13882*** your PATH or compiler configuration so that the native linker is
13883*** used, and then restart.
13884
13885_LT_EOF
13886 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 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 +000013889 else
13890 ld_shlibs=no
13891 fi
13892 ;;
13893
13894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13895 case `$LD -v 2>&1` in
13896 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13897 ld_shlibs=no
13898 cat <<_LT_EOF 1>&2
13899
13900*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13901*** reliably create shared libraries on SCO systems. Therefore, libtool
13902*** is disabling shared libraries support. We urge you to upgrade GNU
13903*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13904*** your PATH or compiler configuration so that the native linker is
13905*** used, and then restart.
13906
13907_LT_EOF
13908 ;;
13909 *)
13910 # For security reasons, it is highly recommended that you always
13911 # use absolute paths for naming shared libraries, and exclude the
13912 # DT_RUNPATH tag from executables and libraries. But doing so
13913 # requires that you compile everything twice, which is a pain.
13914 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13918 else
13919 ld_shlibs=no
13920 fi
13921 ;;
13922 esac
13923 ;;
13924
13925 sunos4*)
13926 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13927 wlarc=
13928 hardcode_direct=yes
13929 hardcode_shlibpath_var=no
13930 ;;
13931
13932 *)
13933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013934 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13935 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 +000013936 else
13937 ld_shlibs=no
13938 fi
13939 ;;
13940 esac
13941
13942 if test "$ld_shlibs" = no; then
13943 runpath_var=
13944 hardcode_libdir_flag_spec=
13945 export_dynamic_flag_spec=
13946 whole_archive_flag_spec=
13947 fi
13948 else
13949 # PORTME fill in a description of your system's linker (not GNU ld)
13950 case $host_os in
13951 aix3*)
13952 allow_undefined_flag=unsupported
13953 always_export_symbols=yes
13954 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'
13955 # Note: this linker hardcodes the directories in LIBPATH if there
13956 # are no directories specified by -L.
13957 hardcode_minus_L=yes
13958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13959 # Neither direct hardcoding nor static linking is supported with a
13960 # broken collect2.
13961 hardcode_direct=unsupported
13962 fi
13963 ;;
13964
13965 aix[4-9]*)
13966 if test "$host_cpu" = ia64; then
13967 # On IA64, the linker does run time linking by default, so we don't
13968 # have to do anything special.
13969 aix_use_runtimelinking=no
13970 exp_sym_flag='-Bexport'
13971 no_entry_flag=""
13972 else
13973 # If we're using GNU nm, then we don't want the "-C" option.
13974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013975 # Also, AIX nm treats weak defined symbols like other global
13976 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013977 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013978 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 +000013979 else
13980 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'
13981 fi
13982 aix_use_runtimelinking=no
13983
13984 # Test if we are trying to use run time linking or normal
13985 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13986 # need to do runtime linking.
13987 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13988 for ld_flag in $LDFLAGS; do
13989 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13990 aix_use_runtimelinking=yes
13991 break
13992 fi
13993 done
13994 ;;
13995 esac
13996
13997 exp_sym_flag='-bexport'
13998 no_entry_flag='-bnoentry'
13999 fi
14000
14001 # When large executables or shared objects are built, AIX ld can
14002 # have problems creating the table of contents. If linking a library
14003 # or program results in "error TOC overflow" add -mminimal-toc to
14004 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14005 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14006
14007 archive_cmds=''
14008 hardcode_direct=yes
14009 hardcode_direct_absolute=yes
14010 hardcode_libdir_separator=':'
14011 link_all_deplibs=yes
14012 file_list_spec='${wl}-f,'
14013
14014 if test "$GCC" = yes; then
14015 case $host_os in aix4.[012]|aix4.[012].*)
14016 # We only want to do this on AIX 4.2 and lower, the check
14017 # below for broken collect2 doesn't work under 4.3+
14018 collect2name=`${CC} -print-prog-name=collect2`
14019 if test -f "$collect2name" &&
14020 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14021 then
14022 # We have reworked collect2
14023 :
14024 else
14025 # We have old collect2
14026 hardcode_direct=unsupported
14027 # It fails to find uninstalled libraries when the uninstalled
14028 # path is not listed in the libpath. Setting hardcode_minus_L
14029 # to unsupported forces relinking
14030 hardcode_minus_L=yes
14031 hardcode_libdir_flag_spec='-L$libdir'
14032 hardcode_libdir_separator=
14033 fi
14034 ;;
14035 esac
14036 shared_flag='-shared'
14037 if test "$aix_use_runtimelinking" = yes; then
14038 shared_flag="$shared_flag "'${wl}-G'
14039 fi
14040 else
14041 # not using gcc
14042 if test "$host_cpu" = ia64; then
14043 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14044 # chokes on -Wl,-G. The following line is correct:
14045 shared_flag='-G'
14046 else
14047 if test "$aix_use_runtimelinking" = yes; then
14048 shared_flag='${wl}-G'
14049 else
14050 shared_flag='${wl}-bM:SRE'
14051 fi
14052 fi
14053 fi
14054
14055 export_dynamic_flag_spec='${wl}-bexpall'
14056 # It seems that -bexpall does not export symbols beginning with
14057 # underscore (_), so it is better to generate a list of symbols to export.
14058 always_export_symbols=yes
14059 if test "$aix_use_runtimelinking" = yes; then
14060 # Warning - without using the other runtime loading flags (-brtl),
14061 # -berok will link without error, but may produce a broken library.
14062 allow_undefined_flag='-berok'
14063 # Determine the default libpath from the value encoded in an
14064 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014065 if test "${lt_cv_aix_libpath+set}" = set; then
14066 aix_libpath=$lt_cv_aix_libpath
14067else
14068 if ${lt_cv_aix_libpath_+:} false; then :
14069 $as_echo_n "(cached) " >&6
14070else
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014072/* end confdefs.h. */
14073
14074int
14075main ()
14076{
14077
14078 ;
14079 return 0;
14080}
14081_ACEOF
14082if ac_fn_c_try_link "$LINENO"; then :
14083
cristyda16f162011-02-19 23:52:17 +000014084 lt_aix_libpath_sed='
14085 /Import File Strings/,/^$/ {
14086 /^0/ {
14087 s/^0 *\([^ ]*\) *$/\1/
14088 p
14089 }
14090 }'
14091 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14092 # Check for a 64-bit object if we didn't find anything.
14093 if test -z "$lt_cv_aix_libpath_"; then
14094 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14095 fi
cristy73bd4a52010-10-05 11:24:23 +000014096fi
14097rm -f core conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014099 if test -z "$lt_cv_aix_libpath_"; then
14100 lt_cv_aix_libpath_="/usr/lib:/lib"
14101 fi
14102
14103fi
14104
14105 aix_libpath=$lt_cv_aix_libpath_
14106fi
cristy73bd4a52010-10-05 11:24:23 +000014107
14108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014109 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 +000014110 else
14111 if test "$host_cpu" = ia64; then
14112 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14113 allow_undefined_flag="-z nodefs"
14114 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"
14115 else
14116 # Determine the default libpath from the value encoded in an
14117 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014118 if test "${lt_cv_aix_libpath+set}" = set; then
14119 aix_libpath=$lt_cv_aix_libpath
14120else
14121 if ${lt_cv_aix_libpath_+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123else
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014125/* end confdefs.h. */
14126
14127int
14128main ()
14129{
14130
14131 ;
14132 return 0;
14133}
14134_ACEOF
14135if ac_fn_c_try_link "$LINENO"; then :
14136
cristyda16f162011-02-19 23:52:17 +000014137 lt_aix_libpath_sed='
14138 /Import File Strings/,/^$/ {
14139 /^0/ {
14140 s/^0 *\([^ ]*\) *$/\1/
14141 p
14142 }
14143 }'
14144 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14145 # Check for a 64-bit object if we didn't find anything.
14146 if test -z "$lt_cv_aix_libpath_"; then
14147 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14148 fi
cristy73bd4a52010-10-05 11:24:23 +000014149fi
14150rm -f core conftest.err conftest.$ac_objext \
14151 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014152 if test -z "$lt_cv_aix_libpath_"; then
14153 lt_cv_aix_libpath_="/usr/lib:/lib"
14154 fi
14155
14156fi
14157
14158 aix_libpath=$lt_cv_aix_libpath_
14159fi
cristy73bd4a52010-10-05 11:24:23 +000014160
14161 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14162 # Warning - without using the other run time loading flags,
14163 # -berok will link without error, but may produce a broken library.
14164 no_undefined_flag=' ${wl}-bernotok'
14165 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014166 if test "$with_gnu_ld" = yes; then
14167 # We only use this code for GNU lds that support --whole-archive.
14168 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14169 else
14170 # Exported symbols can be pulled into shared objects from archives
14171 whole_archive_flag_spec='$convenience'
14172 fi
cristy73bd4a52010-10-05 11:24:23 +000014173 archive_cmds_need_lc=yes
14174 # This is similar to how AIX traditionally builds its shared libraries.
14175 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'
14176 fi
14177 fi
14178 ;;
14179
14180 amigaos*)
14181 case $host_cpu in
14182 powerpc)
14183 # see comment about AmigaOS4 .so support
14184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14185 archive_expsym_cmds=''
14186 ;;
14187 m68k)
14188 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)'
14189 hardcode_libdir_flag_spec='-L$libdir'
14190 hardcode_minus_L=yes
14191 ;;
14192 esac
14193 ;;
14194
14195 bsdi[45]*)
14196 export_dynamic_flag_spec=-rdynamic
14197 ;;
14198
14199 cygwin* | mingw* | pw32* | cegcc*)
14200 # When not using gcc, we currently assume that we are using
14201 # Microsoft Visual C++.
14202 # hardcode_libdir_flag_spec is actually meaningless, as there is
14203 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014204 case $cc_basename in
14205 cl*)
14206 # Native MSVC
14207 hardcode_libdir_flag_spec=' '
14208 allow_undefined_flag=unsupported
14209 always_export_symbols=yes
14210 file_list_spec='@'
14211 # Tell ltmain to make .lib files, not .a files.
14212 libext=lib
14213 # Tell ltmain to make .dll files, not .so files.
14214 shrext_cmds=".dll"
14215 # FIXME: Setting linknames here is a bad hack.
14216 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14217 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14218 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14219 else
14220 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14221 fi~
14222 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14223 linknames='
14224 # The linker will not automatically build a static lib if we build a DLL.
14225 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14226 enable_shared_with_static_runtimes=yes
14227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14228 # Don't use ranlib
14229 old_postinstall_cmds='chmod 644 $oldlib'
14230 postlink_cmds='lt_outputfile="@OUTPUT@"~
14231 lt_tool_outputfile="@TOOL_OUTPUT@"~
14232 case $lt_outputfile in
14233 *.exe|*.EXE) ;;
14234 *)
14235 lt_outputfile="$lt_outputfile.exe"
14236 lt_tool_outputfile="$lt_tool_outputfile.exe"
14237 ;;
14238 esac~
14239 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14240 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14241 $RM "$lt_outputfile.manifest";
14242 fi'
14243 ;;
14244 *)
14245 # Assume MSVC wrapper
14246 hardcode_libdir_flag_spec=' '
14247 allow_undefined_flag=unsupported
14248 # Tell ltmain to make .lib files, not .a files.
14249 libext=lib
14250 # Tell ltmain to make .dll files, not .so files.
14251 shrext_cmds=".dll"
14252 # FIXME: Setting linknames here is a bad hack.
14253 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14254 # The linker will automatically build a .lib file if we build a DLL.
14255 old_archive_from_new_cmds='true'
14256 # FIXME: Should let the user specify the lib program.
14257 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14258 enable_shared_with_static_runtimes=yes
14259 ;;
14260 esac
cristy73bd4a52010-10-05 11:24:23 +000014261 ;;
14262
14263 darwin* | rhapsody*)
14264
14265
14266 archive_cmds_need_lc=no
14267 hardcode_direct=no
14268 hardcode_automatic=yes
14269 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014270 if test "$lt_cv_ld_force_load" = "yes"; then
14271 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\"`'
14272 else
14273 whole_archive_flag_spec=''
14274 fi
cristy73bd4a52010-10-05 11:24:23 +000014275 link_all_deplibs=yes
14276 allow_undefined_flag="$_lt_dar_allow_undefined"
14277 case $cc_basename in
14278 ifort*) _lt_dar_can_shared=yes ;;
14279 *) _lt_dar_can_shared=$GCC ;;
14280 esac
14281 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014282 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014283 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14284 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14285 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}"
14286 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}"
14287
14288 else
14289 ld_shlibs=no
14290 fi
14291
14292 ;;
14293
14294 dgux*)
14295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14296 hardcode_libdir_flag_spec='-L$libdir'
14297 hardcode_shlibpath_var=no
14298 ;;
14299
14300 freebsd1*)
14301 ld_shlibs=no
14302 ;;
14303
14304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14305 # support. Future versions do this automatically, but an explicit c++rt0.o
14306 # does not break anything, and helps significantly (at the cost of a little
14307 # extra space).
14308 freebsd2.2*)
14309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14310 hardcode_libdir_flag_spec='-R$libdir'
14311 hardcode_direct=yes
14312 hardcode_shlibpath_var=no
14313 ;;
14314
14315 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14316 freebsd2*)
14317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14318 hardcode_direct=yes
14319 hardcode_minus_L=yes
14320 hardcode_shlibpath_var=no
14321 ;;
14322
14323 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14324 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014326 hardcode_libdir_flag_spec='-R$libdir'
14327 hardcode_direct=yes
14328 hardcode_shlibpath_var=no
14329 ;;
14330
14331 hpux9*)
14332 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014333 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 +000014334 else
14335 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'
14336 fi
14337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14338 hardcode_libdir_separator=:
14339 hardcode_direct=yes
14340
14341 # hardcode_minus_L: Not really in the search PATH,
14342 # but as the default location of the library.
14343 hardcode_minus_L=yes
14344 export_dynamic_flag_spec='${wl}-E'
14345 ;;
14346
14347 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014348 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014349 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 +000014350 else
14351 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14352 fi
14353 if test "$with_gnu_ld" = no; then
14354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14355 hardcode_libdir_flag_spec_ld='+b $libdir'
14356 hardcode_libdir_separator=:
14357 hardcode_direct=yes
14358 hardcode_direct_absolute=yes
14359 export_dynamic_flag_spec='${wl}-E'
14360 # hardcode_minus_L: Not really in the search PATH,
14361 # but as the default location of the library.
14362 hardcode_minus_L=yes
14363 fi
14364 ;;
14365
14366 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014367 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014368 case $host_cpu in
14369 hppa*64*)
14370 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14371 ;;
14372 ia64*)
cristyda16f162011-02-19 23:52:17 +000014373 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014374 ;;
14375 *)
cristyda16f162011-02-19 23:52:17 +000014376 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 +000014377 ;;
14378 esac
14379 else
14380 case $host_cpu in
14381 hppa*64*)
14382 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14383 ;;
14384 ia64*)
14385 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14386 ;;
14387 *)
cristy0c60a692010-11-04 01:09:47 +000014388
14389 # Older versions of the 11.00 compiler do not understand -b yet
14390 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14392$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014393if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014394 $as_echo_n "(cached) " >&6
14395else
14396 lt_cv_prog_compiler__b=no
14397 save_LDFLAGS="$LDFLAGS"
14398 LDFLAGS="$LDFLAGS -b"
14399 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14401 # The linker can only warn and ignore the option if not recognized
14402 # So say no if there are warnings
14403 if test -s conftest.err; then
14404 # Append any errors to the config.log.
14405 cat conftest.err 1>&5
14406 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14408 if diff conftest.exp conftest.er2 >/dev/null; then
14409 lt_cv_prog_compiler__b=yes
14410 fi
14411 else
14412 lt_cv_prog_compiler__b=yes
14413 fi
14414 fi
14415 $RM -r conftest*
14416 LDFLAGS="$save_LDFLAGS"
14417
14418fi
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14420$as_echo "$lt_cv_prog_compiler__b" >&6; }
14421
14422if test x"$lt_cv_prog_compiler__b" = xyes; then
14423 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14424else
14425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14426fi
14427
cristy73bd4a52010-10-05 11:24:23 +000014428 ;;
14429 esac
14430 fi
14431 if test "$with_gnu_ld" = no; then
14432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14433 hardcode_libdir_separator=:
14434
14435 case $host_cpu in
14436 hppa*64*|ia64*)
14437 hardcode_direct=no
14438 hardcode_shlibpath_var=no
14439 ;;
14440 *)
14441 hardcode_direct=yes
14442 hardcode_direct_absolute=yes
14443 export_dynamic_flag_spec='${wl}-E'
14444
14445 # hardcode_minus_L: Not really in the search PATH,
14446 # but as the default location of the library.
14447 hardcode_minus_L=yes
14448 ;;
14449 esac
14450 fi
14451 ;;
14452
14453 irix5* | irix6* | nonstopux*)
14454 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014455 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 +000014456 # Try to use the -exported_symbol ld option, if it does not
14457 # work, assume that -exports_file does not work either and
14458 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014459 # This should be the same for all languages, so no per-tag cache variable.
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14461$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14462if ${lt_cv_irix_exported_symbol+:} false; then :
14463 $as_echo_n "(cached) " >&6
14464else
14465 save_LDFLAGS="$LDFLAGS"
14466 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014468/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014469int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014470_ACEOF
14471if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014472 lt_cv_irix_exported_symbol=yes
14473else
14474 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014475fi
14476rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014478 LDFLAGS="$save_LDFLAGS"
14479fi
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14481$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14482 if test "$lt_cv_irix_exported_symbol" = yes; then
14483 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'
14484 fi
cristy73bd4a52010-10-05 11:24:23 +000014485 else
cristy0c60a692010-11-04 01:09:47 +000014486 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'
14487 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 +000014488 fi
14489 archive_cmds_need_lc='no'
14490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14491 hardcode_libdir_separator=:
14492 inherit_rpath=yes
14493 link_all_deplibs=yes
14494 ;;
14495
14496 netbsd*)
14497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14499 else
14500 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14501 fi
14502 hardcode_libdir_flag_spec='-R$libdir'
14503 hardcode_direct=yes
14504 hardcode_shlibpath_var=no
14505 ;;
14506
14507 newsos6)
14508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14509 hardcode_direct=yes
14510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14511 hardcode_libdir_separator=:
14512 hardcode_shlibpath_var=no
14513 ;;
14514
14515 *nto* | *qnx*)
14516 ;;
14517
14518 openbsd*)
14519 if test -f /usr/libexec/ld.so; then
14520 hardcode_direct=yes
14521 hardcode_shlibpath_var=no
14522 hardcode_direct_absolute=yes
14523 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14525 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14526 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14527 export_dynamic_flag_spec='${wl}-E'
14528 else
14529 case $host_os in
14530 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14532 hardcode_libdir_flag_spec='-R$libdir'
14533 ;;
14534 *)
14535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14537 ;;
14538 esac
14539 fi
14540 else
14541 ld_shlibs=no
14542 fi
14543 ;;
14544
14545 os2*)
14546 hardcode_libdir_flag_spec='-L$libdir'
14547 hardcode_minus_L=yes
14548 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014549 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 +000014550 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14551 ;;
14552
14553 osf3*)
14554 if test "$GCC" = yes; then
14555 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014556 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 +000014557 else
14558 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014559 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 +000014560 fi
14561 archive_cmds_need_lc='no'
14562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14563 hardcode_libdir_separator=:
14564 ;;
14565
14566 osf4* | osf5*) # as osf3* with the addition of -msym flag
14567 if test "$GCC" = yes; then
14568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014569 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 +000014570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14571 else
14572 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014573 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 +000014574 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 +000014575 $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 +000014576
14577 # Both c and cxx compiler support -rpath directly
14578 hardcode_libdir_flag_spec='-rpath $libdir'
14579 fi
14580 archive_cmds_need_lc='no'
14581 hardcode_libdir_separator=:
14582 ;;
14583
14584 solaris*)
14585 no_undefined_flag=' -z defs'
14586 if test "$GCC" = yes; then
14587 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014588 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 +000014589 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 +000014590 $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 +000014591 else
14592 case `$CC -V 2>&1` in
14593 *"Compilers 5.0"*)
14594 wlarc=''
14595 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14596 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14597 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14598 ;;
14599 *)
14600 wlarc='${wl}'
14601 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14603 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14604 ;;
14605 esac
14606 fi
14607 hardcode_libdir_flag_spec='-R$libdir'
14608 hardcode_shlibpath_var=no
14609 case $host_os in
14610 solaris2.[0-5] | solaris2.[0-5].*) ;;
14611 *)
14612 # The compiler driver will combine and reorder linker options,
14613 # but understands `-z linker_flag'. GCC discards it without `$wl',
14614 # but is careful enough not to reorder.
14615 # Supported since Solaris 2.6 (maybe 2.5.1?)
14616 if test "$GCC" = yes; then
14617 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14618 else
14619 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14620 fi
14621 ;;
14622 esac
14623 link_all_deplibs=yes
14624 ;;
14625
14626 sunos4*)
14627 if test "x$host_vendor" = xsequent; then
14628 # Use $CC to link under sequent, because it throws in some extra .o
14629 # files that make .init and .fini sections work.
14630 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14631 else
14632 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14633 fi
14634 hardcode_libdir_flag_spec='-L$libdir'
14635 hardcode_direct=yes
14636 hardcode_minus_L=yes
14637 hardcode_shlibpath_var=no
14638 ;;
14639
14640 sysv4)
14641 case $host_vendor in
14642 sni)
14643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14644 hardcode_direct=yes # is this really true???
14645 ;;
14646 siemens)
14647 ## LD is ld it makes a PLAMLIB
14648 ## CC just makes a GrossModule.
14649 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14650 reload_cmds='$CC -r -o $output$reload_objs'
14651 hardcode_direct=no
14652 ;;
14653 motorola)
14654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14655 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14656 ;;
14657 esac
14658 runpath_var='LD_RUN_PATH'
14659 hardcode_shlibpath_var=no
14660 ;;
14661
14662 sysv4.3*)
14663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14664 hardcode_shlibpath_var=no
14665 export_dynamic_flag_spec='-Bexport'
14666 ;;
14667
14668 sysv4*MP*)
14669 if test -d /usr/nec; then
14670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14671 hardcode_shlibpath_var=no
14672 runpath_var=LD_RUN_PATH
14673 hardcode_runpath_var=yes
14674 ld_shlibs=yes
14675 fi
14676 ;;
14677
14678 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14679 no_undefined_flag='${wl}-z,text'
14680 archive_cmds_need_lc=no
14681 hardcode_shlibpath_var=no
14682 runpath_var='LD_RUN_PATH'
14683
14684 if test "$GCC" = yes; then
14685 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14686 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14687 else
14688 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14689 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14690 fi
14691 ;;
14692
14693 sysv5* | sco3.2v5* | sco5v6*)
14694 # Note: We can NOT use -z defs as we might desire, because we do not
14695 # link with -lc, and that would cause any symbols used from libc to
14696 # always be unresolved, which means just about no library would
14697 # ever link correctly. If we're not using GNU ld we use -z text
14698 # though, which does catch some bad symbols but isn't as heavy-handed
14699 # as -z defs.
14700 no_undefined_flag='${wl}-z,text'
14701 allow_undefined_flag='${wl}-z,nodefs'
14702 archive_cmds_need_lc=no
14703 hardcode_shlibpath_var=no
14704 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14705 hardcode_libdir_separator=':'
14706 link_all_deplibs=yes
14707 export_dynamic_flag_spec='${wl}-Bexport'
14708 runpath_var='LD_RUN_PATH'
14709
14710 if test "$GCC" = yes; then
14711 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14713 else
14714 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14716 fi
14717 ;;
14718
14719 uts4*)
14720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14721 hardcode_libdir_flag_spec='-L$libdir'
14722 hardcode_shlibpath_var=no
14723 ;;
14724
14725 *)
14726 ld_shlibs=no
14727 ;;
14728 esac
14729
14730 if test x$host_vendor = xsni; then
14731 case $host in
14732 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14733 export_dynamic_flag_spec='${wl}-Blargedynsym'
14734 ;;
14735 esac
14736 fi
14737 fi
14738
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14740$as_echo "$ld_shlibs" >&6; }
14741test "$ld_shlibs" = no && can_build_shared=no
14742
14743with_gnu_ld=$with_gnu_ld
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759#
14760# Do we need to explicitly link libc?
14761#
14762case "x$archive_cmds_need_lc" in
14763x|xyes)
14764 # Assume -lc should be added
14765 archive_cmds_need_lc=yes
14766
14767 if test "$enable_shared" = yes && test "$GCC" = yes; then
14768 case $archive_cmds in
14769 *'~'*)
14770 # FIXME: we may have to deal with multi-command sequences.
14771 ;;
14772 '$CC '*)
14773 # Test whether the compiler implicitly links with -lc since on some
14774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14775 # to ld, don't add -lc before -lgcc.
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14777$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014778if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014779 $as_echo_n "(cached) " >&6
14780else
14781 $RM conftest*
14782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014783
cristy0c60a692010-11-04 01:09:47 +000014784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014785 (eval $ac_compile) 2>&5
14786 ac_status=$?
14787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14788 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014789 soname=conftest
14790 lib=conftest
14791 libobjs=conftest.$ac_objext
14792 deplibs=
14793 wl=$lt_prog_compiler_wl
14794 pic_flag=$lt_prog_compiler_pic
14795 compiler_flags=-v
14796 linker_flags=-v
14797 verstring=
14798 output_objdir=.
14799 libname=conftest
14800 lt_save_allow_undefined_flag=$allow_undefined_flag
14801 allow_undefined_flag=
14802 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 +000014803 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14804 ac_status=$?
14805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014807 then
14808 lt_cv_archive_cmds_need_lc=no
14809 else
14810 lt_cv_archive_cmds_need_lc=yes
14811 fi
14812 allow_undefined_flag=$lt_save_allow_undefined_flag
14813 else
14814 cat conftest.err 1>&5
14815 fi
14816 $RM conftest*
14817
14818fi
14819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14820$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14821 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014822 ;;
14823 esac
14824 fi
14825 ;;
14826esac
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14985$as_echo_n "checking dynamic linker characteristics... " >&6; }
14986
14987if test "$GCC" = yes; then
14988 case $host_os in
14989 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14990 *) lt_awk_arg="/^libraries:/" ;;
14991 esac
cristy0c60a692010-11-04 01:09:47 +000014992 case $host_os in
14993 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14994 *) lt_sed_strip_eq="s,=/,/,g" ;;
14995 esac
14996 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14997 case $lt_search_path_spec in
14998 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014999 # if the path contains ";" then we assume it to be the separator
15000 # otherwise default to the standard path separator (i.e. ":") - it is
15001 # assumed that no part of a normal pathname contains ";" but that should
15002 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015003 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15004 ;;
15005 *)
15006 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15007 ;;
15008 esac
cristy73bd4a52010-10-05 11:24:23 +000015009 # Ok, now we have the path, separated by spaces, we can step through it
15010 # and add multilib dir if necessary.
15011 lt_tmp_lt_search_path_spec=
15012 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15013 for lt_sys_path in $lt_search_path_spec; do
15014 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15016 else
15017 test -d "$lt_sys_path" && \
15018 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15019 fi
15020 done
cristy0c60a692010-11-04 01:09:47 +000015021 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015022BEGIN {RS=" "; FS="/|\n";} {
15023 lt_foo="";
15024 lt_count=0;
15025 for (lt_i = NF; lt_i > 0; lt_i--) {
15026 if ($lt_i != "" && $lt_i != ".") {
15027 if ($lt_i == "..") {
15028 lt_count++;
15029 } else {
15030 if (lt_count == 0) {
15031 lt_foo="/" $lt_i lt_foo;
15032 } else {
15033 lt_count--;
15034 }
15035 }
15036 }
15037 }
15038 if (lt_foo != "") { lt_freq[lt_foo]++; }
15039 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15040}'`
cristy0c60a692010-11-04 01:09:47 +000015041 # AWK program above erroneously prepends '/' to C:/dos/paths
15042 # for these hosts.
15043 case $host_os in
15044 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15045 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15046 esac
15047 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015048else
15049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15050fi
15051library_names_spec=
15052libname_spec='lib$name'
15053soname_spec=
15054shrext_cmds=".so"
15055postinstall_cmds=
15056postuninstall_cmds=
15057finish_cmds=
15058finish_eval=
15059shlibpath_var=
15060shlibpath_overrides_runpath=unknown
15061version_type=none
15062dynamic_linker="$host_os ld.so"
15063sys_lib_dlsearch_path_spec="/lib /usr/lib"
15064need_lib_prefix=unknown
15065hardcode_into_libs=no
15066
15067# when you set need_version to no, make sure it does not cause -set_version
15068# flags to be left without arguments
15069need_version=unknown
15070
15071case $host_os in
15072aix3*)
15073 version_type=linux
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15075 shlibpath_var=LIBPATH
15076
15077 # AIX 3 has no versioning support, so we append a major version to the name.
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 ;;
15080
15081aix[4-9]*)
15082 version_type=linux
15083 need_lib_prefix=no
15084 need_version=no
15085 hardcode_into_libs=yes
15086 if test "$host_cpu" = ia64; then
15087 # AIX 5 supports IA64
15088 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 else
15091 # With GCC up to 2.95.x, collect2 would create an import file
15092 # for dependence libraries. The import file would start with
15093 # the line `#! .'. This would cause the generated library to
15094 # depend on `.', always an invalid library. This was fixed in
15095 # development snapshots of GCC prior to 3.0.
15096 case $host_os in
15097 aix4 | aix4.[01] | aix4.[01].*)
15098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15099 echo ' yes '
15100 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15101 :
15102 else
15103 can_build_shared=no
15104 fi
15105 ;;
15106 esac
15107 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15108 # soname into executable. Probably we can add versioning support to
15109 # collect2, so additional links can be useful in future.
15110 if test "$aix_use_runtimelinking" = yes; then
15111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15112 # instead of lib<name>.a to let people know that these are not
15113 # typical AIX shared libraries.
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115 else
15116 # We preserve .a as extension for shared libraries through AIX4.2
15117 # and later when we are not doing run time linking.
15118 library_names_spec='${libname}${release}.a $libname.a'
15119 soname_spec='${libname}${release}${shared_ext}$major'
15120 fi
15121 shlibpath_var=LIBPATH
15122 fi
15123 ;;
15124
15125amigaos*)
15126 case $host_cpu in
15127 powerpc)
15128 # Since July 2007 AmigaOS4 officially supports .so libraries.
15129 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15131 ;;
15132 m68k)
15133 library_names_spec='$libname.ixlibrary $libname.a'
15134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015135 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 +000015136 ;;
15137 esac
15138 ;;
15139
15140beos*)
15141 library_names_spec='${libname}${shared_ext}'
15142 dynamic_linker="$host_os ld.so"
15143 shlibpath_var=LIBRARY_PATH
15144 ;;
15145
15146bsdi[45]*)
15147 version_type=linux
15148 need_version=no
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15155 # the default ld.so.conf also contains /usr/contrib/lib and
15156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15157 # libtool to hard-code these into programs
15158 ;;
15159
15160cygwin* | mingw* | pw32* | cegcc*)
15161 version_type=windows
15162 shrext_cmds=".dll"
15163 need_version=no
15164 need_lib_prefix=no
15165
cristyda16f162011-02-19 23:52:17 +000015166 case $GCC,$cc_basename in
15167 yes,*)
15168 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015169 library_names_spec='$libname.dll.a'
15170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15171 postinstall_cmds='base_file=`basename \${file}`~
15172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15173 dldir=$destdir/`dirname \$dlpath`~
15174 test -d \$dldir || mkdir -p \$dldir~
15175 $install_prog $dir/$dlname \$dldir/$dlname~
15176 chmod a+x \$dldir/$dlname~
15177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15179 fi'
15180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15181 dlpath=$dir/\$dldll~
15182 $RM \$dlpath'
15183 shlibpath_overrides_runpath=yes
15184
15185 case $host_os in
15186 cygwin*)
15187 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015189
15190 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015191 ;;
15192 mingw* | cegcc*)
15193 # MinGW DLLs use traditional 'lib' prefix
15194 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015195 ;;
15196 pw32*)
15197 # pw32 DLLs use 'pw' prefix rather than 'lib'
15198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15199 ;;
15200 esac
cristyda16f162011-02-19 23:52:17 +000015201 dynamic_linker='Win32 ld.exe'
15202 ;;
15203
15204 *,cl*)
15205 # Native MSVC
15206 libname_spec='$name'
15207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15208 library_names_spec='${libname}.dll.lib'
15209
15210 case $build_os in
15211 mingw*)
15212 sys_lib_search_path_spec=
15213 lt_save_ifs=$IFS
15214 IFS=';'
15215 for lt_path in $LIB
15216 do
15217 IFS=$lt_save_ifs
15218 # Let DOS variable expansion print the short 8.3 style file name.
15219 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15220 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15221 done
15222 IFS=$lt_save_ifs
15223 # Convert to MSYS style.
15224 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15225 ;;
15226 cygwin*)
15227 # Convert to unix form, then to dos form, then back to unix form
15228 # but this time dos style (no spaces!) so that the unix form looks
15229 # like /cygdrive/c/PROGRA~1:/cygdr...
15230 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15231 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15232 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15233 ;;
15234 *)
15235 sys_lib_search_path_spec="$LIB"
15236 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15237 # It is most probably a Windows format PATH.
15238 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15239 else
15240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15241 fi
15242 # FIXME: find the short name or the path components, as spaces are
15243 # common. (e.g. "Program Files" -> "PROGRA~1")
15244 ;;
15245 esac
15246
15247 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15248 postinstall_cmds='base_file=`basename \${file}`~
15249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15250 dldir=$destdir/`dirname \$dlpath`~
15251 test -d \$dldir || mkdir -p \$dldir~
15252 $install_prog $dir/$dlname \$dldir/$dlname'
15253 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15254 dlpath=$dir/\$dldll~
15255 $RM \$dlpath'
15256 shlibpath_overrides_runpath=yes
15257 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015258 ;;
15259
15260 *)
cristyda16f162011-02-19 23:52:17 +000015261 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015262 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015263 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015264 ;;
15265 esac
cristy73bd4a52010-10-05 11:24:23 +000015266 # FIXME: first we should search . and the directory the executable is in
15267 shlibpath_var=PATH
15268 ;;
15269
15270darwin* | rhapsody*)
15271 dynamic_linker="$host_os dyld"
15272 version_type=darwin
15273 need_lib_prefix=no
15274 need_version=no
15275 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15276 soname_spec='${libname}${release}${major}$shared_ext'
15277 shlibpath_overrides_runpath=yes
15278 shlibpath_var=DYLD_LIBRARY_PATH
15279 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15280
15281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15283 ;;
15284
15285dgux*)
15286 version_type=linux
15287 need_lib_prefix=no
15288 need_version=no
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 shlibpath_var=LD_LIBRARY_PATH
15292 ;;
15293
15294freebsd1*)
15295 dynamic_linker=no
15296 ;;
15297
15298freebsd* | dragonfly*)
15299 # DragonFly does not have aout. When/if they implement a new
15300 # versioning mechanism, adjust this.
15301 if test -x /usr/bin/objformat; then
15302 objformat=`/usr/bin/objformat`
15303 else
15304 case $host_os in
15305 freebsd[123]*) objformat=aout ;;
15306 *) objformat=elf ;;
15307 esac
15308 fi
15309 version_type=freebsd-$objformat
15310 case $version_type in
15311 freebsd-elf*)
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15313 need_version=no
15314 need_lib_prefix=no
15315 ;;
15316 freebsd-*)
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15318 need_version=yes
15319 ;;
15320 esac
15321 shlibpath_var=LD_LIBRARY_PATH
15322 case $host_os in
15323 freebsd2*)
15324 shlibpath_overrides_runpath=yes
15325 ;;
15326 freebsd3.[01]* | freebsdelf3.[01]*)
15327 shlibpath_overrides_runpath=yes
15328 hardcode_into_libs=yes
15329 ;;
15330 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15331 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15332 shlibpath_overrides_runpath=no
15333 hardcode_into_libs=yes
15334 ;;
15335 *) # from 4.6 on, and DragonFly
15336 shlibpath_overrides_runpath=yes
15337 hardcode_into_libs=yes
15338 ;;
15339 esac
15340 ;;
15341
15342gnu*)
15343 version_type=linux
15344 need_lib_prefix=no
15345 need_version=no
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15347 soname_spec='${libname}${release}${shared_ext}$major'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 hardcode_into_libs=yes
15350 ;;
15351
cristy0c60a692010-11-04 01:09:47 +000015352haiku*)
15353 version_type=linux
15354 need_lib_prefix=no
15355 need_version=no
15356 dynamic_linker="$host_os runtime_loader"
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 shlibpath_var=LIBRARY_PATH
15360 shlibpath_overrides_runpath=yes
15361 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15362 hardcode_into_libs=yes
15363 ;;
15364
cristy73bd4a52010-10-05 11:24:23 +000015365hpux9* | hpux10* | hpux11*)
15366 # Give a soname corresponding to the major version so that dld.sl refuses to
15367 # link against other versions.
15368 version_type=sunos
15369 need_lib_prefix=no
15370 need_version=no
15371 case $host_cpu in
15372 ia64*)
15373 shrext_cmds='.so'
15374 hardcode_into_libs=yes
15375 dynamic_linker="$host_os dld.so"
15376 shlibpath_var=LD_LIBRARY_PATH
15377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 if test "X$HPUX_IA64_MODE" = X32; then
15381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15382 else
15383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15384 fi
15385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15386 ;;
15387 hppa*64*)
15388 shrext_cmds='.sl'
15389 hardcode_into_libs=yes
15390 dynamic_linker="$host_os dld.sl"
15391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394 soname_spec='${libname}${release}${shared_ext}$major'
15395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15397 ;;
15398 *)
15399 shrext_cmds='.sl'
15400 dynamic_linker="$host_os dld.sl"
15401 shlibpath_var=SHLIB_PATH
15402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 soname_spec='${libname}${release}${shared_ext}$major'
15405 ;;
15406 esac
cristy0c60a692010-11-04 01:09:47 +000015407 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015408 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015409 # or fails outright, so override atomically:
15410 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015411 ;;
15412
15413interix[3-9]*)
15414 version_type=linux
15415 need_lib_prefix=no
15416 need_version=no
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 shlibpath_overrides_runpath=no
15422 hardcode_into_libs=yes
15423 ;;
15424
15425irix5* | irix6* | nonstopux*)
15426 case $host_os in
15427 nonstopux*) version_type=nonstopux ;;
15428 *)
15429 if test "$lt_cv_prog_gnu_ld" = yes; then
15430 version_type=linux
15431 else
15432 version_type=irix
15433 fi ;;
15434 esac
15435 need_lib_prefix=no
15436 need_version=no
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15439 case $host_os in
15440 irix5* | nonstopux*)
15441 libsuff= shlibsuff=
15442 ;;
15443 *)
15444 case $LD in # libtool.m4 will add one of these switches to LD
15445 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15446 libsuff= shlibsuff= libmagic=32-bit;;
15447 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15448 libsuff=32 shlibsuff=N32 libmagic=N32;;
15449 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15450 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15451 *) libsuff= shlibsuff= libmagic=never-match;;
15452 esac
15453 ;;
15454 esac
15455 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15456 shlibpath_overrides_runpath=no
15457 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15458 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15459 hardcode_into_libs=yes
15460 ;;
15461
15462# No shared lib support for Linux oldld, aout, or coff.
15463linux*oldld* | linux*aout* | linux*coff*)
15464 dynamic_linker=no
15465 ;;
15466
15467# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015468linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015469 version_type=linux
15470 need_lib_prefix=no
15471 need_version=no
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015477
cristy73bd4a52010-10-05 11:24:23 +000015478 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015479 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015480 $as_echo_n "(cached) " >&6
15481else
15482 lt_cv_shlibpath_overrides_runpath=no
15483 save_LDFLAGS=$LDFLAGS
15484 save_libdir=$libdir
15485 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15486 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015488/* end confdefs.h. */
15489
15490int
15491main ()
15492{
15493
15494 ;
15495 return 0;
15496}
15497_ACEOF
15498if ac_fn_c_try_link "$LINENO"; then :
15499 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015500 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015501fi
15502fi
15503rm -f core conftest.err conftest.$ac_objext \
15504 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015505 LDFLAGS=$save_LDFLAGS
15506 libdir=$save_libdir
15507
15508fi
15509
15510 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015511
15512 # This implies no fast_install, which is unacceptable.
15513 # Some rework will be needed to allow for fast_install
15514 # before this can be enabled.
15515 hardcode_into_libs=yes
15516
15517 # Add ABI-specific directories to the system library path.
15518 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15519
15520 # Append ld.so.conf contents to the search path
15521 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015522 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 +000015523 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015524
cristy73bd4a52010-10-05 11:24:23 +000015525 fi
15526
15527 # We used to test for /lib/ld.so.1 and disable shared libraries on
15528 # powerpc, because MkLinux only supported shared libraries with the
15529 # GNU dynamic linker. Since this was broken with cross compilers,
15530 # most powerpc-linux boxes support dynamic linking these days and
15531 # people can always --disable-shared, the test was removed, and we
15532 # assume the GNU/Linux dynamic linker is in use.
15533 dynamic_linker='GNU/Linux ld.so'
15534 ;;
15535
15536netbsd*)
15537 version_type=sunos
15538 need_lib_prefix=no
15539 need_version=no
15540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15543 dynamic_linker='NetBSD (a.out) ld.so'
15544 else
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 dynamic_linker='NetBSD ld.elf_so'
15548 fi
15549 shlibpath_var=LD_LIBRARY_PATH
15550 shlibpath_overrides_runpath=yes
15551 hardcode_into_libs=yes
15552 ;;
15553
15554newsos6)
15555 version_type=linux
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15559 ;;
15560
15561*nto* | *qnx*)
15562 version_type=qnx
15563 need_lib_prefix=no
15564 need_version=no
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 shlibpath_overrides_runpath=no
15569 hardcode_into_libs=yes
15570 dynamic_linker='ldqnx.so'
15571 ;;
15572
15573openbsd*)
15574 version_type=sunos
15575 sys_lib_dlsearch_path_spec="/usr/lib"
15576 need_lib_prefix=no
15577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15578 case $host_os in
15579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15580 *) need_version=no ;;
15581 esac
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15584 shlibpath_var=LD_LIBRARY_PATH
15585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15586 case $host_os in
15587 openbsd2.[89] | openbsd2.[89].*)
15588 shlibpath_overrides_runpath=no
15589 ;;
15590 *)
15591 shlibpath_overrides_runpath=yes
15592 ;;
15593 esac
15594 else
15595 shlibpath_overrides_runpath=yes
15596 fi
15597 ;;
15598
15599os2*)
15600 libname_spec='$name'
15601 shrext_cmds=".dll"
15602 need_lib_prefix=no
15603 library_names_spec='$libname${shared_ext} $libname.a'
15604 dynamic_linker='OS/2 ld.exe'
15605 shlibpath_var=LIBPATH
15606 ;;
15607
15608osf3* | osf4* | osf5*)
15609 version_type=osf
15610 need_lib_prefix=no
15611 need_version=no
15612 soname_spec='${libname}${release}${shared_ext}$major'
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15617 ;;
15618
15619rdos*)
15620 dynamic_linker=no
15621 ;;
15622
15623solaris*)
15624 version_type=linux
15625 need_lib_prefix=no
15626 need_version=no
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=yes
15631 hardcode_into_libs=yes
15632 # ldd complains unless libraries are executable
15633 postinstall_cmds='chmod +x $lib'
15634 ;;
15635
15636sunos4*)
15637 version_type=sunos
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 shlibpath_overrides_runpath=yes
15642 if test "$with_gnu_ld" = yes; then
15643 need_lib_prefix=no
15644 fi
15645 need_version=yes
15646 ;;
15647
15648sysv4 | sysv4.3*)
15649 version_type=linux
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 case $host_vendor in
15654 sni)
15655 shlibpath_overrides_runpath=no
15656 need_lib_prefix=no
15657 runpath_var=LD_RUN_PATH
15658 ;;
15659 siemens)
15660 need_lib_prefix=no
15661 ;;
15662 motorola)
15663 need_lib_prefix=no
15664 need_version=no
15665 shlibpath_overrides_runpath=no
15666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15667 ;;
15668 esac
15669 ;;
15670
15671sysv4*MP*)
15672 if test -d /usr/nec ;then
15673 version_type=linux
15674 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15675 soname_spec='$libname${shared_ext}.$major'
15676 shlibpath_var=LD_LIBRARY_PATH
15677 fi
15678 ;;
15679
15680sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15681 version_type=freebsd-elf
15682 need_lib_prefix=no
15683 need_version=no
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=yes
15688 hardcode_into_libs=yes
15689 if test "$with_gnu_ld" = yes; then
15690 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15691 else
15692 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15693 case $host_os in
15694 sco3.2v5*)
15695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15696 ;;
15697 esac
15698 fi
15699 sys_lib_dlsearch_path_spec='/usr/lib'
15700 ;;
15701
15702tpf*)
15703 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15704 version_type=linux
15705 need_lib_prefix=no
15706 need_version=no
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15708 shlibpath_var=LD_LIBRARY_PATH
15709 shlibpath_overrides_runpath=no
15710 hardcode_into_libs=yes
15711 ;;
15712
15713uts4*)
15714 version_type=linux
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 ;;
15719
15720*)
15721 dynamic_linker=no
15722 ;;
15723esac
15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15725$as_echo "$dynamic_linker" >&6; }
15726test "$dynamic_linker" = no && can_build_shared=no
15727
15728variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15729if test "$GCC" = yes; then
15730 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15731fi
15732
15733if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15734 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15735fi
15736if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15737 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15738fi
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
cristy0c60a692010-11-04 01:09:47 +000015826
15827
15828
15829
15830
cristy73bd4a52010-10-05 11:24:23 +000015831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15832$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15833hardcode_action=
15834if test -n "$hardcode_libdir_flag_spec" ||
15835 test -n "$runpath_var" ||
15836 test "X$hardcode_automatic" = "Xyes" ; then
15837
15838 # We can hardcode non-existent directories.
15839 if test "$hardcode_direct" != no &&
15840 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15841 # have to relink, otherwise we might link with an installed library
15842 # when we should be linking with a yet-to-be-installed one
15843 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15844 test "$hardcode_minus_L" != no; then
15845 # Linking always hardcodes the temporary library directory.
15846 hardcode_action=relink
15847 else
15848 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15849 hardcode_action=immediate
15850 fi
15851else
15852 # We cannot hardcode anything, or else we can only hardcode existing
15853 # directories.
15854 hardcode_action=unsupported
15855fi
15856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15857$as_echo "$hardcode_action" >&6; }
15858
15859if test "$hardcode_action" = relink ||
15860 test "$inherit_rpath" = yes; then
15861 # Fast installation is not supported
15862 enable_fast_install=no
15863elif test "$shlibpath_overrides_runpath" = yes ||
15864 test "$enable_shared" = no; then
15865 # Fast installation is not necessary
15866 enable_fast_install=needless
15867fi
15868
15869
15870
15871
15872
15873
15874 if test "x$enable_dlopen" != xyes; then
15875 enable_dlopen=unknown
15876 enable_dlopen_self=unknown
15877 enable_dlopen_self_static=unknown
15878else
15879 lt_cv_dlopen=no
15880 lt_cv_dlopen_libs=
15881
15882 case $host_os in
15883 beos*)
15884 lt_cv_dlopen="load_add_on"
15885 lt_cv_dlopen_libs=
15886 lt_cv_dlopen_self=yes
15887 ;;
15888
15889 mingw* | pw32* | cegcc*)
15890 lt_cv_dlopen="LoadLibrary"
15891 lt_cv_dlopen_libs=
15892 ;;
15893
15894 cygwin*)
15895 lt_cv_dlopen="dlopen"
15896 lt_cv_dlopen_libs=
15897 ;;
15898
15899 darwin*)
15900 # if libdl is installed we need to link against it
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15902$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015903if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015904 $as_echo_n "(cached) " >&6
15905else
15906 ac_check_lib_save_LIBS=$LIBS
15907LIBS="-ldl $LIBS"
15908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909/* end confdefs.h. */
15910
15911/* Override any GCC internal prototype to avoid an error.
15912 Use char because int might match the return type of a GCC
15913 builtin and then its argument prototype would still apply. */
15914#ifdef __cplusplus
15915extern "C"
15916#endif
15917char dlopen ();
15918int
15919main ()
15920{
15921return dlopen ();
15922 ;
15923 return 0;
15924}
15925_ACEOF
15926if ac_fn_c_try_link "$LINENO"; then :
15927 ac_cv_lib_dl_dlopen=yes
15928else
15929 ac_cv_lib_dl_dlopen=no
15930fi
15931rm -f core conftest.err conftest.$ac_objext \
15932 conftest$ac_exeext conftest.$ac_ext
15933LIBS=$ac_check_lib_save_LIBS
15934fi
15935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15936$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000015937if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15939else
15940
15941 lt_cv_dlopen="dyld"
15942 lt_cv_dlopen_libs=
15943 lt_cv_dlopen_self=yes
15944
15945fi
15946
15947 ;;
15948
15949 *)
15950 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000015951if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015952 lt_cv_dlopen="shl_load"
15953else
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15955$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015956if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015957 $as_echo_n "(cached) " >&6
15958else
15959 ac_check_lib_save_LIBS=$LIBS
15960LIBS="-ldld $LIBS"
15961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962/* end confdefs.h. */
15963
15964/* Override any GCC internal prototype to avoid an error.
15965 Use char because int might match the return type of a GCC
15966 builtin and then its argument prototype would still apply. */
15967#ifdef __cplusplus
15968extern "C"
15969#endif
15970char shl_load ();
15971int
15972main ()
15973{
15974return shl_load ();
15975 ;
15976 return 0;
15977}
15978_ACEOF
15979if ac_fn_c_try_link "$LINENO"; then :
15980 ac_cv_lib_dld_shl_load=yes
15981else
15982 ac_cv_lib_dld_shl_load=no
15983fi
15984rm -f core conftest.err conftest.$ac_objext \
15985 conftest$ac_exeext conftest.$ac_ext
15986LIBS=$ac_check_lib_save_LIBS
15987fi
15988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15989$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000015990if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015991 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15992else
15993 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000015994if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015995 lt_cv_dlopen="dlopen"
15996else
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15998$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015999if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016000 $as_echo_n "(cached) " >&6
16001else
16002 ac_check_lib_save_LIBS=$LIBS
16003LIBS="-ldl $LIBS"
16004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005/* end confdefs.h. */
16006
16007/* Override any GCC internal prototype to avoid an error.
16008 Use char because int might match the return type of a GCC
16009 builtin and then its argument prototype would still apply. */
16010#ifdef __cplusplus
16011extern "C"
16012#endif
16013char dlopen ();
16014int
16015main ()
16016{
16017return dlopen ();
16018 ;
16019 return 0;
16020}
16021_ACEOF
16022if ac_fn_c_try_link "$LINENO"; then :
16023 ac_cv_lib_dl_dlopen=yes
16024else
16025 ac_cv_lib_dl_dlopen=no
16026fi
16027rm -f core conftest.err conftest.$ac_objext \
16028 conftest$ac_exeext conftest.$ac_ext
16029LIBS=$ac_check_lib_save_LIBS
16030fi
16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16032$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016033if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16035else
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16037$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016038if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016039 $as_echo_n "(cached) " >&6
16040else
16041 ac_check_lib_save_LIBS=$LIBS
16042LIBS="-lsvld $LIBS"
16043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044/* end confdefs.h. */
16045
16046/* Override any GCC internal prototype to avoid an error.
16047 Use char because int might match the return type of a GCC
16048 builtin and then its argument prototype would still apply. */
16049#ifdef __cplusplus
16050extern "C"
16051#endif
16052char dlopen ();
16053int
16054main ()
16055{
16056return dlopen ();
16057 ;
16058 return 0;
16059}
16060_ACEOF
16061if ac_fn_c_try_link "$LINENO"; then :
16062 ac_cv_lib_svld_dlopen=yes
16063else
16064 ac_cv_lib_svld_dlopen=no
16065fi
16066rm -f core conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16068LIBS=$ac_check_lib_save_LIBS
16069fi
16070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16071$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016072if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16074else
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16076$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016077if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016078 $as_echo_n "(cached) " >&6
16079else
16080 ac_check_lib_save_LIBS=$LIBS
16081LIBS="-ldld $LIBS"
16082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083/* end confdefs.h. */
16084
16085/* Override any GCC internal prototype to avoid an error.
16086 Use char because int might match the return type of a GCC
16087 builtin and then its argument prototype would still apply. */
16088#ifdef __cplusplus
16089extern "C"
16090#endif
16091char dld_link ();
16092int
16093main ()
16094{
16095return dld_link ();
16096 ;
16097 return 0;
16098}
16099_ACEOF
16100if ac_fn_c_try_link "$LINENO"; then :
16101 ac_cv_lib_dld_dld_link=yes
16102else
16103 ac_cv_lib_dld_dld_link=no
16104fi
16105rm -f core conftest.err conftest.$ac_objext \
16106 conftest$ac_exeext conftest.$ac_ext
16107LIBS=$ac_check_lib_save_LIBS
16108fi
16109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16110$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016111if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016112 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16113fi
16114
16115
16116fi
16117
16118
16119fi
16120
16121
16122fi
16123
16124
16125fi
16126
16127
16128fi
16129
16130 ;;
16131 esac
16132
16133 if test "x$lt_cv_dlopen" != xno; then
16134 enable_dlopen=yes
16135 else
16136 enable_dlopen=no
16137 fi
16138
16139 case $lt_cv_dlopen in
16140 dlopen)
16141 save_CPPFLAGS="$CPPFLAGS"
16142 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16143
16144 save_LDFLAGS="$LDFLAGS"
16145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16146
16147 save_LIBS="$LIBS"
16148 LIBS="$lt_cv_dlopen_libs $LIBS"
16149
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16151$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016152if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016153 $as_echo_n "(cached) " >&6
16154else
16155 if test "$cross_compiling" = yes; then :
16156 lt_cv_dlopen_self=cross
16157else
16158 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16159 lt_status=$lt_dlunknown
16160 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016161#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016162#include "confdefs.h"
16163
16164#if HAVE_DLFCN_H
16165#include <dlfcn.h>
16166#endif
16167
16168#include <stdio.h>
16169
16170#ifdef RTLD_GLOBAL
16171# define LT_DLGLOBAL RTLD_GLOBAL
16172#else
16173# ifdef DL_GLOBAL
16174# define LT_DLGLOBAL DL_GLOBAL
16175# else
16176# define LT_DLGLOBAL 0
16177# endif
16178#endif
16179
16180/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16181 find out it does not work in some platform. */
16182#ifndef LT_DLLAZY_OR_NOW
16183# ifdef RTLD_LAZY
16184# define LT_DLLAZY_OR_NOW RTLD_LAZY
16185# else
16186# ifdef DL_LAZY
16187# define LT_DLLAZY_OR_NOW DL_LAZY
16188# else
16189# ifdef RTLD_NOW
16190# define LT_DLLAZY_OR_NOW RTLD_NOW
16191# else
16192# ifdef DL_NOW
16193# define LT_DLLAZY_OR_NOW DL_NOW
16194# else
16195# define LT_DLLAZY_OR_NOW 0
16196# endif
16197# endif
16198# endif
16199# endif
16200#endif
16201
cristy0c60a692010-11-04 01:09:47 +000016202/* When -fvisbility=hidden is used, assume the code has been annotated
16203 correspondingly for the symbols needed. */
16204#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016205int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016206#endif
16207
cristyda16f162011-02-19 23:52:17 +000016208int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016209int main ()
16210{
16211 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16212 int status = $lt_dlunknown;
16213
16214 if (self)
16215 {
16216 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016217 else
16218 {
16219 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16220 else puts (dlerror ());
16221 }
cristy73bd4a52010-10-05 11:24:23 +000016222 /* dlclose (self); */
16223 }
16224 else
16225 puts (dlerror ());
16226
16227 return status;
16228}
16229_LT_EOF
16230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16231 (eval $ac_link) 2>&5
16232 ac_status=$?
16233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16234 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16235 (./conftest; exit; ) >&5 2>/dev/null
16236 lt_status=$?
16237 case x$lt_status in
16238 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16239 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16240 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16241 esac
16242 else :
16243 # compilation failed
16244 lt_cv_dlopen_self=no
16245 fi
16246fi
16247rm -fr conftest*
16248
16249
16250fi
16251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16252$as_echo "$lt_cv_dlopen_self" >&6; }
16253
16254 if test "x$lt_cv_dlopen_self" = xyes; then
16255 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16257$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016258if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016259 $as_echo_n "(cached) " >&6
16260else
16261 if test "$cross_compiling" = yes; then :
16262 lt_cv_dlopen_self_static=cross
16263else
16264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16265 lt_status=$lt_dlunknown
16266 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016267#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016268#include "confdefs.h"
16269
16270#if HAVE_DLFCN_H
16271#include <dlfcn.h>
16272#endif
16273
16274#include <stdio.h>
16275
16276#ifdef RTLD_GLOBAL
16277# define LT_DLGLOBAL RTLD_GLOBAL
16278#else
16279# ifdef DL_GLOBAL
16280# define LT_DLGLOBAL DL_GLOBAL
16281# else
16282# define LT_DLGLOBAL 0
16283# endif
16284#endif
16285
16286/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16287 find out it does not work in some platform. */
16288#ifndef LT_DLLAZY_OR_NOW
16289# ifdef RTLD_LAZY
16290# define LT_DLLAZY_OR_NOW RTLD_LAZY
16291# else
16292# ifdef DL_LAZY
16293# define LT_DLLAZY_OR_NOW DL_LAZY
16294# else
16295# ifdef RTLD_NOW
16296# define LT_DLLAZY_OR_NOW RTLD_NOW
16297# else
16298# ifdef DL_NOW
16299# define LT_DLLAZY_OR_NOW DL_NOW
16300# else
16301# define LT_DLLAZY_OR_NOW 0
16302# endif
16303# endif
16304# endif
16305# endif
16306#endif
16307
cristy0c60a692010-11-04 01:09:47 +000016308/* When -fvisbility=hidden is used, assume the code has been annotated
16309 correspondingly for the symbols needed. */
16310#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016311int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016312#endif
16313
cristyda16f162011-02-19 23:52:17 +000016314int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016315int main ()
16316{
16317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16318 int status = $lt_dlunknown;
16319
16320 if (self)
16321 {
16322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016323 else
16324 {
16325 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16326 else puts (dlerror ());
16327 }
cristy73bd4a52010-10-05 11:24:23 +000016328 /* dlclose (self); */
16329 }
16330 else
16331 puts (dlerror ());
16332
16333 return status;
16334}
16335_LT_EOF
16336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16337 (eval $ac_link) 2>&5
16338 ac_status=$?
16339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16340 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16341 (./conftest; exit; ) >&5 2>/dev/null
16342 lt_status=$?
16343 case x$lt_status in
16344 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16345 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16346 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16347 esac
16348 else :
16349 # compilation failed
16350 lt_cv_dlopen_self_static=no
16351 fi
16352fi
16353rm -fr conftest*
16354
16355
16356fi
16357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16358$as_echo "$lt_cv_dlopen_self_static" >&6; }
16359 fi
16360
16361 CPPFLAGS="$save_CPPFLAGS"
16362 LDFLAGS="$save_LDFLAGS"
16363 LIBS="$save_LIBS"
16364 ;;
16365 esac
16366
16367 case $lt_cv_dlopen_self in
16368 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16369 *) enable_dlopen_self=unknown ;;
16370 esac
16371
16372 case $lt_cv_dlopen_self_static in
16373 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16374 *) enable_dlopen_self_static=unknown ;;
16375 esac
16376fi
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394striplib=
16395old_striplib=
16396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16397$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16398if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16399 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16400 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16402$as_echo "yes" >&6; }
16403else
16404# FIXME - insert some real tests, host_os isn't really good enough
16405 case $host_os in
16406 darwin*)
16407 if test -n "$STRIP" ; then
16408 striplib="$STRIP -x"
16409 old_striplib="$STRIP -S"
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16411$as_echo "yes" >&6; }
16412 else
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414$as_echo "no" >&6; }
16415 fi
16416 ;;
16417 *)
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419$as_echo "no" >&6; }
16420 ;;
16421 esac
16422fi
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435 # Report which library types will actually be built
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16437$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16439$as_echo "$can_build_shared" >&6; }
16440
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16442$as_echo_n "checking whether to build shared libraries... " >&6; }
16443 test "$can_build_shared" = "no" && enable_shared=no
16444
16445 # On AIX, shared libraries and static libraries use the same namespace, and
16446 # are all built from PIC.
16447 case $host_os in
16448 aix3*)
16449 test "$enable_shared" = yes && enable_static=no
16450 if test -n "$RANLIB"; then
16451 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16452 postinstall_cmds='$RANLIB $lib'
16453 fi
16454 ;;
16455
16456 aix[4-9]*)
16457 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16458 test "$enable_shared" = yes && enable_static=no
16459 fi
16460 ;;
16461 esac
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16463$as_echo "$enable_shared" >&6; }
16464
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16466$as_echo_n "checking whether to build static libraries... " >&6; }
16467 # Make sure either enable_shared or enable_static is yes.
16468 test "$enable_shared" = yes || enable_static=yes
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16470$as_echo "$enable_static" >&6; }
16471
16472
16473
16474
16475fi
16476ac_ext=c
16477ac_cpp='$CPP $CPPFLAGS'
16478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16480ac_compiler_gnu=$ac_cv_c_compiler_gnu
16481
16482CC="$lt_save_CC"
16483
cristy0c60a692010-11-04 01:09:47 +000016484 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16485 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16486 (test "X$CXX" != "Xg++"))) ; then
16487 ac_ext=cpp
16488ac_cpp='$CXXCPP $CPPFLAGS'
16489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16493$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16494if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016495 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016496 $as_echo_n "(cached) " >&6
16497else
16498 # Double quotes because CXXCPP needs to be expanded
16499 for CXXCPP in "$CXX -E" "/lib/cpp"
16500 do
16501 ac_preproc_ok=false
16502for ac_cxx_preproc_warn_flag in '' yes
16503do
16504 # Use a header file that comes with gcc, so configuring glibc
16505 # with a fresh cross-compiler works.
16506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16507 # <limits.h> exists even on freestanding compilers.
16508 # On the NeXT, cc -E runs the code through the compiler's parser,
16509 # not just through cpp. "Syntax error" is here to catch this case.
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511/* end confdefs.h. */
16512#ifdef __STDC__
16513# include <limits.h>
16514#else
16515# include <assert.h>
16516#endif
16517 Syntax error
16518_ACEOF
16519if ac_fn_cxx_try_cpp "$LINENO"; then :
16520
16521else
16522 # Broken: fails on valid input.
16523continue
16524fi
cristyda16f162011-02-19 23:52:17 +000016525rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016526
16527 # OK, works on sane cases. Now check whether nonexistent headers
16528 # can be detected and how.
16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530/* end confdefs.h. */
16531#include <ac_nonexistent.h>
16532_ACEOF
16533if ac_fn_cxx_try_cpp "$LINENO"; then :
16534 # Broken: success on invalid input.
16535continue
16536else
16537 # Passes both tests.
16538ac_preproc_ok=:
16539break
16540fi
cristyda16f162011-02-19 23:52:17 +000016541rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016542
16543done
16544# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016545rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016546if $ac_preproc_ok; then :
16547 break
16548fi
16549
16550 done
16551 ac_cv_prog_CXXCPP=$CXXCPP
16552
16553fi
16554 CXXCPP=$ac_cv_prog_CXXCPP
16555else
16556 ac_cv_prog_CXXCPP=$CXXCPP
16557fi
16558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16559$as_echo "$CXXCPP" >&6; }
16560ac_preproc_ok=false
16561for ac_cxx_preproc_warn_flag in '' yes
16562do
16563 # Use a header file that comes with gcc, so configuring glibc
16564 # with a fresh cross-compiler works.
16565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566 # <limits.h> exists even on freestanding compilers.
16567 # On the NeXT, cc -E runs the code through the compiler's parser,
16568 # not just through cpp. "Syntax error" is here to catch this case.
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570/* end confdefs.h. */
16571#ifdef __STDC__
16572# include <limits.h>
16573#else
16574# include <assert.h>
16575#endif
16576 Syntax error
16577_ACEOF
16578if ac_fn_cxx_try_cpp "$LINENO"; then :
16579
16580else
16581 # Broken: fails on valid input.
16582continue
16583fi
cristyda16f162011-02-19 23:52:17 +000016584rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016585
16586 # OK, works on sane cases. Now check whether nonexistent headers
16587 # can be detected and how.
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589/* end confdefs.h. */
16590#include <ac_nonexistent.h>
16591_ACEOF
16592if ac_fn_cxx_try_cpp "$LINENO"; then :
16593 # Broken: success on invalid input.
16594continue
16595else
16596 # Passes both tests.
16597ac_preproc_ok=:
16598break
16599fi
cristyda16f162011-02-19 23:52:17 +000016600rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016601
16602done
16603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016604rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016605if $ac_preproc_ok; then :
16606
16607else
16608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16610as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16611See \`config.log' for more details" "$LINENO" 5; }
16612fi
16613
16614ac_ext=c
16615ac_cpp='$CPP $CPPFLAGS'
16616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16618ac_compiler_gnu=$ac_cv_c_compiler_gnu
16619
16620else
16621 _lt_caught_CXX_error=yes
16622fi
cristy73bd4a52010-10-05 11:24:23 +000016623
16624ac_ext=cpp
16625ac_cpp='$CXXCPP $CPPFLAGS'
16626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16629
16630archive_cmds_need_lc_CXX=no
16631allow_undefined_flag_CXX=
16632always_export_symbols_CXX=no
16633archive_expsym_cmds_CXX=
16634compiler_needs_object_CXX=no
16635export_dynamic_flag_spec_CXX=
16636hardcode_direct_CXX=no
16637hardcode_direct_absolute_CXX=no
16638hardcode_libdir_flag_spec_CXX=
16639hardcode_libdir_flag_spec_ld_CXX=
16640hardcode_libdir_separator_CXX=
16641hardcode_minus_L_CXX=no
16642hardcode_shlibpath_var_CXX=unsupported
16643hardcode_automatic_CXX=no
16644inherit_rpath_CXX=no
16645module_cmds_CXX=
16646module_expsym_cmds_CXX=
16647link_all_deplibs_CXX=unknown
16648old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016649reload_flag_CXX=$reload_flag
16650reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016651no_undefined_flag_CXX=
16652whole_archive_flag_spec_CXX=
16653enable_shared_with_static_runtimes_CXX=no
16654
16655# Source file extension for C++ test sources.
16656ac_ext=cpp
16657
16658# Object file extension for compiled C++ test sources.
16659objext=o
16660objext_CXX=$objext
16661
16662# No sense in running all these tests if we already determined that
16663# the CXX compiler isn't working. Some variables (like enable_shared)
16664# are currently assumed to apply to all compilers on this platform,
16665# and will be corrupted by setting them based on a non-working compiler.
16666if test "$_lt_caught_CXX_error" != yes; then
16667 # Code to be used in simple compile tests
16668 lt_simple_compile_test_code="int some_variable = 0;"
16669
16670 # Code to be used in simple link tests
16671 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16672
16673 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16674
16675
16676
16677
16678
16679
16680# If no C compiler was specified, use CC.
16681LTCC=${LTCC-"$CC"}
16682
16683# If no C compiler flags were specified, use CFLAGS.
16684LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16685
16686# Allow CC to be a program name with arguments.
16687compiler=$CC
16688
16689
16690 # save warnings/boilerplate of simple test code
16691 ac_outfile=conftest.$ac_objext
16692echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16693eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16694_lt_compiler_boilerplate=`cat conftest.err`
16695$RM conftest*
16696
16697 ac_outfile=conftest.$ac_objext
16698echo "$lt_simple_link_test_code" >conftest.$ac_ext
16699eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16700_lt_linker_boilerplate=`cat conftest.err`
16701$RM -r conftest*
16702
16703
16704 # Allow CC to be a program name with arguments.
16705 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016706 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016707 lt_save_LD=$LD
16708 lt_save_GCC=$GCC
16709 GCC=$GXX
16710 lt_save_with_gnu_ld=$with_gnu_ld
16711 lt_save_path_LD=$lt_cv_path_LD
16712 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16713 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16714 else
16715 $as_unset lt_cv_prog_gnu_ld
16716 fi
16717 if test -n "${lt_cv_path_LDCXX+set}"; then
16718 lt_cv_path_LD=$lt_cv_path_LDCXX
16719 else
16720 $as_unset lt_cv_path_LD
16721 fi
16722 test -z "${LDCXX+set}" || LD=$LDCXX
16723 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016724 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016725 compiler=$CC
16726 compiler_CXX=$CC
16727 for cc_temp in $compiler""; do
16728 case $cc_temp in
16729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16731 \-*) ;;
16732 *) break;;
16733 esac
16734done
cristy0c60a692010-11-04 01:09:47 +000016735cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016736
16737
16738 if test -n "$compiler"; then
16739 # We don't want -fno-exception when compiling C++ code, so set the
16740 # no_builtin_flag separately
16741 if test "$GXX" = yes; then
16742 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16743 else
16744 lt_prog_compiler_no_builtin_flag_CXX=
16745 fi
16746
16747 if test "$GXX" = yes; then
16748 # Set up default GNU C++ configuration
16749
16750
16751
16752# Check whether --with-gnu-ld was given.
16753if test "${with_gnu_ld+set}" = set; then :
16754 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16755else
16756 with_gnu_ld=no
16757fi
16758
16759ac_prog=ld
16760if test "$GCC" = yes; then
16761 # Check if gcc -print-prog-name=ld gives a path.
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16763$as_echo_n "checking for ld used by $CC... " >&6; }
16764 case $host in
16765 *-*-mingw*)
16766 # gcc leaves a trailing carriage return which upsets mingw
16767 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16768 *)
16769 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16770 esac
16771 case $ac_prog in
16772 # Accept absolute paths.
16773 [\\/]* | ?:[\\/]*)
16774 re_direlt='/[^/][^/]*/\.\./'
16775 # Canonicalize the pathname of ld
16776 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16777 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16778 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16779 done
16780 test -z "$LD" && LD="$ac_prog"
16781 ;;
16782 "")
16783 # If it fails, then pretend we aren't using GCC.
16784 ac_prog=ld
16785 ;;
16786 *)
16787 # If it is relative, then search for the first ld in PATH.
16788 with_gnu_ld=unknown
16789 ;;
16790 esac
16791elif test "$with_gnu_ld" = yes; then
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16793$as_echo_n "checking for GNU ld... " >&6; }
16794else
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16796$as_echo_n "checking for non-GNU ld... " >&6; }
16797fi
cristyda16f162011-02-19 23:52:17 +000016798if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016799 $as_echo_n "(cached) " >&6
16800else
16801 if test -z "$LD"; then
16802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16803 for ac_dir in $PATH; do
16804 IFS="$lt_save_ifs"
16805 test -z "$ac_dir" && ac_dir=.
16806 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16807 lt_cv_path_LD="$ac_dir/$ac_prog"
16808 # Check to see if the program is GNU ld. I'd rather use --version,
16809 # but apparently some variants of GNU ld only accept -v.
16810 # Break only if it was the GNU/non-GNU ld that we prefer.
16811 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16812 *GNU* | *'with BFD'*)
16813 test "$with_gnu_ld" != no && break
16814 ;;
16815 *)
16816 test "$with_gnu_ld" != yes && break
16817 ;;
16818 esac
16819 fi
16820 done
16821 IFS="$lt_save_ifs"
16822else
16823 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16824fi
16825fi
16826
16827LD="$lt_cv_path_LD"
16828if test -n "$LD"; then
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16830$as_echo "$LD" >&6; }
16831else
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16833$as_echo "no" >&6; }
16834fi
cristy98dddb52010-11-04 00:30:15 +000016835test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16837$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016838if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016839 $as_echo_n "(cached) " >&6
16840else
16841 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16842case `$LD -v 2>&1 </dev/null` in
16843*GNU* | *'with BFD'*)
16844 lt_cv_prog_gnu_ld=yes
16845 ;;
16846*)
16847 lt_cv_prog_gnu_ld=no
16848 ;;
16849esac
16850fi
16851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16852$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16853with_gnu_ld=$lt_cv_prog_gnu_ld
16854
16855
16856
16857
16858
16859
16860
16861 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16862 # archiving commands below assume that GNU ld is being used.
16863 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016864 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16865 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 +000016866
16867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16869
16870 # If archive_cmds runs LD, not CC, wlarc should be empty
16871 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16872 # investigate it a little bit more. (MM)
16873 wlarc='${wl}'
16874
16875 # ancient GNU ld didn't support --whole-archive et. al.
16876 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16877 $GREP 'no-whole-archive' > /dev/null; then
16878 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16879 else
16880 whole_archive_flag_spec_CXX=
16881 fi
16882 else
16883 with_gnu_ld=no
16884 wlarc=
16885
16886 # A generic and very simple default shared library creation
16887 # command for GNU C++ for the case where it uses the native
16888 # linker, instead of GNU ld. If possible, this setting should
16889 # overridden to take advantage of the native linker features on
16890 # the platform it is being used on.
16891 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16892 fi
16893
16894 # Commands to make compiler produce verbose output that lists
16895 # what "hidden" libraries, object files and flags are used when
16896 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016898
16899 else
16900 GXX=no
16901 with_gnu_ld=no
16902 wlarc=
16903 fi
16904
16905 # PORTME: fill in a description of your system's C++ link characteristics
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16907$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16908 ld_shlibs_CXX=yes
16909 case $host_os in
16910 aix3*)
16911 # FIXME: insert proper C++ library support
16912 ld_shlibs_CXX=no
16913 ;;
16914 aix[4-9]*)
16915 if test "$host_cpu" = ia64; then
16916 # On IA64, the linker does run time linking by default, so we don't
16917 # have to do anything special.
16918 aix_use_runtimelinking=no
16919 exp_sym_flag='-Bexport'
16920 no_entry_flag=""
16921 else
16922 aix_use_runtimelinking=no
16923
16924 # Test if we are trying to use run time linking or normal
16925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16926 # need to do runtime linking.
16927 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16928 for ld_flag in $LDFLAGS; do
16929 case $ld_flag in
16930 *-brtl*)
16931 aix_use_runtimelinking=yes
16932 break
16933 ;;
16934 esac
16935 done
16936 ;;
16937 esac
16938
16939 exp_sym_flag='-bexport'
16940 no_entry_flag='-bnoentry'
16941 fi
16942
16943 # When large executables or shared objects are built, AIX ld can
16944 # have problems creating the table of contents. If linking a library
16945 # or program results in "error TOC overflow" add -mminimal-toc to
16946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16948
16949 archive_cmds_CXX=''
16950 hardcode_direct_CXX=yes
16951 hardcode_direct_absolute_CXX=yes
16952 hardcode_libdir_separator_CXX=':'
16953 link_all_deplibs_CXX=yes
16954 file_list_spec_CXX='${wl}-f,'
16955
16956 if test "$GXX" = yes; then
16957 case $host_os in aix4.[012]|aix4.[012].*)
16958 # We only want to do this on AIX 4.2 and lower, the check
16959 # below for broken collect2 doesn't work under 4.3+
16960 collect2name=`${CC} -print-prog-name=collect2`
16961 if test -f "$collect2name" &&
16962 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16963 then
16964 # We have reworked collect2
16965 :
16966 else
16967 # We have old collect2
16968 hardcode_direct_CXX=unsupported
16969 # It fails to find uninstalled libraries when the uninstalled
16970 # path is not listed in the libpath. Setting hardcode_minus_L
16971 # to unsupported forces relinking
16972 hardcode_minus_L_CXX=yes
16973 hardcode_libdir_flag_spec_CXX='-L$libdir'
16974 hardcode_libdir_separator_CXX=
16975 fi
16976 esac
16977 shared_flag='-shared'
16978 if test "$aix_use_runtimelinking" = yes; then
16979 shared_flag="$shared_flag "'${wl}-G'
16980 fi
16981 else
16982 # not using gcc
16983 if test "$host_cpu" = ia64; then
16984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16985 # chokes on -Wl,-G. The following line is correct:
16986 shared_flag='-G'
16987 else
16988 if test "$aix_use_runtimelinking" = yes; then
16989 shared_flag='${wl}-G'
16990 else
16991 shared_flag='${wl}-bM:SRE'
16992 fi
16993 fi
16994 fi
16995
16996 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16997 # It seems that -bexpall does not export symbols beginning with
16998 # underscore (_), so it is better to generate a list of symbols to
16999 # export.
17000 always_export_symbols_CXX=yes
17001 if test "$aix_use_runtimelinking" = yes; then
17002 # Warning - without using the other runtime loading flags (-brtl),
17003 # -berok will link without error, but may produce a broken library.
17004 allow_undefined_flag_CXX='-berok'
17005 # Determine the default libpath from the value encoded in an empty
17006 # executable.
cristyda16f162011-02-19 23:52:17 +000017007 if test "${lt_cv_aix_libpath+set}" = set; then
17008 aix_libpath=$lt_cv_aix_libpath
17009else
17010 if ${lt_cv_aix_libpath__CXX+:} false; then :
17011 $as_echo_n "(cached) " >&6
17012else
17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017014/* end confdefs.h. */
17015
17016int
17017main ()
17018{
17019
17020 ;
17021 return 0;
17022}
17023_ACEOF
17024if ac_fn_cxx_try_link "$LINENO"; then :
17025
cristyda16f162011-02-19 23:52:17 +000017026 lt_aix_libpath_sed='
17027 /Import File Strings/,/^$/ {
17028 /^0/ {
17029 s/^0 *\([^ ]*\) *$/\1/
17030 p
17031 }
17032 }'
17033 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17034 # Check for a 64-bit object if we didn't find anything.
17035 if test -z "$lt_cv_aix_libpath__CXX"; then
17036 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17037 fi
cristy73bd4a52010-10-05 11:24:23 +000017038fi
17039rm -f core conftest.err conftest.$ac_objext \
17040 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017041 if test -z "$lt_cv_aix_libpath__CXX"; then
17042 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17043 fi
17044
17045fi
17046
17047 aix_libpath=$lt_cv_aix_libpath__CXX
17048fi
cristy73bd4a52010-10-05 11:24:23 +000017049
17050 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17051
cristy0c60a692010-11-04 01:09:47 +000017052 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 +000017053 else
17054 if test "$host_cpu" = ia64; then
17055 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17056 allow_undefined_flag_CXX="-z nodefs"
17057 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"
17058 else
17059 # Determine the default libpath from the value encoded in an
17060 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017061 if test "${lt_cv_aix_libpath+set}" = set; then
17062 aix_libpath=$lt_cv_aix_libpath
17063else
17064 if ${lt_cv_aix_libpath__CXX+:} false; then :
17065 $as_echo_n "(cached) " >&6
17066else
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017068/* end confdefs.h. */
17069
17070int
17071main ()
17072{
17073
17074 ;
17075 return 0;
17076}
17077_ACEOF
17078if ac_fn_cxx_try_link "$LINENO"; then :
17079
cristyda16f162011-02-19 23:52:17 +000017080 lt_aix_libpath_sed='
17081 /Import File Strings/,/^$/ {
17082 /^0/ {
17083 s/^0 *\([^ ]*\) *$/\1/
17084 p
17085 }
17086 }'
17087 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17088 # Check for a 64-bit object if we didn't find anything.
17089 if test -z "$lt_cv_aix_libpath__CXX"; then
17090 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17091 fi
cristy73bd4a52010-10-05 11:24:23 +000017092fi
17093rm -f core conftest.err conftest.$ac_objext \
17094 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017095 if test -z "$lt_cv_aix_libpath__CXX"; then
17096 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17097 fi
17098
17099fi
17100
17101 aix_libpath=$lt_cv_aix_libpath__CXX
17102fi
cristy73bd4a52010-10-05 11:24:23 +000017103
17104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17105 # Warning - without using the other run time loading flags,
17106 # -berok will link without error, but may produce a broken library.
17107 no_undefined_flag_CXX=' ${wl}-bernotok'
17108 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017109 if test "$with_gnu_ld" = yes; then
17110 # We only use this code for GNU lds that support --whole-archive.
17111 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17112 else
17113 # Exported symbols can be pulled into shared objects from archives
17114 whole_archive_flag_spec_CXX='$convenience'
17115 fi
cristy73bd4a52010-10-05 11:24:23 +000017116 archive_cmds_need_lc_CXX=yes
17117 # This is similar to how AIX traditionally builds its shared
17118 # libraries.
17119 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'
17120 fi
17121 fi
17122 ;;
17123
17124 beos*)
17125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17126 allow_undefined_flag_CXX=unsupported
17127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17128 # support --undefined. This deserves some investigation. FIXME
17129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17130 else
17131 ld_shlibs_CXX=no
17132 fi
17133 ;;
17134
17135 chorus*)
17136 case $cc_basename in
17137 *)
17138 # FIXME: insert proper C++ library support
17139 ld_shlibs_CXX=no
17140 ;;
17141 esac
17142 ;;
17143
17144 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017145 case $GXX,$cc_basename in
17146 ,cl* | no,cl*)
17147 # Native MSVC
17148 # hardcode_libdir_flag_spec is actually meaningless, as there is
17149 # no search path for DLLs.
17150 hardcode_libdir_flag_spec_CXX=' '
17151 allow_undefined_flag_CXX=unsupported
17152 always_export_symbols_CXX=yes
17153 file_list_spec_CXX='@'
17154 # Tell ltmain to make .lib files, not .a files.
17155 libext=lib
17156 # Tell ltmain to make .dll files, not .so files.
17157 shrext_cmds=".dll"
17158 # FIXME: Setting linknames here is a bad hack.
17159 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17160 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17161 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17162 else
17163 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17164 fi~
17165 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17166 linknames='
17167 # The linker will not automatically build a static lib if we build a DLL.
17168 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17169 enable_shared_with_static_runtimes_CXX=yes
17170 # Don't use ranlib
17171 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17172 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17173 lt_tool_outputfile="@TOOL_OUTPUT@"~
17174 case $lt_outputfile in
17175 *.exe|*.EXE) ;;
17176 *)
17177 lt_outputfile="$lt_outputfile.exe"
17178 lt_tool_outputfile="$lt_tool_outputfile.exe"
17179 ;;
17180 esac~
17181 func_to_tool_file "$lt_outputfile"~
17182 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17183 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17184 $RM "$lt_outputfile.manifest";
17185 fi'
17186 ;;
17187 *)
17188 # g++
17189 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17190 # as there is no search path for DLLs.
17191 hardcode_libdir_flag_spec_CXX='-L$libdir'
17192 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17193 allow_undefined_flag_CXX=unsupported
17194 always_export_symbols_CXX=no
17195 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017196
cristyda16f162011-02-19 23:52:17 +000017197 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17198 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'
17199 # If the export-symbols file already is a .def file (1st line
17200 # is EXPORTS), use it as is; otherwise, prepend...
17201 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17202 cp $export_symbols $output_objdir/$soname.def;
17203 else
17204 echo EXPORTS > $output_objdir/$soname.def;
17205 cat $export_symbols >> $output_objdir/$soname.def;
17206 fi~
17207 $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'
17208 else
17209 ld_shlibs_CXX=no
17210 fi
17211 ;;
17212 esac
17213 ;;
cristy73bd4a52010-10-05 11:24:23 +000017214 darwin* | rhapsody*)
17215
17216
17217 archive_cmds_need_lc_CXX=no
17218 hardcode_direct_CXX=no
17219 hardcode_automatic_CXX=yes
17220 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017221 if test "$lt_cv_ld_force_load" = "yes"; then
17222 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\"`'
17223 else
17224 whole_archive_flag_spec_CXX=''
17225 fi
cristy73bd4a52010-10-05 11:24:23 +000017226 link_all_deplibs_CXX=yes
17227 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17228 case $cc_basename in
17229 ifort*) _lt_dar_can_shared=yes ;;
17230 *) _lt_dar_can_shared=$GCC ;;
17231 esac
17232 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017233 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017234 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}"
17235 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17236 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}"
17237 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}"
17238 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17239 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}"
17240 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}"
17241 fi
17242
17243 else
17244 ld_shlibs_CXX=no
17245 fi
17246
17247 ;;
17248
17249 dgux*)
17250 case $cc_basename in
17251 ec++*)
17252 # FIXME: insert proper C++ library support
17253 ld_shlibs_CXX=no
17254 ;;
17255 ghcx*)
17256 # Green Hills C++ Compiler
17257 # FIXME: insert proper C++ library support
17258 ld_shlibs_CXX=no
17259 ;;
17260 *)
17261 # FIXME: insert proper C++ library support
17262 ld_shlibs_CXX=no
17263 ;;
17264 esac
17265 ;;
17266
17267 freebsd[12]*)
17268 # C++ shared libraries reported to be fairly broken before
17269 # switch to ELF
17270 ld_shlibs_CXX=no
17271 ;;
17272
17273 freebsd-elf*)
17274 archive_cmds_need_lc_CXX=no
17275 ;;
17276
17277 freebsd* | dragonfly*)
17278 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17279 # conventions
17280 ld_shlibs_CXX=yes
17281 ;;
17282
17283 gnu*)
17284 ;;
17285
cristy0c60a692010-11-04 01:09:47 +000017286 haiku*)
17287 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17288 link_all_deplibs_CXX=yes
17289 ;;
17290
cristy73bd4a52010-10-05 11:24:23 +000017291 hpux9*)
17292 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17293 hardcode_libdir_separator_CXX=:
17294 export_dynamic_flag_spec_CXX='${wl}-E'
17295 hardcode_direct_CXX=yes
17296 hardcode_minus_L_CXX=yes # Not in the search PATH,
17297 # but as the default
17298 # location of the library.
17299
17300 case $cc_basename in
17301 CC*)
17302 # FIXME: insert proper C++ library support
17303 ld_shlibs_CXX=no
17304 ;;
17305 aCC*)
17306 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'
17307 # Commands to make compiler produce verbose output that lists
17308 # what "hidden" libraries, object files and flags are used when
17309 # linking a shared library.
17310 #
17311 # There doesn't appear to be a way to prevent this compiler from
17312 # explicitly linking system object files so we need to strip them
17313 # from the output so that they don't get included in the library
17314 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017315 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 +000017316 ;;
17317 *)
17318 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017319 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 +000017320 else
17321 # FIXME: insert proper C++ library support
17322 ld_shlibs_CXX=no
17323 fi
17324 ;;
17325 esac
17326 ;;
17327
17328 hpux10*|hpux11*)
17329 if test $with_gnu_ld = no; then
17330 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17331 hardcode_libdir_separator_CXX=:
17332
17333 case $host_cpu in
17334 hppa*64*|ia64*)
17335 ;;
17336 *)
17337 export_dynamic_flag_spec_CXX='${wl}-E'
17338 ;;
17339 esac
17340 fi
17341 case $host_cpu in
17342 hppa*64*|ia64*)
17343 hardcode_direct_CXX=no
17344 hardcode_shlibpath_var_CXX=no
17345 ;;
17346 *)
17347 hardcode_direct_CXX=yes
17348 hardcode_direct_absolute_CXX=yes
17349 hardcode_minus_L_CXX=yes # Not in the search PATH,
17350 # but as the default
17351 # location of the library.
17352 ;;
17353 esac
17354
17355 case $cc_basename in
17356 CC*)
17357 # FIXME: insert proper C++ library support
17358 ld_shlibs_CXX=no
17359 ;;
17360 aCC*)
17361 case $host_cpu in
17362 hppa*64*)
17363 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17364 ;;
17365 ia64*)
17366 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17367 ;;
17368 *)
17369 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17370 ;;
17371 esac
17372 # Commands to make compiler produce verbose output that lists
17373 # what "hidden" libraries, object files and flags are used when
17374 # linking a shared library.
17375 #
17376 # There doesn't appear to be a way to prevent this compiler from
17377 # explicitly linking system object files so we need to strip them
17378 # from the output so that they don't get included in the library
17379 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017380 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 +000017381 ;;
17382 *)
17383 if test "$GXX" = yes; then
17384 if test $with_gnu_ld = no; then
17385 case $host_cpu in
17386 hppa*64*)
17387 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17388 ;;
17389 ia64*)
cristyda16f162011-02-19 23:52:17 +000017390 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 +000017391 ;;
17392 *)
cristyda16f162011-02-19 23:52:17 +000017393 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 +000017394 ;;
17395 esac
17396 fi
17397 else
17398 # FIXME: insert proper C++ library support
17399 ld_shlibs_CXX=no
17400 fi
17401 ;;
17402 esac
17403 ;;
17404
17405 interix[3-9]*)
17406 hardcode_direct_CXX=no
17407 hardcode_shlibpath_var_CXX=no
17408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17409 export_dynamic_flag_spec_CXX='${wl}-E'
17410 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17411 # Instead, shared libraries are loaded at an image base (0x10000000 by
17412 # default) and relocated if they conflict, which is a slow very memory
17413 # consuming and fragmenting process. To avoid this, we pick a random,
17414 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17415 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17416 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'
17417 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'
17418 ;;
17419 irix5* | irix6*)
17420 case $cc_basename in
17421 CC*)
17422 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017423 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 +000017424
17425 # Archives containing C++ object files must be created using
17426 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17427 # necessary to make sure instantiated templates are included
17428 # in the archive.
17429 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17430 ;;
17431 *)
17432 if test "$GXX" = yes; then
17433 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017434 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 +000017435 else
cristyda16f162011-02-19 23:52:17 +000017436 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 +000017437 fi
17438 fi
17439 link_all_deplibs_CXX=yes
17440 ;;
17441 esac
17442 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17443 hardcode_libdir_separator_CXX=:
17444 inherit_rpath_CXX=yes
17445 ;;
17446
cristy0c60a692010-11-04 01:09:47 +000017447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017448 case $cc_basename in
17449 KCC*)
17450 # Kuck and Associates, Inc. (KAI) C++ Compiler
17451
17452 # KCC will only create a shared library if the output file
17453 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17454 # to its proper name (with version) after linking.
17455 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'
17456 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'
17457 # Commands to make compiler produce verbose output that lists
17458 # what "hidden" libraries, object files and flags are used when
17459 # linking a shared library.
17460 #
17461 # There doesn't appear to be a way to prevent this compiler from
17462 # explicitly linking system object files so we need to strip them
17463 # from the output so that they don't get included in the library
17464 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017465 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 +000017466
17467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17469
17470 # Archives containing C++ object files must be created using
17471 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17472 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17473 ;;
17474 icpc* | ecpc* )
17475 # Intel C++
17476 with_gnu_ld=yes
17477 # version 8.0 and above of icpc choke on multiply defined symbols
17478 # if we add $predep_objects and $postdep_objects, however 7.1 and
17479 # earlier do not add the objects themselves.
17480 case `$CC -V 2>&1` in
17481 *"Version 7."*)
17482 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483 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'
17484 ;;
17485 *) # Version 8.0 or newer
17486 tmp_idyn=
17487 case $host_cpu in
17488 ia64*) tmp_idyn=' -i_dynamic';;
17489 esac
17490 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491 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'
17492 ;;
17493 esac
17494 archive_cmds_need_lc_CXX=no
17495 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17497 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17498 ;;
17499 pgCC* | pgcpp*)
17500 # Portland Group C++ compiler
17501 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017502 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017503 prelink_cmds_CXX='tpldir=Template.dir~
17504 rm -rf $tpldir~
17505 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017506 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017507 old_archive_cmds_CXX='tpldir=Template.dir~
17508 rm -rf $tpldir~
17509 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017510 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017511 $RANLIB $oldlib'
17512 archive_cmds_CXX='tpldir=Template.dir~
17513 rm -rf $tpldir~
17514 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017515 $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 +000017516 archive_expsym_cmds_CXX='tpldir=Template.dir~
17517 rm -rf $tpldir~
17518 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017519 $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 +000017520 ;;
cristy0c60a692010-11-04 01:09:47 +000017521 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017522 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17523 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'
17524 ;;
17525 esac
17526
17527 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17528 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017529 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 +000017530 ;;
17531 cxx*)
17532 # Compaq C++
17533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534 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'
17535
17536 runpath_var=LD_RUN_PATH
17537 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17538 hardcode_libdir_separator_CXX=:
17539
17540 # Commands to make compiler produce verbose output that lists
17541 # what "hidden" libraries, object files and flags are used when
17542 # linking a shared library.
17543 #
17544 # There doesn't appear to be a way to prevent this compiler from
17545 # explicitly linking system object files so we need to strip them
17546 # from the output so that they don't get included in the library
17547 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017548 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 +000017549 ;;
cristy0c60a692010-11-04 01:09:47 +000017550 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017551 # IBM XL 8.0 on PPC, with GNU ld
17552 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17553 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17554 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17555 if test "x$supports_anon_versioning" = xyes; then
17556 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17557 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17558 echo "local: *; };" >> $output_objdir/$libname.ver~
17559 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17560 fi
17561 ;;
17562 *)
17563 case `$CC -V 2>&1 | sed 5q` in
17564 *Sun\ C*)
17565 # Sun C++ 5.9
17566 no_undefined_flag_CXX=' -zdefs'
17567 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17568 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'
17569 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017570 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 +000017571 compiler_needs_object_CXX=yes
17572
17573 # Not sure whether something based on
17574 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17575 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017576 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017577
17578 # Archives containing C++ object files must be created using
17579 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17580 # necessary to make sure instantiated templates are included
17581 # in the archive.
17582 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17583 ;;
17584 esac
17585 ;;
17586 esac
17587 ;;
17588
17589 lynxos*)
17590 # FIXME: insert proper C++ library support
17591 ld_shlibs_CXX=no
17592 ;;
17593
17594 m88k*)
17595 # FIXME: insert proper C++ library support
17596 ld_shlibs_CXX=no
17597 ;;
17598
17599 mvs*)
17600 case $cc_basename in
17601 cxx*)
17602 # FIXME: insert proper C++ library support
17603 ld_shlibs_CXX=no
17604 ;;
17605 *)
17606 # FIXME: insert proper C++ library support
17607 ld_shlibs_CXX=no
17608 ;;
17609 esac
17610 ;;
17611
17612 netbsd*)
17613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17614 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17615 wlarc=
17616 hardcode_libdir_flag_spec_CXX='-R$libdir'
17617 hardcode_direct_CXX=yes
17618 hardcode_shlibpath_var_CXX=no
17619 fi
17620 # Workaround some broken pre-1.5 toolchains
17621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17622 ;;
17623
17624 *nto* | *qnx*)
17625 ld_shlibs_CXX=yes
17626 ;;
17627
17628 openbsd2*)
17629 # C++ shared libraries are fairly broken
17630 ld_shlibs_CXX=no
17631 ;;
17632
17633 openbsd*)
17634 if test -f /usr/libexec/ld.so; then
17635 hardcode_direct_CXX=yes
17636 hardcode_shlibpath_var_CXX=no
17637 hardcode_direct_absolute_CXX=yes
17638 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17640 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17641 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17642 export_dynamic_flag_spec_CXX='${wl}-E'
17643 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17644 fi
cristy0c60a692010-11-04 01:09:47 +000017645 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017646 else
17647 ld_shlibs_CXX=no
17648 fi
17649 ;;
17650
17651 osf3* | osf4* | osf5*)
17652 case $cc_basename in
17653 KCC*)
17654 # Kuck and Associates, Inc. (KAI) C++ Compiler
17655
17656 # KCC will only create a shared library if the output file
17657 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17658 # to its proper name (with version) after linking.
17659 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'
17660
17661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17662 hardcode_libdir_separator_CXX=:
17663
17664 # Archives containing C++ object files must be created using
17665 # the KAI C++ compiler.
17666 case $host in
17667 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17668 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17669 esac
17670 ;;
17671 RCC*)
17672 # Rational C++ 2.4.1
17673 # FIXME: insert proper C++ library support
17674 ld_shlibs_CXX=no
17675 ;;
17676 cxx*)
17677 case $host in
17678 osf3*)
17679 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017680 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 +000017681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17682 ;;
17683 *)
17684 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017685 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 +000017686 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17687 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017688 $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 +000017689 $RM $lib.exp'
17690 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17691 ;;
17692 esac
17693
17694 hardcode_libdir_separator_CXX=:
17695
17696 # Commands to make compiler produce verbose output that lists
17697 # what "hidden" libraries, object files and flags are used when
17698 # linking a shared library.
17699 #
17700 # There doesn't appear to be a way to prevent this compiler from
17701 # explicitly linking system object files so we need to strip them
17702 # from the output so that they don't get included in the library
17703 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017704 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 +000017705 ;;
17706 *)
17707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17709 case $host in
17710 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017711 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 +000017712 ;;
17713 *)
cristyda16f162011-02-19 23:52:17 +000017714 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 +000017715 ;;
17716 esac
17717
17718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17719 hardcode_libdir_separator_CXX=:
17720
17721 # Commands to make compiler produce verbose output that lists
17722 # what "hidden" libraries, object files and flags are used when
17723 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017724 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017725
17726 else
17727 # FIXME: insert proper C++ library support
17728 ld_shlibs_CXX=no
17729 fi
17730 ;;
17731 esac
17732 ;;
17733
17734 psos*)
17735 # FIXME: insert proper C++ library support
17736 ld_shlibs_CXX=no
17737 ;;
17738
17739 sunos4*)
17740 case $cc_basename in
17741 CC*)
17742 # Sun C++ 4.x
17743 # FIXME: insert proper C++ library support
17744 ld_shlibs_CXX=no
17745 ;;
17746 lcc*)
17747 # Lucid
17748 # FIXME: insert proper C++ library support
17749 ld_shlibs_CXX=no
17750 ;;
17751 *)
17752 # FIXME: insert proper C++ library support
17753 ld_shlibs_CXX=no
17754 ;;
17755 esac
17756 ;;
17757
17758 solaris*)
17759 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017760 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017761 # Sun C++ 4.2, 5.x and Centerline C++
17762 archive_cmds_need_lc_CXX=yes
17763 no_undefined_flag_CXX=' -zdefs'
17764 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17765 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17766 $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'
17767
17768 hardcode_libdir_flag_spec_CXX='-R$libdir'
17769 hardcode_shlibpath_var_CXX=no
17770 case $host_os in
17771 solaris2.[0-5] | solaris2.[0-5].*) ;;
17772 *)
17773 # The compiler driver will combine and reorder linker options,
17774 # but understands `-z linker_flag'.
17775 # Supported since Solaris 2.6 (maybe 2.5.1?)
17776 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17777 ;;
17778 esac
17779 link_all_deplibs_CXX=yes
17780
cristy0c60a692010-11-04 01:09:47 +000017781 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017782
17783 # Archives containing C++ object files must be created using
17784 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17785 # necessary to make sure instantiated templates are included
17786 # in the archive.
17787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17788 ;;
17789 gcx*)
17790 # Green Hills C++ Compiler
17791 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17792
17793 # The C++ compiler must be used to create the archive.
17794 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17795 ;;
17796 *)
17797 # GNU C++ compiler with Solaris linker
17798 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17799 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17800 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017801 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 +000017802 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 +000017803 $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 +000017804
17805 # Commands to make compiler produce verbose output that lists
17806 # what "hidden" libraries, object files and flags are used when
17807 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017809 else
17810 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17811 # platform.
17812 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17813 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17814 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17815
17816 # Commands to make compiler produce verbose output that lists
17817 # what "hidden" libraries, object files and flags are used when
17818 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017819 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017820 fi
17821
17822 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17823 case $host_os in
17824 solaris2.[0-5] | solaris2.[0-5].*) ;;
17825 *)
17826 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17827 ;;
17828 esac
17829 fi
17830 ;;
17831 esac
17832 ;;
17833
17834 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17835 no_undefined_flag_CXX='${wl}-z,text'
17836 archive_cmds_need_lc_CXX=no
17837 hardcode_shlibpath_var_CXX=no
17838 runpath_var='LD_RUN_PATH'
17839
17840 case $cc_basename in
17841 CC*)
17842 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17844 ;;
17845 *)
17846 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17847 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17848 ;;
17849 esac
17850 ;;
17851
17852 sysv5* | sco3.2v5* | sco5v6*)
17853 # Note: We can NOT use -z defs as we might desire, because we do not
17854 # link with -lc, and that would cause any symbols used from libc to
17855 # always be unresolved, which means just about no library would
17856 # ever link correctly. If we're not using GNU ld we use -z text
17857 # though, which does catch some bad symbols but isn't as heavy-handed
17858 # as -z defs.
17859 no_undefined_flag_CXX='${wl}-z,text'
17860 allow_undefined_flag_CXX='${wl}-z,nodefs'
17861 archive_cmds_need_lc_CXX=no
17862 hardcode_shlibpath_var_CXX=no
17863 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17864 hardcode_libdir_separator_CXX=':'
17865 link_all_deplibs_CXX=yes
17866 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17867 runpath_var='LD_RUN_PATH'
17868
17869 case $cc_basename in
17870 CC*)
17871 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17872 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 +000017873 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17874 '"$old_archive_cmds_CXX"
17875 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17876 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017877 ;;
17878 *)
17879 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17880 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17881 ;;
17882 esac
17883 ;;
17884
17885 tandem*)
17886 case $cc_basename in
17887 NCC*)
17888 # NonStop-UX NCC 3.20
17889 # FIXME: insert proper C++ library support
17890 ld_shlibs_CXX=no
17891 ;;
17892 *)
17893 # FIXME: insert proper C++ library support
17894 ld_shlibs_CXX=no
17895 ;;
17896 esac
17897 ;;
17898
17899 vxworks*)
17900 # FIXME: insert proper C++ library support
17901 ld_shlibs_CXX=no
17902 ;;
17903
17904 *)
17905 # FIXME: insert proper C++ library support
17906 ld_shlibs_CXX=no
17907 ;;
17908 esac
17909
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17911$as_echo "$ld_shlibs_CXX" >&6; }
17912 test "$ld_shlibs_CXX" = no && can_build_shared=no
17913
17914 GCC_CXX="$GXX"
17915 LD_CXX="$LD"
17916
17917 ## CAVEAT EMPTOR:
17918 ## There is no encapsulation within the following macros, do not change
17919 ## the running order or otherwise move them around unless you know exactly
17920 ## what you are doing...
17921 # Dependencies to place before and after the object being linked:
17922predep_objects_CXX=
17923postdep_objects_CXX=
17924predeps_CXX=
17925postdeps_CXX=
17926compiler_lib_search_path_CXX=
17927
17928cat > conftest.$ac_ext <<_LT_EOF
17929class Foo
17930{
17931public:
17932 Foo (void) { a = 0; }
17933private:
17934 int a;
17935};
17936_LT_EOF
17937
cristyda16f162011-02-19 23:52:17 +000017938
17939_lt_libdeps_save_CFLAGS=$CFLAGS
17940case "$CC $CFLAGS " in #(
17941*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17942*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17943esac
17944
cristy73bd4a52010-10-05 11:24:23 +000017945if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17946 (eval $ac_compile) 2>&5
17947 ac_status=$?
17948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17949 test $ac_status = 0; }; then
17950 # Parse the compiler output and extract the necessary
17951 # objects, libraries and library flags.
17952
17953 # Sentinel used to keep track of whether or not we are before
17954 # the conftest object file.
17955 pre_test_object_deps_done=no
17956
17957 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000017958 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000017959
17960 -L* | -R* | -l*)
17961 # Some compilers place space between "-{L,R}" and the path.
17962 # Remove the space.
17963 if test $p = "-L" ||
17964 test $p = "-R"; then
17965 prev=$p
17966 continue
cristy73bd4a52010-10-05 11:24:23 +000017967 fi
17968
cristyda16f162011-02-19 23:52:17 +000017969 # Expand the sysroot to ease extracting the directories later.
17970 if test -z "$prev"; then
17971 case $p in
17972 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17973 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17974 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17975 esac
17976 fi
17977 case $p in
17978 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17979 esac
cristy73bd4a52010-10-05 11:24:23 +000017980 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000017981 case ${prev} in
17982 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000017983 # Internal compiler library paths should come after those
17984 # provided the user. The postdeps already come after the
17985 # user supplied libs so there is no need to process them.
17986 if test -z "$compiler_lib_search_path_CXX"; then
17987 compiler_lib_search_path_CXX="${prev}${p}"
17988 else
17989 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17990 fi
17991 ;;
17992 # The "-l" case would never come before the object being
17993 # linked, so don't bother handling this case.
17994 esac
17995 else
17996 if test -z "$postdeps_CXX"; then
17997 postdeps_CXX="${prev}${p}"
17998 else
17999 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18000 fi
18001 fi
cristyda16f162011-02-19 23:52:17 +000018002 prev=
cristy73bd4a52010-10-05 11:24:23 +000018003 ;;
18004
cristyda16f162011-02-19 23:52:17 +000018005 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018006 *.$objext)
18007 # This assumes that the test object file only shows up
18008 # once in the compiler output.
18009 if test "$p" = "conftest.$objext"; then
18010 pre_test_object_deps_done=yes
18011 continue
18012 fi
18013
18014 if test "$pre_test_object_deps_done" = no; then
18015 if test -z "$predep_objects_CXX"; then
18016 predep_objects_CXX="$p"
18017 else
18018 predep_objects_CXX="$predep_objects_CXX $p"
18019 fi
18020 else
18021 if test -z "$postdep_objects_CXX"; then
18022 postdep_objects_CXX="$p"
18023 else
18024 postdep_objects_CXX="$postdep_objects_CXX $p"
18025 fi
18026 fi
18027 ;;
18028
18029 *) ;; # Ignore the rest.
18030
18031 esac
18032 done
18033
18034 # Clean up.
18035 rm -f a.out a.exe
18036else
18037 echo "libtool.m4: error: problem compiling CXX test program"
18038fi
18039
18040$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018041CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018042
18043# PORTME: override above test on systems where it is broken
18044case $host_os in
18045interix[3-9]*)
18046 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18047 # hack all around it, let's just trust "g++" to DTRT.
18048 predep_objects_CXX=
18049 postdep_objects_CXX=
18050 postdeps_CXX=
18051 ;;
18052
18053linux*)
18054 case `$CC -V 2>&1 | sed 5q` in
18055 *Sun\ C*)
18056 # Sun C++ 5.9
18057
18058 # The more standards-conforming stlport4 library is
18059 # incompatible with the Cstd library. Avoid specifying
18060 # it if it's in CXXFLAGS. Ignore libCrun as
18061 # -library=stlport4 depends on it.
18062 case " $CXX $CXXFLAGS " in
18063 *" -library=stlport4 "*)
18064 solaris_use_stlport4=yes
18065 ;;
18066 esac
18067
18068 if test "$solaris_use_stlport4" != yes; then
18069 postdeps_CXX='-library=Cstd -library=Crun'
18070 fi
18071 ;;
18072 esac
18073 ;;
18074
18075solaris*)
18076 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018077 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018078 # The more standards-conforming stlport4 library is
18079 # incompatible with the Cstd library. Avoid specifying
18080 # it if it's in CXXFLAGS. Ignore libCrun as
18081 # -library=stlport4 depends on it.
18082 case " $CXX $CXXFLAGS " in
18083 *" -library=stlport4 "*)
18084 solaris_use_stlport4=yes
18085 ;;
18086 esac
18087
18088 # Adding this requires a known-good setup of shared libraries for
18089 # Sun compiler versions before 5.6, else PIC objects from an old
18090 # archive will be linked into the output, leading to subtle bugs.
18091 if test "$solaris_use_stlport4" != yes; then
18092 postdeps_CXX='-library=Cstd -library=Crun'
18093 fi
18094 ;;
18095 esac
18096 ;;
18097esac
18098
18099
18100case " $postdeps_CXX " in
18101*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18102esac
18103 compiler_lib_search_dirs_CXX=
18104if test -n "${compiler_lib_search_path_CXX}"; then
18105 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18106fi
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138 lt_prog_compiler_wl_CXX=
18139lt_prog_compiler_pic_CXX=
18140lt_prog_compiler_static_CXX=
18141
cristy73bd4a52010-10-05 11:24:23 +000018142
18143 # C++ specific cases for pic, static, wl, etc.
18144 if test "$GXX" = yes; then
18145 lt_prog_compiler_wl_CXX='-Wl,'
18146 lt_prog_compiler_static_CXX='-static'
18147
18148 case $host_os in
18149 aix*)
18150 # All AIX code is PIC.
18151 if test "$host_cpu" = ia64; then
18152 # AIX 5 now supports IA64 processor
18153 lt_prog_compiler_static_CXX='-Bstatic'
18154 fi
18155 ;;
18156
18157 amigaos*)
18158 case $host_cpu in
18159 powerpc)
18160 # see comment about AmigaOS4 .so support
18161 lt_prog_compiler_pic_CXX='-fPIC'
18162 ;;
18163 m68k)
18164 # FIXME: we need at least 68020 code to build shared libraries, but
18165 # adding the `-m68020' flag to GCC prevents building anything better,
18166 # like `-m68040'.
18167 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18168 ;;
18169 esac
18170 ;;
18171
18172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18173 # PIC is the default for these OSes.
18174 ;;
18175 mingw* | cygwin* | os2* | pw32* | cegcc*)
18176 # This hack is so that the source file can tell whether it is being
18177 # built for inclusion in a dll (and should export symbols for example).
18178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18179 # (--disable-auto-import) libraries
18180 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18181 ;;
18182 darwin* | rhapsody*)
18183 # PIC is the default on this platform
18184 # Common symbols not allowed in MH_DYLIB files
18185 lt_prog_compiler_pic_CXX='-fno-common'
18186 ;;
18187 *djgpp*)
18188 # DJGPP does not support shared libraries at all
18189 lt_prog_compiler_pic_CXX=
18190 ;;
cristy0c60a692010-11-04 01:09:47 +000018191 haiku*)
18192 # PIC is the default for Haiku.
18193 # The "-static" flag exists, but is broken.
18194 lt_prog_compiler_static_CXX=
18195 ;;
cristy73bd4a52010-10-05 11:24:23 +000018196 interix[3-9]*)
18197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18198 # Instead, we relocate shared libraries at runtime.
18199 ;;
18200 sysv4*MP*)
18201 if test -d /usr/nec; then
18202 lt_prog_compiler_pic_CXX=-Kconform_pic
18203 fi
18204 ;;
18205 hpux*)
18206 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18207 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18208 # sets the default TLS model and affects inlining.
18209 case $host_cpu in
18210 hppa*64*)
18211 ;;
18212 *)
18213 lt_prog_compiler_pic_CXX='-fPIC'
18214 ;;
18215 esac
18216 ;;
18217 *qnx* | *nto*)
18218 # QNX uses GNU C++, but need to define -shared option too, otherwise
18219 # it will coredump.
18220 lt_prog_compiler_pic_CXX='-fPIC -shared'
18221 ;;
18222 *)
18223 lt_prog_compiler_pic_CXX='-fPIC'
18224 ;;
18225 esac
18226 else
18227 case $host_os in
18228 aix[4-9]*)
18229 # All AIX code is PIC.
18230 if test "$host_cpu" = ia64; then
18231 # AIX 5 now supports IA64 processor
18232 lt_prog_compiler_static_CXX='-Bstatic'
18233 else
18234 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18235 fi
18236 ;;
18237 chorus*)
18238 case $cc_basename in
18239 cxch68*)
18240 # Green Hills C++ Compiler
18241 # _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"
18242 ;;
18243 esac
18244 ;;
cristyda16f162011-02-19 23:52:17 +000018245 mingw* | cygwin* | os2* | pw32* | cegcc*)
18246 # This hack is so that the source file can tell whether it is being
18247 # built for inclusion in a dll (and should export symbols for example).
18248 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18249 ;;
cristy73bd4a52010-10-05 11:24:23 +000018250 dgux*)
18251 case $cc_basename in
18252 ec++*)
18253 lt_prog_compiler_pic_CXX='-KPIC'
18254 ;;
18255 ghcx*)
18256 # Green Hills C++ Compiler
18257 lt_prog_compiler_pic_CXX='-pic'
18258 ;;
18259 *)
18260 ;;
18261 esac
18262 ;;
18263 freebsd* | dragonfly*)
18264 # FreeBSD uses GNU C++
18265 ;;
18266 hpux9* | hpux10* | hpux11*)
18267 case $cc_basename in
18268 CC*)
18269 lt_prog_compiler_wl_CXX='-Wl,'
18270 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18271 if test "$host_cpu" != ia64; then
18272 lt_prog_compiler_pic_CXX='+Z'
18273 fi
18274 ;;
18275 aCC*)
18276 lt_prog_compiler_wl_CXX='-Wl,'
18277 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18278 case $host_cpu in
18279 hppa*64*|ia64*)
18280 # +Z the default
18281 ;;
18282 *)
18283 lt_prog_compiler_pic_CXX='+Z'
18284 ;;
18285 esac
18286 ;;
18287 *)
18288 ;;
18289 esac
18290 ;;
18291 interix*)
18292 # This is c89, which is MS Visual C++ (no shared libs)
18293 # Anyone wants to do a port?
18294 ;;
18295 irix5* | irix6* | nonstopux*)
18296 case $cc_basename in
18297 CC*)
18298 lt_prog_compiler_wl_CXX='-Wl,'
18299 lt_prog_compiler_static_CXX='-non_shared'
18300 # CC pic flag -KPIC is the default.
18301 ;;
18302 *)
18303 ;;
18304 esac
18305 ;;
cristy0c60a692010-11-04 01:09:47 +000018306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018307 case $cc_basename in
18308 KCC*)
18309 # KAI C++ Compiler
18310 lt_prog_compiler_wl_CXX='--backend -Wl,'
18311 lt_prog_compiler_pic_CXX='-fPIC'
18312 ;;
18313 ecpc* )
18314 # old Intel C++ for x86_64 which still supported -KPIC.
18315 lt_prog_compiler_wl_CXX='-Wl,'
18316 lt_prog_compiler_pic_CXX='-KPIC'
18317 lt_prog_compiler_static_CXX='-static'
18318 ;;
18319 icpc* )
18320 # Intel C++, used to be incompatible with GCC.
18321 # ICC 10 doesn't accept -KPIC any more.
18322 lt_prog_compiler_wl_CXX='-Wl,'
18323 lt_prog_compiler_pic_CXX='-fPIC'
18324 lt_prog_compiler_static_CXX='-static'
18325 ;;
18326 pgCC* | pgcpp*)
18327 # Portland Group C++ compiler
18328 lt_prog_compiler_wl_CXX='-Wl,'
18329 lt_prog_compiler_pic_CXX='-fpic'
18330 lt_prog_compiler_static_CXX='-Bstatic'
18331 ;;
18332 cxx*)
18333 # Compaq C++
18334 # Make sure the PIC flag is empty. It appears that all Alpha
18335 # Linux and Compaq Tru64 Unix objects are PIC.
18336 lt_prog_compiler_pic_CXX=
18337 lt_prog_compiler_static_CXX='-non_shared'
18338 ;;
cristy0c60a692010-11-04 01:09:47 +000018339 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18340 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018341 lt_prog_compiler_wl_CXX='-Wl,'
18342 lt_prog_compiler_pic_CXX='-qpic'
18343 lt_prog_compiler_static_CXX='-qstaticlink'
18344 ;;
18345 *)
18346 case `$CC -V 2>&1 | sed 5q` in
18347 *Sun\ C*)
18348 # Sun C++ 5.9
18349 lt_prog_compiler_pic_CXX='-KPIC'
18350 lt_prog_compiler_static_CXX='-Bstatic'
18351 lt_prog_compiler_wl_CXX='-Qoption ld '
18352 ;;
18353 esac
18354 ;;
18355 esac
18356 ;;
18357 lynxos*)
18358 ;;
18359 m88k*)
18360 ;;
18361 mvs*)
18362 case $cc_basename in
18363 cxx*)
18364 lt_prog_compiler_pic_CXX='-W c,exportall'
18365 ;;
18366 *)
18367 ;;
18368 esac
18369 ;;
18370 netbsd*)
18371 ;;
18372 *qnx* | *nto*)
18373 # QNX uses GNU C++, but need to define -shared option too, otherwise
18374 # it will coredump.
18375 lt_prog_compiler_pic_CXX='-fPIC -shared'
18376 ;;
18377 osf3* | osf4* | osf5*)
18378 case $cc_basename in
18379 KCC*)
18380 lt_prog_compiler_wl_CXX='--backend -Wl,'
18381 ;;
18382 RCC*)
18383 # Rational C++ 2.4.1
18384 lt_prog_compiler_pic_CXX='-pic'
18385 ;;
18386 cxx*)
18387 # Digital/Compaq C++
18388 lt_prog_compiler_wl_CXX='-Wl,'
18389 # Make sure the PIC flag is empty. It appears that all Alpha
18390 # Linux and Compaq Tru64 Unix objects are PIC.
18391 lt_prog_compiler_pic_CXX=
18392 lt_prog_compiler_static_CXX='-non_shared'
18393 ;;
18394 *)
18395 ;;
18396 esac
18397 ;;
18398 psos*)
18399 ;;
18400 solaris*)
18401 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018402 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018403 # Sun C++ 4.2, 5.x and Centerline C++
18404 lt_prog_compiler_pic_CXX='-KPIC'
18405 lt_prog_compiler_static_CXX='-Bstatic'
18406 lt_prog_compiler_wl_CXX='-Qoption ld '
18407 ;;
18408 gcx*)
18409 # Green Hills C++ Compiler
18410 lt_prog_compiler_pic_CXX='-PIC'
18411 ;;
18412 *)
18413 ;;
18414 esac
18415 ;;
18416 sunos4*)
18417 case $cc_basename in
18418 CC*)
18419 # Sun C++ 4.x
18420 lt_prog_compiler_pic_CXX='-pic'
18421 lt_prog_compiler_static_CXX='-Bstatic'
18422 ;;
18423 lcc*)
18424 # Lucid
18425 lt_prog_compiler_pic_CXX='-pic'
18426 ;;
18427 *)
18428 ;;
18429 esac
18430 ;;
18431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18432 case $cc_basename in
18433 CC*)
18434 lt_prog_compiler_wl_CXX='-Wl,'
18435 lt_prog_compiler_pic_CXX='-KPIC'
18436 lt_prog_compiler_static_CXX='-Bstatic'
18437 ;;
18438 esac
18439 ;;
18440 tandem*)
18441 case $cc_basename in
18442 NCC*)
18443 # NonStop-UX NCC 3.20
18444 lt_prog_compiler_pic_CXX='-KPIC'
18445 ;;
18446 *)
18447 ;;
18448 esac
18449 ;;
18450 vxworks*)
18451 ;;
18452 *)
18453 lt_prog_compiler_can_build_shared_CXX=no
18454 ;;
18455 esac
18456 fi
18457
18458case $host_os in
18459 # For platforms which do not support PIC, -DPIC is meaningless:
18460 *djgpp*)
18461 lt_prog_compiler_pic_CXX=
18462 ;;
18463 *)
18464 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18465 ;;
18466esac
cristy73bd4a52010-10-05 11:24:23 +000018467
cristyda16f162011-02-19 23:52:17 +000018468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18469$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18470if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18471 $as_echo_n "(cached) " >&6
18472else
18473 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18474fi
18475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18476$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18477lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018478
18479#
18480# Check to make sure the PIC flag actually works.
18481#
18482if test -n "$lt_prog_compiler_pic_CXX"; then
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18484$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018485if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018486 $as_echo_n "(cached) " >&6
18487else
18488 lt_cv_prog_compiler_pic_works_CXX=no
18489 ac_outfile=conftest.$ac_objext
18490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18491 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18492 # Insert the option either (1) after the last *FLAGS variable, or
18493 # (2) before a word containing "conftest.", or (3) at the end.
18494 # Note that $ac_compile itself does not contain backslashes and begins
18495 # with a dollar sign (not a hyphen), so the echo should work correctly.
18496 # The option is referenced via a variable to avoid confusing sed.
18497 lt_compile=`echo "$ac_compile" | $SED \
18498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18500 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018502 (eval "$lt_compile" 2>conftest.err)
18503 ac_status=$?
18504 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018506 if (exit $ac_status) && test -s "$ac_outfile"; then
18507 # The compiler can only warn and ignore the option if not recognized
18508 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18512 lt_cv_prog_compiler_pic_works_CXX=yes
18513 fi
18514 fi
18515 $RM conftest*
18516
18517fi
18518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18519$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18520
18521if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18522 case $lt_prog_compiler_pic_CXX in
18523 "" | " "*) ;;
18524 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18525 esac
18526else
18527 lt_prog_compiler_pic_CXX=
18528 lt_prog_compiler_can_build_shared_CXX=no
18529fi
18530
18531fi
18532
18533
18534
cristyda16f162011-02-19 23:52:17 +000018535
18536
cristy73bd4a52010-10-05 11:24:23 +000018537#
18538# Check to make sure the static flag actually works.
18539#
18540wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18542$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018543if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018544 $as_echo_n "(cached) " >&6
18545else
18546 lt_cv_prog_compiler_static_works_CXX=no
18547 save_LDFLAGS="$LDFLAGS"
18548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18551 # The linker can only warn and ignore the option if not recognized
18552 # So say no if there are warnings
18553 if test -s conftest.err; then
18554 # Append any errors to the config.log.
18555 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018556 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18558 if diff conftest.exp conftest.er2 >/dev/null; then
18559 lt_cv_prog_compiler_static_works_CXX=yes
18560 fi
18561 else
18562 lt_cv_prog_compiler_static_works_CXX=yes
18563 fi
18564 fi
18565 $RM -r conftest*
18566 LDFLAGS="$save_LDFLAGS"
18567
18568fi
18569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18570$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18571
18572if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18573 :
18574else
18575 lt_prog_compiler_static_CXX=
18576fi
18577
18578
18579
18580
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18582$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018583if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018584 $as_echo_n "(cached) " >&6
18585else
18586 lt_cv_prog_compiler_c_o_CXX=no
18587 $RM -r conftest 2>/dev/null
18588 mkdir conftest
18589 cd conftest
18590 mkdir out
18591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18592
18593 lt_compiler_flag="-o out/conftest2.$ac_objext"
18594 # Insert the option either (1) after the last *FLAGS variable, or
18595 # (2) before a word containing "conftest.", or (3) at the end.
18596 # Note that $ac_compile itself does not contain backslashes and begins
18597 # with a dollar sign (not a hyphen), so the echo should work correctly.
18598 lt_compile=`echo "$ac_compile" | $SED \
18599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18601 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018603 (eval "$lt_compile" 2>out/conftest.err)
18604 ac_status=$?
18605 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18608 then
18609 # The compiler can only warn and ignore the option if not recognized
18610 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18614 lt_cv_prog_compiler_c_o_CXX=yes
18615 fi
18616 fi
18617 chmod u+w . 2>&5
18618 $RM conftest*
18619 # SGI C++ compiler will create directory out/ii_files/ for
18620 # template instantiation
18621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18622 $RM out/* && rmdir out
18623 cd ..
18624 $RM -r conftest
18625 $RM conftest*
18626
18627fi
18628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18629$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18630
18631
18632
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18634$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018635if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018636 $as_echo_n "(cached) " >&6
18637else
18638 lt_cv_prog_compiler_c_o_CXX=no
18639 $RM -r conftest 2>/dev/null
18640 mkdir conftest
18641 cd conftest
18642 mkdir out
18643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18644
18645 lt_compiler_flag="-o out/conftest2.$ac_objext"
18646 # Insert the option either (1) after the last *FLAGS variable, or
18647 # (2) before a word containing "conftest.", or (3) at the end.
18648 # Note that $ac_compile itself does not contain backslashes and begins
18649 # with a dollar sign (not a hyphen), so the echo should work correctly.
18650 lt_compile=`echo "$ac_compile" | $SED \
18651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18653 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018655 (eval "$lt_compile" 2>out/conftest.err)
18656 ac_status=$?
18657 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18660 then
18661 # The compiler can only warn and ignore the option if not recognized
18662 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18666 lt_cv_prog_compiler_c_o_CXX=yes
18667 fi
18668 fi
18669 chmod u+w . 2>&5
18670 $RM conftest*
18671 # SGI C++ compiler will create directory out/ii_files/ for
18672 # template instantiation
18673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18674 $RM out/* && rmdir out
18675 cd ..
18676 $RM -r conftest
18677 $RM conftest*
18678
18679fi
18680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18681$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18682
18683
18684
18685
18686hard_links="nottested"
18687if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18688 # do not overwrite the value of need_locks provided by the user
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18690$as_echo_n "checking if we can lock with hard links... " >&6; }
18691 hard_links=yes
18692 $RM conftest*
18693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18694 touch conftest.a
18695 ln conftest.a conftest.b 2>&5 || hard_links=no
18696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18698$as_echo "$hard_links" >&6; }
18699 if test "$hard_links" = no; then
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18701$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18702 need_locks=warn
18703 fi
18704else
18705 need_locks=no
18706fi
18707
18708
18709
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18711$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18712
18713 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018714 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018715 case $host_os in
18716 aix[4-9]*)
18717 # If we're using GNU nm, then we don't want the "-C" option.
18718 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018719 # Also, AIX nm treats weak defined symbols like other global defined
18720 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018721 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018722 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 +000018723 else
18724 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'
18725 fi
18726 ;;
18727 pw32*)
18728 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018729 ;;
cristy73bd4a52010-10-05 11:24:23 +000018730 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018731 case $cc_basename in
18732 cl*) ;;
18733 *)
18734 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'
18735 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18736 ;;
18737 esac
18738 ;;
cristy73bd4a52010-10-05 11:24:23 +000018739 *)
18740 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018741 ;;
cristy73bd4a52010-10-05 11:24:23 +000018742 esac
cristy73bd4a52010-10-05 11:24:23 +000018743
18744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18745$as_echo "$ld_shlibs_CXX" >&6; }
18746test "$ld_shlibs_CXX" = no && can_build_shared=no
18747
18748with_gnu_ld_CXX=$with_gnu_ld
18749
18750
18751
18752
18753
18754
18755#
18756# Do we need to explicitly link libc?
18757#
18758case "x$archive_cmds_need_lc_CXX" in
18759x|xyes)
18760 # Assume -lc should be added
18761 archive_cmds_need_lc_CXX=yes
18762
18763 if test "$enable_shared" = yes && test "$GCC" = yes; then
18764 case $archive_cmds_CXX in
18765 *'~'*)
18766 # FIXME: we may have to deal with multi-command sequences.
18767 ;;
18768 '$CC '*)
18769 # Test whether the compiler implicitly links with -lc since on some
18770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18771 # to ld, don't add -lc before -lgcc.
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18773$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018774if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018775 $as_echo_n "(cached) " >&6
18776else
18777 $RM conftest*
18778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018779
cristy0c60a692010-11-04 01:09:47 +000018780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018781 (eval $ac_compile) 2>&5
18782 ac_status=$?
18783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18784 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018785 soname=conftest
18786 lib=conftest
18787 libobjs=conftest.$ac_objext
18788 deplibs=
18789 wl=$lt_prog_compiler_wl_CXX
18790 pic_flag=$lt_prog_compiler_pic_CXX
18791 compiler_flags=-v
18792 linker_flags=-v
18793 verstring=
18794 output_objdir=.
18795 libname=conftest
18796 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18797 allow_undefined_flag_CXX=
18798 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 +000018799 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18800 ac_status=$?
18801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018803 then
18804 lt_cv_archive_cmds_need_lc_CXX=no
18805 else
18806 lt_cv_archive_cmds_need_lc_CXX=yes
18807 fi
18808 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18809 else
18810 cat conftest.err 1>&5
18811 fi
18812 $RM conftest*
18813
18814fi
18815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18816$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18817 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018818 ;;
18819 esac
18820 fi
18821 ;;
18822esac
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18888$as_echo_n "checking dynamic linker characteristics... " >&6; }
18889
18890library_names_spec=
18891libname_spec='lib$name'
18892soname_spec=
18893shrext_cmds=".so"
18894postinstall_cmds=
18895postuninstall_cmds=
18896finish_cmds=
18897finish_eval=
18898shlibpath_var=
18899shlibpath_overrides_runpath=unknown
18900version_type=none
18901dynamic_linker="$host_os ld.so"
18902sys_lib_dlsearch_path_spec="/lib /usr/lib"
18903need_lib_prefix=unknown
18904hardcode_into_libs=no
18905
18906# when you set need_version to no, make sure it does not cause -set_version
18907# flags to be left without arguments
18908need_version=unknown
18909
18910case $host_os in
18911aix3*)
18912 version_type=linux
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18914 shlibpath_var=LIBPATH
18915
18916 # AIX 3 has no versioning support, so we append a major version to the name.
18917 soname_spec='${libname}${release}${shared_ext}$major'
18918 ;;
18919
18920aix[4-9]*)
18921 version_type=linux
18922 need_lib_prefix=no
18923 need_version=no
18924 hardcode_into_libs=yes
18925 if test "$host_cpu" = ia64; then
18926 # AIX 5 supports IA64
18927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18928 shlibpath_var=LD_LIBRARY_PATH
18929 else
18930 # With GCC up to 2.95.x, collect2 would create an import file
18931 # for dependence libraries. The import file would start with
18932 # the line `#! .'. This would cause the generated library to
18933 # depend on `.', always an invalid library. This was fixed in
18934 # development snapshots of GCC prior to 3.0.
18935 case $host_os in
18936 aix4 | aix4.[01] | aix4.[01].*)
18937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18938 echo ' yes '
18939 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18940 :
18941 else
18942 can_build_shared=no
18943 fi
18944 ;;
18945 esac
18946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18947 # soname into executable. Probably we can add versioning support to
18948 # collect2, so additional links can be useful in future.
18949 if test "$aix_use_runtimelinking" = yes; then
18950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18951 # instead of lib<name>.a to let people know that these are not
18952 # typical AIX shared libraries.
18953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18954 else
18955 # We preserve .a as extension for shared libraries through AIX4.2
18956 # and later when we are not doing run time linking.
18957 library_names_spec='${libname}${release}.a $libname.a'
18958 soname_spec='${libname}${release}${shared_ext}$major'
18959 fi
18960 shlibpath_var=LIBPATH
18961 fi
18962 ;;
18963
18964amigaos*)
18965 case $host_cpu in
18966 powerpc)
18967 # Since July 2007 AmigaOS4 officially supports .so libraries.
18968 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18970 ;;
18971 m68k)
18972 library_names_spec='$libname.ixlibrary $libname.a'
18973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018974 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 +000018975 ;;
18976 esac
18977 ;;
18978
18979beos*)
18980 library_names_spec='${libname}${shared_ext}'
18981 dynamic_linker="$host_os ld.so"
18982 shlibpath_var=LIBRARY_PATH
18983 ;;
18984
18985bsdi[45]*)
18986 version_type=linux
18987 need_version=no
18988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18989 soname_spec='${libname}${release}${shared_ext}$major'
18990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18991 shlibpath_var=LD_LIBRARY_PATH
18992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18994 # the default ld.so.conf also contains /usr/contrib/lib and
18995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18996 # libtool to hard-code these into programs
18997 ;;
18998
18999cygwin* | mingw* | pw32* | cegcc*)
19000 version_type=windows
19001 shrext_cmds=".dll"
19002 need_version=no
19003 need_lib_prefix=no
19004
cristyda16f162011-02-19 23:52:17 +000019005 case $GCC,$cc_basename in
19006 yes,*)
19007 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019008 library_names_spec='$libname.dll.a'
19009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19010 postinstall_cmds='base_file=`basename \${file}`~
19011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19012 dldir=$destdir/`dirname \$dlpath`~
19013 test -d \$dldir || mkdir -p \$dldir~
19014 $install_prog $dir/$dlname \$dldir/$dlname~
19015 chmod a+x \$dldir/$dlname~
19016 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19017 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19018 fi'
19019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19020 dlpath=$dir/\$dldll~
19021 $RM \$dlpath'
19022 shlibpath_overrides_runpath=yes
19023
19024 case $host_os in
19025 cygwin*)
19026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019028
cristy73bd4a52010-10-05 11:24:23 +000019029 ;;
19030 mingw* | cegcc*)
19031 # MinGW DLLs use traditional 'lib' prefix
19032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019033 ;;
19034 pw32*)
19035 # pw32 DLLs use 'pw' prefix rather than 'lib'
19036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19037 ;;
19038 esac
cristyda16f162011-02-19 23:52:17 +000019039 dynamic_linker='Win32 ld.exe'
19040 ;;
19041
19042 *,cl*)
19043 # Native MSVC
19044 libname_spec='$name'
19045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19046 library_names_spec='${libname}.dll.lib'
19047
19048 case $build_os in
19049 mingw*)
19050 sys_lib_search_path_spec=
19051 lt_save_ifs=$IFS
19052 IFS=';'
19053 for lt_path in $LIB
19054 do
19055 IFS=$lt_save_ifs
19056 # Let DOS variable expansion print the short 8.3 style file name.
19057 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19058 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19059 done
19060 IFS=$lt_save_ifs
19061 # Convert to MSYS style.
19062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19063 ;;
19064 cygwin*)
19065 # Convert to unix form, then to dos form, then back to unix form
19066 # but this time dos style (no spaces!) so that the unix form looks
19067 # like /cygdrive/c/PROGRA~1:/cygdr...
19068 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19069 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19070 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19071 ;;
19072 *)
19073 sys_lib_search_path_spec="$LIB"
19074 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19075 # It is most probably a Windows format PATH.
19076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19077 else
19078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19079 fi
19080 # FIXME: find the short name or the path components, as spaces are
19081 # common. (e.g. "Program Files" -> "PROGRA~1")
19082 ;;
19083 esac
19084
19085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19086 postinstall_cmds='base_file=`basename \${file}`~
19087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19088 dldir=$destdir/`dirname \$dlpath`~
19089 test -d \$dldir || mkdir -p \$dldir~
19090 $install_prog $dir/$dlname \$dldir/$dlname'
19091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19092 dlpath=$dir/\$dldll~
19093 $RM \$dlpath'
19094 shlibpath_overrides_runpath=yes
19095 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019096 ;;
19097
19098 *)
cristyda16f162011-02-19 23:52:17 +000019099 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019101 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019102 ;;
19103 esac
cristy73bd4a52010-10-05 11:24:23 +000019104 # FIXME: first we should search . and the directory the executable is in
19105 shlibpath_var=PATH
19106 ;;
19107
19108darwin* | rhapsody*)
19109 dynamic_linker="$host_os dyld"
19110 version_type=darwin
19111 need_lib_prefix=no
19112 need_version=no
19113 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19114 soname_spec='${libname}${release}${major}$shared_ext'
19115 shlibpath_overrides_runpath=yes
19116 shlibpath_var=DYLD_LIBRARY_PATH
19117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19118
19119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19120 ;;
19121
19122dgux*)
19123 version_type=linux
19124 need_lib_prefix=no
19125 need_version=no
19126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19127 soname_spec='${libname}${release}${shared_ext}$major'
19128 shlibpath_var=LD_LIBRARY_PATH
19129 ;;
19130
19131freebsd1*)
19132 dynamic_linker=no
19133 ;;
19134
19135freebsd* | dragonfly*)
19136 # DragonFly does not have aout. When/if they implement a new
19137 # versioning mechanism, adjust this.
19138 if test -x /usr/bin/objformat; then
19139 objformat=`/usr/bin/objformat`
19140 else
19141 case $host_os in
19142 freebsd[123]*) objformat=aout ;;
19143 *) objformat=elf ;;
19144 esac
19145 fi
19146 version_type=freebsd-$objformat
19147 case $version_type in
19148 freebsd-elf*)
19149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19150 need_version=no
19151 need_lib_prefix=no
19152 ;;
19153 freebsd-*)
19154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19155 need_version=yes
19156 ;;
19157 esac
19158 shlibpath_var=LD_LIBRARY_PATH
19159 case $host_os in
19160 freebsd2*)
19161 shlibpath_overrides_runpath=yes
19162 ;;
19163 freebsd3.[01]* | freebsdelf3.[01]*)
19164 shlibpath_overrides_runpath=yes
19165 hardcode_into_libs=yes
19166 ;;
19167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19169 shlibpath_overrides_runpath=no
19170 hardcode_into_libs=yes
19171 ;;
19172 *) # from 4.6 on, and DragonFly
19173 shlibpath_overrides_runpath=yes
19174 hardcode_into_libs=yes
19175 ;;
19176 esac
19177 ;;
19178
19179gnu*)
19180 version_type=linux
19181 need_lib_prefix=no
19182 need_version=no
19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19184 soname_spec='${libname}${release}${shared_ext}$major'
19185 shlibpath_var=LD_LIBRARY_PATH
19186 hardcode_into_libs=yes
19187 ;;
19188
cristy0c60a692010-11-04 01:09:47 +000019189haiku*)
19190 version_type=linux
19191 need_lib_prefix=no
19192 need_version=no
19193 dynamic_linker="$host_os runtime_loader"
19194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19195 soname_spec='${libname}${release}${shared_ext}$major'
19196 shlibpath_var=LIBRARY_PATH
19197 shlibpath_overrides_runpath=yes
19198 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19199 hardcode_into_libs=yes
19200 ;;
19201
cristy73bd4a52010-10-05 11:24:23 +000019202hpux9* | hpux10* | hpux11*)
19203 # Give a soname corresponding to the major version so that dld.sl refuses to
19204 # link against other versions.
19205 version_type=sunos
19206 need_lib_prefix=no
19207 need_version=no
19208 case $host_cpu in
19209 ia64*)
19210 shrext_cmds='.so'
19211 hardcode_into_libs=yes
19212 dynamic_linker="$host_os dld.so"
19213 shlibpath_var=LD_LIBRARY_PATH
19214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19216 soname_spec='${libname}${release}${shared_ext}$major'
19217 if test "X$HPUX_IA64_MODE" = X32; then
19218 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19219 else
19220 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19221 fi
19222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19223 ;;
19224 hppa*64*)
19225 shrext_cmds='.sl'
19226 hardcode_into_libs=yes
19227 dynamic_linker="$host_os dld.sl"
19228 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19229 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19231 soname_spec='${libname}${release}${shared_ext}$major'
19232 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19234 ;;
19235 *)
19236 shrext_cmds='.sl'
19237 dynamic_linker="$host_os dld.sl"
19238 shlibpath_var=SHLIB_PATH
19239 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19241 soname_spec='${libname}${release}${shared_ext}$major'
19242 ;;
19243 esac
cristy0c60a692010-11-04 01:09:47 +000019244 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019245 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019246 # or fails outright, so override atomically:
19247 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019248 ;;
19249
19250interix[3-9]*)
19251 version_type=linux
19252 need_lib_prefix=no
19253 need_version=no
19254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19255 soname_spec='${libname}${release}${shared_ext}$major'
19256 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19257 shlibpath_var=LD_LIBRARY_PATH
19258 shlibpath_overrides_runpath=no
19259 hardcode_into_libs=yes
19260 ;;
19261
19262irix5* | irix6* | nonstopux*)
19263 case $host_os in
19264 nonstopux*) version_type=nonstopux ;;
19265 *)
19266 if test "$lt_cv_prog_gnu_ld" = yes; then
19267 version_type=linux
19268 else
19269 version_type=irix
19270 fi ;;
19271 esac
19272 need_lib_prefix=no
19273 need_version=no
19274 soname_spec='${libname}${release}${shared_ext}$major'
19275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19276 case $host_os in
19277 irix5* | nonstopux*)
19278 libsuff= shlibsuff=
19279 ;;
19280 *)
19281 case $LD in # libtool.m4 will add one of these switches to LD
19282 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19283 libsuff= shlibsuff= libmagic=32-bit;;
19284 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19285 libsuff=32 shlibsuff=N32 libmagic=N32;;
19286 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19287 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19288 *) libsuff= shlibsuff= libmagic=never-match;;
19289 esac
19290 ;;
19291 esac
19292 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19293 shlibpath_overrides_runpath=no
19294 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19295 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19296 hardcode_into_libs=yes
19297 ;;
19298
19299# No shared lib support for Linux oldld, aout, or coff.
19300linux*oldld* | linux*aout* | linux*coff*)
19301 dynamic_linker=no
19302 ;;
19303
19304# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019305linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019306 version_type=linux
19307 need_lib_prefix=no
19308 need_version=no
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310 soname_spec='${libname}${release}${shared_ext}$major'
19311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19312 shlibpath_var=LD_LIBRARY_PATH
19313 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019314
cristy73bd4a52010-10-05 11:24:23 +000019315 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019316 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019317 $as_echo_n "(cached) " >&6
19318else
19319 lt_cv_shlibpath_overrides_runpath=no
19320 save_LDFLAGS=$LDFLAGS
19321 save_libdir=$libdir
19322 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19323 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019325/* end confdefs.h. */
19326
19327int
19328main ()
19329{
19330
19331 ;
19332 return 0;
19333}
19334_ACEOF
19335if ac_fn_cxx_try_link "$LINENO"; then :
19336 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019337 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019338fi
19339fi
19340rm -f core conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019342 LDFLAGS=$save_LDFLAGS
19343 libdir=$save_libdir
19344
19345fi
19346
19347 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019348
19349 # This implies no fast_install, which is unacceptable.
19350 # Some rework will be needed to allow for fast_install
19351 # before this can be enabled.
19352 hardcode_into_libs=yes
19353
19354 # Add ABI-specific directories to the system library path.
19355 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19356
19357 # Append ld.so.conf contents to the search path
19358 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019359 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 +000019360 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019361
cristy73bd4a52010-10-05 11:24:23 +000019362 fi
19363
19364 # We used to test for /lib/ld.so.1 and disable shared libraries on
19365 # powerpc, because MkLinux only supported shared libraries with the
19366 # GNU dynamic linker. Since this was broken with cross compilers,
19367 # most powerpc-linux boxes support dynamic linking these days and
19368 # people can always --disable-shared, the test was removed, and we
19369 # assume the GNU/Linux dynamic linker is in use.
19370 dynamic_linker='GNU/Linux ld.so'
19371 ;;
19372
19373netbsd*)
19374 version_type=sunos
19375 need_lib_prefix=no
19376 need_version=no
19377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19380 dynamic_linker='NetBSD (a.out) ld.so'
19381 else
19382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19383 soname_spec='${libname}${release}${shared_ext}$major'
19384 dynamic_linker='NetBSD ld.elf_so'
19385 fi
19386 shlibpath_var=LD_LIBRARY_PATH
19387 shlibpath_overrides_runpath=yes
19388 hardcode_into_libs=yes
19389 ;;
19390
19391newsos6)
19392 version_type=linux
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19394 shlibpath_var=LD_LIBRARY_PATH
19395 shlibpath_overrides_runpath=yes
19396 ;;
19397
19398*nto* | *qnx*)
19399 version_type=qnx
19400 need_lib_prefix=no
19401 need_version=no
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19403 soname_spec='${libname}${release}${shared_ext}$major'
19404 shlibpath_var=LD_LIBRARY_PATH
19405 shlibpath_overrides_runpath=no
19406 hardcode_into_libs=yes
19407 dynamic_linker='ldqnx.so'
19408 ;;
19409
19410openbsd*)
19411 version_type=sunos
19412 sys_lib_dlsearch_path_spec="/usr/lib"
19413 need_lib_prefix=no
19414 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19415 case $host_os in
19416 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19417 *) need_version=no ;;
19418 esac
19419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19421 shlibpath_var=LD_LIBRARY_PATH
19422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19423 case $host_os in
19424 openbsd2.[89] | openbsd2.[89].*)
19425 shlibpath_overrides_runpath=no
19426 ;;
19427 *)
19428 shlibpath_overrides_runpath=yes
19429 ;;
19430 esac
19431 else
19432 shlibpath_overrides_runpath=yes
19433 fi
19434 ;;
19435
19436os2*)
19437 libname_spec='$name'
19438 shrext_cmds=".dll"
19439 need_lib_prefix=no
19440 library_names_spec='$libname${shared_ext} $libname.a'
19441 dynamic_linker='OS/2 ld.exe'
19442 shlibpath_var=LIBPATH
19443 ;;
19444
19445osf3* | osf4* | osf5*)
19446 version_type=osf
19447 need_lib_prefix=no
19448 need_version=no
19449 soname_spec='${libname}${release}${shared_ext}$major'
19450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19451 shlibpath_var=LD_LIBRARY_PATH
19452 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19453 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19454 ;;
19455
19456rdos*)
19457 dynamic_linker=no
19458 ;;
19459
19460solaris*)
19461 version_type=linux
19462 need_lib_prefix=no
19463 need_version=no
19464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19465 soname_spec='${libname}${release}${shared_ext}$major'
19466 shlibpath_var=LD_LIBRARY_PATH
19467 shlibpath_overrides_runpath=yes
19468 hardcode_into_libs=yes
19469 # ldd complains unless libraries are executable
19470 postinstall_cmds='chmod +x $lib'
19471 ;;
19472
19473sunos4*)
19474 version_type=sunos
19475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19477 shlibpath_var=LD_LIBRARY_PATH
19478 shlibpath_overrides_runpath=yes
19479 if test "$with_gnu_ld" = yes; then
19480 need_lib_prefix=no
19481 fi
19482 need_version=yes
19483 ;;
19484
19485sysv4 | sysv4.3*)
19486 version_type=linux
19487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19488 soname_spec='${libname}${release}${shared_ext}$major'
19489 shlibpath_var=LD_LIBRARY_PATH
19490 case $host_vendor in
19491 sni)
19492 shlibpath_overrides_runpath=no
19493 need_lib_prefix=no
19494 runpath_var=LD_RUN_PATH
19495 ;;
19496 siemens)
19497 need_lib_prefix=no
19498 ;;
19499 motorola)
19500 need_lib_prefix=no
19501 need_version=no
19502 shlibpath_overrides_runpath=no
19503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19504 ;;
19505 esac
19506 ;;
19507
19508sysv4*MP*)
19509 if test -d /usr/nec ;then
19510 version_type=linux
19511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19512 soname_spec='$libname${shared_ext}.$major'
19513 shlibpath_var=LD_LIBRARY_PATH
19514 fi
19515 ;;
19516
19517sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19518 version_type=freebsd-elf
19519 need_lib_prefix=no
19520 need_version=no
19521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19522 soname_spec='${libname}${release}${shared_ext}$major'
19523 shlibpath_var=LD_LIBRARY_PATH
19524 shlibpath_overrides_runpath=yes
19525 hardcode_into_libs=yes
19526 if test "$with_gnu_ld" = yes; then
19527 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19528 else
19529 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19530 case $host_os in
19531 sco3.2v5*)
19532 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19533 ;;
19534 esac
19535 fi
19536 sys_lib_dlsearch_path_spec='/usr/lib'
19537 ;;
19538
19539tpf*)
19540 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19541 version_type=linux
19542 need_lib_prefix=no
19543 need_version=no
19544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545 shlibpath_var=LD_LIBRARY_PATH
19546 shlibpath_overrides_runpath=no
19547 hardcode_into_libs=yes
19548 ;;
19549
19550uts4*)
19551 version_type=linux
19552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19553 soname_spec='${libname}${release}${shared_ext}$major'
19554 shlibpath_var=LD_LIBRARY_PATH
19555 ;;
19556
19557*)
19558 dynamic_linker=no
19559 ;;
19560esac
19561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19562$as_echo "$dynamic_linker" >&6; }
19563test "$dynamic_linker" = no && can_build_shared=no
19564
19565variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19566if test "$GCC" = yes; then
19567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19568fi
19569
19570if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19571 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19572fi
19573if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19574 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19575fi
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
cristy0c60a692010-11-04 01:09:47 +000019612
19613
cristy73bd4a52010-10-05 11:24:23 +000019614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19615$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19616hardcode_action_CXX=
19617if test -n "$hardcode_libdir_flag_spec_CXX" ||
19618 test -n "$runpath_var_CXX" ||
19619 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19620
19621 # We can hardcode non-existent directories.
19622 if test "$hardcode_direct_CXX" != no &&
19623 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19624 # have to relink, otherwise we might link with an installed library
19625 # when we should be linking with a yet-to-be-installed one
19626 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19627 test "$hardcode_minus_L_CXX" != no; then
19628 # Linking always hardcodes the temporary library directory.
19629 hardcode_action_CXX=relink
19630 else
19631 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19632 hardcode_action_CXX=immediate
19633 fi
19634else
19635 # We cannot hardcode anything, or else we can only hardcode existing
19636 # directories.
19637 hardcode_action_CXX=unsupported
19638fi
19639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19640$as_echo "$hardcode_action_CXX" >&6; }
19641
19642if test "$hardcode_action_CXX" = relink ||
19643 test "$inherit_rpath_CXX" = yes; then
19644 # Fast installation is not supported
19645 enable_fast_install=no
19646elif test "$shlibpath_overrides_runpath" = yes ||
19647 test "$enable_shared" = no; then
19648 # Fast installation is not necessary
19649 enable_fast_install=needless
19650fi
19651
19652
19653
19654
19655
19656
19657
19658 fi # test -n "$compiler"
19659
19660 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019661 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019662 LDCXX=$LD
19663 LD=$lt_save_LD
19664 GCC=$lt_save_GCC
19665 with_gnu_ld=$lt_save_with_gnu_ld
19666 lt_cv_path_LDCXX=$lt_cv_path_LD
19667 lt_cv_path_LD=$lt_save_path_LD
19668 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19669 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19670fi # test "$_lt_caught_CXX_error" != yes
19671
19672ac_ext=c
19673ac_cpp='$CPP $CPPFLAGS'
19674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19676ac_compiler_gnu=$ac_cv_c_compiler_gnu
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690 ac_config_commands="$ac_config_commands libtool"
19691
19692
19693
19694
19695# Only expand once:
19696
19697
19698
cristy3ed852e2009-09-05 21:47:34 +000019699
19700
19701# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019702
19703
19704
19705
19706
19707
19708
cristy73bd4a52010-10-05 11:24:23 +000019709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19710$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019711if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019712 $as_echo_n "(cached) " >&6
19713else
19714
19715module=yes
19716eval libltdl_cv_shlibext=$shrext_cmds
19717
19718fi
19719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19720$as_echo "$libltdl_cv_shlibext" >&6; }
19721if test -n "$libltdl_cv_shlibext"; then
19722
19723cat >>confdefs.h <<_ACEOF
19724#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19725_ACEOF
19726
19727fi
19728
19729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19730$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019731if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019732 $as_echo_n "(cached) " >&6
19733else
19734 lt_cv_module_path_var="$shlibpath_var"
19735fi
19736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19737$as_echo "$lt_cv_module_path_var" >&6; }
19738if test -n "$lt_cv_module_path_var"; then
19739
19740cat >>confdefs.h <<_ACEOF
19741#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19742_ACEOF
19743
19744fi
19745
19746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19747$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019748if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019749 $as_echo_n "(cached) " >&6
19750else
19751 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19752fi
19753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19754$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19755if test -n "$lt_cv_sys_dlsearch_path"; then
19756 sys_dlsearch_path=
19757 for dir in $lt_cv_sys_dlsearch_path; do
19758 if test -z "$sys_dlsearch_path"; then
19759 sys_dlsearch_path="$dir"
19760 else
19761 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19762 fi
19763 done
19764
19765cat >>confdefs.h <<_ACEOF
19766#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19767_ACEOF
19768
19769fi
19770
19771
19772LT_DLLOADERS=
19773
19774
19775ac_ext=c
19776ac_cpp='$CPP $CPPFLAGS'
19777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19779ac_compiler_gnu=$ac_cv_c_compiler_gnu
19780
19781
19782LIBADD_DLOPEN=
19783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19784$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019785if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019786 $as_echo_n "(cached) " >&6
19787else
19788 ac_func_search_save_LIBS=$LIBS
19789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790/* end confdefs.h. */
19791
19792/* Override any GCC internal prototype to avoid an error.
19793 Use char because int might match the return type of a GCC
19794 builtin and then its argument prototype would still apply. */
19795#ifdef __cplusplus
19796extern "C"
19797#endif
19798char dlopen ();
19799int
19800main ()
19801{
19802return dlopen ();
19803 ;
19804 return 0;
19805}
19806_ACEOF
19807for ac_lib in '' dl; do
19808 if test -z "$ac_lib"; then
19809 ac_res="none required"
19810 else
19811 ac_res=-l$ac_lib
19812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19813 fi
19814 if ac_fn_c_try_link "$LINENO"; then :
19815 ac_cv_search_dlopen=$ac_res
19816fi
19817rm -f core conftest.err conftest.$ac_objext \
19818 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019819 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019820 break
19821fi
19822done
cristyda16f162011-02-19 23:52:17 +000019823if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019824
19825else
19826 ac_cv_search_dlopen=no
19827fi
19828rm conftest.$ac_ext
19829LIBS=$ac_func_search_save_LIBS
19830fi
19831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19832$as_echo "$ac_cv_search_dlopen" >&6; }
19833ac_res=$ac_cv_search_dlopen
19834if test "$ac_res" != no; then :
19835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19836
19837$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19838
19839 if test "$ac_cv_search_dlopen" != "none required" ; then
19840 LIBADD_DLOPEN="-ldl"
19841 fi
19842 libltdl_cv_lib_dl_dlopen="yes"
19843 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19844else
19845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846/* end confdefs.h. */
19847#if HAVE_DLFCN_H
19848# include <dlfcn.h>
19849#endif
19850
19851int
19852main ()
19853{
19854dlopen(0, 0);
19855 ;
19856 return 0;
19857}
19858_ACEOF
19859if ac_fn_c_try_link "$LINENO"; then :
19860
19861$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19862
19863 libltdl_cv_func_dlopen="yes"
19864 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19865else
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19867$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019868if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019869 $as_echo_n "(cached) " >&6
19870else
19871 ac_check_lib_save_LIBS=$LIBS
19872LIBS="-lsvld $LIBS"
19873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874/* end confdefs.h. */
19875
19876/* Override any GCC internal prototype to avoid an error.
19877 Use char because int might match the return type of a GCC
19878 builtin and then its argument prototype would still apply. */
19879#ifdef __cplusplus
19880extern "C"
19881#endif
19882char dlopen ();
19883int
19884main ()
19885{
19886return dlopen ();
19887 ;
19888 return 0;
19889}
19890_ACEOF
19891if ac_fn_c_try_link "$LINENO"; then :
19892 ac_cv_lib_svld_dlopen=yes
19893else
19894 ac_cv_lib_svld_dlopen=no
19895fi
19896rm -f core conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
19898LIBS=$ac_check_lib_save_LIBS
19899fi
19900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19901$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019902if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019903
19904$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19905
19906 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19907 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19908fi
19909
19910fi
19911rm -f core conftest.err conftest.$ac_objext \
19912 conftest$ac_exeext conftest.$ac_ext
19913fi
19914
19915if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19916then
19917 lt_save_LIBS="$LIBS"
19918 LIBS="$LIBS $LIBADD_DLOPEN"
19919 for ac_func in dlerror
19920do :
19921 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000019922if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019923 cat >>confdefs.h <<_ACEOF
19924#define HAVE_DLERROR 1
19925_ACEOF
19926
19927fi
19928done
19929
19930 LIBS="$lt_save_LIBS"
19931fi
19932
19933
19934LIBADD_SHL_LOAD=
19935ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000019936if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019937
19938$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19939
19940 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19941else
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19943$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019944if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019945 $as_echo_n "(cached) " >&6
19946else
19947 ac_check_lib_save_LIBS=$LIBS
19948LIBS="-ldld $LIBS"
19949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19950/* end confdefs.h. */
19951
19952/* Override any GCC internal prototype to avoid an error.
19953 Use char because int might match the return type of a GCC
19954 builtin and then its argument prototype would still apply. */
19955#ifdef __cplusplus
19956extern "C"
19957#endif
19958char shl_load ();
19959int
19960main ()
19961{
19962return shl_load ();
19963 ;
19964 return 0;
19965}
19966_ACEOF
19967if ac_fn_c_try_link "$LINENO"; then :
19968 ac_cv_lib_dld_shl_load=yes
19969else
19970 ac_cv_lib_dld_shl_load=no
19971fi
19972rm -f core conftest.err conftest.$ac_objext \
19973 conftest$ac_exeext conftest.$ac_ext
19974LIBS=$ac_check_lib_save_LIBS
19975fi
19976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19977$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000019978if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019979
19980$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19981
19982 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19983 LIBADD_SHL_LOAD="-ldld"
19984fi
19985
19986fi
19987
19988
19989
19990case $host_os in
19991darwin[1567].*)
19992# We only want this for pre-Mac OS X 10.4.
19993 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000019994if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019995
19996$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19997
19998 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19999fi
20000
20001 ;;
20002beos*)
20003 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20004 ;;
20005cygwin* | mingw* | os2* | pw32*)
20006 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20007"
cristyda16f162011-02-19 23:52:17 +000020008if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020009 ac_have_decl=1
20010else
20011 ac_have_decl=0
20012fi
20013
20014cat >>confdefs.h <<_ACEOF
20015#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20016_ACEOF
20017
20018 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20019 ;;
20020esac
20021
20022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20023$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020024if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020025 $as_echo_n "(cached) " >&6
20026else
20027 ac_check_lib_save_LIBS=$LIBS
20028LIBS="-ldld $LIBS"
20029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030/* end confdefs.h. */
20031
20032/* Override any GCC internal prototype to avoid an error.
20033 Use char because int might match the return type of a GCC
20034 builtin and then its argument prototype would still apply. */
20035#ifdef __cplusplus
20036extern "C"
20037#endif
20038char dld_link ();
20039int
20040main ()
20041{
20042return dld_link ();
20043 ;
20044 return 0;
20045}
20046_ACEOF
20047if ac_fn_c_try_link "$LINENO"; then :
20048 ac_cv_lib_dld_dld_link=yes
20049else
20050 ac_cv_lib_dld_dld_link=no
20051fi
20052rm -f core conftest.err conftest.$ac_objext \
20053 conftest$ac_exeext conftest.$ac_ext
20054LIBS=$ac_check_lib_save_LIBS
20055fi
20056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20057$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020058if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020059
20060$as_echo "#define HAVE_DLD 1" >>confdefs.h
20061
20062 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20063fi
20064
20065
20066
20067
20068LT_DLPREOPEN=
20069if test -n "$LT_DLLOADERS"
20070then
20071 for lt_loader in $LT_DLLOADERS; do
20072 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20073 done
20074
20075$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20076
20077fi
20078
20079
20080LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20081
20082
20083ac_ext=c
20084ac_cpp='$CPP $CPPFLAGS'
20085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20087ac_compiler_gnu=$ac_cv_c_compiler_gnu
20088
20089
20090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20091$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020092if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020093 $as_echo_n "(cached) " >&6
20094else
20095 lt_cv_sys_symbol_underscore=no
20096 cat > conftest.$ac_ext <<_LT_EOF
20097void nm_test_func(){}
20098int main(){nm_test_func;return 0;}
20099_LT_EOF
20100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20101 (eval $ac_compile) 2>&5
20102 ac_status=$?
20103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20104 test $ac_status = 0; }; then
20105 # Now try to grab the symbols.
20106 ac_nlist=conftest.nm
20107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20108 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20109 ac_status=$?
20110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20111 test $ac_status = 0; } && test -s "$ac_nlist"; then
20112 # See whether the symbols have a leading underscore.
20113 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20114 lt_cv_sys_symbol_underscore=yes
20115 else
20116 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20117 :
20118 else
20119 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20120 fi
20121 fi
20122 else
20123 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20124 fi
20125 else
20126 echo "configure: failed program was:" >&5
20127 cat conftest.c >&5
20128 fi
20129 rm -rf conftest*
20130
20131fi
20132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20133$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20134 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20135
20136
20137if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20138 if test x"$libltdl_cv_func_dlopen" = xyes ||
20139 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20141$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020142if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020143 $as_echo_n "(cached) " >&6
20144else
20145 libltdl_cv_need_uscore=unknown
20146 save_LIBS="$LIBS"
20147 LIBS="$LIBS $LIBADD_DLOPEN"
20148 if test "$cross_compiling" = yes; then :
20149 libltdl_cv_need_uscore=cross
20150else
20151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20152 lt_status=$lt_dlunknown
20153 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020154#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020155#include "confdefs.h"
20156
20157#if HAVE_DLFCN_H
20158#include <dlfcn.h>
20159#endif
20160
20161#include <stdio.h>
20162
20163#ifdef RTLD_GLOBAL
20164# define LT_DLGLOBAL RTLD_GLOBAL
20165#else
20166# ifdef DL_GLOBAL
20167# define LT_DLGLOBAL DL_GLOBAL
20168# else
20169# define LT_DLGLOBAL 0
20170# endif
20171#endif
20172
20173/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20174 find out it does not work in some platform. */
20175#ifndef LT_DLLAZY_OR_NOW
20176# ifdef RTLD_LAZY
20177# define LT_DLLAZY_OR_NOW RTLD_LAZY
20178# else
20179# ifdef DL_LAZY
20180# define LT_DLLAZY_OR_NOW DL_LAZY
20181# else
20182# ifdef RTLD_NOW
20183# define LT_DLLAZY_OR_NOW RTLD_NOW
20184# else
20185# ifdef DL_NOW
20186# define LT_DLLAZY_OR_NOW DL_NOW
20187# else
20188# define LT_DLLAZY_OR_NOW 0
20189# endif
20190# endif
20191# endif
20192# endif
20193#endif
20194
cristy0c60a692010-11-04 01:09:47 +000020195/* When -fvisbility=hidden is used, assume the code has been annotated
20196 correspondingly for the symbols needed. */
20197#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020198int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020199#endif
20200
cristyda16f162011-02-19 23:52:17 +000020201int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020202int main ()
20203{
20204 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20205 int status = $lt_dlunknown;
20206
20207 if (self)
20208 {
20209 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020210 else
20211 {
20212 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20213 else puts (dlerror ());
20214 }
cristy73bd4a52010-10-05 11:24:23 +000020215 /* dlclose (self); */
20216 }
20217 else
20218 puts (dlerror ());
20219
20220 return status;
20221}
20222_LT_EOF
20223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20224 (eval $ac_link) 2>&5
20225 ac_status=$?
20226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20227 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20228 (./conftest; exit; ) >&5 2>/dev/null
20229 lt_status=$?
20230 case x$lt_status in
20231 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20232 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20233 x$lt_dlunknown|x*) ;;
20234 esac
20235 else :
20236 # compilation failed
20237
20238 fi
20239fi
20240rm -fr conftest*
20241
20242 LIBS="$save_LIBS"
20243
20244fi
20245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20246$as_echo "$libltdl_cv_need_uscore" >&6; }
20247 fi
20248fi
20249
20250if test x"$libltdl_cv_need_uscore" = xyes; then
20251
20252$as_echo "#define NEED_USCORE 1" >>confdefs.h
20253
20254fi
20255
20256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20257$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020258if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020259 $as_echo_n "(cached) " >&6
20260else
20261 # PORTME does your system automatically load deplibs for dlopen?
20262 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20263 # For now, we just catch OSes we know something about -- in the
20264 # future, we'll try test this programmatically.
20265 lt_cv_sys_dlopen_deplibs=unknown
20266 case $host_os in
20267 aix3*|aix4.1.*|aix4.2.*)
20268 # Unknown whether this is true for these versions of AIX, but
20269 # we want this `case' here to explicitly catch those versions.
20270 lt_cv_sys_dlopen_deplibs=unknown
20271 ;;
20272 aix[4-9]*)
20273 lt_cv_sys_dlopen_deplibs=yes
20274 ;;
20275 amigaos*)
20276 case $host_cpu in
20277 powerpc)
20278 lt_cv_sys_dlopen_deplibs=no
20279 ;;
20280 esac
20281 ;;
20282 darwin*)
20283 # Assuming the user has installed a libdl from somewhere, this is true
20284 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20285 lt_cv_sys_dlopen_deplibs=yes
20286 ;;
20287 freebsd* | dragonfly*)
20288 lt_cv_sys_dlopen_deplibs=yes
20289 ;;
cristy0c60a692010-11-04 01:09:47 +000020290 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020291 # GNU and its variants, using gnu ld.so (Glibc)
20292 lt_cv_sys_dlopen_deplibs=yes
20293 ;;
20294 hpux10*|hpux11*)
20295 lt_cv_sys_dlopen_deplibs=yes
20296 ;;
20297 interix*)
20298 lt_cv_sys_dlopen_deplibs=yes
20299 ;;
20300 irix[12345]*|irix6.[01]*)
20301 # Catch all versions of IRIX before 6.2, and indicate that we don't
20302 # know how it worked for any of those versions.
20303 lt_cv_sys_dlopen_deplibs=unknown
20304 ;;
20305 irix*)
20306 # The case above catches anything before 6.2, and it's known that
20307 # at 6.2 and later dlopen does load deplibs.
20308 lt_cv_sys_dlopen_deplibs=yes
20309 ;;
20310 netbsd*)
20311 lt_cv_sys_dlopen_deplibs=yes
20312 ;;
20313 openbsd*)
20314 lt_cv_sys_dlopen_deplibs=yes
20315 ;;
20316 osf[1234]*)
20317 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20318 # it did *not* use an RPATH in a shared library to find objects the
20319 # library depends on, so we explicitly say `no'.
20320 lt_cv_sys_dlopen_deplibs=no
20321 ;;
20322 osf5.0|osf5.0a|osf5.1)
20323 # dlopen *does* load deplibs and with the right loader patch applied
20324 # it even uses RPATH in a shared library to search for shared objects
20325 # that the library depends on, but there's no easy way to know if that
20326 # patch is installed. Since this is the case, all we can really
20327 # say is unknown -- it depends on the patch being installed. If
20328 # it is, this changes to `yes'. Without it, it would be `no'.
20329 lt_cv_sys_dlopen_deplibs=unknown
20330 ;;
20331 osf*)
20332 # the two cases above should catch all versions of osf <= 5.1. Read
20333 # the comments above for what we know about them.
20334 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20335 # is used to find them so we can finally say `yes'.
20336 lt_cv_sys_dlopen_deplibs=yes
20337 ;;
20338 qnx*)
20339 lt_cv_sys_dlopen_deplibs=yes
20340 ;;
20341 solaris*)
20342 lt_cv_sys_dlopen_deplibs=yes
20343 ;;
20344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20345 libltdl_cv_sys_dlopen_deplibs=yes
20346 ;;
20347 esac
20348
20349fi
20350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20351$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20352if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20353
20354$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20355
20356fi
20357
20358:
20359
20360for ac_header in argz.h
20361do :
20362 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20363"
cristyda16f162011-02-19 23:52:17 +000020364if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020365 cat >>confdefs.h <<_ACEOF
20366#define HAVE_ARGZ_H 1
20367_ACEOF
20368
20369fi
20370
20371done
20372
20373
20374ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20375# include <argz.h>
20376#endif
20377"
cristyda16f162011-02-19 23:52:17 +000020378if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020379
20380cat >>confdefs.h <<_ACEOF
20381#define HAVE_ERROR_T 1
20382_ACEOF
20383
20384
20385else
20386
20387$as_echo "#define error_t int" >>confdefs.h
20388
20389
20390$as_echo "#define __error_t_defined 1" >>confdefs.h
20391
20392fi
20393
20394
20395ARGZ_H=
20396for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20397 argz_next argz_stringify
20398do :
20399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20400ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020401if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020402 cat >>confdefs.h <<_ACEOF
20403#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20404_ACEOF
20405
20406else
20407 ARGZ_H=argz.h;
20408
20409 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20410
20411fi
20412done
20413
20414
20415if test -z "$ARGZ_H"; then :
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20417$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020418if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020419 $as_echo_n "(cached) " >&6
20420else
20421 case $host_os in #(
20422 *cygwin*)
20423 lt_cv_sys_argz_works=no
20424 if test "$cross_compiling" != no; then
20425 lt_cv_sys_argz_works="guessing no"
20426 else
20427 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20428 save_IFS=$IFS
20429 IFS=-.
20430 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20431 IFS=$save_IFS
20432 lt_os_major=${2-0}
20433 lt_os_minor=${3-0}
20434 lt_os_micro=${4-0}
20435 if test "$lt_os_major" -gt 1 \
20436 || { test "$lt_os_major" -eq 1 \
20437 && { test "$lt_os_minor" -gt 5 \
20438 || { test "$lt_os_minor" -eq 5 \
20439 && test "$lt_os_micro" -gt 24; }; }; }; then
20440 lt_cv_sys_argz_works=yes
20441 fi
20442 fi
20443 ;; #(
20444 *) lt_cv_sys_argz_works=yes ;;
20445 esac
20446fi
20447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20448$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020449 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020450
20451$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20452
20453else
20454 ARGZ_H=argz.h
20455
20456
20457 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20458
20459fi
20460fi
20461
20462
20463
20464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20465$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020466if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020467 $as_echo_n "(cached) " >&6
20468else
20469 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20470 libltdl_cv_preloaded_symbols=yes
20471 else
20472 libltdl_cv_preloaded_symbols=no
20473 fi
20474
20475fi
20476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20477$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20478if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20479
20480$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20481
20482fi
20483
20484# Set options
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496# Check whether --with-included_ltdl was given.
20497if test "${with_included_ltdl+set}" = set; then :
20498 withval=$with_included_ltdl;
20499fi
20500
20501
20502if test "x$with_included_ltdl" != xyes; then
20503 # We are not being forced to use the included libltdl sources, so
20504 # decide whether there is a useful installed version we can use.
20505 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20506
20507"
cristyda16f162011-02-19 23:52:17 +000020508if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020509 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20510 #include <ltdl.h>
20511"
cristyda16f162011-02-19 23:52:17 +000020512if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20514$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020515if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020516 $as_echo_n "(cached) " >&6
20517else
20518 ac_check_lib_save_LIBS=$LIBS
20519LIBS="-lltdl $LIBS"
20520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20521/* end confdefs.h. */
20522
20523/* Override any GCC internal prototype to avoid an error.
20524 Use char because int might match the return type of a GCC
20525 builtin and then its argument prototype would still apply. */
20526#ifdef __cplusplus
20527extern "C"
20528#endif
20529char lt_dladvise_preload ();
20530int
20531main ()
20532{
20533return lt_dladvise_preload ();
20534 ;
20535 return 0;
20536}
20537_ACEOF
20538if ac_fn_c_try_link "$LINENO"; then :
20539 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20540else
20541 ac_cv_lib_ltdl_lt_dladvise_preload=no
20542fi
20543rm -f core conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
20545LIBS=$ac_check_lib_save_LIBS
20546fi
20547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20548$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020549if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020550 with_included_ltdl=no
20551else
20552 with_included_ltdl=yes
20553fi
20554
20555else
20556 with_included_ltdl=yes
20557fi
20558
20559else
20560 with_included_ltdl=yes
20561fi
20562
20563
20564fi
20565
20566
20567
20568
20569# Check whether --with-ltdl_include was given.
20570if test "${with_ltdl_include+set}" = set; then :
20571 withval=$with_ltdl_include;
20572fi
20573
20574
20575if test -n "$with_ltdl_include"; then
20576 if test -f "$with_ltdl_include/ltdl.h"; then :
20577 else
cristy98dddb52010-11-04 00:30:15 +000020578 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020579 fi
20580else
20581 with_ltdl_include=no
20582fi
20583
20584
20585# Check whether --with-ltdl_lib was given.
20586if test "${with_ltdl_lib+set}" = set; then :
20587 withval=$with_ltdl_lib;
20588fi
20589
20590
20591if test -n "$with_ltdl_lib"; then
20592 if test -f "$with_ltdl_lib/libltdl.la"; then :
20593 else
cristy98dddb52010-11-04 00:30:15 +000020594 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020595 fi
20596else
20597 with_ltdl_lib=no
20598fi
20599
20600case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20601 ,yes,no,no,)
20602 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020603 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020604 "") enable_ltdl_convenience=yes
20605 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20606esac
20607LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20608LTDLDEPS=$LIBLTDL
20609LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20610
20611
20612
20613
20614
20615# For backwards non-gettext consistent compatibility...
20616INCLTDL="$LTDLINCL"
20617
20618
20619 ;;
20620 ,no,no,no,)
20621 # If the included ltdl is not to be used, then use the
20622 # preinstalled libltdl we found.
20623
20624$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20625
20626 LIBLTDL=-lltdl
20627 LTDLDEPS=
20628 LTDLINCL=
20629 ;;
20630 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020631 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020632 ;;
20633 *) with_included_ltdl=no
20634 LIBLTDL="-L$with_ltdl_lib -lltdl"
20635 LTDLDEPS=
20636 LTDLINCL="-I$with_ltdl_include"
20637 ;;
20638esac
20639INCLTDL="$LTDLINCL"
20640
20641# Report our decision...
20642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20643$as_echo_n "checking where to find libltdl headers... " >&6; }
20644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20645$as_echo "$LTDLINCL" >&6; }
20646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20647$as_echo_n "checking where to find libltdl library... " >&6; }
20648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20649$as_echo "$LIBLTDL" >&6; }
20650
20651
20652
20653# Check whether --enable-ltdl-install was given.
20654if test "${enable_ltdl_install+set}" = set; then :
20655 enableval=$enable_ltdl_install;
20656fi
20657
20658
20659case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20660 *yes*) ;;
20661 *) enable_ltdl_convenience=yes ;;
20662esac
20663
20664 if test x"${enable_ltdl_install-no}" != xno; then
20665 INSTALL_LTDL_TRUE=
20666 INSTALL_LTDL_FALSE='#'
20667else
20668 INSTALL_LTDL_TRUE='#'
20669 INSTALL_LTDL_FALSE=
20670fi
20671
20672 if test x"${enable_ltdl_convenience-no}" != xno; then
20673 CONVENIENCE_LTDL_TRUE=
20674 CONVENIENCE_LTDL_FALSE='#'
20675else
20676 CONVENIENCE_LTDL_TRUE='#'
20677 CONVENIENCE_LTDL_FALSE=
20678fi
20679
20680
20681
20682
20683
20684
cristy73bd4a52010-10-05 11:24:23 +000020685# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20686# the user used. This is so that ltdl.h can pick up the parent projects
20687# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20688# definitions required by ltdl.c.
20689# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20690
20691
20692
20693for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20694do :
20695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20696ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20697"
cristy98dddb52010-11-04 00:30:15 +000020698if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020699 cat >>confdefs.h <<_ACEOF
20700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20701_ACEOF
20702
20703fi
20704
20705done
20706
20707
20708for ac_func in closedir opendir readdir
20709do :
20710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20711ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020712if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020713 cat >>confdefs.h <<_ACEOF
20714#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20715_ACEOF
20716
20717else
20718
20719
20720 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20721
20722fi
20723done
20724
20725for ac_func in strlcat strlcpy
20726do :
20727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20728ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020729if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020730 cat >>confdefs.h <<_ACEOF
20731#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20732_ACEOF
20733
20734else
20735
20736
20737 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20738
20739fi
20740done
20741
20742
20743
20744cat >>confdefs.h <<_ACEOF
20745#define LT_LIBEXT "$libext"
20746_ACEOF
20747
20748
cristyda16f162011-02-19 23:52:17 +000020749name=
20750eval "lt_libprefix=\"$libname_spec\""
20751
20752cat >>confdefs.h <<_ACEOF
20753#define LT_LIBPREFIX "$lt_libprefix"
20754_ACEOF
20755
20756
cristy73bd4a52010-10-05 11:24:23 +000020757name=ltdl
cristyda16f162011-02-19 23:52:17 +000020758eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020759
20760
20761
20762
20763
20764
20765
20766
20767# Only expand once:
20768
20769
cristy3ed852e2009-09-05 21:47:34 +000020770
20771# Check to see if building shared libraries
20772libtool_build_shared_libs='no'
20773if test "$enable_shared" = 'yes'; then
20774 libtool_build_shared_libs='yes'
20775fi
20776
20777# Check to see if building static libraries
20778libtool_build_static_libs='no'
20779if test "$enable_static" = 'yes'; then
20780 libtool_build_static_libs='yes'
20781fi
20782
cristy73bd4a52010-10-05 11:24:23 +000020783 if test "${libtool_build_shared_libs}" = 'yes'; then
20784 WITH_SHARED_LIBS_TRUE=
20785 WITH_SHARED_LIBS_FALSE='#'
20786else
20787 WITH_SHARED_LIBS_TRUE='#'
20788 WITH_SHARED_LIBS_FALSE=
20789fi
20790
cristy3ed852e2009-09-05 21:47:34 +000020791#
20792# Enable support for building loadable modules
20793#
20794
20795# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020796if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020797 withval=$with_modules; with_modules=$withval
20798else
cristy5a1cefd2010-01-06 20:42:35 +000020799 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020800fi
20801
20802
20803# Only allow building loadable modules if we are building shared libraries
20804if test "$with_modules" != 'no' ; then
20805 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020806 { $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 +000020807$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20808 with_modules='no'
20809 fi
20810fi
20811if test "$with_modules" != 'no'; then
20812
cristy8b350f62009-11-15 23:12:43 +000020813$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020814
20815fi
cristy73bd4a52010-10-05 11:24:23 +000020816 if test "$with_modules" != 'no'; then
20817 WITH_MODULES_TRUE=
20818 WITH_MODULES_FALSE='#'
20819else
20820 WITH_MODULES_TRUE='#'
20821 WITH_MODULES_FALSE=
20822fi
20823
cristy3ed852e2009-09-05 21:47:34 +000020824
20825# Enable building/use of libltdl if we are building shared libraries regardless
20826# of whether modules are built or not.
20827with_ltdl='no'
20828if test "$libtool_build_shared_libs" != 'no'; then
20829 with_ltdl='yes'
20830fi
20831
cristy73bd4a52010-10-05 11:24:23 +000020832 if test "$with_ltdl" != 'no'; then
20833 WITH_LTDL_TRUE=
20834 WITH_LTDL_FALSE='#'
20835else
20836 WITH_LTDL_TRUE='#'
20837 WITH_LTDL_FALSE=
20838fi
20839
cristy3ed852e2009-09-05 21:47:34 +000020840if test "$with_ltdl" != 'no'; then
20841
cristy8b350f62009-11-15 23:12:43 +000020842$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020843
20844
20845 # Set DLLDFLAGS
20846 if test X"$enable_shared" = Xyes; then
20847 DLLDFLAGS=-export-dynamic
20848
20849 fi
20850fi
20851
20852# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020853# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020854# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020855if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020856 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20857else
20858 enable_delegate_build='no'
20859fi
20860
20861
20862# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020863if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020864 enableval=$enable_deprecated; enable_deprecated=$enableval
20865else
20866 enable_deprecated='no'
20867fi
20868
20869
20870if test "$enable_deprecated" = 'yes'; then
20871
cristy8b350f62009-11-15 23:12:43 +000020872$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020873
20874else
20875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20876fi
20877
20878# Build a version of ImageMagick which operates uninstalled.
20879# Used to build distributions located via MAGICK_HOME / executable path
20880# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020881if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020882 enableval=$enable_installed; enable_installed=$enableval
20883else
20884 enable_installed='yes'
20885fi
20886
20887
20888if test "$enable_installed" = 'yes'; then
20889
cristy8b350f62009-11-15 23:12:43 +000020890$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020891
20892else
20893 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20894fi
20895
20896# Permit enciphering and deciphering image pixels.
20897# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020898if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020899 enableval=$enable_cipher; enable_cipher=$enableval
20900else
20901 enable_cipher='yes'
20902fi
20903
20904
20905if test "$enable_cipher" = 'yes'; then
20906
cristy8b350f62009-11-15 23:12:43 +000020907$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020908
20909fi
20910
20911# Build an embeddable version of ImageMagick.
20912# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020913if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020914 enableval=$enable_embeddable; enable_embeddable=$enableval
20915else
20916 enable_embeddable='no'
20917fi
20918
20919
20920if test "$enable_embeddable" = 'yes'; then
20921
cristy8b350f62009-11-15 23:12:43 +000020922$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020923
20924fi
20925
20926# Build a high dynamic range version of ImageMagick.
20927# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020928if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020929 enableval=$enable_hdri; enable_hdri=$enableval
20930else
20931 enable_hdri='no'
20932fi
20933
20934
20935MAGICK_HDRI=""
20936if test "$enable_hdri" = 'yes'; then
20937 MAGICK_HDRI="HDRI"
20938
cristy8b350f62009-11-15 23:12:43 +000020939$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020940
cristyfd9dcd42010-08-08 18:07:02 +000020941 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020942fi
20943
cristy3ed852e2009-09-05 21:47:34 +000020944# Build a version of ImageMagick with assert statements.
20945# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020946if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020947 enableval=$enable_assert; enable_assert=$enableval
20948else
20949 enable_assert='yes'
20950fi
20951
20952
20953if test "$enable_assert" = 'no'; then
20954
cristy8b350f62009-11-15 23:12:43 +000020955$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020956
20957fi
20958
20959# Add configure option --enable-maintainer-mode which enables dependency
20960# checking and generation useful to package maintainers. This is made an
20961# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020962
20963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20964$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20965 # Check whether --enable-maintainer-mode was given.
20966if test "${enable_maintainer_mode+set}" = set; then :
20967 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20968else
20969 USE_MAINTAINER_MODE=no
20970fi
20971
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20973$as_echo "$USE_MAINTAINER_MODE" >&6; }
20974 if test $USE_MAINTAINER_MODE = yes; then
20975 MAINTAINER_MODE_TRUE=
20976 MAINTAINER_MODE_FALSE='#'
20977else
20978 MAINTAINER_MODE_TRUE='#'
20979 MAINTAINER_MODE_FALSE=
20980fi
20981
20982 MAINT=$MAINTAINER_MODE_TRUE
20983
20984
cristy3ed852e2009-09-05 21:47:34 +000020985
20986
20987# Enable ccmalloc memory debugging support
20988# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020989if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020990 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20991else
20992 enable_ccmalloc='no'
20993fi
20994
20995
20996# Enable Electric Fence memory debugging support
20997# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020998if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020999 enableval=$enable_efence; enable_efence=$enableval
21000else
21001 enable_efence='no'
21002fi
21003
21004
21005# Enable prof-based profiling support
21006# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021007if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021008 enableval=$enable_prof; enable_prof=$enableval
21009else
21010 enable_prof='no'
21011fi
21012
21013
21014# Enable gprof-based profiling support
21015# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021016if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021017 enableval=$enable_gprof; enable_gprof=$enableval
21018else
21019 enable_gprof='no'
21020fi
21021
21022
21023# Enable gcov-based profiling support
21024# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021025if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021026 enableval=$enable_gcov; enable_gcov=$enableval
21027else
21028 enable_gcov='no'
21029fi
21030
21031
21032enable_profiling='no'
21033if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21034 enable_profiling='yes'
21035 if test "$libtool_build_shared_libs" = 'yes'; then
21036 echo "Warning: Can not profile code using shared libraries"
21037 fi
21038fi
21039
21040# Magick API method prefix
21041
21042# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021043if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021044 withval=$with_method_prefix; with_method_prefix=$enableval
21045else
21046 with_method_prefix=''
21047fi
21048
21049
21050if test "$with_method_prefix" != ''; then
21051
21052cat >>confdefs.h <<_ACEOF
21053#define NAMESPACE_PREFIX $with_method_prefix
21054_ACEOF
21055
21056fi
21057
21058# Number of bits in a Quantum
21059
21060# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021061if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021062 withval=$with_quantum_depth; with_quantum_depth=$withval
21063else
21064 with_quantum_depth=16
21065fi
21066
21067
21068if test "$with_quantum_depth" != '8'; then
21069 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21070fi
21071
21072case "${with_quantum_depth}" in
21073 8 ) ;;
21074 16 ) ;;
21075 32 ) ;;
21076 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021077 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021078esac
cristycdae12a2010-09-19 02:24:31 +000021079if test "$enable_hdri" = 'yes'; then
21080 with_quantum_depth=16
21081fi
cristy3ed852e2009-09-05 21:47:34 +000021082QUANTUM_DEPTH="$with_quantum_depth"
21083
21084cat >>confdefs.h <<_ACEOF
21085#define QUANTUM_DEPTH $QUANTUM_DEPTH
21086_ACEOF
21087
21088
21089# Set pixel cache threshold
21090
21091# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021092if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021093 withval=$with_cache; with_cache=$withval
21094else
21095 with_cache=''
21096fi
21097
21098
21099if test "$with_cache" != ''; then
21100
21101cat >>confdefs.h <<_ACEOF
21102#define PixelCacheThreshold $with_cache
21103_ACEOF
21104
21105 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21106fi
21107
21108# Disable/Enable support for full delegate paths
21109
21110# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021111if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021112 withval=$with_frozenpaths; with_frozenpaths=$withval
21113else
21114 with_frozenpaths='no'
21115fi
21116
21117
21118# Enable build/install of Magick++
21119
21120# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021121if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021122 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21123else
21124 with_magick_plus_plus='yes'
21125fi
21126
21127
21128# Disable build/install of PerlMagick.
21129
21130# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021131if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021132 withval=$with_perl; with_perl=$withval
21133else
cristyb5f4e2f2010-04-25 00:49:11 +000021134 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021135fi
21136
21137
21138# Options to pass when configuring PerlMagick
21139
21140# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021141if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021142 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021143fi
21144
21145
cristy3ed852e2009-09-05 21:47:34 +000021146
21147# Enable umem, object-caching memory allocation library.
21148
21149# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021150if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021151 withval=$with_umem; with_umem=$withval
21152else
21153 with_umem='no'
21154fi
21155
21156if test "$with_umem" != 'yes' ; then
21157 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21158fi
21159
21160#
21161# Specify path to shared libstdc++ if not in normal location
21162#
21163
21164# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021165if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021166 withval=$with_libstdc; with_libstdc=$withval
21167else
21168 with_libstdc=''
21169fi
21170
21171
21172if test "$with_libstdc" != ''; then
21173 if test -d "$with_libstdc"; then
21174 LIBSTDCLDFLAGS="-L$with_libstdc"
21175 fi
21176fi
21177
21178
21179# Does gcc required -traditional?
21180if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021182$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021183if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021184 $as_echo_n "(cached) " >&6
21185else
21186 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021188/* end confdefs.h. */
21189#include <sgtty.h>
21190Autoconf TIOCGETP
21191_ACEOF
21192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021193 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021194 ac_cv_prog_gcc_traditional=yes
21195else
21196 ac_cv_prog_gcc_traditional=no
21197fi
21198rm -f conftest*
21199
21200
21201 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021203/* end confdefs.h. */
21204#include <termio.h>
21205Autoconf TCGETA
21206_ACEOF
21207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021208 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021209 ac_cv_prog_gcc_traditional=yes
21210fi
21211rm -f conftest*
21212
21213 fi
21214fi
cristy8b350f62009-11-15 23:12:43 +000021215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021216$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21217 if test $ac_cv_prog_gcc_traditional = yes; then
21218 CC="$CC -traditional"
21219 fi
21220fi
21221
21222
21223########
21224#
21225# Set defines required to build DLLs and modules using MinGW
21226#
21227########
21228# These options are set for multi-thread DLL module build
21229# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21230# module: _DLL
21231# executable/Magick++: _DLL _MAGICKMOD_
21232MODULE_EXTRA_CPPFLAGS=''
21233LIBRARY_EXTRA_CPPFLAGS=''
21234if test "${native_win32_build}" = 'yes'; then
21235 if test "${libtool_build_shared_libs}" = 'yes'; then
21236 CPPFLAGS="$CPPFLAGS -D_DLL"
21237 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21238 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21239 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21240 if test "$with_modules" = 'yes'; then
21241 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21242 else
21243 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21244 fi
21245 else
21246 CPPFLAGS="$CPPFLAGS -D_LIB"
21247 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21248 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21249 fi
21250 if test "$with_threads" = 'yes'; then
21251 CPPFLAGS="$CPPFLAGS -D_MT"
21252 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21253 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21254 fi
21255fi
21256
21257
21258
21259# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021261$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021262if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021263 $as_echo_n "(cached) " >&6
21264else
cristy8b350f62009-11-15 23:12:43 +000021265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021266/* end confdefs.h. */
21267#include <stdlib.h>
21268#include <stdarg.h>
21269#include <string.h>
21270#include <float.h>
21271
21272int
21273main ()
21274{
21275
21276 ;
21277 return 0;
21278}
21279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021280if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021281 ac_cv_header_stdc=yes
21282else
cristy8b350f62009-11-15 23:12:43 +000021283 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021284fi
cristy3ed852e2009-09-05 21:47:34 +000021285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21286
21287if test $ac_cv_header_stdc = yes; then
21288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021290/* end confdefs.h. */
21291#include <string.h>
21292
21293_ACEOF
21294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021295 $EGREP "memchr" >/dev/null 2>&1; then :
21296
cristy3ed852e2009-09-05 21:47:34 +000021297else
21298 ac_cv_header_stdc=no
21299fi
21300rm -f conftest*
21301
21302fi
21303
21304if test $ac_cv_header_stdc = yes; then
21305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021307/* end confdefs.h. */
21308#include <stdlib.h>
21309
21310_ACEOF
21311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021312 $EGREP "free" >/dev/null 2>&1; then :
21313
cristy3ed852e2009-09-05 21:47:34 +000021314else
21315 ac_cv_header_stdc=no
21316fi
21317rm -f conftest*
21318
21319fi
21320
21321if test $ac_cv_header_stdc = yes; then
21322 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021323 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021324 :
21325else
cristy8b350f62009-11-15 23:12:43 +000021326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021327/* end confdefs.h. */
21328#include <ctype.h>
21329#include <stdlib.h>
21330#if ((' ' & 0x0FF) == 0x020)
21331# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21332# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21333#else
21334# define ISLOWER(c) \
21335 (('a' <= (c) && (c) <= 'i') \
21336 || ('j' <= (c) && (c) <= 'r') \
21337 || ('s' <= (c) && (c) <= 'z'))
21338# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21339#endif
21340
21341#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21342int
21343main ()
21344{
21345 int i;
21346 for (i = 0; i < 256; i++)
21347 if (XOR (islower (i), ISLOWER (i))
21348 || toupper (i) != TOUPPER (i))
21349 return 2;
21350 return 0;
21351}
21352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021353if ac_fn_c_try_run "$LINENO"; then :
21354
cristy3ed852e2009-09-05 21:47:34 +000021355else
cristy8b350f62009-11-15 23:12:43 +000021356 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021357fi
cristy8b350f62009-11-15 23:12:43 +000021358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21359 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021360fi
21361
cristy3ed852e2009-09-05 21:47:34 +000021362fi
21363fi
cristy8b350f62009-11-15 23:12:43 +000021364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021365$as_echo "$ac_cv_header_stdc" >&6; }
21366if test $ac_cv_header_stdc = yes; then
21367
cristy8b350f62009-11-15 23:12:43 +000021368$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021369
21370fi
21371
21372if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021373 { $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 +000021374 header files. Compilation cannot proceed. Please install the ANSI C
21375 headers and rerun this script." >&5
21376$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21377 header files. Compilation cannot proceed. Please install the ANSI C
21378 headers and rerun this script." >&2;};
21379fi
cristya0b81c32010-01-22 02:54:33 +000021380
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21382$as_echo_n "checking whether to enable assertions... " >&6; }
21383 # Check whether --enable-assert was given.
21384if test "${enable_assert+set}" = set; then :
21385 enableval=$enable_assert; ac_enable_assert=$enableval
21386 if test "x$enableval" = xno; then :
21387
21388$as_echo "#define NDEBUG 1" >>confdefs.h
21389
21390elif test "x$enableval" != xyes; then :
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21392$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21393 ac_enable_assert=yes
21394fi
21395else
21396 ac_enable_assert=yes
21397fi
21398
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21400$as_echo "$ac_enable_assert" >&6; }
21401
cristy3ed852e2009-09-05 21:47:34 +000021402ac_header_dirent=no
21403for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21404 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021406$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021407if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021408 $as_echo_n "(cached) " >&6
21409else
cristy8b350f62009-11-15 23:12:43 +000021410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021411/* end confdefs.h. */
21412#include <sys/types.h>
21413#include <$ac_hdr>
21414
21415int
21416main ()
21417{
21418if ((DIR *) 0)
21419return 0;
21420 ;
21421 return 0;
21422}
21423_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021424if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021425 eval "$as_ac_Header=yes"
21426else
cristy8b350f62009-11-15 23:12:43 +000021427 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021428fi
cristy3ed852e2009-09-05 21:47:34 +000021429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430fi
cristy8b350f62009-11-15 23:12:43 +000021431eval ac_res=\$$as_ac_Header
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021433$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021434if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021435 cat >>confdefs.h <<_ACEOF
21436#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21437_ACEOF
21438
21439ac_header_dirent=$ac_hdr; break
21440fi
21441
21442done
21443# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21444if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021446$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021447if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021448 $as_echo_n "(cached) " >&6
21449else
21450 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021452/* end confdefs.h. */
21453
21454/* Override any GCC internal prototype to avoid an error.
21455 Use char because int might match the return type of a GCC
21456 builtin and then its argument prototype would still apply. */
21457#ifdef __cplusplus
21458extern "C"
21459#endif
21460char opendir ();
21461int
21462main ()
21463{
21464return opendir ();
21465 ;
21466 return 0;
21467}
21468_ACEOF
21469for ac_lib in '' dir; do
21470 if test -z "$ac_lib"; then
21471 ac_res="none required"
21472 else
21473 ac_res=-l$ac_lib
21474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21475 fi
cristy8b350f62009-11-15 23:12:43 +000021476 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021477 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021478fi
cristy8b350f62009-11-15 23:12:43 +000021479rm -f core conftest.err conftest.$ac_objext \
21480 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021481 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021482 break
21483fi
21484done
cristyda16f162011-02-19 23:52:17 +000021485if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021486
cristy3ed852e2009-09-05 21:47:34 +000021487else
21488 ac_cv_search_opendir=no
21489fi
21490rm conftest.$ac_ext
21491LIBS=$ac_func_search_save_LIBS
21492fi
cristy8b350f62009-11-15 23:12:43 +000021493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021494$as_echo "$ac_cv_search_opendir" >&6; }
21495ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021496if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21498
21499fi
21500
21501else
cristy8b350f62009-11-15 23:12:43 +000021502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021503$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021504if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021505 $as_echo_n "(cached) " >&6
21506else
21507 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021509/* end confdefs.h. */
21510
21511/* Override any GCC internal prototype to avoid an error.
21512 Use char because int might match the return type of a GCC
21513 builtin and then its argument prototype would still apply. */
21514#ifdef __cplusplus
21515extern "C"
21516#endif
21517char opendir ();
21518int
21519main ()
21520{
21521return opendir ();
21522 ;
21523 return 0;
21524}
21525_ACEOF
21526for ac_lib in '' x; do
21527 if test -z "$ac_lib"; then
21528 ac_res="none required"
21529 else
21530 ac_res=-l$ac_lib
21531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21532 fi
cristy8b350f62009-11-15 23:12:43 +000021533 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021534 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021535fi
cristy8b350f62009-11-15 23:12:43 +000021536rm -f core conftest.err conftest.$ac_objext \
21537 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021538 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021539 break
21540fi
21541done
cristyda16f162011-02-19 23:52:17 +000021542if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021543
cristy3ed852e2009-09-05 21:47:34 +000021544else
21545 ac_cv_search_opendir=no
21546fi
21547rm conftest.$ac_ext
21548LIBS=$ac_func_search_save_LIBS
21549fi
cristy8b350f62009-11-15 23:12:43 +000021550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021551$as_echo "$ac_cv_search_opendir" >&6; }
21552ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021553if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21555
21556fi
21557
21558fi
21559
21560
21561# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000021562for 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
cristy8b350f62009-11-15 23:12:43 +000021563do :
21564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21565ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021567 cat >>confdefs.h <<_ACEOF
21568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21569_ACEOF
21570
21571fi
21572
21573done
21574
21575
21576########
21577#
21578# Checks for typedefs, structures, and compiler characteristics.
21579#
21580########
21581
cristy8b350f62009-11-15 23:12:43 +000021582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021583$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021584if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021585 $as_echo_n "(cached) " >&6
21586else
cristy8b350f62009-11-15 23:12:43 +000021587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021588/* end confdefs.h. */
21589
21590#include <stdbool.h>
21591#ifndef bool
21592 "error: bool is not defined"
21593#endif
21594#ifndef false
21595 "error: false is not defined"
21596#endif
21597#if false
21598 "error: false is not 0"
21599#endif
21600#ifndef true
21601 "error: true is not defined"
21602#endif
21603#if true != 1
21604 "error: true is not 1"
21605#endif
21606#ifndef __bool_true_false_are_defined
21607 "error: __bool_true_false_are_defined is not defined"
21608#endif
21609
21610 struct s { _Bool s: 1; _Bool t; } s;
21611
21612 char a[true == 1 ? 1 : -1];
21613 char b[false == 0 ? 1 : -1];
21614 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21615 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021616 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021617 char f[(_Bool) 0.0 == false ? 1 : -1];
21618 char g[true];
21619 char h[sizeof (_Bool)];
21620 char i[sizeof s.t];
21621 enum { j = false, k = true, l = false * true, m = true * 256 };
21622 /* The following fails for
21623 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21624 _Bool n[m];
21625 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21626 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021627 /* Catch a bug in an HP-UX C compiler. See
21628 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21629 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21630 */
21631 _Bool q = true;
21632 _Bool *pq = &q;
21633
21634int
21635main ()
21636{
21637
cristyda16f162011-02-19 23:52:17 +000021638 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021639 *pq |= q;
21640 *pq |= ! q;
21641 /* Refer to every declared value, to avoid compiler optimizations. */
21642 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21643 + !m + !n + !o + !p + !q + !pq);
21644
21645 ;
21646 return 0;
21647}
21648_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021649if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021650 ac_cv_header_stdbool_h=yes
21651else
cristy8b350f62009-11-15 23:12:43 +000021652 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021653fi
cristy3ed852e2009-09-05 21:47:34 +000021654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655fi
cristy8b350f62009-11-15 23:12:43 +000021656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021657$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021658ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021659if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021660
21661cat >>confdefs.h <<_ACEOF
21662#define HAVE__BOOL 1
21663_ACEOF
21664
21665
21666fi
21667
21668if test $ac_cv_header_stdbool_h = yes; then
21669
cristy8b350f62009-11-15 23:12:43 +000021670$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021671
21672fi
21673
cristy8b350f62009-11-15 23:12:43 +000021674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021675$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021676if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021677 $as_echo_n "(cached) " >&6
21678else
cristy8b350f62009-11-15 23:12:43 +000021679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021680/* end confdefs.h. */
21681
21682int
21683main ()
21684{
21685
21686volatile int x;
21687int * volatile y = (int *) 0;
21688return !x && !y;
21689 ;
21690 return 0;
21691}
21692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021693if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021694 ac_cv_c_volatile=yes
21695else
cristy8b350f62009-11-15 23:12:43 +000021696 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021697fi
cristy3ed852e2009-09-05 21:47:34 +000021698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21699fi
cristy8b350f62009-11-15 23:12:43 +000021700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021701$as_echo "$ac_cv_c_volatile" >&6; }
21702if test $ac_cv_c_volatile = no; then
21703
cristy8b350f62009-11-15 23:12:43 +000021704$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021705
21706fi
21707
cristy8b350f62009-11-15 23:12:43 +000021708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021709$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021710if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021711 $as_echo_n "(cached) " >&6
21712else
cristy8b350f62009-11-15 23:12:43 +000021713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021714/* end confdefs.h. */
21715#define x(y) #y
21716
21717char *s = x(teststring);
21718_ACEOF
21719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021720 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 ac_cv_c_stringize=no
21722else
21723 ac_cv_c_stringize=yes
21724fi
21725rm -f conftest*
21726
21727fi
cristy8b350f62009-11-15 23:12:43 +000021728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021729$as_echo "$ac_cv_c_stringize" >&6; }
21730if test $ac_cv_c_stringize = yes; then
21731
cristy8b350f62009-11-15 23:12:43 +000021732$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021733
21734fi
21735
cristy8b350f62009-11-15 23:12:43 +000021736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021737$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021738if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021739 $as_echo_n "(cached) " >&6
21740else
cristy8b350f62009-11-15 23:12:43 +000021741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021742/* end confdefs.h. */
21743#include <sys/types.h>
21744#include <sys/stat.h>
21745
21746#if defined S_ISBLK && defined S_IFDIR
21747extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21748#endif
21749
21750#if defined S_ISBLK && defined S_IFCHR
21751extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21752#endif
21753
21754#if defined S_ISLNK && defined S_IFREG
21755extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21756#endif
21757
21758#if defined S_ISSOCK && defined S_IFREG
21759extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21760#endif
21761
21762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021763if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021764 ac_cv_header_stat_broken=no
21765else
cristy8b350f62009-11-15 23:12:43 +000021766 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021767fi
cristy3ed852e2009-09-05 21:47:34 +000021768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21769fi
cristy8b350f62009-11-15 23:12:43 +000021770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021771$as_echo "$ac_cv_header_stat_broken" >&6; }
21772if test $ac_cv_header_stat_broken = yes; then
21773
cristy8b350f62009-11-15 23:12:43 +000021774$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021775
21776fi
21777
cristy8b350f62009-11-15 23:12:43 +000021778{ $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 +000021779$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021780if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021781 $as_echo_n "(cached) " >&6
21782else
cristy8b350f62009-11-15 23:12:43 +000021783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021784/* end confdefs.h. */
21785#include <sys/types.h>
21786#include <sys/time.h>
21787#include <time.h>
21788
21789int
21790main ()
21791{
21792if ((struct tm *) 0)
21793return 0;
21794 ;
21795 return 0;
21796}
21797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021798if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021799 ac_cv_header_time=yes
21800else
cristy8b350f62009-11-15 23:12:43 +000021801 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021802fi
cristy3ed852e2009-09-05 21:47:34 +000021803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804fi
cristy8b350f62009-11-15 23:12:43 +000021805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021806$as_echo "$ac_cv_header_time" >&6; }
21807if test $ac_cv_header_time = yes; then
21808
cristy8b350f62009-11-15 23:12:43 +000021809$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021810
21811fi
21812
cristy8b350f62009-11-15 23:12:43 +000021813{ $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 +000021814$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021815if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021816 $as_echo_n "(cached) " >&6
21817else
cristy8b350f62009-11-15 23:12:43 +000021818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021819/* end confdefs.h. */
21820#include <sys/types.h>
21821#include <time.h>
21822
21823int
21824main ()
21825{
21826struct tm tm;
21827 int *p = &tm.tm_sec;
21828 return !p;
21829 ;
21830 return 0;
21831}
21832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021833if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021834 ac_cv_struct_tm=time.h
21835else
cristy8b350f62009-11-15 23:12:43 +000021836 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021837fi
cristy3ed852e2009-09-05 21:47:34 +000021838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21839fi
cristy8b350f62009-11-15 23:12:43 +000021840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021841$as_echo "$ac_cv_struct_tm" >&6; }
21842if test $ac_cv_struct_tm = sys/time.h; then
21843
cristy8b350f62009-11-15 23:12:43 +000021844$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021845
21846fi
21847
cristy92703d82010-04-26 00:18:18 +000021848ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21849#include <$ac_cv_struct_tm>
21850
21851"
cristyda16f162011-02-19 23:52:17 +000021852if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021853
21854cat >>confdefs.h <<_ACEOF
21855#define HAVE_STRUCT_TM_TM_ZONE 1
21856_ACEOF
21857
21858
21859fi
21860
21861if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21862
21863$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21864
21865else
21866 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21867"
cristyda16f162011-02-19 23:52:17 +000021868if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021869 ac_have_decl=1
21870else
21871 ac_have_decl=0
21872fi
21873
21874cat >>confdefs.h <<_ACEOF
21875#define HAVE_DECL_TZNAME $ac_have_decl
21876_ACEOF
21877
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21879$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021880if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021881 $as_echo_n "(cached) " >&6
21882else
21883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884/* end confdefs.h. */
21885#include <time.h>
21886#if !HAVE_DECL_TZNAME
21887extern char *tzname[];
21888#endif
21889
21890int
21891main ()
21892{
21893return tzname[0][0];
21894 ;
21895 return 0;
21896}
21897_ACEOF
21898if ac_fn_c_try_link "$LINENO"; then :
21899 ac_cv_var_tzname=yes
21900else
21901 ac_cv_var_tzname=no
21902fi
21903rm -f core conftest.err conftest.$ac_objext \
21904 conftest$ac_exeext conftest.$ac_ext
21905fi
21906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21907$as_echo "$ac_cv_var_tzname" >&6; }
21908 if test $ac_cv_var_tzname = yes; then
21909
21910$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21911
21912 fi
21913fi
21914
cristy8b350f62009-11-15 23:12:43 +000021915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021916$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021917if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021918 $as_echo_n "(cached) " >&6
21919else
21920 echo '#! /bin/cat
21921exit 69
21922' >conftest
21923chmod u+x conftest
21924(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21925if test $? -ne 69; then
21926 ac_cv_sys_interpreter=yes
21927else
21928 ac_cv_sys_interpreter=no
21929fi
21930rm -f conftest
21931fi
cristy8b350f62009-11-15 23:12:43 +000021932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021933$as_echo "$ac_cv_sys_interpreter" >&6; }
21934interpval=$ac_cv_sys_interpreter
21935
21936
cristy3ed852e2009-09-05 21:47:34 +000021937# If the C compiler supports the keyword inline, do nothing. Otherwise
21938# define inline to __inline__ or __inline if it accepts one of those,
21939# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021941$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021942if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021943 $as_echo_n "(cached) " >&6
21944else
21945 ac_cv_c_inline=no
21946for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021948/* end confdefs.h. */
21949#ifndef __cplusplus
21950typedef int foo_t;
21951static $ac_kw foo_t static_foo () {return 0; }
21952$ac_kw foo_t foo () {return 0; }
21953#endif
21954
21955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021956if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021957 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021958fi
cristy3ed852e2009-09-05 21:47:34 +000021959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960 test "$ac_cv_c_inline" != no && break
21961done
21962
21963fi
cristy8b350f62009-11-15 23:12:43 +000021964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021965$as_echo "$ac_cv_c_inline" >&6; }
21966
cristy3ed852e2009-09-05 21:47:34 +000021967case $ac_cv_c_inline in
21968 inline | yes) ;;
21969 *)
21970 case $ac_cv_c_inline in
21971 no) ac_val=;;
21972 *) ac_val=$ac_cv_c_inline;;
21973 esac
21974 cat >>confdefs.h <<_ACEOF
21975#ifndef __cplusplus
21976#define inline $ac_val
21977#endif
21978_ACEOF
21979 ;;
21980esac
21981
21982
21983# If the C compiler supports the keyword restrict, do nothing. Otherwise
21984# define restrict to __restrict__ or __restrict if it accepts one of those,
21985# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021987$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021988if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021989 $as_echo_n "(cached) " >&6
21990else
21991 ac_cv_c_restrict=no
21992 # The order here caters to the fact that C++ does not require restrict.
21993 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021995/* end confdefs.h. */
21996typedef int * int_ptr;
21997 int foo (int_ptr $ac_kw ip) {
21998 return ip[0];
21999 }
22000int
22001main ()
22002{
22003int s[1];
22004 int * $ac_kw t = s;
22005 t[0] = 0;
22006 return foo(t)
22007 ;
22008 return 0;
22009}
22010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022011if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022012 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022013fi
cristy3ed852e2009-09-05 21:47:34 +000022014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22015 test "$ac_cv_c_restrict" != no && break
22016 done
22017
22018fi
cristy8b350f62009-11-15 23:12:43 +000022019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022020$as_echo "$ac_cv_c_restrict" >&6; }
22021
cristy3ed852e2009-09-05 21:47:34 +000022022 case $ac_cv_c_restrict in
22023 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022024 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022025 ;;
22026 *) cat >>confdefs.h <<_ACEOF
22027#define restrict $ac_cv_c_restrict
22028_ACEOF
22029 ;;
22030 esac
22031
22032
22033# If words are stored with the most significant byte first (like
22034# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022036$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022037if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022038 $as_echo_n "(cached) " >&6
22039else
22040 ac_cv_c_bigendian=unknown
22041 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022043/* end confdefs.h. */
22044#ifndef __APPLE_CC__
22045 not a universal capable compiler
22046 #endif
22047 typedef int dummy;
22048
22049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022050if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022051
22052 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022053 # there are at least two -arch flags with different values.
22054 ac_arch=
22055 ac_prev=
22056 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22057 if test -n "$ac_prev"; then
22058 case $ac_word in
22059 i?86 | x86_64 | ppc | ppc64)
22060 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22061 ac_arch=$ac_word
22062 else
22063 ac_cv_c_bigendian=universal
22064 break
22065 fi
22066 ;;
22067 esac
22068 ac_prev=
22069 elif test "x$ac_word" = "x-arch"; then
22070 ac_prev=arch
22071 fi
22072 done
cristy3ed852e2009-09-05 21:47:34 +000022073fi
cristy3ed852e2009-09-05 21:47:34 +000022074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 if test $ac_cv_c_bigendian = unknown; then
22076 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022078/* end confdefs.h. */
22079#include <sys/types.h>
22080 #include <sys/param.h>
22081
22082int
22083main ()
22084{
22085#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22086 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22087 && LITTLE_ENDIAN)
22088 bogus endian macros
22089 #endif
22090
22091 ;
22092 return 0;
22093}
22094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022095if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022096 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022098/* end confdefs.h. */
22099#include <sys/types.h>
22100 #include <sys/param.h>
22101
22102int
22103main ()
22104{
22105#if BYTE_ORDER != BIG_ENDIAN
22106 not big endian
22107 #endif
22108
22109 ;
22110 return 0;
22111}
22112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022113if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022114 ac_cv_c_bigendian=yes
22115else
cristy8b350f62009-11-15 23:12:43 +000022116 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022117fi
cristy3ed852e2009-09-05 21:47:34 +000022118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022119fi
cristy3ed852e2009-09-05 21:47:34 +000022120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 fi
22122 if test $ac_cv_c_bigendian = unknown; then
22123 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022125/* end confdefs.h. */
22126#include <limits.h>
22127
22128int
22129main ()
22130{
22131#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22132 bogus endian macros
22133 #endif
22134
22135 ;
22136 return 0;
22137}
22138_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022139if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022140 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022142/* end confdefs.h. */
22143#include <limits.h>
22144
22145int
22146main ()
22147{
22148#ifndef _BIG_ENDIAN
22149 not big endian
22150 #endif
22151
22152 ;
22153 return 0;
22154}
22155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022156if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022157 ac_cv_c_bigendian=yes
22158else
cristy8b350f62009-11-15 23:12:43 +000022159 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022160fi
cristy3ed852e2009-09-05 21:47:34 +000022161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022162fi
cristy3ed852e2009-09-05 21:47:34 +000022163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164 fi
22165 if test $ac_cv_c_bigendian = unknown; then
22166 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022167 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022170/* end confdefs.h. */
22171short int ascii_mm[] =
22172 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22173 short int ascii_ii[] =
22174 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22175 int use_ascii (int i) {
22176 return ascii_mm[i] + ascii_ii[i];
22177 }
22178 short int ebcdic_ii[] =
22179 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22180 short int ebcdic_mm[] =
22181 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22182 int use_ebcdic (int i) {
22183 return ebcdic_mm[i] + ebcdic_ii[i];
22184 }
22185 extern int foo;
22186
22187int
22188main ()
22189{
22190return use_ascii (foo) == use_ebcdic (foo);
22191 ;
22192 return 0;
22193}
22194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022195if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022196 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22197 ac_cv_c_bigendian=yes
22198 fi
22199 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22200 if test "$ac_cv_c_bigendian" = unknown; then
22201 ac_cv_c_bigendian=no
22202 else
22203 # finding both strings is unlikely to happen, but who knows?
22204 ac_cv_c_bigendian=unknown
22205 fi
22206 fi
cristy3ed852e2009-09-05 21:47:34 +000022207fi
cristy3ed852e2009-09-05 21:47:34 +000022208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22209else
cristy8b350f62009-11-15 23:12:43 +000022210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022211/* end confdefs.h. */
22212$ac_includes_default
22213int
22214main ()
22215{
22216
22217 /* Are we little or big endian? From Harbison&Steele. */
22218 union
22219 {
22220 long int l;
22221 char c[sizeof (long int)];
22222 } u;
22223 u.l = 1;
22224 return u.c[sizeof (long int) - 1] == 1;
22225
22226 ;
22227 return 0;
22228}
22229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022230if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022231 ac_cv_c_bigendian=no
22232else
cristy8b350f62009-11-15 23:12:43 +000022233 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022234fi
cristy8b350f62009-11-15 23:12:43 +000022235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22236 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022237fi
22238
cristy3ed852e2009-09-05 21:47:34 +000022239 fi
22240fi
cristy8b350f62009-11-15 23:12:43 +000022241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022242$as_echo "$ac_cv_c_bigendian" >&6; }
22243 case $ac_cv_c_bigendian in #(
22244 yes)
cristy8b350f62009-11-15 23:12:43 +000022245 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022246;; #(
22247 no)
22248 ;; #(
22249 universal)
22250
cristy8b350f62009-11-15 23:12:43 +000022251$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022252
22253 ;; #(
22254 *)
cristy98dddb52010-11-04 00:30:15 +000022255 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022256 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022257 esac
22258
22259
22260# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022261ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022262if test "x$ac_cv_type_mode_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022263
cristy3ed852e2009-09-05 21:47:34 +000022264else
22265
22266cat >>confdefs.h <<_ACEOF
22267#define mode_t int
22268_ACEOF
22269
22270fi
22271
22272
22273# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022274ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022275if test "x$ac_cv_type_off_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022276
cristy3ed852e2009-09-05 21:47:34 +000022277else
22278
22279cat >>confdefs.h <<_ACEOF
22280#define off_t long int
22281_ACEOF
22282
22283fi
22284
22285
22286# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022287ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022288if test "x$ac_cv_type_pid_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022289
cristy3ed852e2009-09-05 21:47:34 +000022290else
22291
22292cat >>confdefs.h <<_ACEOF
22293#define pid_t int
22294_ACEOF
22295
22296fi
22297
22298
22299# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022300ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022301if test "x$ac_cv_type_size_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022302
cristy3ed852e2009-09-05 21:47:34 +000022303else
22304
22305cat >>confdefs.h <<_ACEOF
22306#define size_t unsigned int
22307_ACEOF
22308
22309fi
22310
22311
22312# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022313ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022314if test "x$ac_cv_type_ssize_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022315
cristy3ed852e2009-09-05 21:47:34 +000022316else
22317
22318cat >>confdefs.h <<_ACEOF
22319#define ssize_t int
22320_ACEOF
22321
22322fi
22323
22324
22325# If the C compiler supports a working long double type with more range
22326# or precision than the double type, define HAVE_LONG_DOUBLE.
22327
cristy8b350f62009-11-15 23:12:43 +000022328 { $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 +000022329$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022330if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022331 $as_echo_n "(cached) " >&6
22332else
cristy8b350f62009-11-15 23:12:43 +000022333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022334/* end confdefs.h. */
22335#include <float.h>
22336 long double const a[] =
22337 {
22338 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22339 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22340 };
22341 long double
22342 f (long double x)
22343 {
22344 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22345 + (x ? f (x) : 'c'));
22346 }
22347
22348int
22349main ()
22350{
22351static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22352 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22353 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22354 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22355 && (int) LDBL_EPSILON == 0
22356 )];
22357test_array [0] = 0
22358
22359 ;
22360 return 0;
22361}
22362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022363if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022364 ac_cv_type_long_double_wider=yes
22365else
cristy8b350f62009-11-15 23:12:43 +000022366 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022367fi
cristy3ed852e2009-09-05 21:47:34 +000022368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22369fi
cristy8b350f62009-11-15 23:12:43 +000022370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022371$as_echo "$ac_cv_type_long_double_wider" >&6; }
22372 if test $ac_cv_type_long_double_wider = yes; then
22373
cristy8b350f62009-11-15 23:12:43 +000022374$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022375
22376 fi
22377
22378
22379# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22380# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022382$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022383if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022384 $as_echo_n "(cached) " >&6
22385else
cristy8b350f62009-11-15 23:12:43 +000022386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022387/* end confdefs.h. */
22388$ac_includes_default
22389int
22390main ()
22391{
22392static int test_array [1 - 2 * !(((char) -1) < 0)];
22393test_array [0] = 0
22394
22395 ;
22396 return 0;
22397}
22398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022399if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022400 ac_cv_c_char_unsigned=no
22401else
cristy8b350f62009-11-15 23:12:43 +000022402 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022403fi
cristy3ed852e2009-09-05 21:47:34 +000022404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405fi
cristy8b350f62009-11-15 23:12:43 +000022406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022407$as_echo "$ac_cv_c_char_unsigned" >&6; }
22408if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022409 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022410
22411fi
22412
22413
22414# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22415# The cast to long int works around a bug in the HP C Compiler
22416# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22417# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22418# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022420$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022421if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022422 $as_echo_n "(cached) " >&6
22423else
cristy8b350f62009-11-15 23:12:43 +000022424 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 +000022425
cristy3ed852e2009-09-05 21:47:34 +000022426else
cristy8b350f62009-11-15 23:12:43 +000022427 if test "$ac_cv_type_signed_short" = yes; then
22428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022430as_fn_error 77 "cannot compute sizeof (signed short)
22431See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022432 else
22433 ac_cv_sizeof_signed_short=0
22434 fi
22435fi
cristy8b350f62009-11-15 23:12:43 +000022436
cristy3ed852e2009-09-05 21:47:34 +000022437fi
cristy8b350f62009-11-15 23:12:43 +000022438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022439$as_echo "$ac_cv_sizeof_signed_short" >&6; }
22440
22441
22442
22443cat >>confdefs.h <<_ACEOF
22444#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22445_ACEOF
22446
22447
22448
22449# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22450# The cast to long int works around a bug in the HP C Compiler
22451# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22452# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22453# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022455$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022456if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022457 $as_echo_n "(cached) " >&6
22458else
cristy8b350f62009-11-15 23:12:43 +000022459 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 +000022460
cristy3ed852e2009-09-05 21:47:34 +000022461else
cristy8b350f62009-11-15 23:12:43 +000022462 if test "$ac_cv_type_unsigned_short" = yes; then
22463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022465as_fn_error 77 "cannot compute sizeof (unsigned short)
22466See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022467 else
22468 ac_cv_sizeof_unsigned_short=0
22469 fi
22470fi
cristy8b350f62009-11-15 23:12:43 +000022471
cristy3ed852e2009-09-05 21:47:34 +000022472fi
cristy8b350f62009-11-15 23:12:43 +000022473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022474$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22475
22476
22477
22478cat >>confdefs.h <<_ACEOF
22479#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22480_ACEOF
22481
22482
22483
22484# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22485# The cast to long int works around a bug in the HP C Compiler
22486# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22487# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22488# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022490$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022491if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022492 $as_echo_n "(cached) " >&6
22493else
cristy8b350f62009-11-15 23:12:43 +000022494 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 +000022495
cristy3ed852e2009-09-05 21:47:34 +000022496else
cristy8b350f62009-11-15 23:12:43 +000022497 if test "$ac_cv_type_signed_int" = yes; then
22498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022500as_fn_error 77 "cannot compute sizeof (signed int)
22501See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022502 else
22503 ac_cv_sizeof_signed_int=0
22504 fi
22505fi
cristy8b350f62009-11-15 23:12:43 +000022506
cristy3ed852e2009-09-05 21:47:34 +000022507fi
cristy8b350f62009-11-15 23:12:43 +000022508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022509$as_echo "$ac_cv_sizeof_signed_int" >&6; }
22510
22511
22512
22513cat >>confdefs.h <<_ACEOF
22514#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22515_ACEOF
22516
22517
22518
22519# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22520# The cast to long int works around a bug in the HP C Compiler
22521# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22522# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22523# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022525$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022526if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022527 $as_echo_n "(cached) " >&6
22528else
cristy8b350f62009-11-15 23:12:43 +000022529 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 +000022530
cristy3ed852e2009-09-05 21:47:34 +000022531else
cristy8b350f62009-11-15 23:12:43 +000022532 if test "$ac_cv_type_unsigned_int" = yes; then
22533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022535as_fn_error 77 "cannot compute sizeof (unsigned int)
22536See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022537 else
22538 ac_cv_sizeof_unsigned_int=0
22539 fi
22540fi
cristy8b350f62009-11-15 23:12:43 +000022541
cristy3ed852e2009-09-05 21:47:34 +000022542fi
cristy8b350f62009-11-15 23:12:43 +000022543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022544$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22545
22546
22547
22548cat >>confdefs.h <<_ACEOF
22549#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22550_ACEOF
22551
22552
22553
22554# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22555# The cast to long int works around a bug in the HP C Compiler
22556# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22557# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22558# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022560$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022561if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022562 $as_echo_n "(cached) " >&6
22563else
cristy8b350f62009-11-15 23:12:43 +000022564 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 +000022565
cristy3ed852e2009-09-05 21:47:34 +000022566else
cristy8b350f62009-11-15 23:12:43 +000022567 if test "$ac_cv_type_signed_long" = yes; then
22568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022570as_fn_error 77 "cannot compute sizeof (signed long)
22571See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022572 else
22573 ac_cv_sizeof_signed_long=0
22574 fi
22575fi
cristy8b350f62009-11-15 23:12:43 +000022576
cristy3ed852e2009-09-05 21:47:34 +000022577fi
cristy8b350f62009-11-15 23:12:43 +000022578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022579$as_echo "$ac_cv_sizeof_signed_long" >&6; }
22580
22581
22582
22583cat >>confdefs.h <<_ACEOF
22584#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22585_ACEOF
22586
22587
22588
22589# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22590# The cast to long int works around a bug in the HP C Compiler
22591# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22592# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22593# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022595$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022596if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022597 $as_echo_n "(cached) " >&6
22598else
cristy8b350f62009-11-15 23:12:43 +000022599 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 +000022600
cristy3ed852e2009-09-05 21:47:34 +000022601else
cristy8b350f62009-11-15 23:12:43 +000022602 if test "$ac_cv_type_unsigned_long" = yes; then
22603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022605as_fn_error 77 "cannot compute sizeof (unsigned long)
22606See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022607 else
22608 ac_cv_sizeof_unsigned_long=0
22609 fi
22610fi
cristy8b350f62009-11-15 23:12:43 +000022611
cristy3ed852e2009-09-05 21:47:34 +000022612fi
cristy8b350f62009-11-15 23:12:43 +000022613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022614$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22615
22616
22617
22618cat >>confdefs.h <<_ACEOF
22619#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22620_ACEOF
22621
22622
22623
22624# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
22625# 'signed long long' is not supported then the value defined is zero.
22626# The cast to long int works around a bug in the HP C Compiler
22627# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22628# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22629# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022631$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022632if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022633 $as_echo_n "(cached) " >&6
22634else
cristy8b350f62009-11-15 23:12:43 +000022635 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 +000022636
cristy3ed852e2009-09-05 21:47:34 +000022637else
cristy8b350f62009-11-15 23:12:43 +000022638 if test "$ac_cv_type_signed_long_long" = yes; then
22639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022641as_fn_error 77 "cannot compute sizeof (signed long long)
22642See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022643 else
22644 ac_cv_sizeof_signed_long_long=0
22645 fi
22646fi
cristy8b350f62009-11-15 23:12:43 +000022647
cristy3ed852e2009-09-05 21:47:34 +000022648fi
cristy8b350f62009-11-15 23:12:43 +000022649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022650$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22651
22652
22653
22654cat >>confdefs.h <<_ACEOF
22655#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22656_ACEOF
22657
22658
22659
22660# Obtain size of a 'unsigned long long' and define as
22661# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22662# supported then the value defined is zero.
22663# The cast to long int works around a bug in the HP C Compiler
22664# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22665# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22666# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022668$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022669if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022670 $as_echo_n "(cached) " >&6
22671else
cristy8b350f62009-11-15 23:12:43 +000022672 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 +000022673
cristy3ed852e2009-09-05 21:47:34 +000022674else
cristy8b350f62009-11-15 23:12:43 +000022675 if test "$ac_cv_type_unsigned_long_long" = yes; then
22676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022678as_fn_error 77 "cannot compute sizeof (unsigned long long)
22679See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022680 else
22681 ac_cv_sizeof_unsigned_long_long=0
22682 fi
22683fi
cristy8b350f62009-11-15 23:12:43 +000022684
cristy3ed852e2009-09-05 21:47:34 +000022685fi
cristy8b350f62009-11-15 23:12:43 +000022686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022687$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22688
22689
22690
22691cat >>confdefs.h <<_ACEOF
22692#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22693_ACEOF
22694
22695
22696
22697# Obtain size of off_t and define as SIZEOF_OFF_T
22698# The cast to long int works around a bug in the HP C Compiler
22699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22701# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022703$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022704if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022705 $as_echo_n "(cached) " >&6
22706else
cristy8b350f62009-11-15 23:12:43 +000022707 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 +000022708
cristy3ed852e2009-09-05 21:47:34 +000022709else
cristy8b350f62009-11-15 23:12:43 +000022710 if test "$ac_cv_type_off_t" = yes; then
22711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022713as_fn_error 77 "cannot compute sizeof (off_t)
22714See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022715 else
22716 ac_cv_sizeof_off_t=0
22717 fi
22718fi
cristy8b350f62009-11-15 23:12:43 +000022719
cristy3ed852e2009-09-05 21:47:34 +000022720fi
cristy8b350f62009-11-15 23:12:43 +000022721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022722$as_echo "$ac_cv_sizeof_off_t" >&6; }
22723
22724
22725
22726cat >>confdefs.h <<_ACEOF
22727#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22728_ACEOF
22729
22730
22731
22732# Obtain size of size_t and define as SIZEOF_SIZE_T
22733# The cast to long int works around a bug in the HP C Compiler
22734# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22735# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22736# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022738$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022739if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022740 $as_echo_n "(cached) " >&6
22741else
cristy8b350f62009-11-15 23:12:43 +000022742 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 +000022743
cristy3ed852e2009-09-05 21:47:34 +000022744else
cristy8b350f62009-11-15 23:12:43 +000022745 if test "$ac_cv_type_size_t" = yes; then
22746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022748as_fn_error 77 "cannot compute sizeof (size_t)
22749See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022750 else
22751 ac_cv_sizeof_size_t=0
22752 fi
22753fi
cristy8b350f62009-11-15 23:12:43 +000022754
cristy3ed852e2009-09-05 21:47:34 +000022755fi
cristy8b350f62009-11-15 23:12:43 +000022756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022757$as_echo "$ac_cv_sizeof_size_t" >&6; }
22758
22759
22760
22761cat >>confdefs.h <<_ACEOF
22762#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22763_ACEOF
22764
22765
22766
cristy330e9352010-06-01 18:42:49 +000022767# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22768# The cast to long int works around a bug in the HP C Compiler
22769# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22770# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22771# This bug is HP SR number 8606223364.
22772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22773$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022774if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000022775 $as_echo_n "(cached) " >&6
22776else
22777 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22778
22779else
22780 if test "$ac_cv_type_ssize_t" = yes; then
22781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022783as_fn_error 77 "cannot compute sizeof (ssize_t)
22784See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000022785 else
22786 ac_cv_sizeof_ssize_t=0
22787 fi
22788fi
22789
22790fi
22791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22792$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22793
22794
22795
22796cat >>confdefs.h <<_ACEOF
22797#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22798_ACEOF
22799
22800
22801
cristy3ed852e2009-09-05 21:47:34 +000022802# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22803# The cast to long int works around a bug in the HP C Compiler
22804# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22805# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22806# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022808$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022809if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022810 $as_echo_n "(cached) " >&6
22811else
cristy8b350f62009-11-15 23:12:43 +000022812 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 +000022813
cristy3ed852e2009-09-05 21:47:34 +000022814else
cristy8b350f62009-11-15 23:12:43 +000022815 if test "$ac_cv_type_unsigned_intp" = yes; then
22816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022818as_fn_error 77 "cannot compute sizeof (unsigned int*)
22819See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022820 else
22821 ac_cv_sizeof_unsigned_intp=0
22822 fi
22823fi
cristy8b350f62009-11-15 23:12:43 +000022824
cristy3ed852e2009-09-05 21:47:34 +000022825fi
cristy8b350f62009-11-15 23:12:43 +000022826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022827$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22828
22829
22830
22831cat >>confdefs.h <<_ACEOF
22832#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22833_ACEOF
22834
22835
22836
22837#
22838# Compute sized types for current CPU and compiler options.
22839#
22840
cristy8b350f62009-11-15 23:12:43 +000022841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022842$as_echo_n "checking for signed 8-bit type... " >&6; }
22843INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022845$as_echo "$INT8_T" >&6; }
22846
22847
cristy8b350f62009-11-15 23:12:43 +000022848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022849$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22850UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022852$as_echo "$UINT8_T" >&6; }
22853
22854
cristy8b350f62009-11-15 23:12:43 +000022855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022856$as_echo_n "checking for signed 16-bit type... " >&6; }
22857INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022859$as_echo "$INT16_T" >&6; }
22860
22861
cristy8b350f62009-11-15 23:12:43 +000022862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022863$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22864UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022866$as_echo "$UINT16_T" >&6; }
22867
22868
cristy8b350f62009-11-15 23:12:43 +000022869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022870$as_echo_n "checking for signed 32-bit type... " >&6; }
22871INT32_T='none'
22872if test $ac_cv_sizeof_signed_int -eq 4; then
22873 INT32_T='signed int'
22874elif test $ac_cv_sizeof_signed_long -eq 4; then
22875 INT32_T='signed long'
22876fi
cristy8b350f62009-11-15 23:12:43 +000022877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022878$as_echo "$INT32_T" >&6; }
22879
22880
cristy8b350f62009-11-15 23:12:43 +000022881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022882$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22883UINT32_T='none'
22884if test $ac_cv_sizeof_unsigned_int -eq 4; then
22885 UINT32_T='unsigned int'
22886elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22887 UINT32_T='unsigned long'
22888fi
cristy8b350f62009-11-15 23:12:43 +000022889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022890$as_echo "$UINT32_T" >&6; }
22891
22892
cristy8b350f62009-11-15 23:12:43 +000022893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022894$as_echo_n "checking for signed 64-bit type... " >&6; }
22895INT64_T='none'
22896if test $ac_cv_sizeof_signed_long -eq 8; then
22897 INT64_T='signed long'
22898elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22899 INT64_T='signed long long'
22900fi
cristy8b350f62009-11-15 23:12:43 +000022901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022902$as_echo "$INT64_T" >&6; }
22903
22904
cristy8b350f62009-11-15 23:12:43 +000022905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022906$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22907UINT64_T='none'
22908if test $ac_cv_sizeof_unsigned_long -eq 8; then
22909 UINT64_T='unsigned long'
22910elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22911 UINT64_T='unsigned long long'
22912fi
cristy8b350f62009-11-15 23:12:43 +000022913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022914$as_echo "$UINT64_T" >&6; }
22915
22916
cristy8b350f62009-11-15 23:12:43 +000022917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022918$as_echo_n "checking for unsigned maximum type... " >&6; }
22919UINTMAX_T='none'
22920if test "$UINT64_T" != 'none'; then
22921 UINTMAX_T=$UINT64_T
22922elif test "$UINT32_T" != 'none'; then
22923 UINTMAX_T=$UINT32_T
22924fi
cristy8b350f62009-11-15 23:12:43 +000022925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022926$as_echo "$UINTMAX_T" >&6; }
22927
22928
cristy8b350f62009-11-15 23:12:43 +000022929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022930$as_echo_n "checking for pointer difference type... " >&6; }
22931UINTPTR_T='none'
22932if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22933 UINTPTR_T='unsigned long'
22934elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22935 UINTPTR_T='unsigned long long'
22936fi
cristy8b350f62009-11-15 23:12:43 +000022937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo "$UINTPTR_T" >&6; }
22939
22940
cristy8b350f62009-11-15 23:12:43 +000022941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022942$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022944/* end confdefs.h. */
22945
22946int
22947main ()
22948{
22949{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22950 ;
22951 return 0;
22952}
22953_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022954if ac_fn_c_try_compile "$LINENO"; then :
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022956$as_echo "yes" >&6; }
22957else
cristy8b350f62009-11-15 23:12:43 +000022958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022959$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022961$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022963/* end confdefs.h. */
22964
22965int
22966main ()
22967{
22968{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22969 ;
22970 return 0;
22971}
22972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022973if ac_fn_c_try_compile "$LINENO"; then :
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022975$as_echo "yes" >&6; }
22976
cristy8b350f62009-11-15 23:12:43 +000022977$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022978
22979else
cristy8b350f62009-11-15 23:12:43 +000022980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022981$as_echo "no" >&6; }
22982
cristy8b350f62009-11-15 23:12:43 +000022983$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022984
22985fi
cristy3ed852e2009-09-05 21:47:34 +000022986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22987fi
cristy3ed852e2009-09-05 21:47:34 +000022988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989
22990########
22991#
22992# Check for functions
22993#
22994########
cristy73bd4a52010-10-05 11:24:23 +000022995for ac_header in stdlib.h unistd.h
22996do :
22997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22998ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022999if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023000 cat >>confdefs.h <<_ACEOF
23001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23002_ACEOF
23003
23004fi
23005
23006done
23007
23008for ac_func in getpagesize
23009do :
23010 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023011if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023012 cat >>confdefs.h <<_ACEOF
23013#define HAVE_GETPAGESIZE 1
23014_ACEOF
23015
23016fi
23017done
23018
23019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23020$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023021if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023022 $as_echo_n "(cached) " >&6
23023else
23024 if test "$cross_compiling" = yes; then :
23025 magick_cv_func_mmap_fileio=no
23026else
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028/* end confdefs.h. */
23029$ac_includes_default
23030/* malloc might have been renamed as rpl_malloc. */
23031#undef malloc
23032
23033/*
23034 This test is derived from GNU Autoconf's similar macro.
23035 The purpose of this test is to verify that files may be memory
23036 mapped, and that memory mapping and file I/O are coherent.
23037
23038 The test creates a test file, memory maps the file, updates
23039 the file using the memory map, and then reads the file using
23040 file I/O to verify that the file contains the updates.
23041*/
23042
23043#include <fcntl.h>
23044#include <sys/mman.h>
23045
23046#if !STDC_HEADERS && !HAVE_STDLIB_H
23047char *malloc ();
23048#endif
23049
23050/* This mess was copied from the GNU getpagesize.h. */
23051#if !HAVE_GETPAGESIZE
23052/* Assume that all systems that can run configure have sys/param.h. */
23053# if !HAVE_SYS_PARAM_H
23054# define HAVE_SYS_PARAM_H 1
23055# endif
23056
23057# ifdef _SC_PAGESIZE
23058# define getpagesize() sysconf(_SC_PAGESIZE)
23059# else /* no _SC_PAGESIZE */
23060# if HAVE_SYS_PARAM_H
23061# include <sys/param.h>
23062# ifdef EXEC_PAGESIZE
23063# define getpagesize() EXEC_PAGESIZE
23064# else /* no EXEC_PAGESIZE */
23065# ifdef NBPG
23066# define getpagesize() NBPG * CLSIZE
23067# ifndef CLSIZE
23068# define CLSIZE 1
23069# endif /* no CLSIZE */
23070# else /* no NBPG */
23071# ifdef NBPC
23072# define getpagesize() NBPC
23073# else /* no NBPC */
23074# ifdef PAGESIZE
23075# define getpagesize() PAGESIZE
23076# endif /* PAGESIZE */
23077# endif /* no NBPC */
23078# endif /* no NBPG */
23079# endif /* no EXEC_PAGESIZE */
23080# else /* no HAVE_SYS_PARAM_H */
23081# define getpagesize() 8192 /* punt totally */
23082# endif /* no HAVE_SYS_PARAM_H */
23083# endif /* no _SC_PAGESIZE */
23084
23085#endif /* no HAVE_GETPAGESIZE */
23086
23087int
23088main ()
23089{
23090 char *data, *data2, *data3;
23091 int i, pagesize;
23092 int fd;
23093
23094 pagesize = getpagesize ();
23095
23096 /* First, make a file with some known garbage in it. */
23097 data = (char *) malloc (pagesize);
23098 if (!data)
23099 exit (1);
23100 for (i = 0; i < pagesize; ++i)
23101 *(data + i) = rand ();
23102 umask (0);
23103 fd = creat ("conftest.mmap", 0600);
23104 if (fd < 0)
23105 exit (1);
23106 if (write (fd, data, pagesize) != pagesize)
23107 exit (1);
23108 close (fd);
23109
23110 /* Mmap the file as read/write/shared and verify that we see the
23111 same garbage. */
23112 fd = open ("conftest.mmap", O_RDWR);
23113 if (fd < 0)
23114 exit (1);
23115 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23116 if (data2 == 0)
23117 exit (1);
23118 for (i = 0; i < pagesize; ++i)
23119 if (*(data + i) != *(data2 + i))
23120 exit (1);
23121
23122 /* Finally, make sure that changes to the mapped area
23123 percolate back to the file as seen by read(). */
23124 for (i = 0; i < pagesize; ++i)
23125 *(data2 + i) = *(data2 + i) + 1;
23126 data3 = (char *) malloc (pagesize);
23127 if (!data3)
23128 exit (1);
23129 if (read (fd, data3, pagesize) != pagesize)
23130 exit (1);
23131 for (i = 0; i < pagesize; ++i)
23132 if (*(data2 + i) != *(data3 + i))
23133 exit (1);
23134 close (fd);
23135 exit (0);
23136}
23137_ACEOF
23138if ac_fn_c_try_run "$LINENO"; then :
23139 magick_cv_func_mmap_fileio=yes
23140else
23141 magick_cv_func_mmap_fileio=no
23142fi
23143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23144 conftest.$ac_objext conftest.beam conftest.$ac_ext
23145fi
23146
23147fi
23148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23149$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23150if test $magick_cv_func_mmap_fileio = yes; then
23151
23152$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23153
23154fi
23155rm -f conftest.mmap
23156
cristy8b350f62009-11-15 23:12:43 +000023157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023158$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023159if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023160 $as_echo_n "(cached) " >&6
23161else
cristy8b350f62009-11-15 23:12:43 +000023162 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023163 ac_cv_func_closedir_void=yes
23164else
cristy8b350f62009-11-15 23:12:43 +000023165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023166/* end confdefs.h. */
23167$ac_includes_default
23168#include <$ac_header_dirent>
23169#ifndef __cplusplus
23170int closedir ();
23171#endif
23172
23173int
23174main ()
23175{
23176return closedir (opendir (".")) != 0;
23177 ;
23178 return 0;
23179}
23180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023181if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023182 ac_cv_func_closedir_void=no
23183else
cristy8b350f62009-11-15 23:12:43 +000023184 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023185fi
cristy8b350f62009-11-15 23:12:43 +000023186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23187 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023188fi
23189
cristy3ed852e2009-09-05 21:47:34 +000023190fi
cristy8b350f62009-11-15 23:12:43 +000023191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023192$as_echo "$ac_cv_func_closedir_void" >&6; }
23193if test $ac_cv_func_closedir_void = yes; then
23194
cristy8b350f62009-11-15 23:12:43 +000023195$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023196
23197fi
23198
cristycd4c5312009-11-22 01:19:08 +000023199
23200
23201
23202 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023203do :
23204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023205ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23206"
cristy98dddb52010-11-04 00:30:15 +000023207if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023208 cat >>confdefs.h <<_ACEOF
23209#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23210_ACEOF
23211
23212fi
23213
23214done
23215
cristycd4c5312009-11-22 01:19:08 +000023216
23217
23218
23219
23220
23221
23222
cristy3ed852e2009-09-05 21:47:34 +000023223for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023224do :
23225 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023226if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023227 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023228#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023229_ACEOF
23230
23231fi
23232done
23233
cristy8b350f62009-11-15 23:12:43 +000023234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023235$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023236if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023237 $as_echo_n "(cached) " >&6
23238else
cristy8b350f62009-11-15 23:12:43 +000023239 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023240 ac_cv_func_mmap_fixed_mapped=no
23241else
cristy8b350f62009-11-15 23:12:43 +000023242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023243/* end confdefs.h. */
23244$ac_includes_default
23245/* malloc might have been renamed as rpl_malloc. */
23246#undef malloc
23247
23248/* Thanks to Mike Haertel and Jim Avera for this test.
23249 Here is a matrix of mmap possibilities:
23250 mmap private not fixed
23251 mmap private fixed at somewhere currently unmapped
23252 mmap private fixed at somewhere already mapped
23253 mmap shared not fixed
23254 mmap shared fixed at somewhere currently unmapped
23255 mmap shared fixed at somewhere already mapped
23256 For private mappings, we should verify that changes cannot be read()
23257 back from the file, nor mmap's back from the file at a different
23258 address. (There have been systems where private was not correctly
23259 implemented like the infamous i386 svr4.0, and systems where the
23260 VM page cache was not coherent with the file system buffer cache
23261 like early versions of FreeBSD and possibly contemporary NetBSD.)
23262 For shared mappings, we should conversely verify that changes get
23263 propagated back to all the places they're supposed to be.
23264
23265 Grep wants private fixed already mapped.
23266 The main things grep needs to know about mmap are:
23267 * does it exist and is it safe to write into the mmap'd area
23268 * how to use it (BSD variants) */
23269
23270#include <fcntl.h>
23271#include <sys/mman.h>
23272
23273#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23274char *malloc ();
23275#endif
23276
23277/* This mess was copied from the GNU getpagesize.h. */
23278#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023279# ifdef _SC_PAGESIZE
23280# define getpagesize() sysconf(_SC_PAGESIZE)
23281# else /* no _SC_PAGESIZE */
23282# ifdef HAVE_SYS_PARAM_H
23283# include <sys/param.h>
23284# ifdef EXEC_PAGESIZE
23285# define getpagesize() EXEC_PAGESIZE
23286# else /* no EXEC_PAGESIZE */
23287# ifdef NBPG
23288# define getpagesize() NBPG * CLSIZE
23289# ifndef CLSIZE
23290# define CLSIZE 1
23291# endif /* no CLSIZE */
23292# else /* no NBPG */
23293# ifdef NBPC
23294# define getpagesize() NBPC
23295# else /* no NBPC */
23296# ifdef PAGESIZE
23297# define getpagesize() PAGESIZE
23298# endif /* PAGESIZE */
23299# endif /* no NBPC */
23300# endif /* no NBPG */
23301# endif /* no EXEC_PAGESIZE */
23302# else /* no HAVE_SYS_PARAM_H */
23303# define getpagesize() 8192 /* punt totally */
23304# endif /* no HAVE_SYS_PARAM_H */
23305# endif /* no _SC_PAGESIZE */
23306
23307#endif /* no HAVE_GETPAGESIZE */
23308
23309int
23310main ()
23311{
23312 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023313 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023314 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023315 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023316
23317 pagesize = getpagesize ();
23318
23319 /* First, make a file with some known garbage in it. */
23320 data = (char *) malloc (pagesize);
23321 if (!data)
23322 return 1;
23323 for (i = 0; i < pagesize; ++i)
23324 *(data + i) = rand ();
23325 umask (0);
23326 fd = creat ("conftest.mmap", 0600);
23327 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023328 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023329 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023330 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023331 close (fd);
23332
cristycd4c5312009-11-22 01:19:08 +000023333 /* Next, check that the tail of a page is zero-filled. File must have
23334 non-zero length, otherwise we risk SIGBUS for entire page. */
23335 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23336 if (fd2 < 0)
23337 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023338 cdata2 = "";
23339 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023340 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023341 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023342 if (data2 == MAP_FAILED)
23343 return 6;
23344 for (i = 0; i < pagesize; ++i)
23345 if (*(data2 + i))
23346 return 7;
23347 close (fd2);
23348 if (munmap (data2, pagesize))
23349 return 8;
23350
cristy3ed852e2009-09-05 21:47:34 +000023351 /* Next, try to mmap the file at a fixed address which already has
23352 something else allocated at it. If we can, also make sure that
23353 we see the same garbage. */
23354 fd = open ("conftest.mmap", O_RDWR);
23355 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023356 return 9;
cristy3ed852e2009-09-05 21:47:34 +000023357 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23358 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000023359 return 10;
cristy3ed852e2009-09-05 21:47:34 +000023360 for (i = 0; i < pagesize; ++i)
23361 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000023362 return 11;
cristy3ed852e2009-09-05 21:47:34 +000023363
23364 /* Finally, make sure that changes to the mapped area do not
23365 percolate back to the file as seen by read(). (This is a bug on
23366 some variants of i386 svr4.0.) */
23367 for (i = 0; i < pagesize; ++i)
23368 *(data2 + i) = *(data2 + i) + 1;
23369 data3 = (char *) malloc (pagesize);
23370 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000023371 return 12;
cristy3ed852e2009-09-05 21:47:34 +000023372 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023373 return 13;
cristy3ed852e2009-09-05 21:47:34 +000023374 for (i = 0; i < pagesize; ++i)
23375 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000023376 return 14;
cristy3ed852e2009-09-05 21:47:34 +000023377 close (fd);
23378 return 0;
23379}
23380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023381if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023382 ac_cv_func_mmap_fixed_mapped=yes
23383else
cristy8b350f62009-11-15 23:12:43 +000023384 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000023385fi
cristy8b350f62009-11-15 23:12:43 +000023386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23387 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023388fi
23389
cristy3ed852e2009-09-05 21:47:34 +000023390fi
cristy8b350f62009-11-15 23:12:43 +000023391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000023392$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23393if test $ac_cv_func_mmap_fixed_mapped = yes; then
23394
cristy8b350f62009-11-15 23:12:43 +000023395$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023396
23397fi
cristycd4c5312009-11-22 01:19:08 +000023398rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000023399
cristy3ed852e2009-09-05 21:47:34 +000023400for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000023401do :
23402 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023403if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023404 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023405#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000023406_ACEOF
23407
23408fi
23409
23410done
23411
cristy3ed852e2009-09-05 21:47:34 +000023412for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000023413do :
23414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23415ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023416if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023417 cat >>confdefs.h <<_ACEOF
23418#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23419_ACEOF
23420
23421fi
23422done
23423
23424if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023426$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023427if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023428 $as_echo_n "(cached) " >&6
23429else
cristy8b350f62009-11-15 23:12:43 +000023430 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023431 ac_cv_func_fork_works=cross
23432else
cristy8b350f62009-11-15 23:12:43 +000023433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023434/* end confdefs.h. */
23435$ac_includes_default
23436int
23437main ()
23438{
23439
23440 /* By Ruediger Kuhlmann. */
23441 return fork () < 0;
23442
23443 ;
23444 return 0;
23445}
23446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023447if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023448 ac_cv_func_fork_works=yes
23449else
cristy8b350f62009-11-15 23:12:43 +000023450 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023451fi
cristy8b350f62009-11-15 23:12:43 +000023452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23453 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023454fi
23455
cristy3ed852e2009-09-05 21:47:34 +000023456fi
cristy8b350f62009-11-15 23:12:43 +000023457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023458$as_echo "$ac_cv_func_fork_works" >&6; }
23459
23460else
23461 ac_cv_func_fork_works=$ac_cv_func_fork
23462fi
23463if test "x$ac_cv_func_fork_works" = xcross; then
23464 case $host in
23465 *-*-amigaos* | *-*-msdosdjgpp*)
23466 # Override, as these systems have only a dummy fork() stub
23467 ac_cv_func_fork_works=no
23468 ;;
23469 *)
23470 ac_cv_func_fork_works=yes
23471 ;;
23472 esac
cristy8b350f62009-11-15 23:12:43 +000023473 { $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 +000023474$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23475fi
23476ac_cv_func_vfork_works=$ac_cv_func_vfork
23477if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023479$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023480if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023481 $as_echo_n "(cached) " >&6
23482else
cristy8b350f62009-11-15 23:12:43 +000023483 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023484 ac_cv_func_vfork_works=cross
23485else
cristy8b350f62009-11-15 23:12:43 +000023486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023487/* end confdefs.h. */
23488/* Thanks to Paul Eggert for this test. */
23489$ac_includes_default
23490#include <sys/wait.h>
23491#ifdef HAVE_VFORK_H
23492# include <vfork.h>
23493#endif
23494/* On some sparc systems, changes by the child to local and incoming
23495 argument registers are propagated back to the parent. The compiler
23496 is told about this with #include <vfork.h>, but some compilers
23497 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23498 static variable whose address is put into a register that is
23499 clobbered by the vfork. */
23500static void
23501#ifdef __cplusplus
23502sparc_address_test (int arg)
23503# else
23504sparc_address_test (arg) int arg;
23505#endif
23506{
23507 static pid_t child;
23508 if (!child) {
23509 child = vfork ();
23510 if (child < 0) {
23511 perror ("vfork");
23512 _exit(2);
23513 }
23514 if (!child) {
23515 arg = getpid();
23516 write(-1, "", 0);
23517 _exit (arg);
23518 }
23519 }
23520}
23521
23522int
23523main ()
23524{
23525 pid_t parent = getpid ();
23526 pid_t child;
23527
23528 sparc_address_test (0);
23529
23530 child = vfork ();
23531
23532 if (child == 0) {
23533 /* Here is another test for sparc vfork register problems. This
23534 test uses lots of local variables, at least as many local
23535 variables as main has allocated so far including compiler
23536 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23537 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23538 reuse the register of parent for one of the local variables,
23539 since it will think that parent can't possibly be used any more
23540 in this routine. Assigning to the local variable will thus
23541 munge parent in the parent process. */
23542 pid_t
23543 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23544 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23545 /* Convince the compiler that p..p7 are live; otherwise, it might
23546 use the same hardware register for all 8 local variables. */
23547 if (p != p1 || p != p2 || p != p3 || p != p4
23548 || p != p5 || p != p6 || p != p7)
23549 _exit(1);
23550
23551 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23552 from child file descriptors. If the child closes a descriptor
23553 before it execs or exits, this munges the parent's descriptor
23554 as well. Test for this by closing stdout in the child. */
23555 _exit(close(fileno(stdout)) != 0);
23556 } else {
23557 int status;
23558 struct stat st;
23559
23560 while (wait(&status) != child)
23561 ;
23562 return (
23563 /* Was there some problem with vforking? */
23564 child < 0
23565
23566 /* Did the child fail? (This shouldn't happen.) */
23567 || status
23568
23569 /* Did the vfork/compiler bug occur? */
23570 || parent != getpid()
23571
23572 /* Did the file descriptor bug occur? */
23573 || fstat(fileno(stdout), &st) != 0
23574 );
23575 }
23576}
23577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023578if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023579 ac_cv_func_vfork_works=yes
23580else
cristy8b350f62009-11-15 23:12:43 +000023581 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023582fi
cristy8b350f62009-11-15 23:12:43 +000023583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23584 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023585fi
23586
cristy3ed852e2009-09-05 21:47:34 +000023587fi
cristy8b350f62009-11-15 23:12:43 +000023588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023589$as_echo "$ac_cv_func_vfork_works" >&6; }
23590
23591fi;
23592if test "x$ac_cv_func_fork_works" = xcross; then
23593 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000023594 { $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 +000023595$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23596fi
23597
23598if test "x$ac_cv_func_vfork_works" = xyes; then
23599
cristy8b350f62009-11-15 23:12:43 +000023600$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023601
23602else
23603
cristy8b350f62009-11-15 23:12:43 +000023604$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023605
23606fi
23607if test "x$ac_cv_func_fork_works" = xyes; then
23608
cristy8b350f62009-11-15 23:12:43 +000023609$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023610
23611fi
23612
cristy8b350f62009-11-15 23:12:43 +000023613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023614$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023615if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023616 $as_echo_n "(cached) " >&6
23617else
cristy8b350f62009-11-15 23:12:43 +000023618 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023619 ac_cv_func_memcmp_working=no
23620else
cristy8b350f62009-11-15 23:12:43 +000023621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023622/* end confdefs.h. */
23623$ac_includes_default
23624int
23625main ()
23626{
23627
23628 /* Some versions of memcmp are not 8-bit clean. */
23629 char c0 = '\100', c1 = '\200', c2 = '\201';
23630 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23631 return 1;
23632
23633 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23634 or more and with at least one buffer not starting on a 4-byte boundary.
23635 William Lewis provided this test program. */
23636 {
23637 char foo[21];
23638 char bar[21];
23639 int i;
23640 for (i = 0; i < 4; i++)
23641 {
23642 char *a = foo + i;
23643 char *b = bar + i;
23644 strcpy (a, "--------01111111");
23645 strcpy (b, "--------10000000");
23646 if (memcmp (a, b, 16) >= 0)
23647 return 1;
23648 }
23649 return 0;
23650 }
23651
23652 ;
23653 return 0;
23654}
23655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023656if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023657 ac_cv_func_memcmp_working=yes
23658else
cristy8b350f62009-11-15 23:12:43 +000023659 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023660fi
cristy8b350f62009-11-15 23:12:43 +000023661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23662 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023663fi
23664
cristy3ed852e2009-09-05 21:47:34 +000023665fi
cristy8b350f62009-11-15 23:12:43 +000023666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023667$as_echo "$ac_cv_func_memcmp_working" >&6; }
23668test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23669 *" memcmp.$ac_objext "* ) ;;
23670 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23671 ;;
23672esac
23673
23674
cristy3ed852e2009-09-05 21:47:34 +000023675for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023676do :
23677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23678ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023679if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023680 cat >>confdefs.h <<_ACEOF
23681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23682_ACEOF
23683
23684fi
23685
23686done
23687
cristy8b350f62009-11-15 23:12:43 +000023688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023689$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023690if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023691 $as_echo_n "(cached) " >&6
23692else
23693 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23694 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23695 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023697/* end confdefs.h. */
23698$ac_includes_default
23699#ifdef HAVE_SYS_SELECT_H
23700# include <sys/select.h>
23701#endif
23702#ifdef HAVE_SYS_SOCKET_H
23703# include <sys/socket.h>
23704#endif
23705
23706int
23707main ()
23708{
23709extern int select ($ac_arg1,
23710 $ac_arg234, $ac_arg234, $ac_arg234,
23711 $ac_arg5);
23712 ;
23713 return 0;
23714}
23715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023716if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023717 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023718fi
cristy3ed852e2009-09-05 21:47:34 +000023719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23720 done
23721 done
23722done
23723# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000023724: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000023725
23726fi
cristy8b350f62009-11-15 23:12:43 +000023727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023728$as_echo "$ac_cv_func_select_args" >&6; }
23729ac_save_IFS=$IFS; IFS=','
23730set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23731IFS=$ac_save_IFS
23732shift
23733
23734cat >>confdefs.h <<_ACEOF
23735#define SELECT_TYPE_ARG1 $1
23736_ACEOF
23737
23738
23739cat >>confdefs.h <<_ACEOF
23740#define SELECT_TYPE_ARG234 ($2)
23741_ACEOF
23742
23743
23744cat >>confdefs.h <<_ACEOF
23745#define SELECT_TYPE_ARG5 ($3)
23746_ACEOF
23747
23748rm -f conftest*
23749
cristyda16f162011-02-19 23:52:17 +000023750if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023751 $as_echo_n "(cached) " >&6
23752else
23753 ac_cv_func_setvbuf_reversed=no
23754fi
23755
23756
cristy8b350f62009-11-15 23:12:43 +000023757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023758$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023759if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023760 $as_echo_n "(cached) " >&6
23761else
cristy8b350f62009-11-15 23:12:43 +000023762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023763/* end confdefs.h. */
23764#include <sys/types.h>
23765#include <signal.h>
23766
23767int
23768main ()
23769{
23770return *(signal (0, 0)) (0) == 1;
23771 ;
23772 return 0;
23773}
23774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023775if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023776 ac_cv_type_signal=int
23777else
cristy8b350f62009-11-15 23:12:43 +000023778 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023779fi
cristy3ed852e2009-09-05 21:47:34 +000023780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23781fi
cristy8b350f62009-11-15 23:12:43 +000023782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023783$as_echo "$ac_cv_type_signal" >&6; }
23784
23785cat >>confdefs.h <<_ACEOF
23786#define RETSIGTYPE $ac_cv_type_signal
23787_ACEOF
23788
23789
cristy8b350f62009-11-15 23:12:43 +000023790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023791$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023792if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023793 $as_echo_n "(cached) " >&6
23794else
cristy8b350f62009-11-15 23:12:43 +000023795 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023796 ac_cv_func_strtod=no
23797else
cristy8b350f62009-11-15 23:12:43 +000023798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023799/* end confdefs.h. */
23800
23801$ac_includes_default
23802#ifndef strtod
23803double strtod ();
23804#endif
23805int
23806main()
23807{
23808 {
23809 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23810 char *string = " +69";
23811 char *term;
23812 double value;
23813 value = strtod (string, &term);
23814 if (value != 69 || term != (string + 4))
23815 return 1;
23816 }
23817
23818 {
23819 /* Under Solaris 2.4, strtod returns the wrong value for the
23820 terminating character under some conditions. */
23821 char *string = "NaN";
23822 char *term;
23823 strtod (string, &term);
23824 if (term != string && *(term - 1) == 0)
23825 return 1;
23826 }
23827 return 0;
23828}
23829
23830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023831if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023832 ac_cv_func_strtod=yes
23833else
cristy8b350f62009-11-15 23:12:43 +000023834 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023835fi
cristy8b350f62009-11-15 23:12:43 +000023836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23837 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023838fi
23839
cristy3ed852e2009-09-05 21:47:34 +000023840fi
cristy8b350f62009-11-15 23:12:43 +000023841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023842$as_echo "$ac_cv_func_strtod" >&6; }
23843if test $ac_cv_func_strtod = no; then
23844 case " $LIBOBJS " in
23845 *" strtod.$ac_objext "* ) ;;
23846 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23847 ;;
23848esac
23849
cristy8b350f62009-11-15 23:12:43 +000023850ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000023851if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023852
cristy3ed852e2009-09-05 21:47:34 +000023853fi
23854
cristy3ed852e2009-09-05 21:47:34 +000023855if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023857$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023858if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023859 $as_echo_n "(cached) " >&6
23860else
23861 ac_check_lib_save_LIBS=$LIBS
23862LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023864/* end confdefs.h. */
23865
23866/* Override any GCC internal prototype to avoid an error.
23867 Use char because int might match the return type of a GCC
23868 builtin and then its argument prototype would still apply. */
23869#ifdef __cplusplus
23870extern "C"
23871#endif
23872char pow ();
23873int
23874main ()
23875{
23876return pow ();
23877 ;
23878 return 0;
23879}
23880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023881if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023882 ac_cv_lib_m_pow=yes
23883else
cristy8b350f62009-11-15 23:12:43 +000023884 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023885fi
cristy8b350f62009-11-15 23:12:43 +000023886rm -f core conftest.err conftest.$ac_objext \
23887 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023888LIBS=$ac_check_lib_save_LIBS
23889fi
cristy8b350f62009-11-15 23:12:43 +000023890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023891$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000023892if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023893 POW_LIB=-lm
23894else
cristy8b350f62009-11-15 23:12:43 +000023895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023896$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23897fi
23898
23899fi
23900
23901fi
23902
cristy3ed852e2009-09-05 21:47:34 +000023903for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023904do :
23905 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000023906if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023907 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023908#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023909_ACEOF
23910
cristy8b350f62009-11-15 23:12:43 +000023911ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000023912if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023913
cristy8b350f62009-11-15 23:12:43 +000023914$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023915
23916fi
23917
23918fi
23919done
23920
23921
23922
cristy161b9262010-03-20 19:34:32 +000023923#
23924# Find math library
23925#
23926MATH_LIBS=''
23927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23928$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023929if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000023930 $as_echo_n "(cached) " >&6
23931else
23932 ac_check_lib_save_LIBS=$LIBS
23933LIBS="-lm $LIBS"
23934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23935/* end confdefs.h. */
23936
23937/* Override any GCC internal prototype to avoid an error.
23938 Use char because int might match the return type of a GCC
23939 builtin and then its argument prototype would still apply. */
23940#ifdef __cplusplus
23941extern "C"
23942#endif
23943char sqrt ();
23944int
23945main ()
23946{
23947return sqrt ();
23948 ;
23949 return 0;
23950}
23951_ACEOF
23952if ac_fn_c_try_link "$LINENO"; then :
23953 ac_cv_lib_m_sqrt=yes
23954else
23955 ac_cv_lib_m_sqrt=no
23956fi
23957rm -f core conftest.err conftest.$ac_objext \
23958 conftest$ac_exeext conftest.$ac_ext
23959LIBS=$ac_check_lib_save_LIBS
23960fi
23961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23962$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000023963if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000023964 MATH_LIBS="-lm"
23965fi
23966
23967LIBS="$MATH_LIBS $LIBS"
23968
23969
cristy47b022b2011-01-18 22:29:21 +000023970for ac_func in atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023971do :
23972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23973ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023974if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023975 cat >>confdefs.h <<_ACEOF
23976#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23977_ACEOF
23978
23979fi
23980done
23981
23982
cristye43a45e2009-09-28 14:49:00 +000023983#
23984# Check for clock_gettime().
23985#
cristy8b350f62009-11-15 23:12:43 +000023986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023987$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023988if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000023989 $as_echo_n "(cached) " >&6
23990else
23991 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023993/* end confdefs.h. */
23994
23995/* Override any GCC internal prototype to avoid an error.
23996 Use char because int might match the return type of a GCC
23997 builtin and then its argument prototype would still apply. */
23998#ifdef __cplusplus
23999extern "C"
24000#endif
24001char clock_gettime ();
24002int
24003main ()
24004{
24005return clock_gettime ();
24006 ;
24007 return 0;
24008}
24009_ACEOF
24010for ac_lib in '' rt; do
24011 if test -z "$ac_lib"; then
24012 ac_res="none required"
24013 else
24014 ac_res=-l$ac_lib
24015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24016 fi
cristy8b350f62009-11-15 23:12:43 +000024017 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024018 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024019fi
cristy8b350f62009-11-15 23:12:43 +000024020rm -f core conftest.err conftest.$ac_objext \
24021 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024022 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024023 break
24024fi
24025done
cristyda16f162011-02-19 23:52:17 +000024026if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024027
cristye43a45e2009-09-28 14:49:00 +000024028else
24029 ac_cv_search_clock_gettime=no
24030fi
24031rm conftest.$ac_ext
24032LIBS=$ac_func_search_save_LIBS
24033fi
cristy8b350f62009-11-15 23:12:43 +000024034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024035$as_echo "$ac_cv_search_clock_gettime" >&6; }
24036ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024037if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24039
24040
cristy8b350f62009-11-15 23:12:43 +000024041$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024042
cristy8b350f62009-11-15 23:12:43 +000024043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024044$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024046/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024047
24048 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024049int
24050main ()
24051{
24052clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024053 ;
24054 return 0;
24055}
24056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024057if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024058
cristy8b350f62009-11-15 23:12:43 +000024059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024060$as_echo "yes" >&6; }
24061
cristy8b350f62009-11-15 23:12:43 +000024062$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024063
24064
24065else
cristy8b350f62009-11-15 23:12:43 +000024066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024067$as_echo "no" >&6; }
24068
24069fi
cristye43a45e2009-09-28 14:49:00 +000024070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24071
24072else
24073
cristy8b350f62009-11-15 23:12:43 +000024074 for ac_func in gettimeofday ftime
24075do :
24076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24077ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024078if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024079 cat >>confdefs.h <<_ACEOF
24080#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24081_ACEOF
24082 break
24083fi
24084done
24085
24086
24087
24088fi
24089
24090
cristy3ed852e2009-09-05 21:47:34 +000024091########
24092#
24093# Check for function prototypes
24094#
24095########
24096
cristy8b350f62009-11-15 23:12:43 +000024097ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024098#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024099"
cristyda16f162011-02-19 23:52:17 +000024100if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024101 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024102else
cristy8b350f62009-11-15 23:12:43 +000024103 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024104fi
24105
cristy3ed852e2009-09-05 21:47:34 +000024106cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024107#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024109ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024110#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024111"
cristyda16f162011-02-19 23:52:17 +000024112if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024113 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024114else
cristy8b350f62009-11-15 23:12:43 +000024115 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024116fi
24117
cristy3ed852e2009-09-05 21:47:34 +000024118cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024119#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024120_ACEOF
24121
24122
cristy8b350f62009-11-15 23:12:43 +000024123ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024124#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024125"
cristyda16f162011-02-19 23:52:17 +000024126if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024127 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024128else
cristy8b350f62009-11-15 23:12:43 +000024129 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024130fi
24131
cristy3ed852e2009-09-05 21:47:34 +000024132cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024133#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024134_ACEOF
24135
24136
cristy8b350f62009-11-15 23:12:43 +000024137ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024138#include <stdio.h>
24139#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024140"
cristyda16f162011-02-19 23:52:17 +000024141if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024142 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024143else
cristy8b350f62009-11-15 23:12:43 +000024144 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024145fi
24146
cristy3ed852e2009-09-05 21:47:34 +000024147cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024148#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024149_ACEOF
24150
24151
cristy3ed852e2009-09-05 21:47:34 +000024152########
24153#
24154# C++ Support Tests (For Magick++)
24155#
24156########
24157have_magick_plus_plus='no'
24158if test "$with_magick_plus_plus" = 'yes'; then
24159 OLIBS="$LIBS"
24160 LIBS=''
24161 ac_ext=cpp
24162ac_cpp='$CXXCPP $CPPFLAGS'
24163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24166
24167
24168 # Full set of headers used...
24169 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24170 # functional iomanip iosfwd iostream iterator list string strstream utility
24171 ac_ext=cpp
24172ac_cpp='$CXXCPP $CPPFLAGS'
24173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24176
24177 ac_ext=cpp
24178ac_cpp='$CXXCPP $CPPFLAGS'
24179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24182if test -z "$CXX"; then
24183 if test -n "$CCC"; then
24184 CXX=$CCC
24185 else
24186 if test -n "$ac_tool_prefix"; then
24187 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24188 do
24189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024192$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024193if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024194 $as_echo_n "(cached) " >&6
24195else
24196 if test -n "$CXX"; then
24197 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24198else
24199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24200for as_dir in $PATH
24201do
24202 IFS=$as_save_IFS
24203 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24206 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024208 break 2
24209 fi
24210done
cristy8b350f62009-11-15 23:12:43 +000024211 done
cristy3ed852e2009-09-05 21:47:34 +000024212IFS=$as_save_IFS
24213
24214fi
24215fi
24216CXX=$ac_cv_prog_CXX
24217if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024219$as_echo "$CXX" >&6; }
24220else
cristy8b350f62009-11-15 23:12:43 +000024221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024222$as_echo "no" >&6; }
24223fi
24224
24225
24226 test -n "$CXX" && break
24227 done
24228fi
24229if test -z "$CXX"; then
24230 ac_ct_CXX=$CXX
24231 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24232do
24233 # Extract the first word of "$ac_prog", so it can be a program name with args.
24234set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024236$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024237if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024238 $as_echo_n "(cached) " >&6
24239else
24240 if test -n "$ac_ct_CXX"; then
24241 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24242else
24243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24244for as_dir in $PATH
24245do
24246 IFS=$as_save_IFS
24247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24250 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024252 break 2
24253 fi
24254done
cristy8b350f62009-11-15 23:12:43 +000024255 done
cristy3ed852e2009-09-05 21:47:34 +000024256IFS=$as_save_IFS
24257
24258fi
24259fi
24260ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24261if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024263$as_echo "$ac_ct_CXX" >&6; }
24264else
cristy8b350f62009-11-15 23:12:43 +000024265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024266$as_echo "no" >&6; }
24267fi
24268
24269
24270 test -n "$ac_ct_CXX" && break
24271done
24272
24273 if test "x$ac_ct_CXX" = x; then
24274 CXX="g++"
24275 else
24276 case $cross_compiling:$ac_tool_warned in
24277yes:)
cristy8b350f62009-11-15 23:12:43 +000024278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24280ac_tool_warned=yes ;;
24281esac
24282 CXX=$ac_ct_CXX
24283 fi
24284fi
24285
24286 fi
24287fi
24288# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000024289$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000024290set X $ac_compile
24291ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000024292for ac_option in --version -v -V -qversion; do
24293 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000024294case "(($ac_try" in
24295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24296 *) ac_try_echo=$ac_try;;
24297esac
cristy8b350f62009-11-15 23:12:43 +000024298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24299$as_echo "$ac_try_echo"; } >&5
24300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000024301 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024302 if test -s conftest.err; then
24303 sed '10a\
24304... rest of stderr output deleted ...
24305 10q' conftest.err >conftest.er1
24306 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000024307 fi
cristycd4c5312009-11-22 01:19:08 +000024308 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000024309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310 test $ac_status = 0; }
24311done
cristy3ed852e2009-09-05 21:47:34 +000024312
cristy8b350f62009-11-15 23:12:43 +000024313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000024314$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024315if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024316 $as_echo_n "(cached) " >&6
24317else
cristy8b350f62009-11-15 23:12:43 +000024318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024319/* end confdefs.h. */
24320
24321int
24322main ()
24323{
24324#ifndef __GNUC__
24325 choke me
24326#endif
24327
24328 ;
24329 return 0;
24330}
24331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024332if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024333 ac_compiler_gnu=yes
24334else
cristy8b350f62009-11-15 23:12:43 +000024335 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000024336fi
cristy3ed852e2009-09-05 21:47:34 +000024337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24338ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24339
24340fi
cristy8b350f62009-11-15 23:12:43 +000024341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000024342$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24343if test $ac_compiler_gnu = yes; then
24344 GXX=yes
24345else
24346 GXX=
24347fi
24348ac_test_CXXFLAGS=${CXXFLAGS+set}
24349ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000024350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024351$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024352if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024353 $as_echo_n "(cached) " >&6
24354else
24355 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24356 ac_cxx_werror_flag=yes
24357 ac_cv_prog_cxx_g=no
24358 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024360/* end confdefs.h. */
24361
24362int
24363main ()
24364{
24365
24366 ;
24367 return 0;
24368}
24369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024370if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024371 ac_cv_prog_cxx_g=yes
24372else
cristy8b350f62009-11-15 23:12:43 +000024373 CXXFLAGS=""
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024375/* end confdefs.h. */
24376
24377int
24378main ()
24379{
24380
24381 ;
24382 return 0;
24383}
24384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024385if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024386
cristy8b350f62009-11-15 23:12:43 +000024387else
24388 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000024389 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024391/* end confdefs.h. */
24392
24393int
24394main ()
24395{
24396
24397 ;
24398 return 0;
24399}
24400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024401if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024402 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000024403fi
cristy3ed852e2009-09-05 21:47:34 +000024404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24405fi
cristy3ed852e2009-09-05 21:47:34 +000024406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24407fi
cristy3ed852e2009-09-05 21:47:34 +000024408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24409 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24410fi
cristy8b350f62009-11-15 23:12:43 +000024411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024412$as_echo "$ac_cv_prog_cxx_g" >&6; }
24413if test "$ac_test_CXXFLAGS" = set; then
24414 CXXFLAGS=$ac_save_CXXFLAGS
24415elif test $ac_cv_prog_cxx_g = yes; then
24416 if test "$GXX" = yes; then
24417 CXXFLAGS="-g -O2"
24418 else
24419 CXXFLAGS="-g"
24420 fi
24421else
24422 if test "$GXX" = yes; then
24423 CXXFLAGS="-O2"
24424 else
24425 CXXFLAGS=
24426 fi
24427fi
24428ac_ext=cpp
24429ac_cpp='$CXXCPP $CPPFLAGS'
24430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24433
cristy73bd4a52010-10-05 11:24:23 +000024434depcc="$CXX" am_compiler_list=
24435
24436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24437$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024438if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024439 $as_echo_n "(cached) " >&6
24440else
24441 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24442 # We make a subdir and do the tests there. Otherwise we can end up
24443 # making bogus files that we don't know about and never remove. For
24444 # instance it was reported that on HP-UX the gcc test will end up
24445 # making a dummy file named `D' -- because `-MD' means `put the output
24446 # in D'.
24447 mkdir conftest.dir
24448 # Copy depcomp to subdir because otherwise we won't find it if we're
24449 # using a relative directory.
24450 cp "$am_depcomp" conftest.dir
24451 cd conftest.dir
24452 # We will build objects and dependencies in a subdirectory because
24453 # it helps to detect inapplicable dependency modes. For instance
24454 # both Tru64's cc and ICC support -MD to output dependencies as a
24455 # side effect of compilation, but ICC will put the dependencies in
24456 # the current directory while Tru64 will put them in the object
24457 # directory.
24458 mkdir sub
24459
24460 am_cv_CXX_dependencies_compiler_type=none
24461 if test "$am_compiler_list" = ""; then
24462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24463 fi
24464 am__universal=false
24465 case " $depcc " in #(
24466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
24467 esac
24468
24469 for depmode in $am_compiler_list; do
24470 # Setup a source with many dependencies, because some compilers
24471 # like to wrap large dependency lists on column 80 (with \), and
24472 # we should not choose a depcomp mode which is confused by this.
24473 #
24474 # We need to recreate these files for each test, as the compiler may
24475 # overwrite some of them when testing with obscure command lines.
24476 # This happens at least with the AIX C compiler.
24477 : > sub/conftest.c
24478 for i in 1 2 3 4 5 6; do
24479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
24480 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24481 # Solaris 8's {/usr,}/bin/sh.
24482 touch sub/conftst$i.h
24483 done
24484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24485
24486 # We check with `-c' and `-o' for the sake of the "dashmstdout"
24487 # mode. It turns out that the SunPro C++ compiler does not properly
24488 # handle `-M -o', and we need to detect this. Also, some Intel
24489 # versions had trouble with output in subdirs
24490 am__obj=sub/conftest.${OBJEXT-o}
24491 am__minus_obj="-o $am__obj"
24492 case $depmode in
24493 gcc)
24494 # This depmode causes a compiler race in universal mode.
24495 test "$am__universal" = false || continue
24496 ;;
24497 nosideeffect)
24498 # after this tag, mechanisms are not by side-effect, so they'll
24499 # only be used when explicitly requested
24500 if test "x$enable_dependency_tracking" = xyes; then
24501 continue
24502 else
24503 break
24504 fi
24505 ;;
24506 msvisualcpp | msvcmsys)
24507 # This compiler won't grok `-c -o', but also, the minuso test has
24508 # not run yet. These depmodes are late enough in the game, and
24509 # so weak that their functioning should not be impacted.
24510 am__obj=conftest.${OBJEXT-o}
24511 am__minus_obj=
24512 ;;
24513 none) break ;;
24514 esac
24515 if depmode=$depmode \
24516 source=sub/conftest.c object=$am__obj \
24517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24519 >/dev/null 2>conftest.err &&
24520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24524 # icc doesn't choke on unknown options, it will just issue warnings
24525 # or remarks (even with -Werror). So we grep stderr for any message
24526 # that says an option was ignored or not supported.
24527 # When given -MP, icc 7.0 and 7.1 complain thusly:
24528 # icc: Command line warning: ignoring option '-M'; no argument required
24529 # The diagnosis changed in icc 8.0:
24530 # icc: Command line remark: option '-MP' not supported
24531 if (grep 'ignoring option' conftest.err ||
24532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24533 am_cv_CXX_dependencies_compiler_type=$depmode
24534 break
24535 fi
24536 fi
24537 done
24538
24539 cd ..
24540 rm -rf conftest.dir
24541else
24542 am_cv_CXX_dependencies_compiler_type=none
24543fi
24544
24545fi
24546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24547$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24548CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24549
24550 if
24551 test "x$enable_dependency_tracking" != xno \
24552 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24553 am__fastdepCXX_TRUE=
24554 am__fastdepCXX_FALSE='#'
24555else
24556 am__fastdepCXX_TRUE='#'
24557 am__fastdepCXX_FALSE=
24558fi
24559
24560
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24562$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024563if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024564 $as_echo_n "(cached) " >&6
24565else
24566
24567 ac_ext=cpp
24568ac_cpp='$CXXCPP $CPPFLAGS'
24569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24572
24573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24574/* end confdefs.h. */
24575
24576int f(int x){return 1;}
24577int f(char x){return 1;}
24578int f(bool x){return 1;}
24579
24580int
24581main ()
24582{
24583bool b = true; return f(b);
24584 ;
24585 return 0;
24586}
24587_ACEOF
24588if ac_fn_cxx_try_compile "$LINENO"; then :
24589 ax_cv_cxx_bool=yes
24590else
24591 ax_cv_cxx_bool=no
24592fi
24593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24594 ac_ext=cpp
24595ac_cpp='$CXXCPP $CPPFLAGS'
24596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24599
24600
24601fi
24602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24603$as_echo "$ax_cv_cxx_bool" >&6; }
24604if test "$ax_cv_cxx_bool" = yes; then
24605
24606$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24607
24608fi
24609
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24611$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024612if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024613 $as_echo_n "(cached) " >&6
24614else
24615
24616 ac_ext=cpp
24617ac_cpp='$CXXCPP $CPPFLAGS'
24618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24621
24622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24623/* end confdefs.h. */
24624namespace Outer { namespace Inner { int i = 0; }}
24625int
24626main ()
24627{
24628using namespace Outer::Inner; return i;
24629 ;
24630 return 0;
24631}
24632_ACEOF
24633if ac_fn_cxx_try_compile "$LINENO"; then :
24634 ax_cv_cxx_namespaces=yes
24635else
24636 ax_cv_cxx_namespaces=no
24637fi
24638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639 ac_ext=cpp
24640ac_cpp='$CXXCPP $CPPFLAGS'
24641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24644
24645
24646fi
24647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24648$as_echo "$ax_cv_cxx_namespaces" >&6; }
24649if test "$ax_cv_cxx_namespaces" = yes; then
24650
24651$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24652
24653fi
24654
24655
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24657$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024658if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024659 $as_echo_n "(cached) " >&6
24660else
24661
24662 ac_ext=cpp
24663ac_cpp='$CXXCPP $CPPFLAGS'
24664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24667
24668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24669/* end confdefs.h. */
24670#include <iostream>
24671 std::istream& is = std::cin;
24672int
24673main ()
24674{
24675
24676 ;
24677 return 0;
24678}
24679_ACEOF
24680if ac_fn_cxx_try_compile "$LINENO"; then :
24681 ax_cv_cxx_have_std_namespace=yes
24682else
24683 ax_cv_cxx_have_std_namespace=no
24684fi
24685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24686 ac_ext=cpp
24687ac_cpp='$CXXCPP $CPPFLAGS'
24688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24691
24692
24693fi
24694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24695$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24696 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24697
24698$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24699
24700 fi
24701
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24703$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024704if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024705 $as_echo_n "(cached) " >&6
24706else
24707
24708
24709 ac_ext=cpp
24710ac_cpp='$CXXCPP $CPPFLAGS'
24711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24714
24715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24716/* end confdefs.h. */
24717#include <iostream>
24718#include <map>
24719#include <iomanip>
24720#include <cmath>
24721#ifdef HAVE_NAMESPACES
24722using namespace std;
24723#endif
24724int
24725main ()
24726{
24727return 0;
24728 ;
24729 return 0;
24730}
24731_ACEOF
24732if ac_fn_cxx_try_compile "$LINENO"; then :
24733 ac_cv_cxx_have_std_libs=yes
24734else
24735 ac_cv_cxx_have_std_libs=no
24736fi
24737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24738 ac_ext=cpp
24739ac_cpp='$CXXCPP $CPPFLAGS'
24740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24743
24744
24745fi
24746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24747$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24748if test "$ac_cv_cxx_have_std_libs" = yes; then
24749
24750$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24751
24752fi
24753
cristy3ed852e2009-09-05 21:47:34 +000024754
24755 OPENMP_CXXFLAGS=
24756 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024757if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024758 enableval=$enable_openmp;
24759fi
24760
24761 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24763$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024764if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024765 $as_echo_n "(cached) " >&6
24766else
cristy8b350f62009-11-15 23:12:43 +000024767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24768/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024769
24770#ifndef _OPENMP
24771 choke me
24772#endif
24773#include <omp.h>
24774int main () { return omp_get_num_threads (); }
24775
24776_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024777if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024778 ac_cv_prog_cxx_openmp='none needed'
24779else
cristy8b350f62009-11-15 23:12:43 +000024780 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024781 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24782 ac_save_CXXFLAGS=$CXXFLAGS
24783 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024786
24787#ifndef _OPENMP
24788 choke me
24789#endif
24790#include <omp.h>
24791int main () { return omp_get_num_threads (); }
24792
24793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024794if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024795 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024796fi
cristy8b350f62009-11-15 23:12:43 +000024797rm -f core conftest.err conftest.$ac_objext \
24798 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024799 CXXFLAGS=$ac_save_CXXFLAGS
24800 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24801 break
24802 fi
24803 done
24804fi
cristy8b350f62009-11-15 23:12:43 +000024805rm -f core conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024807fi
cristy8b350f62009-11-15 23:12:43 +000024808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024809$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24810 case $ac_cv_prog_cxx_openmp in #(
24811 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024812 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024813 *)
cristy8b350f62009-11-15 23:12:43 +000024814 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024815 esac
24816 fi
24817
24818
24819 ac_ext=c
24820ac_cpp='$CPP $CPPFLAGS'
24821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24823ac_compiler_gnu=$ac_cv_c_compiler_gnu
24824
24825
cristy8b350f62009-11-15 23:12:43 +000024826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024827$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24828 if \
cristy964cb7f2010-04-25 23:18:00 +000024829 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024830 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024831 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024832 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024833 have_magick_plus_plus='yes'
24834 else
24835 have_magick_plus_plus='no (failed tests)'
24836 fi
cristy8b350f62009-11-15 23:12:43 +000024837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024838$as_echo "$have_magick_plus_plus" >&6; }
24839 LIBS="$OLIBS"
24840fi
cristy73bd4a52010-10-05 11:24:23 +000024841 if test "$have_magick_plus_plus" = 'yes'; then
24842 WITH_MAGICK_PLUS_PLUS_TRUE=
24843 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24844else
24845 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24846 WITH_MAGICK_PLUS_PLUS_FALSE=
24847fi
24848
cristy3ed852e2009-09-05 21:47:34 +000024849
24850# Only check for delegate libraries in subdirectories if requested.
24851if test "$enable_delegate_build" != 'no'; then
24852 # Check for delegate sub-directories and add -I & -L options as required.
24853 # This presumes that delegates are installed as detailed in the ImageMagick
24854 # README. If delegates are installed in a standard location where the
24855 # compiler will automatically find them then these options should not be
24856 # required.
24857
24858 #
24859 # Most delegates have includes in the same directory as the library, but not all...
24860 #
24861 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000024862 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 +000024863 if test -d "$builddir/$dir"; then
24864 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24865 else
24866 if test -d "$srcdirfull/$dir"; then
24867 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24868 fi
24869 fi
24870 done
24871
24872 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000024873 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 +000024874 if test -d "$builddir/$dir/.libs"; then
24875 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24876 else
24877 if test -d "$srcdirfull/$dir/.libs"; then
24878 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24879 fi
24880 fi
24881 if test -d "$builddir/$dir"; then
24882 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24883 else
24884 if test -d "$srcdirfull/$dir"; then
24885 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24886 fi
24887 fi
24888 done
24889fi
24890
24891# Assume that delegate headers reside under same directory as ImageMagick
24892# installation prefix.
24893MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24894
24895#
24896# Find the X11 RGB database
24897#
cristy8b350f62009-11-15 23:12:43 +000024898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024899$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024900if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024901 $as_echo_n "(cached) " >&6
24902else
24903 # Look for the header file in a standard set of common directories.
24904# Check X11 before X11Rn because it is often a symlink to the current release.
24905 for ac_dir in \
24906 /lib/usr/lib/X11 \
24907 /usr/X11/lib \
24908 /usr/X11R4/lib \
24909 /usr/X11R5/lib \
24910 /usr/X11R6/lib \
24911 /usr/X11R7/lib \
24912 /usr/X386/lib \
24913 /usr/XFree86/lib/X11 \
24914 /usr/athena/lib \
24915 /usr/lib \
24916 /usr/lib/X11 \
24917 /usr/lib/X11R4 \
24918 /usr/lib/X11R5 \
24919 /usr/lib/X11R6 \
24920 /usr/lib/X11R7 \
24921 /usr/local/X11/lib \
24922 /usr/local/X11R4/lib \
24923 /usr/local/X11R5/lib \
24924 /usr/local/X11R6/lib \
24925 /usr/local/lib \
24926 /usr/local/lib/X11 \
24927 /usr/local/lib/X11R4 \
24928 /usr/local/lib/X11R5 \
24929 /usr/local/lib/X11R6 \
24930 /usr/local/lib/X11R7 \
24931 /usr/local/x11r5/lib \
24932 /usr/lpp/Xamples/lib \
24933 /usr/openwin/lib \
24934 /usr/openwin/share/lib \
24935 /usr/unsupported/lib \
24936 /usr/x386/lib \
24937 ; do
24938 if test -f "$ac_dir/X11/rgb.txt"; then
24939 im_cv_x_configure="$ac_dir/X11/"
24940 break
24941 elif test -f "$ac_dir/rgb.txt"; then
24942 im_cv_x_configure="$ac_dir/"
24943 break
24944 fi
24945
24946 done
24947fi
cristy8b350f62009-11-15 23:12:43 +000024948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024949$as_echo "$im_cv_x_configure" >&6; }
24950X11_CONFIGURE_PATH="$im_cv_x_configure"
24951case "${build_os}" in
24952 mingw* )
24953 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24954 ;;
24955esac
24956
24957cat >>confdefs.h <<_ACEOF
24958#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24959_ACEOF
24960
24961
24962#
24963# Find OpenMP library
24964#
24965GOMP_LIBS=''
24966if test "$enable_openmp" != 'no'; then
24967 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024969$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024970if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024971 $as_echo_n "(cached) " >&6
24972else
24973 ac_check_lib_save_LIBS=$LIBS
24974LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024976/* end confdefs.h. */
24977
24978/* Override any GCC internal prototype to avoid an error.
24979 Use char because int might match the return type of a GCC
24980 builtin and then its argument prototype would still apply. */
24981#ifdef __cplusplus
24982extern "C"
24983#endif
24984char GOMP_parallel_start ();
24985int
24986main ()
24987{
24988return GOMP_parallel_start ();
24989 ;
24990 return 0;
24991}
24992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024994 ac_cv_lib_gomp_GOMP_parallel_start=yes
24995else
cristy8b350f62009-11-15 23:12:43 +000024996 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024997fi
cristy8b350f62009-11-15 23:12:43 +000024998rm -f core conftest.err conftest.$ac_objext \
24999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025000LIBS=$ac_check_lib_save_LIBS
25001fi
cristy8b350f62009-11-15 23:12:43 +000025002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025003$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025004if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025005 GOMP_LIBS="-lgomp"
25006fi
25007 # gcc
25008 else
cristy8b350f62009-11-15 23:12:43 +000025009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025010$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025011if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025012 $as_echo_n "(cached) " >&6
25013else
25014 ac_check_lib_save_LIBS=$LIBS
25015LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025017/* end confdefs.h. */
25018
25019/* Override any GCC internal prototype to avoid an error.
25020 Use char because int might match the return type of a GCC
25021 builtin and then its argument prototype would still apply. */
25022#ifdef __cplusplus
25023extern "C"
25024#endif
25025char sunw_mp_register_warn ();
25026int
25027main ()
25028{
25029return sunw_mp_register_warn ();
25030 ;
25031 return 0;
25032}
25033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025034if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025035 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25036else
cristy8b350f62009-11-15 23:12:43 +000025037 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025038fi
cristy8b350f62009-11-15 23:12:43 +000025039rm -f core conftest.err conftest.$ac_objext \
25040 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025041LIBS=$ac_check_lib_save_LIBS
25042fi
cristy8b350f62009-11-15 23:12:43 +000025043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025044$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025045if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025046 GOMP_LIBS="-lmtsk"
25047fi
25048 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025050$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025051if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025052 $as_echo_n "(cached) " >&6
25053else
25054 ac_check_lib_save_LIBS=$LIBS
25055LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025057/* end confdefs.h. */
25058
25059/* Override any GCC internal prototype to avoid an error.
25060 Use char because int might match the return type of a GCC
25061 builtin and then its argument prototype would still apply. */
25062#ifdef __cplusplus
25063extern "C"
25064#endif
25065char _xlsmpFlush ();
25066int
25067main ()
25068{
25069return _xlsmpFlush ();
25070 ;
25071 return 0;
25072}
25073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025074if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025075 ac_cv_lib_xlsmp__xlsmpFlush=yes
25076else
cristy8b350f62009-11-15 23:12:43 +000025077 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025078fi
cristy8b350f62009-11-15 23:12:43 +000025079rm -f core conftest.err conftest.$ac_objext \
25080 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025081LIBS=$ac_check_lib_save_LIBS
25082fi
cristy8b350f62009-11-15 23:12:43 +000025083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025084$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025085if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025086 GOMP_LIBS="-lxlsmp"
25087fi
25088 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025090$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025091if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025092 $as_echo_n "(cached) " >&6
25093else
25094 ac_check_lib_save_LIBS=$LIBS
25095LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025097/* end confdefs.h. */
25098
25099/* Override any GCC internal prototype to avoid an error.
25100 Use char because int might match the return type of a GCC
25101 builtin and then its argument prototype would still apply. */
25102#ifdef __cplusplus
25103extern "C"
25104#endif
25105char mp_destroy ();
25106int
25107main ()
25108{
25109return mp_destroy ();
25110 ;
25111 return 0;
25112}
25113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025115 ac_cv_lib_mp_mp_destroy=yes
25116else
cristy8b350f62009-11-15 23:12:43 +000025117 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025118fi
cristy8b350f62009-11-15 23:12:43 +000025119rm -f core conftest.err conftest.$ac_objext \
25120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025121LIBS=$ac_check_lib_save_LIBS
25122fi
cristy8b350f62009-11-15 23:12:43 +000025123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025124$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025125if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025126 GOMP_LIBS="-lmp"
25127fi
25128 # SGI IRIX 6.5 MIPSpro C/C++
25129 fi
25130 LIBS="$GOMP_LIBS $LIBS"
25131fi
25132
25133
25134#
25135# Find Posix threads library
25136#
25137THREAD_LIBS=''
25138if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25139
25140 if test "x$PTHREAD_LIBS" = "x"; then
25141 case "${host_cpu}-${host_os}" in
25142 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025143
25144
25145
25146ac_ext=c
25147ac_cpp='$CPP $CPPFLAGS'
25148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25150ac_compiler_gnu=$ac_cv_c_compiler_gnu
25151
25152magick_pthread_lib_ok=no
25153
25154LIB=-lc_r
25155save_LIBS="$LIBS"
25156LIBS="$LIBS $LIB"
25157
25158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25159$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161/* end confdefs.h. */
25162#include <pthread.h>
25163int
25164main ()
25165{
25166 pthread_t th;
25167 pthread_join(th, 0);
25168 pthread_attr_init(0);
25169 pthread_cleanup_push(0, 0);
25170 pthread_create(0,0,0,0);
25171 pthread_cleanup_pop(0);
25172 ;
25173 return 0;
25174}
25175_ACEOF
25176if ac_fn_c_try_link "$LINENO"; then :
25177 magick_pthread_lib_ok=yes
25178fi
25179rm -f core conftest.err conftest.$ac_objext \
25180 conftest$ac_exeext conftest.$ac_ext
25181
25182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25183$as_echo "${magick_pthread_lib_ok}" >&6; }
25184if test "$magick_pthread_lib_ok" = yes
25185then
25186 PTHREAD_LIBS=-lc_r
25187 :
25188else
25189
25190 :
25191fi
25192
25193LIBS="$save_LIBS"
25194
25195ac_ext=c
25196ac_cpp='$CPP $CPPFLAGS'
25197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25199ac_compiler_gnu=$ac_cv_c_compiler_gnu
25200
25201 ;;
cristy3ed852e2009-09-05 21:47:34 +000025202 esac
25203 fi
25204
25205 for lib in pthread pthreads; do
25206 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025207
25208
25209
25210ac_ext=c
25211ac_cpp='$CPP $CPPFLAGS'
25212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25214ac_compiler_gnu=$ac_cv_c_compiler_gnu
25215
25216magick_pthread_lib_ok=no
25217
25218LIB=-l$lib
25219save_LIBS="$LIBS"
25220LIBS="$LIBS $LIB"
25221
25222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25223$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25225/* end confdefs.h. */
25226#include <pthread.h>
25227int
25228main ()
25229{
25230 pthread_t th;
25231 pthread_join(th, 0);
25232 pthread_attr_init(0);
25233 pthread_cleanup_push(0, 0);
25234 pthread_create(0,0,0,0);
25235 pthread_cleanup_pop(0);
25236 ;
25237 return 0;
25238}
25239_ACEOF
25240if ac_fn_c_try_link "$LINENO"; then :
25241 magick_pthread_lib_ok=yes
25242fi
25243rm -f core conftest.err conftest.$ac_objext \
25244 conftest$ac_exeext conftest.$ac_ext
25245
25246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25247$as_echo "${magick_pthread_lib_ok}" >&6; }
25248if test "$magick_pthread_lib_ok" = yes
25249then
25250 PTHREAD_LIBS=-l$lib
25251 :
25252else
25253
25254 :
25255fi
25256
25257LIBS="$save_LIBS"
25258
25259ac_ext=c
25260ac_cpp='$CPP $CPPFLAGS'
25261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25263ac_compiler_gnu=$ac_cv_c_compiler_gnu
25264
25265
cristy3ed852e2009-09-05 21:47:34 +000025266 fi
25267 done
25268
25269 THREAD_LIBS="$PTHREAD_LIBS"
25270 LIBS="$LIBS $THREAD_LIBS"
25271fi
25272
25273
25274#
25275# Check for umem.
25276#
25277have_umem='no'
25278UMEM_LIBS=''
25279if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000025281$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025283$as_echo "" >&6; }
25284 failed=0
25285 passed=0
cristy8b350f62009-11-15 23:12:43 +000025286 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025287if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025288 passed=`expr $passed + 1`
25289else
25290 failed=`expr $failed + 1`
25291fi
25292
25293
cristy8b350f62009-11-15 23:12:43 +000025294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025295$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025296if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025297 $as_echo_n "(cached) " >&6
25298else
25299 ac_check_lib_save_LIBS=$LIBS
25300LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025302/* end confdefs.h. */
25303
25304/* Override any GCC internal prototype to avoid an error.
25305 Use char because int might match the return type of a GCC
25306 builtin and then its argument prototype would still apply. */
25307#ifdef __cplusplus
25308extern "C"
25309#endif
25310char umem_alloc ();
25311int
25312main ()
25313{
25314return umem_alloc ();
25315 ;
25316 return 0;
25317}
25318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025319if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025320 ac_cv_lib_umem_umem_alloc=yes
25321else
cristy8b350f62009-11-15 23:12:43 +000025322 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000025323fi
cristy8b350f62009-11-15 23:12:43 +000025324rm -f core conftest.err conftest.$ac_objext \
25325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025326LIBS=$ac_check_lib_save_LIBS
25327fi
cristy8b350f62009-11-15 23:12:43 +000025328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025329$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025330if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025331 passed=`expr $passed + 1`
25332else
25333 failed=`expr $failed + 1`
25334fi
25335
cristy8b350f62009-11-15 23:12:43 +000025336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025337$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025338if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025339 $as_echo_n "(cached) " >&6
25340else
25341 ac_check_lib_save_LIBS=$LIBS
25342LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025344/* end confdefs.h. */
25345
25346/* Override any GCC internal prototype to avoid an error.
25347 Use char because int might match the return type of a GCC
25348 builtin and then its argument prototype would still apply. */
25349#ifdef __cplusplus
25350extern "C"
25351#endif
25352char umem_free ();
25353int
25354main ()
25355{
25356return umem_free ();
25357 ;
25358 return 0;
25359}
25360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 ac_cv_lib_umem_umem_free=yes
25363else
cristy8b350f62009-11-15 23:12:43 +000025364 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000025365fi
cristy8b350f62009-11-15 23:12:43 +000025366rm -f core conftest.err conftest.$ac_objext \
25367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025368LIBS=$ac_check_lib_save_LIBS
25369fi
cristy8b350f62009-11-15 23:12:43 +000025370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000025371$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000025372if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025373 passed=`expr $passed + 1`
25374else
25375 failed=`expr $failed + 1`
25376fi
25377
cristy8b350f62009-11-15 23:12:43 +000025378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025379$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25380 if test $passed -gt 0; then
25381 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025383$as_echo "no -- some components failed test" >&6; }
25384 have_umem='no (failed tests)'
25385 else
25386 UMEM_LIBS='-lumem'
25387 LIBS="$UMEM_LIBS $LIBS"
25388
cristy8b350f62009-11-15 23:12:43 +000025389$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025390
cristy8b350f62009-11-15 23:12:43 +000025391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025392$as_echo "yes" >&6; }
25393 have_umem='yes'
25394 fi
25395 else
cristy8b350f62009-11-15 23:12:43 +000025396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025397$as_echo "no" >&6; }
25398 fi
25399fi
cristy73bd4a52010-10-05 11:24:23 +000025400 if test "$have_umem" = 'yes'; then
25401 HasUMEM_TRUE=
25402 HasUMEM_FALSE='#'
25403else
25404 HasUMEM_TRUE='#'
25405 HasUMEM_FALSE=
25406fi
25407
cristy3ed852e2009-09-05 21:47:34 +000025408
25409
25410#
25411# Add support for ccmalloc memory debugging library if requested
25412#
25413have_ccmalloc='no'
25414CCMALLOC_LIBS=''
25415if test "$enable_ccmalloc" = 'yes'; then
25416 # Extract the first word of "ccmalloc", so it can be a program name with args.
25417set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025420if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025421 $as_echo_n "(cached) " >&6
25422else
25423 case $CCMALLOCDelegate in
25424 [\\/]* | ?:[\\/]*)
25425 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25426 ;;
25427 *)
25428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25429for as_dir in $PATH
25430do
25431 IFS=$as_save_IFS
25432 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25435 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000025436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025437 break 2
25438 fi
25439done
cristy8b350f62009-11-15 23:12:43 +000025440 done
cristy3ed852e2009-09-05 21:47:34 +000025441IFS=$as_save_IFS
25442
25443 ;;
25444esac
25445fi
25446CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25447if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000025448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025449$as_echo "$CCMALLOCDelegate" >&6; }
25450else
cristy8b350f62009-11-15 23:12:43 +000025451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025452$as_echo "no" >&6; }
25453fi
25454
25455
25456 if test -n "$CCMALLOCDelegate"; then
25457 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25458 OLIBS="$LIBS"
25459 # Assume that gcc is used with ccmalloc.
25460 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000025461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025462$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025463if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025464 $as_echo_n "(cached) " >&6
25465else
25466 ac_check_lib_save_LIBS=$LIBS
25467LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025469/* end confdefs.h. */
25470
25471/* Override any GCC internal prototype to avoid an error.
25472 Use char because int might match the return type of a GCC
25473 builtin and then its argument prototype would still apply. */
25474#ifdef __cplusplus
25475extern "C"
25476#endif
25477char ccmalloc_malloc ();
25478int
25479main ()
25480{
25481return ccmalloc_malloc ();
25482 ;
25483 return 0;
25484}
25485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025486if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025487 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25488else
cristy8b350f62009-11-15 23:12:43 +000025489 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000025490fi
cristy8b350f62009-11-15 23:12:43 +000025491rm -f core conftest.err conftest.$ac_objext \
25492 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025493LIBS=$ac_check_lib_save_LIBS
25494fi
cristy8b350f62009-11-15 23:12:43 +000025495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025496$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025497if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025498 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25499fi
25500
25501 if test -n "$CCMALLOC_LIBS"; then
25502 LIBS="$OLIBS"
25503 LIBS="$LIBS $CCMALLOC_LIBS"
25504 have_ccmalloc='yes'
25505 else
25506 LIBS="$OLIBS"
25507 fi
25508 fi
25509fi
25510
25511#
25512# Add support for efence memory debugging library if requested
25513#
25514if test "$enable_efence" = 'yes'; then
25515 EFENCE_LIBS='-lefence'
25516 LIBS="$EFENCE_LIBS $LIBS"
25517fi
25518
cristy3ed852e2009-09-05 21:47:34 +000025519
25520#
25521# Check for BZLIB
25522#
25523
25524
25525# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000025526if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025527 withval=$with_bzlib; with_bzlib=$withval
25528else
25529 with_bzlib='yes'
25530fi
25531
25532
25533if test "$with_bzlib" != 'yes'; then
25534 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25535fi
25536
25537have_bzlib='no'
25538if test "$with_bzlib" != 'no'; then
25539 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025541$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025543$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025545$as_echo "" >&6; }
25546 failed=0
25547 passed=0
25548 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000025549 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025550if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025551 passed=`expr $passed + 1`
25552else
25553 failed=`expr $failed + 1`
25554fi
25555
25556
cristy8b350f62009-11-15 23:12:43 +000025557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025558$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025559if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025560 $as_echo_n "(cached) " >&6
25561else
25562 ac_check_lib_save_LIBS=$LIBS
25563LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025565/* end confdefs.h. */
25566
25567/* Override any GCC internal prototype to avoid an error.
25568 Use char because int might match the return type of a GCC
25569 builtin and then its argument prototype would still apply. */
25570#ifdef __cplusplus
25571extern "C"
25572#endif
25573char BZ2_bzDecompress ();
25574int
25575main ()
25576{
25577return BZ2_bzDecompress ();
25578 ;
25579 return 0;
25580}
25581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025582if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025583 ac_cv_lib_bz2_BZ2_bzDecompress=yes
25584else
cristy8b350f62009-11-15 23:12:43 +000025585 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000025586fi
cristy8b350f62009-11-15 23:12:43 +000025587rm -f core conftest.err conftest.$ac_objext \
25588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025589LIBS=$ac_check_lib_save_LIBS
25590fi
cristy8b350f62009-11-15 23:12:43 +000025591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025592$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025593if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025594 found_libbz=`expr $found_libbz + 1`
25595fi
25596
25597 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025599$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025600if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025601 $as_echo_n "(cached) " >&6
25602else
25603 ac_check_lib_save_LIBS=$LIBS
25604LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025606/* end confdefs.h. */
25607
25608/* Override any GCC internal prototype to avoid an error.
25609 Use char because int might match the return type of a GCC
25610 builtin and then its argument prototype would still apply. */
25611#ifdef __cplusplus
25612extern "C"
25613#endif
25614char _imp__BZ2_decompress ();
25615int
25616main ()
25617{
25618return _imp__BZ2_decompress ();
25619 ;
25620 return 0;
25621}
25622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025623if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025624 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25625else
cristy8b350f62009-11-15 23:12:43 +000025626 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025627fi
cristy8b350f62009-11-15 23:12:43 +000025628rm -f core conftest.err conftest.$ac_objext \
25629 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025630LIBS=$ac_check_lib_save_LIBS
25631fi
cristy8b350f62009-11-15 23:12:43 +000025632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025633$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025634if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025635 found_libbz=`expr $found_libbz + 1`
25636fi
25637
25638 fi
25639 if test $found_libbz -gt 0; then
25640 passed=`expr $passed + 1`
25641 else
25642 failed=`expr $failed + 1`
25643 fi
cristy8b350f62009-11-15 23:12:43 +000025644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025645$as_echo_n "checking if BZLIB package is complete... " >&6; }
25646 if test $passed -gt 0; then
25647 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025649$as_echo "no -- some components failed test" >&6; }
25650 have_bzlib='no (failed tests)'
25651 else
25652 BZLIB_LIBS='-lbz2'
25653 LIBS="$BZLIB_LIBS $LIBS"
25654
cristy8b350f62009-11-15 23:12:43 +000025655$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025656
cristy8b350f62009-11-15 23:12:43 +000025657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025658$as_echo "yes" >&6; }
25659 have_bzlib='yes'
25660 fi
25661 else
cristy8b350f62009-11-15 23:12:43 +000025662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025663$as_echo "no" >&6; }
25664 fi
25665fi
cristy73bd4a52010-10-05 11:24:23 +000025666 if test "$have_bzlib" = 'yes'; then
25667 BZLIB_DELEGATE_TRUE=
25668 BZLIB_DELEGATE_FALSE='#'
25669else
25670 BZLIB_DELEGATE_TRUE='#'
25671 BZLIB_DELEGATE_FALSE=
25672fi
25673
cristy3ed852e2009-09-05 21:47:34 +000025674
25675
25676#
25677# Find the X11 include and library directories.
25678#
25679IPC_LIBS=''
25680X11_LIBS=''
25681XEXT_LIBS=''
25682XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025684$as_echo_n "checking for X... " >&6; }
25685
25686
25687# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025688if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025689 withval=$with_x;
25690fi
25691
25692# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25693if test "x$with_x" = xno; then
25694 # The user explicitly disabled X.
25695 have_x=disabled
25696else
25697 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000025698 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000025699 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000025700 $as_echo_n "(cached) " >&6
25701else
25702 # One or both of the vars are not set, and there is no cached value.
25703ac_x_includes=no ac_x_libraries=no
25704rm -f -r conftest.dir
25705if mkdir conftest.dir; then
25706 cd conftest.dir
25707 cat >Imakefile <<'_ACEOF'
25708incroot:
25709 @echo incroot='${INCROOT}'
25710usrlibdir:
25711 @echo usrlibdir='${USRLIBDIR}'
25712libdir:
25713 @echo libdir='${LIBDIR}'
25714_ACEOF
25715 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000025716 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025717 for ac_var in incroot usrlibdir libdir; do
25718 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25719 done
25720 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25721 for ac_extension in a so sl dylib la dll; do
25722 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25723 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25724 ac_im_usrlibdir=$ac_im_libdir; break
25725 fi
25726 done
25727 # Screen out bogus values from the imake configuration. They are
25728 # bogus both because they are the default anyway, and because
25729 # using them would break gcc on systems where it needs fixed includes.
25730 case $ac_im_incroot in
25731 /usr/include) ac_x_includes= ;;
25732 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25733 esac
25734 case $ac_im_usrlibdir in
25735 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25736 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25737 esac
25738 fi
25739 cd ..
25740 rm -f -r conftest.dir
25741fi
25742
25743# Standard set of common directories for X headers.
25744# Check X11 before X11Rn because it is often a symlink to the current release.
25745ac_x_header_dirs='
25746/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025747/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025748/usr/X11R6/include
25749/usr/X11R5/include
25750/usr/X11R4/include
25751
25752/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025753/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025754/usr/include/X11R6
25755/usr/include/X11R5
25756/usr/include/X11R4
25757
25758/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025759/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025760/usr/local/X11R6/include
25761/usr/local/X11R5/include
25762/usr/local/X11R4/include
25763
25764/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025765/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025766/usr/local/include/X11R6
25767/usr/local/include/X11R5
25768/usr/local/include/X11R4
25769
25770/usr/X386/include
25771/usr/x386/include
25772/usr/XFree86/include/X11
25773
25774/usr/include
25775/usr/local/include
25776/usr/unsupported/include
25777/usr/athena/include
25778/usr/local/x11r5/include
25779/usr/lpp/Xamples/include
25780
25781/usr/openwin/include
25782/usr/openwin/share/include'
25783
25784if test "$ac_x_includes" = no; then
25785 # Guess where to find include files, by looking for Xlib.h.
25786 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025788/* end confdefs.h. */
25789#include <X11/Xlib.h>
25790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025791if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025792 # We can compile using X headers with no special include directory.
25793ac_x_includes=
25794else
cristyc7083c12009-10-14 03:16:55 +000025795 for ac_dir in $ac_x_header_dirs; do
25796 if test -r "$ac_dir/X11/Xlib.h"; then
25797 ac_x_includes=$ac_dir
25798 break
25799 fi
25800done
25801fi
cristyda16f162011-02-19 23:52:17 +000025802rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025803fi # $ac_x_includes = no
25804
25805if test "$ac_x_libraries" = no; then
25806 # Check for the libraries.
25807 # See if we find them without any special options.
25808 # Don't add to $LIBS permanently.
25809 ac_save_LIBS=$LIBS
25810 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025812/* end confdefs.h. */
25813#include <X11/Xlib.h>
25814int
25815main ()
25816{
25817XrmInitialize ()
25818 ;
25819 return 0;
25820}
25821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025822if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025823 LIBS=$ac_save_LIBS
25824# We can link X programs with no special library path.
25825ac_x_libraries=
25826else
cristy8b350f62009-11-15 23:12:43 +000025827 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025828for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25829do
25830 # Don't even attempt the hair of trying to link an X program!
25831 for ac_extension in a so sl dylib la dll; do
25832 if test -r "$ac_dir/libX11.$ac_extension"; then
25833 ac_x_libraries=$ac_dir
25834 break 2
25835 fi
25836 done
25837done
25838fi
cristy8b350f62009-11-15 23:12:43 +000025839rm -f core conftest.err conftest.$ac_objext \
25840 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025841fi # $ac_x_libraries = no
25842
25843case $ac_x_includes,$ac_x_libraries in #(
25844 no,* | *,no | *\'*)
25845 # Didn't find X, or a directory has "'" in its name.
25846 ac_cv_have_x="have_x=no";; #(
25847 *)
25848 # Record where we found X for the cache.
25849 ac_cv_have_x="have_x=yes\
25850 ac_x_includes='$ac_x_includes'\
25851 ac_x_libraries='$ac_x_libraries'"
25852esac
25853fi
25854;; #(
25855 *) have_x=yes;;
25856 esac
25857 eval "$ac_cv_have_x"
25858fi # $with_x != no
25859
25860if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025862$as_echo "$have_x" >&6; }
25863 no_x=yes
25864else
25865 # If each of the values was on the command line, it overrides each guess.
25866 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25867 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25868 # Update the cache value to reflect the command line values.
25869 ac_cv_have_x="have_x=yes\
25870 ac_x_includes='$x_includes'\
25871 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025873$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25874fi
25875
cristy3ed852e2009-09-05 21:47:34 +000025876if test "$no_x" = yes; then
25877 # Not all programs may use this symbol, but it does not hurt to define it.
25878
cristy8b350f62009-11-15 23:12:43 +000025879$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025880
25881 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25882else
25883 if test -n "$x_includes"; then
25884 X_CFLAGS="$X_CFLAGS -I$x_includes"
25885 fi
25886
25887 # It would also be nice to do this for all -L options, not just this one.
25888 if test -n "$x_libraries"; then
25889 X_LIBS="$X_LIBS -L$x_libraries"
25890 # For Solaris; some versions of Sun CC require a space after -R and
25891 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025893$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25894 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25895 ac_xsave_c_werror_flag=$ac_c_werror_flag
25896 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025898/* end confdefs.h. */
25899
25900int
25901main ()
25902{
25903
25904 ;
25905 return 0;
25906}
25907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025908if ac_fn_c_try_link "$LINENO"; then :
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025910$as_echo "no" >&6; }
25911 X_LIBS="$X_LIBS -R$x_libraries"
25912else
cristy8b350f62009-11-15 23:12:43 +000025913 LIBS="$ac_xsave_LIBS -R $x_libraries"
25914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025915/* end confdefs.h. */
25916
25917int
25918main ()
25919{
25920
25921 ;
25922 return 0;
25923}
25924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025925if ac_fn_c_try_link "$LINENO"; then :
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025927$as_echo "yes" >&6; }
25928 X_LIBS="$X_LIBS -R $x_libraries"
25929else
cristy8b350f62009-11-15 23:12:43 +000025930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025931$as_echo "neither works" >&6; }
25932fi
cristy8b350f62009-11-15 23:12:43 +000025933rm -f core conftest.err conftest.$ac_objext \
25934 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025935fi
cristy8b350f62009-11-15 23:12:43 +000025936rm -f core conftest.err conftest.$ac_objext \
25937 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025938 ac_c_werror_flag=$ac_xsave_c_werror_flag
25939 LIBS=$ac_xsave_LIBS
25940 fi
25941
25942 # Check for system-dependent libraries X programs must link with.
25943 # Do this before checking for the system-independent R6 libraries
25944 # (-lICE), since we may need -lsocket or whatever for X linking.
25945
25946 if test "$ISC" = yes; then
25947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25948 else
25949 # Martyn Johnson says this is needed for Ultrix, if the X
25950 # libraries were built with DECnet support. And Karl Berry says
25951 # the Alpha needs dnet_stub (dnet does not exist).
25952 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025954/* end confdefs.h. */
25955
25956/* Override any GCC internal prototype to avoid an error.
25957 Use char because int might match the return type of a GCC
25958 builtin and then its argument prototype would still apply. */
25959#ifdef __cplusplus
25960extern "C"
25961#endif
25962char XOpenDisplay ();
25963int
25964main ()
25965{
25966return XOpenDisplay ();
25967 ;
25968 return 0;
25969}
25970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025971if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025972
cristy8b350f62009-11-15 23:12:43 +000025973else
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025975$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025976if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025977 $as_echo_n "(cached) " >&6
25978else
25979 ac_check_lib_save_LIBS=$LIBS
25980LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025982/* end confdefs.h. */
25983
25984/* Override any GCC internal prototype to avoid an error.
25985 Use char because int might match the return type of a GCC
25986 builtin and then its argument prototype would still apply. */
25987#ifdef __cplusplus
25988extern "C"
25989#endif
25990char dnet_ntoa ();
25991int
25992main ()
25993{
25994return dnet_ntoa ();
25995 ;
25996 return 0;
25997}
25998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025999if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026000 ac_cv_lib_dnet_dnet_ntoa=yes
26001else
cristy8b350f62009-11-15 23:12:43 +000026002 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026003fi
cristy8b350f62009-11-15 23:12:43 +000026004rm -f core conftest.err conftest.$ac_objext \
26005 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026006LIBS=$ac_check_lib_save_LIBS
26007fi
cristy8b350f62009-11-15 23:12:43 +000026008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026009$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026010if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026011 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26012fi
26013
26014 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026016$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026017if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026018 $as_echo_n "(cached) " >&6
26019else
26020 ac_check_lib_save_LIBS=$LIBS
26021LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026023/* end confdefs.h. */
26024
26025/* Override any GCC internal prototype to avoid an error.
26026 Use char because int might match the return type of a GCC
26027 builtin and then its argument prototype would still apply. */
26028#ifdef __cplusplus
26029extern "C"
26030#endif
26031char dnet_ntoa ();
26032int
26033main ()
26034{
26035return dnet_ntoa ();
26036 ;
26037 return 0;
26038}
26039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026040if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26042else
cristy8b350f62009-11-15 23:12:43 +000026043 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026044fi
cristy8b350f62009-11-15 23:12:43 +000026045rm -f core conftest.err conftest.$ac_objext \
26046 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026047LIBS=$ac_check_lib_save_LIBS
26048fi
cristy8b350f62009-11-15 23:12:43 +000026049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026050$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026051if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026052 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26053fi
26054
26055 fi
26056fi
cristy8b350f62009-11-15 23:12:43 +000026057rm -f core conftest.err conftest.$ac_objext \
26058 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026059 LIBS="$ac_xsave_LIBS"
26060
26061 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26062 # to get the SysV transport functions.
26063 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26064 # needs -lnsl.
26065 # The nsl library prevents programs from opening the X display
26066 # on Irix 5.2, according to T.E. Dickey.
26067 # The functions gethostbyname, getservbyname, and inet_addr are
26068 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026069 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026070if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026071
cristy3ed852e2009-09-05 21:47:34 +000026072fi
26073
cristy3ed852e2009-09-05 21:47:34 +000026074 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026076$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026077if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026078 $as_echo_n "(cached) " >&6
26079else
26080 ac_check_lib_save_LIBS=$LIBS
26081LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026083/* end confdefs.h. */
26084
26085/* Override any GCC internal prototype to avoid an error.
26086 Use char because int might match the return type of a GCC
26087 builtin and then its argument prototype would still apply. */
26088#ifdef __cplusplus
26089extern "C"
26090#endif
26091char gethostbyname ();
26092int
26093main ()
26094{
26095return gethostbyname ();
26096 ;
26097 return 0;
26098}
26099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026101 ac_cv_lib_nsl_gethostbyname=yes
26102else
cristy8b350f62009-11-15 23:12:43 +000026103 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026104fi
cristy8b350f62009-11-15 23:12:43 +000026105rm -f core conftest.err conftest.$ac_objext \
26106 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026107LIBS=$ac_check_lib_save_LIBS
26108fi
cristy8b350f62009-11-15 23:12:43 +000026109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026110$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026111if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26113fi
26114
26115 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026117$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026118if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026119 $as_echo_n "(cached) " >&6
26120else
26121 ac_check_lib_save_LIBS=$LIBS
26122LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026124/* end confdefs.h. */
26125
26126/* Override any GCC internal prototype to avoid an error.
26127 Use char because int might match the return type of a GCC
26128 builtin and then its argument prototype would still apply. */
26129#ifdef __cplusplus
26130extern "C"
26131#endif
26132char gethostbyname ();
26133int
26134main ()
26135{
26136return gethostbyname ();
26137 ;
26138 return 0;
26139}
26140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026141if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026142 ac_cv_lib_bsd_gethostbyname=yes
26143else
cristy8b350f62009-11-15 23:12:43 +000026144 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026145fi
cristy8b350f62009-11-15 23:12:43 +000026146rm -f core conftest.err conftest.$ac_objext \
26147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026148LIBS=$ac_check_lib_save_LIBS
26149fi
cristy8b350f62009-11-15 23:12:43 +000026150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026151$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026152if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026153 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26154fi
26155
26156 fi
26157 fi
26158
26159 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26160 # socket/setsockopt and other routines are undefined under SCO ODT
26161 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26162 # on later versions), says Simon Leinen: it contains gethostby*
26163 # variants that don't use the name server (or something). -lsocket
26164 # must be given before -lnsl if both are needed. We assume that
26165 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026166 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026167if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026168
cristy3ed852e2009-09-05 21:47:34 +000026169fi
26170
cristy3ed852e2009-09-05 21:47:34 +000026171 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026173$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026174if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026175 $as_echo_n "(cached) " >&6
26176else
26177 ac_check_lib_save_LIBS=$LIBS
26178LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026180/* end confdefs.h. */
26181
26182/* Override any GCC internal prototype to avoid an error.
26183 Use char because int might match the return type of a GCC
26184 builtin and then its argument prototype would still apply. */
26185#ifdef __cplusplus
26186extern "C"
26187#endif
26188char connect ();
26189int
26190main ()
26191{
26192return connect ();
26193 ;
26194 return 0;
26195}
26196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026197if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026198 ac_cv_lib_socket_connect=yes
26199else
cristy8b350f62009-11-15 23:12:43 +000026200 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026201fi
cristy8b350f62009-11-15 23:12:43 +000026202rm -f core conftest.err conftest.$ac_objext \
26203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026204LIBS=$ac_check_lib_save_LIBS
26205fi
cristy8b350f62009-11-15 23:12:43 +000026206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026207$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026208if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026209 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26210fi
26211
26212 fi
26213
26214 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026215 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026216if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026217
cristy3ed852e2009-09-05 21:47:34 +000026218fi
26219
cristy3ed852e2009-09-05 21:47:34 +000026220 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026222$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026223if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026224 $as_echo_n "(cached) " >&6
26225else
26226 ac_check_lib_save_LIBS=$LIBS
26227LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026229/* end confdefs.h. */
26230
26231/* Override any GCC internal prototype to avoid an error.
26232 Use char because int might match the return type of a GCC
26233 builtin and then its argument prototype would still apply. */
26234#ifdef __cplusplus
26235extern "C"
26236#endif
26237char remove ();
26238int
26239main ()
26240{
26241return remove ();
26242 ;
26243 return 0;
26244}
26245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026247 ac_cv_lib_posix_remove=yes
26248else
cristy8b350f62009-11-15 23:12:43 +000026249 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000026250fi
cristy8b350f62009-11-15 23:12:43 +000026251rm -f core conftest.err conftest.$ac_objext \
26252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026253LIBS=$ac_check_lib_save_LIBS
26254fi
cristy8b350f62009-11-15 23:12:43 +000026255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000026256$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000026257if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026258 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26259fi
26260
26261 fi
26262
26263 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000026264 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000026265if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026266
cristy3ed852e2009-09-05 21:47:34 +000026267fi
26268
cristy3ed852e2009-09-05 21:47:34 +000026269 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000026270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026271$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026272if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026273 $as_echo_n "(cached) " >&6
26274else
26275 ac_check_lib_save_LIBS=$LIBS
26276LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026278/* end confdefs.h. */
26279
26280/* Override any GCC internal prototype to avoid an error.
26281 Use char because int might match the return type of a GCC
26282 builtin and then its argument prototype would still apply. */
26283#ifdef __cplusplus
26284extern "C"
26285#endif
26286char shmat ();
26287int
26288main ()
26289{
26290return shmat ();
26291 ;
26292 return 0;
26293}
26294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026296 ac_cv_lib_ipc_shmat=yes
26297else
cristy8b350f62009-11-15 23:12:43 +000026298 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000026299fi
cristy8b350f62009-11-15 23:12:43 +000026300rm -f core conftest.err conftest.$ac_objext \
26301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026302LIBS=$ac_check_lib_save_LIBS
26303fi
cristy8b350f62009-11-15 23:12:43 +000026304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000026305$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000026306if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026307 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26308fi
26309
26310 fi
26311 fi
26312
26313 # Check for libraries that X11R6 Xt/Xaw programs need.
26314 ac_save_LDFLAGS=$LDFLAGS
26315 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26316 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26317 # check for ICE first), but we must link in the order -lSM -lICE or
26318 # we get undefined symbols. So assume we have SM if we have ICE.
26319 # These have to be linked with before -lX11, unlike the other
26320 # libraries we check for below, so use a different variable.
26321 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000026322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026323$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026324if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026325 $as_echo_n "(cached) " >&6
26326else
26327 ac_check_lib_save_LIBS=$LIBS
26328LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026330/* end confdefs.h. */
26331
26332/* Override any GCC internal prototype to avoid an error.
26333 Use char because int might match the return type of a GCC
26334 builtin and then its argument prototype would still apply. */
26335#ifdef __cplusplus
26336extern "C"
26337#endif
26338char IceConnectionNumber ();
26339int
26340main ()
26341{
26342return IceConnectionNumber ();
26343 ;
26344 return 0;
26345}
26346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026347if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026348 ac_cv_lib_ICE_IceConnectionNumber=yes
26349else
cristy8b350f62009-11-15 23:12:43 +000026350 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000026351fi
cristy8b350f62009-11-15 23:12:43 +000026352rm -f core conftest.err conftest.$ac_objext \
26353 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026354LIBS=$ac_check_lib_save_LIBS
26355fi
cristy8b350f62009-11-15 23:12:43 +000026356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000026357$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000026358if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026359 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26360fi
26361
26362 LDFLAGS=$ac_save_LDFLAGS
26363
26364fi
26365
26366if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026368$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000026370$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026372$as_echo "" >&6; }
26373 LDFLAGS="$LDFLAGS $X_LIBS"
26374 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26375 LIBS="$X11_LIBS $LIBS"
26376 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26377
26378
cristy8b350f62009-11-15 23:12:43 +000026379$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026380
26381 #
26382 # Check for X11 shared memory extension
26383 #
26384 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000026385 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000026386if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026387 have_shmctl='yes'
26388fi
26389
26390 if test "$have_shmctl" != 'yes'; then
26391 PERSIST_LIBS=$LIBS
26392 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000026393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026394/* end confdefs.h. */
26395
26396/* Override any GCC internal prototype to avoid an error.
26397 Use char because int might match the return type of a GCC
26398 builtin and then its argument prototype would still apply. */
26399#ifdef __cplusplus
26400extern "C"
26401#endif
26402char shmctl ();
26403int
26404main ()
26405{
26406return shmctl ();
26407 ;
26408 return 0;
26409}
26410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026411if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026412 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000026413fi
cristy8b350f62009-11-15 23:12:43 +000026414rm -f core conftest.err conftest.$ac_objext \
26415 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026416 LIBS=$PERSIST_LIBS
26417 fi
26418
26419 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026421$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026422if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026423 $as_echo_n "(cached) " >&6
26424else
26425 ac_check_lib_save_LIBS=$LIBS
26426LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026428/* end confdefs.h. */
26429
26430/* Override any GCC internal prototype to avoid an error.
26431 Use char because int might match the return type of a GCC
26432 builtin and then its argument prototype would still apply. */
26433#ifdef __cplusplus
26434extern "C"
26435#endif
26436char XShmAttach ();
26437int
26438main ()
26439{
26440return XShmAttach ();
26441 ;
26442 return 0;
26443}
26444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026445if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026446 ac_cv_lib_Xext_XShmAttach=yes
26447else
cristy8b350f62009-11-15 23:12:43 +000026448 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000026449fi
cristy8b350f62009-11-15 23:12:43 +000026450rm -f core conftest.err conftest.$ac_objext \
26451 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026452LIBS=$ac_check_lib_save_LIBS
26453fi
cristy8b350f62009-11-15 23:12:43 +000026454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000026455$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000026456if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026457 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026458$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026459
26460fi
26461
26462 fi
26463
26464 #
26465 # Check for X11 shape extension
26466 #
cristy8b350f62009-11-15 23:12:43 +000026467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026468$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026469if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026470 $as_echo_n "(cached) " >&6
26471else
26472 ac_check_lib_save_LIBS=$LIBS
26473LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026475/* end confdefs.h. */
26476
26477/* Override any GCC internal prototype to avoid an error.
26478 Use char because int might match the return type of a GCC
26479 builtin and then its argument prototype would still apply. */
26480#ifdef __cplusplus
26481extern "C"
26482#endif
26483char XShapeCombineMask ();
26484int
26485main ()
26486{
26487return XShapeCombineMask ();
26488 ;
26489 return 0;
26490}
26491_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026492if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026493 ac_cv_lib_Xext_XShapeCombineMask=yes
26494else
cristy8b350f62009-11-15 23:12:43 +000026495 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000026496fi
cristy8b350f62009-11-15 23:12:43 +000026497rm -f core conftest.err conftest.$ac_objext \
26498 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026499LIBS=$ac_check_lib_save_LIBS
26500fi
cristy8b350f62009-11-15 23:12:43 +000026501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000026502$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000026503if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026504 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026505$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026506
26507fi
26508
cristy8b350f62009-11-15 23:12:43 +000026509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000026510$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026511if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026512 $as_echo_n "(cached) " >&6
26513else
26514 ac_check_lib_save_LIBS=$LIBS
26515LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026517/* end confdefs.h. */
26518
26519/* Override any GCC internal prototype to avoid an error.
26520 Use char because int might match the return type of a GCC
26521 builtin and then its argument prototype would still apply. */
26522#ifdef __cplusplus
26523extern "C"
26524#endif
26525char XtSetEventDispatcher ();
26526int
26527main ()
26528{
26529return XtSetEventDispatcher ();
26530 ;
26531 return 0;
26532}
26533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026534if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026535 ac_cv_lib_Xt_XtSetEventDispatcher=yes
26536else
cristy8b350f62009-11-15 23:12:43 +000026537 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000026538fi
cristy8b350f62009-11-15 23:12:43 +000026539rm -f core conftest.err conftest.$ac_objext \
26540 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026541LIBS=$ac_check_lib_save_LIBS
26542fi
cristy8b350f62009-11-15 23:12:43 +000026543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000026544$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000026545if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026546 XT_LIBS='-lXt'
26547fi
26548
26549 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26550fi
26551if test "$no_x" != 'yes'; then
26552 have_x='yes'
26553else
26554 have_x='no'
26555fi
cristy73bd4a52010-10-05 11:24:23 +000026556 if test "$have_x" = 'yes'; then
26557 X11_DELEGATE_TRUE=
26558 X11_DELEGATE_FALSE='#'
26559else
26560 X11_DELEGATE_TRUE='#'
26561 X11_DELEGATE_FALSE=
26562fi
26563
cristy3ed852e2009-09-05 21:47:34 +000026564
26565
26566
26567
26568#
26569# Check for ZLIB
26570#
26571
26572# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000026573if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026574 withval=$with_zlib; with_zlib=$withval
26575else
26576 with_zlib='yes'
26577fi
26578
26579
26580if test "$with_zlib" != 'yes'; then
26581 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26582fi
26583
26584have_zlib='no'
26585ZLIB_LIBS=''
26586if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026588$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026590$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026592$as_echo "" >&6; }
26593 ZLIB_LIBS=''
26594 failed=0
26595 passed=0
cristy8b350f62009-11-15 23:12:43 +000026596 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026597if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026598 passed=`expr $passed + 1`
26599else
26600 failed=`expr $failed + 1`
26601fi
26602
26603
cristy8b350f62009-11-15 23:12:43 +000026604 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026605if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026606 passed=`expr $passed + 1`
26607else
26608 failed=`expr $failed + 1`
26609fi
26610
26611
cristy8b350f62009-11-15 23:12:43 +000026612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026613$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026614if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026615 $as_echo_n "(cached) " >&6
26616else
26617 ac_check_lib_save_LIBS=$LIBS
26618LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026620/* end confdefs.h. */
26621
26622/* Override any GCC internal prototype to avoid an error.
26623 Use char because int might match the return type of a GCC
26624 builtin and then its argument prototype would still apply. */
26625#ifdef __cplusplus
26626extern "C"
26627#endif
26628char compress ();
26629int
26630main ()
26631{
26632return compress ();
26633 ;
26634 return 0;
26635}
26636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026637if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026638 ac_cv_lib_z_compress=yes
26639else
cristy8b350f62009-11-15 23:12:43 +000026640 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026641fi
cristy8b350f62009-11-15 23:12:43 +000026642rm -f core conftest.err conftest.$ac_objext \
26643 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026644LIBS=$ac_check_lib_save_LIBS
26645fi
cristy8b350f62009-11-15 23:12:43 +000026646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026648if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026649 passed=`expr $passed + 1`
26650else
26651 failed=`expr $failed + 1`
26652fi
26653
cristy8b350f62009-11-15 23:12:43 +000026654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026655$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026656if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026657 $as_echo_n "(cached) " >&6
26658else
26659 ac_check_lib_save_LIBS=$LIBS
26660LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026662/* end confdefs.h. */
26663
26664/* Override any GCC internal prototype to avoid an error.
26665 Use char because int might match the return type of a GCC
26666 builtin and then its argument prototype would still apply. */
26667#ifdef __cplusplus
26668extern "C"
26669#endif
26670char uncompress ();
26671int
26672main ()
26673{
26674return uncompress ();
26675 ;
26676 return 0;
26677}
26678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026679if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026680 ac_cv_lib_z_uncompress=yes
26681else
cristy8b350f62009-11-15 23:12:43 +000026682 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026683fi
cristy8b350f62009-11-15 23:12:43 +000026684rm -f core conftest.err conftest.$ac_objext \
26685 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026686LIBS=$ac_check_lib_save_LIBS
26687fi
cristy8b350f62009-11-15 23:12:43 +000026688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026689$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026690if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026691 passed=`expr $passed + 1`
26692else
26693 failed=`expr $failed + 1`
26694fi
26695
cristy8b350f62009-11-15 23:12:43 +000026696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026697$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026698if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026699 $as_echo_n "(cached) " >&6
26700else
26701 ac_check_lib_save_LIBS=$LIBS
26702LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026704/* end confdefs.h. */
26705
26706/* Override any GCC internal prototype to avoid an error.
26707 Use char because int might match the return type of a GCC
26708 builtin and then its argument prototype would still apply. */
26709#ifdef __cplusplus
26710extern "C"
26711#endif
26712char deflate ();
26713int
26714main ()
26715{
26716return deflate ();
26717 ;
26718 return 0;
26719}
26720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026721if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026722 ac_cv_lib_z_deflate=yes
26723else
cristy8b350f62009-11-15 23:12:43 +000026724 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026725fi
cristy8b350f62009-11-15 23:12:43 +000026726rm -f core conftest.err conftest.$ac_objext \
26727 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026728LIBS=$ac_check_lib_save_LIBS
26729fi
cristy8b350f62009-11-15 23:12:43 +000026730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026731$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026732if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026733 passed=`expr $passed + 1`
26734else
26735 failed=`expr $failed + 1`
26736fi
26737
cristy8b350f62009-11-15 23:12:43 +000026738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026739$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026740if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026741 $as_echo_n "(cached) " >&6
26742else
26743 ac_check_lib_save_LIBS=$LIBS
26744LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026746/* end confdefs.h. */
26747
26748/* Override any GCC internal prototype to avoid an error.
26749 Use char because int might match the return type of a GCC
26750 builtin and then its argument prototype would still apply. */
26751#ifdef __cplusplus
26752extern "C"
26753#endif
26754char inflate ();
26755int
26756main ()
26757{
26758return inflate ();
26759 ;
26760 return 0;
26761}
26762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026764 ac_cv_lib_z_inflate=yes
26765else
cristy8b350f62009-11-15 23:12:43 +000026766 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026767fi
cristy8b350f62009-11-15 23:12:43 +000026768rm -f core conftest.err conftest.$ac_objext \
26769 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026770LIBS=$ac_check_lib_save_LIBS
26771fi
cristy8b350f62009-11-15 23:12:43 +000026772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026773$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026774if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026775 passed=`expr $passed + 1`
26776else
26777 failed=`expr $failed + 1`
26778fi
26779
cristy8b350f62009-11-15 23:12:43 +000026780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026781$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026782if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026783 $as_echo_n "(cached) " >&6
26784else
26785 ac_check_lib_save_LIBS=$LIBS
26786LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026788/* end confdefs.h. */
26789
26790/* Override any GCC internal prototype to avoid an error.
26791 Use char because int might match the return type of a GCC
26792 builtin and then its argument prototype would still apply. */
26793#ifdef __cplusplus
26794extern "C"
26795#endif
26796char gzseek ();
26797int
26798main ()
26799{
26800return gzseek ();
26801 ;
26802 return 0;
26803}
26804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026805if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026806 ac_cv_lib_z_gzseek=yes
26807else
cristy8b350f62009-11-15 23:12:43 +000026808 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026809fi
cristy8b350f62009-11-15 23:12:43 +000026810rm -f core conftest.err conftest.$ac_objext \
26811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026812LIBS=$ac_check_lib_save_LIBS
26813fi
cristy8b350f62009-11-15 23:12:43 +000026814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026815$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000026816if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026817 passed=`expr $passed + 1`
26818else
26819 failed=`expr $failed + 1`
26820fi
26821
cristy8b350f62009-11-15 23:12:43 +000026822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026823$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026824if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026825 $as_echo_n "(cached) " >&6
26826else
26827 ac_check_lib_save_LIBS=$LIBS
26828LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026830/* end confdefs.h. */
26831
26832/* Override any GCC internal prototype to avoid an error.
26833 Use char because int might match the return type of a GCC
26834 builtin and then its argument prototype would still apply. */
26835#ifdef __cplusplus
26836extern "C"
26837#endif
26838char gztell ();
26839int
26840main ()
26841{
26842return gztell ();
26843 ;
26844 return 0;
26845}
26846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026847if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026848 ac_cv_lib_z_gztell=yes
26849else
cristy8b350f62009-11-15 23:12:43 +000026850 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026851fi
cristy8b350f62009-11-15 23:12:43 +000026852rm -f core conftest.err conftest.$ac_objext \
26853 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026854LIBS=$ac_check_lib_save_LIBS
26855fi
cristy8b350f62009-11-15 23:12:43 +000026856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026857$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000026858if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026859 passed=`expr $passed + 1`
26860else
26861 failed=`expr $failed + 1`
26862fi
26863
cristy8b350f62009-11-15 23:12:43 +000026864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026865$as_echo_n "checking if ZLIB package is complete... " >&6; }
26866 if test $passed -gt 0; then
26867 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026869$as_echo "no -- some components failed test" >&6; }
26870 have_zlib='no (failed tests)'
26871 else
26872 ZLIB_LIBS='-lz'
26873 LIBS="$ZLIB_LIBS $LIBS"
26874
cristy8b350f62009-11-15 23:12:43 +000026875$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026876
cristy8b350f62009-11-15 23:12:43 +000026877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026878$as_echo "yes" >&6; }
26879 have_zlib='yes'
26880 fi
26881 else
cristy8b350f62009-11-15 23:12:43 +000026882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026883$as_echo "no" >&6; }
26884 fi
26885fi
cristy73bd4a52010-10-05 11:24:23 +000026886 if test "$have_zlib" = 'yes'; then
26887 ZLIB_DELEGATE_TRUE=
26888 ZLIB_DELEGATE_FALSE='#'
26889else
26890 ZLIB_DELEGATE_TRUE='#'
26891 ZLIB_DELEGATE_FALSE=
26892fi
26893
cristy3ed852e2009-09-05 21:47:34 +000026894
26895
26896#
26897# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26898#
26899LIB_DL=''
26900if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026902$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026903if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026904 $as_echo_n "(cached) " >&6
26905else
26906 ac_check_lib_save_LIBS=$LIBS
26907LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026909/* end confdefs.h. */
26910
26911/* Override any GCC internal prototype to avoid an error.
26912 Use char because int might match the return type of a GCC
26913 builtin and then its argument prototype would still apply. */
26914#ifdef __cplusplus
26915extern "C"
26916#endif
26917char dlopen ();
26918int
26919main ()
26920{
26921return dlopen ();
26922 ;
26923 return 0;
26924}
26925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026926if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026927 ac_cv_lib_dl_dlopen=yes
26928else
cristy8b350f62009-11-15 23:12:43 +000026929 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026930fi
cristy8b350f62009-11-15 23:12:43 +000026931rm -f core conftest.err conftest.$ac_objext \
26932 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026933LIBS=$ac_check_lib_save_LIBS
26934fi
cristy8b350f62009-11-15 23:12:43 +000026935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026936$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000026937if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026938 LIB_DL='-ldl'
26939fi
26940
26941 LIBS="$LIB_DL $LIBS"
26942fi
26943
26944
26945
26946#
26947# Check for Autotrace delegate library.
26948#
26949
26950# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026951if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026952 withval=$with_autotrace; with_autotrace=$withval
26953else
26954 with_autotrace='no'
26955fi
26956
26957
26958if test "$with_autotrace" != 'yes'; then
26959 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26960fi
26961
26962have_autotrace='no'
26963AUTOTRACE_CFLAGS=""
26964AUTOTRACE_LIBS=""
26965AUTOTRACE_PKG=""
26966if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026968$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026969
26970pkg_failed=no
26971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26972$as_echo_n "checking for AUTOTRACE... " >&6; }
26973
26974if test -n "$AUTOTRACE_CFLAGS"; then
26975 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26976 elif test -n "$PKG_CONFIG"; then
26977 if test -n "$PKG_CONFIG" && \
26978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26979 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26980 ac_status=$?
26981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26982 test $ac_status = 0; }; then
26983 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26984else
26985 pkg_failed=yes
26986fi
26987 else
26988 pkg_failed=untried
26989fi
26990if test -n "$AUTOTRACE_LIBS"; then
26991 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26992 elif test -n "$PKG_CONFIG"; then
26993 if test -n "$PKG_CONFIG" && \
26994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26995 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26996 ac_status=$?
26997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26998 test $ac_status = 0; }; then
26999 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27000else
27001 pkg_failed=yes
27002fi
27003 else
27004 pkg_failed=untried
27005fi
27006
27007
27008
27009if test $pkg_failed = yes; then
27010
27011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27012 _pkg_short_errors_supported=yes
27013else
27014 _pkg_short_errors_supported=no
27015fi
27016 if test $_pkg_short_errors_supported = yes; then
27017 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27018 else
27019 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27020 fi
27021 # Put the nasty error message in config.log where it belongs
27022 echo "$AUTOTRACE_PKG_ERRORS" >&5
27023
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27025$as_echo "no" >&6; }
27026 have_autotrace=no
27027elif test $pkg_failed = untried; then
27028 have_autotrace=no
27029else
27030 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27031 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27033$as_echo "yes" >&6; }
27034 have_autotrace=yes
27035fi
cristy8b350f62009-11-15 23:12:43 +000027036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027037$as_echo "" >&6; }
27038fi
27039
27040if test "$have_autotrace" = 'yes'; then
27041 failed=0
27042
cristy8b350f62009-11-15 23:12:43 +000027043$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027044
27045 if test "$with_modules" = 'no'; then
27046 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27047 fi
27048fi
27049
cristy73bd4a52010-10-05 11:24:23 +000027050 if test "$have_autotrace" = 'yes'; then
27051 AUTOTRACE_DELEGATE_TRUE=
27052 AUTOTRACE_DELEGATE_FALSE='#'
27053else
27054 AUTOTRACE_DELEGATE_TRUE='#'
27055 AUTOTRACE_DELEGATE_FALSE=
27056fi
27057
cristy3ed852e2009-09-05 21:47:34 +000027058
27059
27060
27061
27062#
27063# Check for Display Postscript delegate library.
27064#
27065
27066# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027067if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027068 withval=$with_dps; with_dps=$withval
27069else
27070 with_dps='yes'
27071fi
27072
27073
27074if test "$with_dps" != 'yes'; then
27075 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27076fi
27077
27078have_dps='no'
27079DPS_LIBS=''
27080if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027082$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027084$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027086$as_echo "" >&6; }
27087 failed=0
27088 passed=0
27089 PERSIST_CPPFLAGS="$CPPFLAGS"
27090 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027091 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 +000027092if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027093 passed=`expr $passed + 1`
27094else
27095 failed=`expr $failed + 1`
27096fi
27097
27098
27099 # DPS issues:
27100 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27101 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27102 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27103 # ImageMagick itself doesn't use -lXt.
27104 have_libdps='no'
27105 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027107$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027108if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027109 $as_echo_n "(cached) " >&6
27110else
27111 ac_check_lib_save_LIBS=$LIBS
27112LIBS="-ldps $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 DPSInitialize ();
27123int
27124main ()
27125{
27126return DPSInitialize ();
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_dps_DPSInitialize=yes
27133else
cristy8b350f62009-11-15 23:12:43 +000027134 ac_cv_lib_dps_DPSInitialize=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_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027141$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027142if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 have_libdps='yes'
27144else
27145 have_libdps='no'
27146fi
27147
27148 if test "$have_libdps" != 'yes'; then
27149 # Unset cache variable so we can try again.
27150 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027152$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027153if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027154 $as_echo_n "(cached) " >&6
27155else
27156 ac_check_lib_save_LIBS=$LIBS
27157LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027159/* end confdefs.h. */
27160
27161/* Override any GCC internal prototype to avoid an error.
27162 Use char because int might match the return type of a GCC
27163 builtin and then its argument prototype would still apply. */
27164#ifdef __cplusplus
27165extern "C"
27166#endif
27167char DPSInitialize ();
27168int
27169main ()
27170{
27171return DPSInitialize ();
27172 ;
27173 return 0;
27174}
27175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027176if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027177 ac_cv_lib_dps_DPSInitialize=yes
27178else
cristy8b350f62009-11-15 23:12:43 +000027179 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027180fi
cristy8b350f62009-11-15 23:12:43 +000027181rm -f core conftest.err conftest.$ac_objext \
27182 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027183LIBS=$ac_check_lib_save_LIBS
27184fi
cristy8b350f62009-11-15 23:12:43 +000027185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027186$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027187if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027188 have_libdps='yes'
27189else
27190 have_libdps='no'
27191fi
27192
27193 if test "$have_libdps" = 'yes'; then
27194 LIBDPS_XT='-lXt'
27195 fi
27196 fi
27197 if test "$have_libdps" = 'yes'; then
27198 passed=`expr $passed + 1`
27199 else
27200 failed=`expr $failed + 1`
27201 fi
cristy8b350f62009-11-15 23:12:43 +000027202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027203$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027204if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027205 $as_echo_n "(cached) " >&6
27206else
27207 ac_check_lib_save_LIBS=$LIBS
27208LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027210/* end confdefs.h. */
27211
27212/* Override any GCC internal prototype to avoid an error.
27213 Use char because int might match the return type of a GCC
27214 builtin and then its argument prototype would still apply. */
27215#ifdef __cplusplus
27216extern "C"
27217#endif
27218char XDPSPixelsPerPoint ();
27219int
27220main ()
27221{
27222return XDPSPixelsPerPoint ();
27223 ;
27224 return 0;
27225}
27226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027228 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27229else
cristy8b350f62009-11-15 23:12:43 +000027230 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027231fi
cristy8b350f62009-11-15 23:12:43 +000027232rm -f core conftest.err conftest.$ac_objext \
27233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027234LIBS=$ac_check_lib_save_LIBS
27235fi
cristy8b350f62009-11-15 23:12:43 +000027236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027237$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027238if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027239 passed=`expr $passed + 1`
27240else
27241 failed=`expr $failed + 1`
27242fi
27243
cristy8b350f62009-11-15 23:12:43 +000027244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027245$as_echo_n "checking if DPS package is complete... " >&6; }
27246 if test $passed -gt 0; then
27247 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027249$as_echo "no -- some components failed test" >&6; }
27250 have_dps='no (failed tests)'
27251 CPPFLAGS="$PERSIST_CPPFLAGS"
27252 else
27253 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27254 LIBS="$DPS_LIBS $LIBS"
27255
cristy8b350f62009-11-15 23:12:43 +000027256$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027257
cristy8b350f62009-11-15 23:12:43 +000027258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo "yes" >&6; }
27260 have_dps='yes'
27261 fi
27262 else
cristy8b350f62009-11-15 23:12:43 +000027263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027264$as_echo "no" >&6; }
27265 CPPFLAGS=$PERSIST_CPPFLAGS
27266 fi
27267fi
cristy73bd4a52010-10-05 11:24:23 +000027268 if test "$have_dps" = 'yes'; then
27269 DPS_DELEGATE_TRUE=
27270 DPS_DELEGATE_FALSE='#'
27271else
27272 DPS_DELEGATE_TRUE='#'
27273 DPS_DELEGATE_FALSE=
27274fi
27275
cristy3ed852e2009-09-05 21:47:34 +000027276
27277
27278
27279#
27280# Check for DJVU delegate library.
27281#
27282
27283# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000027284if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027285 withval=$with_djvu; with_djvu=$withval
27286else
27287 with_djvu='yes'
27288fi
27289
27290
27291if test "$with_djvu" != 'yes'; then
27292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27293fi
27294
27295have_djvu='no'
27296DJVU_LIBS=''
27297if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027299$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000027301$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027303$as_echo "" >&6; }
27304 failed=0
27305 passed=0
cristy8b350f62009-11-15 23:12:43 +000027306 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 +000027307if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027308 passed=`expr $passed + 1`
27309else
27310 failed=`expr $failed + 1`
27311fi
27312
27313
cristy8b350f62009-11-15 23:12:43 +000027314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000027315$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027316if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027317 $as_echo_n "(cached) " >&6
27318else
27319 ac_check_lib_save_LIBS=$LIBS
27320LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027322/* end confdefs.h. */
27323
27324/* Override any GCC internal prototype to avoid an error.
27325 Use char because int might match the return type of a GCC
27326 builtin and then its argument prototype would still apply. */
27327#ifdef __cplusplus
27328extern "C"
27329#endif
27330char ddjvu_context_create ();
27331int
27332main ()
27333{
27334return ddjvu_context_create ();
27335 ;
27336 return 0;
27337}
27338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027340 ac_cv_lib_djvulibre_ddjvu_context_create=yes
27341else
cristy8b350f62009-11-15 23:12:43 +000027342 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000027343fi
cristy8b350f62009-11-15 23:12:43 +000027344rm -f core conftest.err conftest.$ac_objext \
27345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027346LIBS=$ac_check_lib_save_LIBS
27347fi
cristy8b350f62009-11-15 23:12:43 +000027348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000027350if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 passed=`expr $passed + 1`
27352else
27353 failed=`expr $failed + 1`
27354fi
27355
cristy8b350f62009-11-15 23:12:43 +000027356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027357$as_echo_n "checking if DJVU package is complete... " >&6; }
27358 if test $passed -gt 0; then
27359 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo "no -- some components failed test" >&6; }
27362 have_djvu='no (failed tests)'
27363 else
27364 DJVU_LIBS='-ldjvulibre'
27365 LIBS="$DJVU_LIBS $LIBS"
27366
cristy8b350f62009-11-15 23:12:43 +000027367$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027368
cristy8b350f62009-11-15 23:12:43 +000027369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027370$as_echo "yes" >&6; }
27371 have_djvu='yes'
27372 fi
27373 else
cristy8b350f62009-11-15 23:12:43 +000027374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027375$as_echo "no" >&6; }
27376 fi
27377fi
cristy73bd4a52010-10-05 11:24:23 +000027378 if test "$have_djvu" = 'yes'; then
27379 DJVU_DELEGATE_TRUE=
27380 DJVU_DELEGATE_FALSE='#'
27381else
27382 DJVU_DELEGATE_TRUE='#'
27383 DJVU_DELEGATE_FALSE=
27384fi
27385
cristy3ed852e2009-09-05 21:47:34 +000027386
27387
27388
27389#
cristy430a7312010-01-21 20:44:04 +000027390# Set DejaVu font directory.
27391#
27392
27393# Check whether --with-dejavu-font-dir was given.
27394if test "${with_dejavu_font_dir+set}" = set; then :
27395 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27396else
27397 with_dejavu_font_dir='default'
27398fi
27399
27400
27401if test "$with_dejavu_font_dir" != 'default'; then
27402 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27403fi
27404
27405
27406#
cristy3ed852e2009-09-05 21:47:34 +000027407# Check for FFTW delegate library.
27408#
27409
27410# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000027411if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027412 withval=$with_fftw; with_fftw=$withval
27413else
27414 with_fftw='yes'
27415fi
27416
27417
27418if test "$with_fftw" != 'yes'; then
27419 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27420fi
27421
27422have_fftw='no'
27423FFTW_LIBS=''
27424if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027426$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000027428$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027430$as_echo "" >&6; }
27431 failed=0
27432 passed=0
cristy8b350f62009-11-15 23:12:43 +000027433 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027434if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027435 passed=`expr $passed + 1`
27436else
27437 failed=`expr $failed + 1`
27438fi
27439
27440
cristy8b350f62009-11-15 23:12:43 +000027441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000027442$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027443if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027444 $as_echo_n "(cached) " >&6
27445else
27446 ac_check_lib_save_LIBS=$LIBS
27447LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027449/* end confdefs.h. */
27450
27451/* Override any GCC internal prototype to avoid an error.
27452 Use char because int might match the return type of a GCC
27453 builtin and then its argument prototype would still apply. */
27454#ifdef __cplusplus
27455extern "C"
27456#endif
27457char fftw_execute ();
27458int
27459main ()
27460{
27461return fftw_execute ();
27462 ;
27463 return 0;
27464}
27465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027466if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027467 ac_cv_lib_fftw3_fftw_execute=yes
27468else
cristy8b350f62009-11-15 23:12:43 +000027469 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000027470fi
cristy8b350f62009-11-15 23:12:43 +000027471rm -f core conftest.err conftest.$ac_objext \
27472 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027473LIBS=$ac_check_lib_save_LIBS
27474fi
cristy8b350f62009-11-15 23:12:43 +000027475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000027476$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000027477if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027478 passed=`expr $passed + 1`
27479else
27480 failed=`expr $failed + 1`
27481fi
27482
cristy8b350f62009-11-15 23:12:43 +000027483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027484$as_echo_n "checking if FFTW package is complete... " >&6; }
27485 if test $passed -gt 0; then
27486 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027488$as_echo "no -- some components failed test" >&6; }
27489 have_fftw='no (failed tests)'
27490 else
27491 FFTW_LIBS='-lfftw3'
27492 LIBS="$FFTW_LIBS $LIBS"
27493
cristy8b350f62009-11-15 23:12:43 +000027494$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027495
cristy8b350f62009-11-15 23:12:43 +000027496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027497$as_echo "yes" >&6; }
27498 have_fftw='yes'
27499 fi
27500 else
cristy8b350f62009-11-15 23:12:43 +000027501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027502$as_echo "no" >&6; }
27503 fi
27504fi
cristy73bd4a52010-10-05 11:24:23 +000027505 if test "$have_fftw" = 'yes'; then
27506 FFTW_DELEGATE_TRUE=
27507 FFTW_DELEGATE_FALSE='#'
27508else
27509 FFTW_DELEGATE_TRUE='#'
27510 FFTW_DELEGATE_FALSE=
27511fi
27512
cristy3ed852e2009-09-05 21:47:34 +000027513
27514
27515
27516#
27517# Check for FlashPIX delegate library.
27518#
27519
27520# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000027521if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027522 withval=$with_fpx; with_fpx=$withval
27523else
27524 with_fpx='yes'
27525fi
27526
27527
27528if test "$with_fpx" != 'yes'; then
27529 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27530fi
27531
27532have_fpx='no'
27533FPX_LIBS=''
27534if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000027538$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027540$as_echo "" >&6; }
27541 failed=0
27542 passed=0
27543 ac_ext=cpp
27544ac_cpp='$CXXCPP $CPPFLAGS'
27545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27548
27549
cristy8b350f62009-11-15 23:12:43 +000027550ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027551if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027552 passed=`expr $passed + 1`
27553else
27554 failed=`expr $failed + 1`
27555fi
27556
27557
cristy8b350f62009-11-15 23:12:43 +000027558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000027559$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027560if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027561 $as_echo_n "(cached) " >&6
27562else
27563 ac_check_lib_save_LIBS=$LIBS
27564LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027566/* end confdefs.h. */
27567
27568/* Override any GCC internal prototype to avoid an error.
27569 Use char because int might match the return type of a GCC
27570 builtin and then its argument prototype would still apply. */
27571#ifdef __cplusplus
27572extern "C"
27573#endif
27574char FPX_OpenImageByFilename ();
27575int
27576main ()
27577{
27578return FPX_OpenImageByFilename ();
27579 ;
27580 return 0;
27581}
27582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027583if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027584 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27585else
cristy8b350f62009-11-15 23:12:43 +000027586 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000027587fi
cristy8b350f62009-11-15 23:12:43 +000027588rm -f core conftest.err conftest.$ac_objext \
27589 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027590LIBS=$ac_check_lib_save_LIBS
27591fi
cristy8b350f62009-11-15 23:12:43 +000027592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027593$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000027594if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027595 passed=`expr $passed + 1`
27596else
27597 failed=`expr $failed + 1`
27598fi
27599
27600 ac_ext=c
27601ac_cpp='$CPP $CPPFLAGS'
27602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27604ac_compiler_gnu=$ac_cv_c_compiler_gnu
27605
cristy8b350f62009-11-15 23:12:43 +000027606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027607$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27608 if test $passed -gt 0; then
27609 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027611$as_echo "no -- some components failed test" >&6; }
27612 have_fpx='no (failed tests)'
27613 else
27614 FPX_LIBS='-lfpx'
27615
cristy8b350f62009-11-15 23:12:43 +000027616$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027617
cristy8b350f62009-11-15 23:12:43 +000027618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027619$as_echo "yes" >&6; }
27620 have_fpx='yes'
27621 PERLMAINCC="$CXX"
27622 fi
27623 else
cristy8b350f62009-11-15 23:12:43 +000027624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027625$as_echo "no" >&6; }
27626 fi
27627fi
cristy73bd4a52010-10-05 11:24:23 +000027628 if test "$have_fpx" = 'yes'; then
27629 FPX_DELEGATE_TRUE=
27630 FPX_DELEGATE_FALSE='#'
27631else
27632 FPX_DELEGATE_TRUE='#'
27633 FPX_DELEGATE_FALSE=
27634fi
27635
cristy3ed852e2009-09-05 21:47:34 +000027636
27637
27638
27639#
27640# Check for fontconfig delegate library.
27641#
27642
27643# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027644if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027645 withval=$with_fontconfig; with_fontconfig=$withval
27646else
27647 with_fontconfig=$have_x
27648fi
27649
27650
27651if test "$with_fontconfig" != 'yes'; then
27652 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27653fi
27654
27655have_fontconfig='no'
27656FONTCONFIG_CFLAGS=""
27657FONTCONFIG_LIBS=""
27658FONTCONFIG_PKG=""
27659if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027661$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027662
27663pkg_failed=no
27664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27665$as_echo_n "checking for FONTCONFIG... " >&6; }
27666
27667if test -n "$FONTCONFIG_CFLAGS"; then
27668 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27669 elif test -n "$PKG_CONFIG"; then
27670 if test -n "$PKG_CONFIG" && \
27671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27672 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27673 ac_status=$?
27674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27675 test $ac_status = 0; }; then
27676 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27677else
27678 pkg_failed=yes
27679fi
27680 else
27681 pkg_failed=untried
27682fi
27683if test -n "$FONTCONFIG_LIBS"; then
27684 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27685 elif test -n "$PKG_CONFIG"; then
27686 if test -n "$PKG_CONFIG" && \
27687 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27688 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27689 ac_status=$?
27690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27691 test $ac_status = 0; }; then
27692 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27693else
27694 pkg_failed=yes
27695fi
27696 else
27697 pkg_failed=untried
27698fi
27699
27700
27701
27702if test $pkg_failed = yes; then
27703
27704if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27705 _pkg_short_errors_supported=yes
27706else
27707 _pkg_short_errors_supported=no
27708fi
27709 if test $_pkg_short_errors_supported = yes; then
27710 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27711 else
27712 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27713 fi
27714 # Put the nasty error message in config.log where it belongs
27715 echo "$FONTCONFIG_PKG_ERRORS" >&5
27716
27717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27718$as_echo "no" >&6; }
27719 have_fontconfig=no
27720elif test $pkg_failed = untried; then
27721 have_fontconfig=no
27722else
27723 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27724 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27726$as_echo "yes" >&6; }
27727 have_fontconfig=yes
27728fi
cristy8b350f62009-11-15 23:12:43 +000027729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027730$as_echo "" >&6; }
27731fi
27732
27733if test "$have_fontconfig" = 'yes'; then
27734
cristy8b350f62009-11-15 23:12:43 +000027735$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027736
cristyd09bcf92010-03-25 03:04:45 +000027737 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027738 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027739 fi
cristy3ed852e2009-09-05 21:47:34 +000027740fi
27741
cristy73bd4a52010-10-05 11:24:23 +000027742 if test "$have_fontconfig" = 'yes'; then
27743 FONTCONFIG_DELEGATE_TRUE=
27744 FONTCONFIG_DELEGATE_FALSE='#'
27745else
27746 FONTCONFIG_DELEGATE_TRUE='#'
27747 FONTCONFIG_DELEGATE_FALSE=
27748fi
27749
cristy3ed852e2009-09-05 21:47:34 +000027750
27751
27752
27753
27754#
27755# Check for freetype delegate library.
27756#
27757
27758# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027759if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027760 withval=$with_freetype; with_freetype=$withval
27761else
27762 with_freetype='yes'
27763fi
27764
27765
27766
27767if test "$with_freetype" != 'yes'; then
27768 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27769fi
27770
27771have_freetype='no'
27772FREETYPE_LIBS=''
27773if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027775$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027777$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027779$as_echo "" >&6; }
27780 failed=0
27781 passed=0
cristy66291112009-10-03 22:44:36 +000027782 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027783 PERSIST_CPPFLAGS="$CPPFLAGS"
27784 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27785 :
27786 else
27787 freetype_config=''
27788 for ac_prog in freetype-config
27789do
27790 # Extract the first word of "$ac_prog", so it can be a program name with args.
27791set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027794if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027795 $as_echo_n "(cached) " >&6
27796else
27797 if test -n "$freetype_config"; then
27798 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27799else
27800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27801for as_dir in $PATH
27802do
27803 IFS=$as_save_IFS
27804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27807 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027809 break 2
27810 fi
27811done
cristy8b350f62009-11-15 23:12:43 +000027812 done
cristy3ed852e2009-09-05 21:47:34 +000027813IFS=$as_save_IFS
27814
27815fi
27816fi
27817freetype_config=$ac_cv_prog_freetype_config
27818if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027820$as_echo "$freetype_config" >&6; }
27821else
cristy8b350f62009-11-15 23:12:43 +000027822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027823$as_echo "no" >&6; }
27824fi
27825
27826
27827 test -n "$freetype_config" && break
27828done
27829 if test -n "$freetype_config"; then
27830 freetype_cflags=`$freetype_config --cflags`
27831 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027832 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027833 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27834 fi
27835 fi
27836
27837 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027839$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027840if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027841 $as_echo_n "(cached) " >&6
27842else
27843 ac_check_lib_save_LIBS=$LIBS
27844LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027846/* end confdefs.h. */
27847
27848/* Override any GCC internal prototype to avoid an error.
27849 Use char because int might match the return type of a GCC
27850 builtin and then its argument prototype would still apply. */
27851#ifdef __cplusplus
27852extern "C"
27853#endif
27854char FT_Init_FreeType ();
27855int
27856main ()
27857{
27858return FT_Init_FreeType ();
27859 ;
27860 return 0;
27861}
27862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027863if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027864 ac_cv_lib_freetype_FT_Init_FreeType=yes
27865else
cristy8b350f62009-11-15 23:12:43 +000027866 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027867fi
cristy8b350f62009-11-15 23:12:43 +000027868rm -f core conftest.err conftest.$ac_objext \
27869 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027870LIBS=$ac_check_lib_save_LIBS
27871fi
cristy8b350f62009-11-15 23:12:43 +000027872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027873$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000027874if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027875 FREETYPE_LIBS='-lfreetype'
27876fi
27877
27878 if test "$FREETYPE_LIBS" != ''; then
27879 passed=`expr $passed + 1`
27880 else
27881 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027882 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027883 fi
27884 fi
27885
cristy8b350f62009-11-15 23:12:43 +000027886 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027887if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027888 FT2BUILD_H='#include <ft2build.h>'
27889else
27890 ft2build=''
27891fi
27892
27893
cristy8b350f62009-11-15 23:12:43 +000027894 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27895"
cristyda16f162011-02-19 23:52:17 +000027896if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027897 have_freetype_h='yes'
27898else
27899 have_freetype_h='no'
27900fi
27901
27902
27903 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27904 passed=`expr $passed + 1`
27905 else
27906 failed=`expr $failed + 1`
27907 CPPFLAGS="$PERSIST_CPPFLAGS"
27908 fi
27909
cristy8b350f62009-11-15 23:12:43 +000027910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027911$as_echo_n "checking if FreeType package is complete... " >&6; }
27912 if test $passed -gt 0; then
27913 if test $failed -gt 0; then
27914 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027916$as_echo "no -- some components failed test" >&6; }
27917 have_freetype='no (failed tests)'
27918 else
27919 LIBS="$FREETYPE_LIBS $LIBS"
27920
cristy8b350f62009-11-15 23:12:43 +000027921$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027922
27923 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27924
cristy8b350f62009-11-15 23:12:43 +000027925$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027926
27927 fi
cristy8b350f62009-11-15 23:12:43 +000027928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027929$as_echo "yes" >&6; }
27930 have_freetype='yes'
27931 fi
27932 else
cristy8b350f62009-11-15 23:12:43 +000027933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027934$as_echo "no" >&6; }
27935 fi
27936fi
cristy73bd4a52010-10-05 11:24:23 +000027937 if test "$have_freetype" = 'yes'; then
27938 FREETYPE_DELEGATE_TRUE=
27939 FREETYPE_DELEGATE_FALSE='#'
27940else
27941 FREETYPE_DELEGATE_TRUE='#'
27942 FREETYPE_DELEGATE_FALSE=
27943fi
27944
cristy3ed852e2009-09-05 21:47:34 +000027945
27946
27947
27948
27949#
27950# Check for Ghostscript library or framework.
27951#
27952# Test for iapi.h & test for gsapi_new_instance in -lgs
27953# or -framework Ghostscript
27954
27955
27956# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027957if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027958 withval=$with_gslib; with_gslib=$withval
27959else
27960 with_gslib='no'
27961fi
27962
27963
cristyb7931f12009-09-25 10:22:21 +000027964gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027965if test "$with_gslib" != 'yes'; then
27966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27967fi
27968
27969have_gslib='no'
27970GS_LIBS=''
27971if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027973$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027975$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027977$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027978 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027979 failed=0
27980 passed=0
cristy8b350f62009-11-15 23:12:43 +000027981 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 +000027982if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 passed=`expr $passed + 1`
27984else
27985 failed=`expr $failed + 1`
27986fi
27987
27988
cristy8b350f62009-11-15 23:12:43 +000027989 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 +000027990if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027991 passed=`expr $passed + 1`
27992else
27993 failed=`expr $failed + 1`
27994fi
27995
27996
cristy73bd4a52010-10-05 11:24:23 +000027997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27998$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027999if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028000 $as_echo_n "(cached) " >&6
28001else
28002 ac_check_framework_save_LIBS=$LIBS
28003LIBS="-framework Ghostscript $LIBS"
28004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28005/* end confdefs.h. */
28006
28007/* Override any GCC internal prototype to avoid an error.
28008 Use char because int might match the return type of a GCC
28009 builtin and then its argument prototype would still apply. */
28010#ifdef __cplusplus
28011extern "C"
28012#endif
28013char gsapi_new_instance ();
28014int
28015main ()
28016{
28017return gsapi_new_instance ();
28018 ;
28019 return 0;
28020}
28021_ACEOF
28022if ac_fn_c_try_link "$LINENO"; then :
28023 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28024else
28025 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28026fi
28027rm -f core conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
28029LIBS=$ac_check_framework_save_LIBS
28030fi
28031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28032$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28033if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28034 framework=`expr $framework + 1`
28035else
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028037$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028038if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028039 $as_echo_n "(cached) " >&6
28040else
28041 ac_check_lib_save_LIBS=$LIBS
28042LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028044/* end confdefs.h. */
28045
28046/* Override any GCC internal prototype to avoid an error.
28047 Use char because int might match the return type of a GCC
28048 builtin and then its argument prototype would still apply. */
28049#ifdef __cplusplus
28050extern "C"
28051#endif
28052char gsapi_new_instance ();
28053int
28054main ()
28055{
28056return gsapi_new_instance ();
28057 ;
28058 return 0;
28059}
28060_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028061if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 ac_cv_lib_gs_gsapi_new_instance=yes
28063else
cristy8b350f62009-11-15 23:12:43 +000028064 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028065fi
cristy8b350f62009-11-15 23:12:43 +000028066rm -f core conftest.err conftest.$ac_objext \
28067 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028068LIBS=$ac_check_lib_save_LIBS
28069fi
cristy8b350f62009-11-15 23:12:43 +000028070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028071$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028072if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028073 passed=`expr $passed + 1`
28074else
28075 failed=`expr $failed + 1`
28076fi
cristy73bd4a52010-10-05 11:24:23 +000028077
28078fi
cristy8b350f62009-11-15 23:12:43 +000028079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028080$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28081 if test $passed -gt 0; then
28082 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028084$as_echo "no -- some components failed test" >&6; }
28085 have_gslib='no (failed tests)'
28086 else
28087 if test $framework -gt 0; then
28088 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028089 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028091$as_echo "yes, using framework." >&6; }
28092 else
cristy8b350f62009-11-15 23:12:43 +000028093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028094$as_echo "yes, using library." >&6; }
28095 GS_LIBS='-lgs'
28096 fi
28097 LIBS="$GS_LIBS $LIBS"
28098
cristy8b350f62009-11-15 23:12:43 +000028099$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028100
28101 have_gslib='yes'
28102 fi
28103 else
cristy8b350f62009-11-15 23:12:43 +000028104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028105$as_echo "no" >&6; }
28106 fi
28107fi
cristy73bd4a52010-10-05 11:24:23 +000028108 if test "$have_gslib" = 'yes'; then
28109 GS_DELEGATE_TRUE=
28110 GS_DELEGATE_FALSE='#'
28111else
28112 GS_DELEGATE_TRUE='#'
28113 GS_DELEGATE_FALSE=
28114fi
28115
cristy3ed852e2009-09-05 21:47:34 +000028116
28117
28118# Set default font search path
28119
28120# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028121if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028122 withval=$with_fontpath; with_fontpath=$withval
28123else
28124 with_fontpath=''
28125fi
28126
28127
28128if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28129 with_fontpath=''
28130else
28131
28132cat >>confdefs.h <<_ACEOF
28133#define MAGICK_FONT_PATH "$with_fontpath"
28134_ACEOF
28135
28136fi
28137if test "$with_fontpath=" != ''; then
28138 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28139fi
28140
28141# Set Ghostscript font directory
28142
28143# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028144if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028145 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28146else
28147 with_gs_font_dir='default'
28148fi
28149
28150
28151if test "$with_gs_font_dir" != 'default'; then
28152 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28153fi
28154
28155
28156#
28157# Check for GVC delegate library.
28158#
28159
28160# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028161if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028162 withval=$with_gvc; with_gvc=$withval
28163else
28164 with_gvc='yes'
28165fi
28166
28167
28168if test "$with_gvc" != 'yes'; then
28169 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28170fi
28171
28172GVC_PKG=""
28173if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028175$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028176
28177pkg_failed=no
28178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28179$as_echo_n "checking for GVC... " >&6; }
28180
28181if test -n "$GVC_CFLAGS"; then
28182 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28183 elif test -n "$PKG_CONFIG"; then
28184 if test -n "$PKG_CONFIG" && \
28185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28186 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28187 ac_status=$?
28188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28189 test $ac_status = 0; }; then
28190 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28191else
28192 pkg_failed=yes
28193fi
28194 else
28195 pkg_failed=untried
28196fi
28197if test -n "$GVC_LIBS"; then
28198 pkg_cv_GVC_LIBS="$GVC_LIBS"
28199 elif test -n "$PKG_CONFIG"; then
28200 if test -n "$PKG_CONFIG" && \
28201 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28202 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28203 ac_status=$?
28204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28205 test $ac_status = 0; }; then
28206 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28207else
28208 pkg_failed=yes
28209fi
28210 else
28211 pkg_failed=untried
28212fi
28213
28214
28215
28216if test $pkg_failed = yes; then
28217
28218if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28219 _pkg_short_errors_supported=yes
28220else
28221 _pkg_short_errors_supported=no
28222fi
28223 if test $_pkg_short_errors_supported = yes; then
28224 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28225 else
28226 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28227 fi
28228 # Put the nasty error message in config.log where it belongs
28229 echo "$GVC_PKG_ERRORS" >&5
28230
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28232$as_echo "no" >&6; }
28233 have_gvc=no
28234elif test $pkg_failed = untried; then
28235 have_gvc=no
28236else
28237 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28238 GVC_LIBS=$pkg_cv_GVC_LIBS
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28240$as_echo "yes" >&6; }
28241 have_gvc=yes
28242fi
cristy8b350f62009-11-15 23:12:43 +000028243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028244$as_echo "" >&6; }
28245fi
28246
28247if test "$have_gvc" = 'yes'; then
28248
cristy8b350f62009-11-15 23:12:43 +000028249$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028250
28251 if test "$with_modules" = 'no'; then
28252 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28253 fi
28254fi
28255
cristy73bd4a52010-10-05 11:24:23 +000028256 if test "$have_gvc" = 'yes'; then
28257 GVC_DELEGATE_TRUE=
28258 GVC_DELEGATE_FALSE='#'
28259else
28260 GVC_DELEGATE_TRUE='#'
28261 GVC_DELEGATE_FALSE=
28262fi
28263
cristy3ed852e2009-09-05 21:47:34 +000028264
28265
28266
28267
28268#
28269# Check for JBIG delegate library.
28270#
28271
28272
28273# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028274if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028275 withval=$with_jbig; with_jbig=$withval
28276else
28277 with_jbig='yes'
28278fi
28279
28280
28281have_jbig='no'
28282JBIG_LIBS=''
28283if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028285$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028287$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028289$as_echo "" >&6; }
28290 failed=0
28291 passed=0
cristy8b350f62009-11-15 23:12:43 +000028292 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028293if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028294 passed=`expr $passed + 1`
28295else
28296 failed=`expr $failed + 1`
28297fi
28298
28299
cristy8b350f62009-11-15 23:12:43 +000028300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000028301$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028302if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028303 $as_echo_n "(cached) " >&6
28304else
28305 ac_check_lib_save_LIBS=$LIBS
28306LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028308/* end confdefs.h. */
28309
28310/* Override any GCC internal prototype to avoid an error.
28311 Use char because int might match the return type of a GCC
28312 builtin and then its argument prototype would still apply. */
28313#ifdef __cplusplus
28314extern "C"
28315#endif
28316char jbg_dec_init ();
28317int
28318main ()
28319{
28320return jbg_dec_init ();
28321 ;
28322 return 0;
28323}
28324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028325if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028326 ac_cv_lib_jbig_jbg_dec_init=yes
28327else
cristy8b350f62009-11-15 23:12:43 +000028328 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000028329fi
cristy8b350f62009-11-15 23:12:43 +000028330rm -f core conftest.err conftest.$ac_objext \
28331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028332LIBS=$ac_check_lib_save_LIBS
28333fi
cristy8b350f62009-11-15 23:12:43 +000028334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000028335$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000028336if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028337 passed=`expr $passed + 1`
28338else
28339 failed=`expr $failed + 1`
28340fi
28341
cristy8b350f62009-11-15 23:12:43 +000028342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028343$as_echo_n "checking if JBIG package is complete... " >&6; }
28344 if test $passed -gt 0; then
28345 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028347$as_echo "no -- some components failed test" >&6; }
28348 have_jbig='no (failed tests)'
28349 else
28350 JBIG_LIBS='-ljbig'
28351 LIBS="$JBIG_LIBS $LIBS"
28352
cristy8b350f62009-11-15 23:12:43 +000028353$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028354
cristy8b350f62009-11-15 23:12:43 +000028355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028356$as_echo "yes" >&6; }
28357 have_jbig='yes'
28358 fi
28359 else
cristy8b350f62009-11-15 23:12:43 +000028360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028361$as_echo "no" >&6; }
28362 fi
28363fi
cristy73bd4a52010-10-05 11:24:23 +000028364 if test "$have_jbig" = 'yes'; then
28365 JBIG_DELEGATE_TRUE=
28366 JBIG_DELEGATE_FALSE='#'
28367else
28368 JBIG_DELEGATE_TRUE='#'
28369 JBIG_DELEGATE_FALSE=
28370fi
28371
cristy3ed852e2009-09-05 21:47:34 +000028372
28373
28374
28375#
28376# Check for JPEG delegate library.
28377#
28378
28379# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000028380if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028381 withval=$with_jpeg; with_jpeg=$withval
28382else
28383 with_jpeg='yes'
28384fi
28385
28386
28387if test "$with_jpeg" != 'yes'; then
28388 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28389fi
28390
28391have_jpeg='no'
28392JPEG_LIBS=''
28393if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028395$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028397$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028399$as_echo "" >&6; }
28400 failed=0
28401 passed=0
cristy8b350f62009-11-15 23:12:43 +000028402 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028403if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028404 passed=`expr $passed + 1`
28405else
28406 failed=`expr $failed + 1`
28407fi
28408
28409
cristy8b350f62009-11-15 23:12:43 +000028410 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028411if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028412 passed=`expr $passed + 1`
28413else
28414 failed=`expr $failed + 1`
28415fi
28416
28417
cristy8b350f62009-11-15 23:12:43 +000028418 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028419if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028420 passed=`expr $passed + 1`
28421else
28422 failed=`expr $failed + 1`
28423fi
28424
28425
cristy8b350f62009-11-15 23:12:43 +000028426 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028427if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028428 passed=`expr $passed + 1`
28429else
28430 failed=`expr $failed + 1`
28431fi
28432
28433
cristy8b350f62009-11-15 23:12:43 +000028434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000028435$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028436if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028437 $as_echo_n "(cached) " >&6
28438else
28439 ac_check_lib_save_LIBS=$LIBS
28440LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028442/* end confdefs.h. */
28443
28444/* Override any GCC internal prototype to avoid an error.
28445 Use char because int might match the return type of a GCC
28446 builtin and then its argument prototype would still apply. */
28447#ifdef __cplusplus
28448extern "C"
28449#endif
28450char jpeg_read_header ();
28451int
28452main ()
28453{
28454return jpeg_read_header ();
28455 ;
28456 return 0;
28457}
28458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028459if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028460 ac_cv_lib_jpeg_jpeg_read_header=yes
28461else
cristy8b350f62009-11-15 23:12:43 +000028462 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000028463fi
cristy8b350f62009-11-15 23:12:43 +000028464rm -f core conftest.err conftest.$ac_objext \
28465 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028466LIBS=$ac_check_lib_save_LIBS
28467fi
cristy8b350f62009-11-15 23:12:43 +000028468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000028469$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000028470if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028471 passed=`expr $passed + 1`
28472else
28473 failed=`expr $failed + 1`
28474fi
28475
28476
28477# Test for compatible JPEG library
28478if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000028480$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028481if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028482 $as_echo_n "(cached) " >&6
28483else
cristy8b350f62009-11-15 23:12:43 +000028484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028485/* end confdefs.h. */
28486#include <stdio.h>
28487#include <stdlib.h>
28488#include <jpeglib.h>
28489
28490int
28491main ()
28492{
28493
28494#if JPEG_LIB_VERSION < 62
28495#error IJG JPEG library must be version 6b or newer!
28496#endif
28497return 0;
28498
28499 ;
28500 return 0;
28501}
28502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028503if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028504 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28505else
cristy8b350f62009-11-15 23:12:43 +000028506 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028507fi
cristy3ed852e2009-09-05 21:47:34 +000028508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28509fi
cristy8b350f62009-11-15 23:12:43 +000028510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000028511$as_echo "$ac_cv_jpeg_version_ok" >&6; }
28512fi
cristy8b350f62009-11-15 23:12:43 +000028513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028514$as_echo_n "checking if JPEG package is complete... " >&6; }
28515 if test $passed -gt 0; then
28516 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028518$as_echo "no -- some components failed test" >&6; }
28519 have_jpeg='no (failed tests)'
28520 else
28521 JPEG_LIBS='-ljpeg'
28522 LIBS="$JPEG_LIBS $LIBS"
28523
cristy8b350f62009-11-15 23:12:43 +000028524$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028525
cristy8b350f62009-11-15 23:12:43 +000028526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028527$as_echo "yes" >&6; }
28528 have_jpeg='yes'
28529 fi
28530 else
cristy8b350f62009-11-15 23:12:43 +000028531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532$as_echo "no" >&6; }
28533 fi
28534fi
cristy73bd4a52010-10-05 11:24:23 +000028535 if test "$have_jpeg" = 'yes'; then
28536 JPEG_DELEGATE_TRUE=
28537 JPEG_DELEGATE_FALSE='#'
28538else
28539 JPEG_DELEGATE_TRUE='#'
28540 JPEG_DELEGATE_FALSE=
28541fi
28542
cristy3ed852e2009-09-05 21:47:34 +000028543
28544
28545
28546#
28547# Check for JPEG Version 2 delegate library.
28548#
28549
28550# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000028551if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028552 withval=$with_jp2; with_jp2=$withval
28553else
28554 with_jp2='yes'
28555fi
28556
28557
28558if test "$with_jp2" != 'yes'; then
28559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28560fi
28561
28562have_jp2='no'
28563JP2_LIBS=''
28564if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028566$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028568$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028570$as_echo "" >&6; }
28571 failed=0
28572 passed=0
cristy8b350f62009-11-15 23:12:43 +000028573 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 +000028574if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028575 passed=`expr $passed + 1`
28576else
28577 failed=`expr $failed + 1`
28578fi
28579
28580
cristy8b350f62009-11-15 23:12:43 +000028581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000028582$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028583if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028584 $as_echo_n "(cached) " >&6
28585else
28586 ac_check_lib_save_LIBS=$LIBS
28587LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028589/* end confdefs.h. */
28590
28591/* Override any GCC internal prototype to avoid an error.
28592 Use char because int might match the return type of a GCC
28593 builtin and then its argument prototype would still apply. */
28594#ifdef __cplusplus
28595extern "C"
28596#endif
28597char jas_stream_fopen ();
28598int
28599main ()
28600{
28601return jas_stream_fopen ();
28602 ;
28603 return 0;
28604}
28605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028606if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028607 ac_cv_lib_jasper_jas_stream_fopen=yes
28608else
cristy8b350f62009-11-15 23:12:43 +000028609 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028610fi
cristy8b350f62009-11-15 23:12:43 +000028611rm -f core conftest.err conftest.$ac_objext \
28612 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028613LIBS=$ac_check_lib_save_LIBS
28614fi
cristy8b350f62009-11-15 23:12:43 +000028615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028616$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028617if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028618 passed=`expr $passed + 1`
28619else
28620 failed=`expr $failed + 1`
28621fi
28622
cristy8b350f62009-11-15 23:12:43 +000028623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028624$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28625 if test $passed -gt 0; then
28626 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028628$as_echo "no -- some components failed test" >&6; }
28629 have_jp2='no (failed tests)'
28630 else
28631 JP2_LIBS='-ljasper'
28632 LIBS="$JP2_LIBS $LIBS"
28633
cristy8b350f62009-11-15 23:12:43 +000028634$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028635
cristy8b350f62009-11-15 23:12:43 +000028636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028637$as_echo "yes" >&6; }
28638 have_jp2='yes'
28639 fi
28640 else
cristy8b350f62009-11-15 23:12:43 +000028641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028642$as_echo "no" >&6; }
28643 fi
28644fi
cristy73bd4a52010-10-05 11:24:23 +000028645 if test "$have_jp2" = 'yes'; then
28646 JP2_DELEGATE_TRUE=
28647 JP2_DELEGATE_FALSE='#'
28648else
28649 JP2_DELEGATE_TRUE='#'
28650 JP2_DELEGATE_FALSE=
28651fi
28652
cristy3ed852e2009-09-05 21:47:34 +000028653
28654
28655
28656#
28657# Check for LCMS delegate library.
28658#
cristy71203402010-06-18 13:12:03 +000028659# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028660
28661# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028662if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028663 withval=$with_lcms; with_lcms=$withval
28664else
28665 with_lcms='yes'
28666fi
28667
cristy71203402010-06-18 13:12:03 +000028668if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028669 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28670fi
28671
cristy71203402010-06-18 13:12:03 +000028672# Disable LCMS2.
28673
28674# Check whether --with-lcms2 was given.
28675if test "${with_lcms2+set}" = set; then :
28676 withval=$with_lcms2; with_lcms2=$withval
28677else
28678 with_lcms2='yes'
28679fi
28680
28681if test "$with_lcms2" != 'yes' ; then
28682 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28683fi
28684
28685have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028686LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028687if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028689$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28691$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028693$as_echo "" >&6; }
28694 failed=0
28695 passed=0
28696 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028697
28698 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028699 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028700if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028701 have_lcms_header='yes'
28702fi
28703
28704
28705 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028706
28707$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28708
cristy71203402010-06-18 13:12:03 +000028709 passed=`expr $passed + 1`
28710 fi
28711
28712 # Check for <lcms2/lcms2.h)
28713 if test "$have_lcms_header" != 'yes'; then
28714 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 +000028715if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028716 have_lcms_header='yes'
28717fi
28718
28719
cristy71203402010-06-18 13:12:03 +000028720 if test "$have_lcms_header" = 'yes'; then
28721 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028722
cristy71203402010-06-18 13:12:03 +000028723$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028724
cristy71203402010-06-18 13:12:03 +000028725 fi
cristyd09bcf92010-03-25 03:04:45 +000028726 fi
cristy71203402010-06-18 13:12:03 +000028727
28728 # Failed to find lcms header?
28729 if test "$have_lcms_header" != 'yes'; then
28730 failed=`expr $failed + 1`
28731 fi
28732
28733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28734$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028735if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000028736 $as_echo_n "(cached) " >&6
28737else
28738 ac_check_lib_save_LIBS=$LIBS
28739LIBS="-llcms2 $LIBS"
28740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28741/* end confdefs.h. */
28742
28743/* Override any GCC internal prototype to avoid an error.
28744 Use char because int might match the return type of a GCC
28745 builtin and then its argument prototype would still apply. */
28746#ifdef __cplusplus
28747extern "C"
28748#endif
cristy71203402010-06-18 13:12:03 +000028749char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028750int
28751main ()
28752{
cristy71203402010-06-18 13:12:03 +000028753return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028754 ;
28755 return 0;
28756}
28757_ACEOF
28758if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028759 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028760else
cristy71203402010-06-18 13:12:03 +000028761 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028762fi
28763rm -f core conftest.err conftest.$ac_objext \
28764 conftest$ac_exeext conftest.$ac_ext
28765LIBS=$ac_check_lib_save_LIBS
28766fi
cristy71203402010-06-18 13:12:03 +000028767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28768$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028769if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028770 passed=`expr $passed + 1`
28771else
28772 failed=`expr $failed + 1`
28773fi
28774
cristy71203402010-06-18 13:12:03 +000028775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28776$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028777 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028778 if test $failed -gt 0; then
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028780$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028781 have_lcms2='no (failed tests)'
28782 else
28783 LCMS_LIBS='-llcms2'
28784 LIBS="$LCMS_LIBS $LIBS"
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028786$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028787 have_lcms2='yes'
28788 fi
cristyd09bcf92010-03-25 03:04:45 +000028789 else
cristy71203402010-06-18 13:12:03 +000028790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028791$as_echo "no" >&6; }
28792 fi
28793fi
28794
cristy71203402010-06-18 13:12:03 +000028795#
28796# Check for LCMS v1 (1.11 or later)
28797#
28798if test $have_lcms2 = 'yes'; then
28799 with_lcms='no'
28800fi
28801
28802have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028803if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28805$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28807$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28809$as_echo "" >&6; }
28810 failed=0
28811 passed=0
28812 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028813
28814 # Check for <lcms.h>
28815 if test "$have_lcms_header" != 'yes'; then
28816 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028817if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028818 have_lcms_header='yes'
28819fi
28820
28821
cristy71203402010-06-18 13:12:03 +000028822 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028823 passed=`expr $passed + 1`
28824
cristy8b350f62009-11-15 23:12:43 +000028825$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028826
cristy71203402010-06-18 13:12:03 +000028827 fi
28828 fi
28829
28830 # Check for <lcms/lcms.h>
28831 if test "$have_lcms_header" != 'yes'; then
28832 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 +000028833if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028834 have_lcms_header='yes'
28835fi
28836
28837
cristy71203402010-06-18 13:12:03 +000028838 if test "$have_lcms_header" = 'yes'; then
28839 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028840
cristy8b350f62009-11-15 23:12:43 +000028841$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028842
cristy71203402010-06-18 13:12:03 +000028843 fi
cristy3ed852e2009-09-05 21:47:34 +000028844 fi
cristy71203402010-06-18 13:12:03 +000028845
28846 # Failed to find lcms header?
28847 if test "$have_lcms_header" != 'yes'; then
28848 failed=`expr $failed + 1`
28849 fi
28850
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28852$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028853if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028854 $as_echo_n "(cached) " >&6
28855else
28856 ac_check_lib_save_LIBS=$LIBS
28857LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028859/* end confdefs.h. */
28860
28861/* Override any GCC internal prototype to avoid an error.
28862 Use char because int might match the return type of a GCC
28863 builtin and then its argument prototype would still apply. */
28864#ifdef __cplusplus
28865extern "C"
28866#endif
cristy71203402010-06-18 13:12:03 +000028867char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028868int
28869main ()
28870{
cristy71203402010-06-18 13:12:03 +000028871return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028872 ;
28873 return 0;
28874}
28875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028876if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028877 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028878else
cristy71203402010-06-18 13:12:03 +000028879 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028880fi
cristy8b350f62009-11-15 23:12:43 +000028881rm -f core conftest.err conftest.$ac_objext \
28882 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028883LIBS=$ac_check_lib_save_LIBS
28884fi
cristy71203402010-06-18 13:12:03 +000028885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28886$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028887if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028888 passed=`expr $passed + 1`
28889else
28890 failed=`expr $failed + 1`
28891fi
28892
cristy8b350f62009-11-15 23:12:43 +000028893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028894$as_echo_n "checking if LCMS package is complete... " >&6; }
28895 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028896 if test $failed -gt 0; then
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028898$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028899 have_lcms='no (failed tests)'
28900 else
28901 LCMS_LIBS='-llcms'
28902 LIBS="$LCMS_LIBS $LIBS"
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028904$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028905 have_lcms='yes'
28906 fi
cristy3ed852e2009-09-05 21:47:34 +000028907 else
cristy71203402010-06-18 13:12:03 +000028908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028909$as_echo "no" >&6; }
28910 fi
28911fi
cristy71203402010-06-18 13:12:03 +000028912
cristy73bd4a52010-10-05 11:24:23 +000028913 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28914 LCMS_DELEGATE_TRUE=
28915 LCMS_DELEGATE_FALSE='#'
28916else
28917 LCMS_DELEGATE_TRUE='#'
28918 LCMS_DELEGATE_FALSE=
28919fi
28920
cristy71203402010-06-18 13:12:03 +000028921if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28922
28923$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28924
28925fi
28926
cristy3ed852e2009-09-05 21:47:34 +000028927
28928
28929
28930#
28931# Check for the LQR (Liquid Rescale) delegate library.
28932#
28933
28934# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028935if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028936 withval=$with_lqr; with_lqr=$withval
28937else
28938 with_lqr='yes'
28939fi
28940
28941
28942if test "$with_lqr" != 'yes'; then
28943 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28944fi
28945
28946have_lqr='no'
28947LQR_CFLAGS=""
28948LQR_LIBS=""
28949LQR_PKG=""
28950if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028952$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028953
28954pkg_failed=no
28955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28956$as_echo_n "checking for LQR... " >&6; }
28957
28958if test -n "$LQR_CFLAGS"; then
28959 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28960 elif test -n "$PKG_CONFIG"; then
28961 if test -n "$PKG_CONFIG" && \
28962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28963 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28964 ac_status=$?
28965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28966 test $ac_status = 0; }; then
28967 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28968else
28969 pkg_failed=yes
28970fi
28971 else
28972 pkg_failed=untried
28973fi
28974if test -n "$LQR_LIBS"; then
28975 pkg_cv_LQR_LIBS="$LQR_LIBS"
28976 elif test -n "$PKG_CONFIG"; then
28977 if test -n "$PKG_CONFIG" && \
28978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28979 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28980 ac_status=$?
28981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28982 test $ac_status = 0; }; then
28983 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28984else
28985 pkg_failed=yes
28986fi
28987 else
28988 pkg_failed=untried
28989fi
28990
28991
28992
28993if test $pkg_failed = yes; then
28994
28995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28996 _pkg_short_errors_supported=yes
28997else
28998 _pkg_short_errors_supported=no
28999fi
29000 if test $_pkg_short_errors_supported = yes; then
29001 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29002 else
29003 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29004 fi
29005 # Put the nasty error message in config.log where it belongs
29006 echo "$LQR_PKG_ERRORS" >&5
29007
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29009$as_echo "no" >&6; }
29010 have_lqr=no
29011elif test $pkg_failed = untried; then
29012 have_lqr=no
29013else
29014 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29015 LQR_LIBS=$pkg_cv_LQR_LIBS
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29017$as_echo "yes" >&6; }
29018 have_lqr=yes
29019fi
cristy8b350f62009-11-15 23:12:43 +000029020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029021$as_echo "" >&6; }
29022fi
29023
29024if test "$have_lqr" = 'yes'; then
29025
cristy8b350f62009-11-15 23:12:43 +000029026$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029027
29028 CFLAGS="$LQR_CFLAGS $CFLAGS"
29029fi
29030
cristy73bd4a52010-10-05 11:24:23 +000029031 if test "$have_lqr" = 'yes'; then
29032 LQR_DELEGATE_TRUE=
29033 LQR_DELEGATE_FALSE='#'
29034else
29035 LQR_DELEGATE_TRUE='#'
29036 LQR_DELEGATE_FALSE=
29037fi
29038
cristy3ed852e2009-09-05 21:47:34 +000029039
29040
29041
29042
cristyfbb0ef02010-12-19 02:32:11 +000029043# Disable LZMA (lzma library)
29044
29045# Check whether --with-lzma was given.
29046if test "${with_lzma+set}" = set; then :
29047 withval=$with_lzma; with_lzma=$withval
29048else
29049 with_lzma='yes'
29050fi
29051
29052if test "$with_lzma" != 'yes' ; then
29053 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29054fi
29055
29056#
29057# Check for LZMA
29058#
29059have_lzma='no'
29060LZMA_LIBS=''
29061if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29063$as_echo "-------------------------------------------------------------" >&6; }
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29065$as_echo_n "checking for LZMA... " >&6; }
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29067$as_echo "" >&6; }
29068 failed=0
29069 passed=0
29070 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029071if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029072 passed=`expr $passed + 1`
29073else
29074 failed=`expr $failed + 1`
29075fi
29076
29077
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29079$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029080if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029081 $as_echo_n "(cached) " >&6
29082else
29083 ac_check_lib_save_LIBS=$LIBS
29084LIBS="-llzma $LIBS"
29085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29086/* end confdefs.h. */
29087
29088/* Override any GCC internal prototype to avoid an error.
29089 Use char because int might match the return type of a GCC
29090 builtin and then its argument prototype would still apply. */
29091#ifdef __cplusplus
29092extern "C"
29093#endif
29094char lzma_code ();
29095int
29096main ()
29097{
29098return lzma_code ();
29099 ;
29100 return 0;
29101}
29102_ACEOF
29103if ac_fn_c_try_link "$LINENO"; then :
29104 ac_cv_lib_lzma_lzma_code=yes
29105else
29106 ac_cv_lib_lzma_lzma_code=no
29107fi
29108rm -f core conftest.err conftest.$ac_objext \
29109 conftest$ac_exeext conftest.$ac_ext
29110LIBS=$ac_check_lib_save_LIBS
29111fi
29112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29113$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029114if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029115 passed=`expr $passed + 1`
29116else
29117 failed=`expr $failed + 1`
29118fi
29119
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29121$as_echo_n "checking if LZMA package is complete... " >&6; }
29122 if test $passed -gt 0; then
29123 if test $failed -gt 0; then
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29125$as_echo "no -- some components failed test" >&6; }
29126 have_lzma='no (failed tests)'
29127 else
29128 LZMA_LIBS='-llzma'
29129 LIBS="$LZMA_LIBS $LIBS"
29130
29131$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29132
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29134$as_echo "yes" >&6; }
29135 have_lzma='yes'
29136 fi
29137 else
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29139$as_echo "no" >&6; }
29140 fi
29141fi
29142 if test "$have_lzma" = 'yes'; then
29143 LZMA_DELEGATE_TRUE=
29144 LZMA_DELEGATE_FALSE='#'
29145else
29146 LZMA_DELEGATE_TRUE='#'
29147 LZMA_DELEGATE_FALSE=
29148fi
29149
29150
29151
29152
cristy3ed852e2009-09-05 21:47:34 +000029153#
29154# Check for the OpenEXR delegate library.
29155#
29156
29157# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029158if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029159 withval=$with_openexr; with_openexr=$withval
29160else
29161 with_openexr='yes'
29162fi
29163
29164
29165if test "$with_openexr" != 'yes'; then
29166 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29167fi
29168
29169have_openexr='no'
29170OPENEXR_CFLAGS=""
29171OPENEXR_LIBS=""
29172OPENEXR_PKG=""
29173if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029175$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029176
29177pkg_failed=no
29178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29179$as_echo_n "checking for OPENEXR... " >&6; }
29180
29181if test -n "$OPENEXR_CFLAGS"; then
29182 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29183 elif test -n "$PKG_CONFIG"; then
29184 if test -n "$PKG_CONFIG" && \
29185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29186 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29187 ac_status=$?
29188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29189 test $ac_status = 0; }; then
29190 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29191else
29192 pkg_failed=yes
29193fi
29194 else
29195 pkg_failed=untried
29196fi
29197if test -n "$OPENEXR_LIBS"; then
29198 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29199 elif test -n "$PKG_CONFIG"; then
29200 if test -n "$PKG_CONFIG" && \
29201 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29202 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29203 ac_status=$?
29204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29205 test $ac_status = 0; }; then
29206 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29207else
29208 pkg_failed=yes
29209fi
29210 else
29211 pkg_failed=untried
29212fi
29213
29214
29215
29216if test $pkg_failed = yes; then
29217
29218if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29219 _pkg_short_errors_supported=yes
29220else
29221 _pkg_short_errors_supported=no
29222fi
29223 if test $_pkg_short_errors_supported = yes; then
29224 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29225 else
29226 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29227 fi
29228 # Put the nasty error message in config.log where it belongs
29229 echo "$OPENEXR_PKG_ERRORS" >&5
29230
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29232$as_echo "no" >&6; }
29233 have_openexr=no
29234elif test $pkg_failed = untried; then
29235 have_openexr=no
29236else
29237 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29238 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29240$as_echo "yes" >&6; }
29241 have_openexr=yes
29242fi
cristy8b350f62009-11-15 23:12:43 +000029243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029244$as_echo "" >&6; }
29245fi
29246
29247if test "$have_openexr" = 'yes'; then
29248
cristy8b350f62009-11-15 23:12:43 +000029249$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029250
29251 if test "$with_modules" = 'no'; then
29252 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29253 fi
29254fi
29255
cristy73bd4a52010-10-05 11:24:23 +000029256 if test "$have_openexr" = 'yes'; then
29257 OPENEXR_DELEGATE_TRUE=
29258 OPENEXR_DELEGATE_FALSE='#'
29259else
29260 OPENEXR_DELEGATE_TRUE='#'
29261 OPENEXR_DELEGATE_FALSE=
29262fi
29263
cristy3ed852e2009-09-05 21:47:34 +000029264
29265
29266
29267
29268#
29269# Check for PNG delegate library.
29270#
29271
29272# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000029273if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029274 withval=$with_png; with_png=$withval
29275else
29276 with_png='yes'
29277fi
29278
29279
29280if test "$with_png" != 'yes'; then
29281 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29282fi
29283
29284have_png='no'
29285PNG_LIBS=''
29286if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029288$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029290$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029292$as_echo "" >&6; }
29293 failed=0
29294 passed=0
cristy8b350f62009-11-15 23:12:43 +000029295 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029296if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029297 passed=`expr $passed + 1`
29298else
29299 failed=`expr $failed + 1`
29300fi
29301
29302
cristy8b350f62009-11-15 23:12:43 +000029303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000029304$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029305if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029306 $as_echo_n "(cached) " >&6
29307else
29308 ac_check_lib_save_LIBS=$LIBS
29309LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029311/* end confdefs.h. */
29312
29313/* Override any GCC internal prototype to avoid an error.
29314 Use char because int might match the return type of a GCC
29315 builtin and then its argument prototype would still apply. */
29316#ifdef __cplusplus
29317extern "C"
29318#endif
29319char png_get_io_ptr ();
29320int
29321main ()
29322{
29323return png_get_io_ptr ();
29324 ;
29325 return 0;
29326}
29327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029328if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029329 ac_cv_lib_png_png_get_io_ptr=yes
29330else
cristy8b350f62009-11-15 23:12:43 +000029331 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000029332fi
cristy8b350f62009-11-15 23:12:43 +000029333rm -f core conftest.err conftest.$ac_objext \
29334 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029335LIBS=$ac_check_lib_save_LIBS
29336fi
cristy8b350f62009-11-15 23:12:43 +000029337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000029338$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000029339if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029340 passed=`expr $passed + 1`
29341else
29342 failed=`expr $failed + 1`
29343fi
29344
cristy8b350f62009-11-15 23:12:43 +000029345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029346$as_echo_n "checking if PNG package is complete... " >&6; }
29347 if test $passed -gt 0; then
29348 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029350$as_echo "no -- some components failed test" >&6; }
29351 have_png='no (failed tests)'
29352 else
29353 PNG_LIBS='-lpng'
29354 LIBS="$PNG_LIBS $LIBS"
29355
cristy8b350f62009-11-15 23:12:43 +000029356$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029357
cristy8b350f62009-11-15 23:12:43 +000029358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029359$as_echo "yes" >&6; }
29360 have_png='yes'
29361 fi
29362 else
cristy8b350f62009-11-15 23:12:43 +000029363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029364$as_echo "no" >&6; }
29365 fi
29366fi
cristy73bd4a52010-10-05 11:24:23 +000029367 if test "$have_png" = 'yes'; then
29368 PNG_DELEGATE_TRUE=
29369 PNG_DELEGATE_FALSE='#'
29370else
29371 PNG_DELEGATE_TRUE='#'
29372 PNG_DELEGATE_FALSE=
29373fi
29374
cristy3ed852e2009-09-05 21:47:34 +000029375
29376
29377
29378#
29379# Check for RSVG delegate library.
29380#
29381
29382# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000029383if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029384 withval=$with_rsvg; with_rsvg=$withval
29385else
29386 with_rsvg=$have_x
29387fi
29388
29389
29390if test "$with_rsvg" != 'yes'; then
29391 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29392fi
29393
29394have_rsvg='no'
29395have_cairo='no'
29396RSVG_CFLAGS=""
29397RSVG_LIBS=""
29398RSVG_PKG=""
29399if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029401$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029402
29403pkg_failed=no
29404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29405$as_echo_n "checking for RSVG... " >&6; }
29406
29407if test -n "$RSVG_CFLAGS"; then
29408 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29409 elif test -n "$PKG_CONFIG"; then
29410 if test -n "$PKG_CONFIG" && \
29411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29412 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29413 ac_status=$?
29414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29415 test $ac_status = 0; }; then
29416 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29417else
29418 pkg_failed=yes
29419fi
29420 else
29421 pkg_failed=untried
29422fi
29423if test -n "$RSVG_LIBS"; then
29424 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29425 elif test -n "$PKG_CONFIG"; then
29426 if test -n "$PKG_CONFIG" && \
29427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29428 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29429 ac_status=$?
29430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29431 test $ac_status = 0; }; then
29432 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29433else
29434 pkg_failed=yes
29435fi
29436 else
29437 pkg_failed=untried
29438fi
29439
29440
29441
29442if test $pkg_failed = yes; then
29443
29444if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29445 _pkg_short_errors_supported=yes
29446else
29447 _pkg_short_errors_supported=no
29448fi
29449 if test $_pkg_short_errors_supported = yes; then
29450 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29451 else
29452 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29453 fi
29454 # Put the nasty error message in config.log where it belongs
29455 echo "$RSVG_PKG_ERRORS" >&5
29456
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29458$as_echo "no" >&6; }
29459 have_rsvg=no
29460elif test $pkg_failed = untried; then
29461 have_rsvg=no
29462else
29463 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29464 RSVG_LIBS=$pkg_cv_RSVG_LIBS
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29466$as_echo "yes" >&6; }
29467 have_rsvg=yes
29468fi
cristy8b350f62009-11-15 23:12:43 +000029469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029470$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029471
29472pkg_failed=no
29473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29474$as_echo_n "checking for CAIRO_SVG... " >&6; }
29475
29476if test -n "$CAIRO_SVG_CFLAGS"; then
29477 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29478 elif test -n "$PKG_CONFIG"; then
29479 if test -n "$PKG_CONFIG" && \
29480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29481 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29482 ac_status=$?
29483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29484 test $ac_status = 0; }; then
29485 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29486else
29487 pkg_failed=yes
29488fi
29489 else
29490 pkg_failed=untried
29491fi
29492if test -n "$CAIRO_SVG_LIBS"; then
29493 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29494 elif test -n "$PKG_CONFIG"; then
29495 if test -n "$PKG_CONFIG" && \
29496 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29497 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29498 ac_status=$?
29499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29500 test $ac_status = 0; }; then
29501 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29502else
29503 pkg_failed=yes
29504fi
29505 else
29506 pkg_failed=untried
29507fi
29508
29509
29510
29511if test $pkg_failed = yes; then
29512
29513if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29514 _pkg_short_errors_supported=yes
29515else
29516 _pkg_short_errors_supported=no
29517fi
29518 if test $_pkg_short_errors_supported = yes; then
29519 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29520 else
29521 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29522 fi
29523 # Put the nasty error message in config.log where it belongs
29524 echo "$CAIRO_SVG_PKG_ERRORS" >&5
29525
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29527$as_echo "no" >&6; }
29528 have_cairo=no
29529elif test $pkg_failed = untried; then
29530 have_cairo=no
29531else
29532 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29533 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29535$as_echo "yes" >&6; }
29536 have_cairo=yes
29537fi
cristy8b350f62009-11-15 23:12:43 +000029538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029539$as_echo "" >&6; }
29540fi
29541
29542if test "$have_rsvg" = 'yes'; then
29543
cristy8b350f62009-11-15 23:12:43 +000029544$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029545
29546 if test "$with_modules" = 'no'; then
29547 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29548 fi
29549fi
29550
29551if test "$have_cairo" = 'yes'; then
29552
cristy8b350f62009-11-15 23:12:43 +000029553$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029554
29555 if test "$with_modules" = 'no'; then
29556 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29557 fi
29558fi
29559
cristy73bd4a52010-10-05 11:24:23 +000029560 if test "$have_rsvg" = 'yes'; then
29561 RSVG_DELEGATE_TRUE=
29562 RSVG_DELEGATE_FALSE='#'
29563else
29564 RSVG_DELEGATE_TRUE='#'
29565 RSVG_DELEGATE_FALSE=
29566fi
29567
29568 if test "$have_cairo" = 'yes'; then
29569 CAIRO_DELEGATE_TRUE=
29570 CAIRO_DELEGATE_FALSE='#'
29571else
29572 CAIRO_DELEGATE_TRUE='#'
29573 CAIRO_DELEGATE_FALSE=
29574fi
29575
cristy3ed852e2009-09-05 21:47:34 +000029576
29577
29578
29579
29580#
29581# Check for TIFF delegate library.
29582#
29583
29584# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000029585if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029586 withval=$with_tiff; with_tiff=$withval
29587else
29588 with_tiff='yes'
29589fi
29590
29591
29592if test "$with_tiff" != 'yes'; then
29593 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29594fi
29595
29596have_tiff='no'
29597TIFF_LIBS=''
29598if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029600$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029602$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029604$as_echo "" >&6; }
29605 failed=0
29606 passed=0
cristy8b350f62009-11-15 23:12:43 +000029607 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029608if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029609 passed=`expr $passed + 1`
29610else
29611 failed=`expr $failed + 1`
29612fi
29613
29614
cristy8b350f62009-11-15 23:12:43 +000029615 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029616if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029617 passed=`expr $passed + 1`
29618else
29619 failed=`expr $failed + 1`
29620fi
29621
29622
cristy8b350f62009-11-15 23:12:43 +000029623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029624$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029625if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029626 $as_echo_n "(cached) " >&6
29627else
29628 ac_check_lib_save_LIBS=$LIBS
29629LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029631/* end confdefs.h. */
29632
29633/* Override any GCC internal prototype to avoid an error.
29634 Use char because int might match the return type of a GCC
29635 builtin and then its argument prototype would still apply. */
29636#ifdef __cplusplus
29637extern "C"
29638#endif
29639char TIFFOpen ();
29640int
29641main ()
29642{
29643return TIFFOpen ();
29644 ;
29645 return 0;
29646}
29647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029648if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029649 ac_cv_lib_tiff_TIFFOpen=yes
29650else
cristy8b350f62009-11-15 23:12:43 +000029651 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029652fi
cristy8b350f62009-11-15 23:12:43 +000029653rm -f core conftest.err conftest.$ac_objext \
29654 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029655LIBS=$ac_check_lib_save_LIBS
29656fi
cristy8b350f62009-11-15 23:12:43 +000029657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029658$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029659if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029660 passed=`expr $passed + 1`
29661else
29662 failed=`expr $failed + 1`
29663fi
29664
cristy8b350f62009-11-15 23:12:43 +000029665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029666$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029667if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029668 $as_echo_n "(cached) " >&6
29669else
29670 ac_check_lib_save_LIBS=$LIBS
29671LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029673/* end confdefs.h. */
29674
29675/* Override any GCC internal prototype to avoid an error.
29676 Use char because int might match the return type of a GCC
29677 builtin and then its argument prototype would still apply. */
29678#ifdef __cplusplus
29679extern "C"
29680#endif
29681char TIFFClientOpen ();
29682int
29683main ()
29684{
29685return TIFFClientOpen ();
29686 ;
29687 return 0;
29688}
29689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029690if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029691 ac_cv_lib_tiff_TIFFClientOpen=yes
29692else
cristy8b350f62009-11-15 23:12:43 +000029693 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029694fi
cristy8b350f62009-11-15 23:12:43 +000029695rm -f core conftest.err conftest.$ac_objext \
29696 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029697LIBS=$ac_check_lib_save_LIBS
29698fi
cristy8b350f62009-11-15 23:12:43 +000029699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029700$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029701if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029702 passed=`expr $passed + 1`
29703else
29704 failed=`expr $failed + 1`
29705fi
29706
cristyb97f1002010-07-26 14:02:57 +000029707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29708$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029709if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000029710 $as_echo_n "(cached) " >&6
29711else
29712 ac_check_lib_save_LIBS=$LIBS
29713LIBS="-ltiff $LIBS"
29714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29715/* end confdefs.h. */
29716
29717/* Override any GCC internal prototype to avoid an error.
29718 Use char because int might match the return type of a GCC
29719 builtin and then its argument prototype would still apply. */
29720#ifdef __cplusplus
29721extern "C"
29722#endif
29723char TIFFIsBigEndian ();
29724int
29725main ()
29726{
29727return TIFFIsBigEndian ();
29728 ;
29729 return 0;
29730}
29731_ACEOF
29732if ac_fn_c_try_link "$LINENO"; then :
29733 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29734else
29735 ac_cv_lib_tiff_TIFFIsBigEndian=no
29736fi
29737rm -f core conftest.err conftest.$ac_objext \
29738 conftest$ac_exeext conftest.$ac_ext
29739LIBS=$ac_check_lib_save_LIBS
29740fi
29741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29742$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000029743if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000029744 passed=`expr $passed + 1`
29745else
29746 failed=`expr $failed + 1`
29747fi
29748
cristy8b350f62009-11-15 23:12:43 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029750$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029751if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029752 $as_echo_n "(cached) " >&6
29753else
29754 ac_check_lib_save_LIBS=$LIBS
29755LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029757/* end confdefs.h. */
29758
29759/* Override any GCC internal prototype to avoid an error.
29760 Use char because int might match the return type of a GCC
29761 builtin and then its argument prototype would still apply. */
29762#ifdef __cplusplus
29763extern "C"
29764#endif
29765char TIFFIsByteSwapped ();
29766int
29767main ()
29768{
29769return TIFFIsByteSwapped ();
29770 ;
29771 return 0;
29772}
29773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029774if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029775 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29776else
cristy8b350f62009-11-15 23:12:43 +000029777 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029778fi
cristy8b350f62009-11-15 23:12:43 +000029779rm -f core conftest.err conftest.$ac_objext \
29780 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029781LIBS=$ac_check_lib_save_LIBS
29782fi
cristy8b350f62009-11-15 23:12:43 +000029783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029784$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000029785if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029786 passed=`expr $passed + 1`
29787else
29788 failed=`expr $failed + 1`
29789fi
29790
cristy8b350f62009-11-15 23:12:43 +000029791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029792$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029793if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029794 $as_echo_n "(cached) " >&6
29795else
29796 ac_check_lib_save_LIBS=$LIBS
29797LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029799/* end confdefs.h. */
29800
29801/* Override any GCC internal prototype to avoid an error.
29802 Use char because int might match the return type of a GCC
29803 builtin and then its argument prototype would still apply. */
29804#ifdef __cplusplus
29805extern "C"
29806#endif
29807char TIFFReadRGBATile ();
29808int
29809main ()
29810{
29811return TIFFReadRGBATile ();
29812 ;
29813 return 0;
29814}
29815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029817 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29818else
cristy8b350f62009-11-15 23:12:43 +000029819 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029820fi
cristy8b350f62009-11-15 23:12:43 +000029821rm -f core conftest.err conftest.$ac_objext \
29822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029823LIBS=$ac_check_lib_save_LIBS
29824fi
cristy8b350f62009-11-15 23:12:43 +000029825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029826$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000029827if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029828 passed=`expr $passed + 1`
29829else
29830 failed=`expr $failed + 1`
29831fi
29832
cristy8b350f62009-11-15 23:12:43 +000029833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029834$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029835if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029836 $as_echo_n "(cached) " >&6
29837else
29838 ac_check_lib_save_LIBS=$LIBS
29839LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029841/* end confdefs.h. */
29842
29843/* Override any GCC internal prototype to avoid an error.
29844 Use char because int might match the return type of a GCC
29845 builtin and then its argument prototype would still apply. */
29846#ifdef __cplusplus
29847extern "C"
29848#endif
29849char TIFFReadRGBAStrip ();
29850int
29851main ()
29852{
29853return TIFFReadRGBAStrip ();
29854 ;
29855 return 0;
29856}
29857_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029858if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029859 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29860else
cristy8b350f62009-11-15 23:12:43 +000029861 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029862fi
cristy8b350f62009-11-15 23:12:43 +000029863rm -f core conftest.err conftest.$ac_objext \
29864 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029865LIBS=$ac_check_lib_save_LIBS
29866fi
cristy8b350f62009-11-15 23:12:43 +000029867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029868$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000029869if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029870 passed=`expr $passed + 1`
29871else
29872 failed=`expr $failed + 1`
29873fi
29874
cristy8b350f62009-11-15 23:12:43 +000029875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029876$as_echo_n "checking if TIFF package is complete... " >&6; }
29877 if test $passed -gt 0; then
29878 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029880$as_echo "no -- some components failed test" >&6; }
29881 have_tiff='no (failed tests)'
29882 else
29883 TIFF_LIBS='-ltiff'
29884 LIBS="$TIFF_LIBS $LIBS"
29885
cristy8b350f62009-11-15 23:12:43 +000029886$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029887
cristy8b350f62009-11-15 23:12:43 +000029888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029889$as_echo "yes" >&6; }
29890 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029891 for ac_header in tiffconf.h
29892do :
29893 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029894if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029895 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029896#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029897_ACEOF
29898
29899fi
29900
29901done
29902
cristy8b350f62009-11-15 23:12:43 +000029903 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029904 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29905 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029906do :
29907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29908ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029909if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029910 cat >>confdefs.h <<_ACEOF
29911#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29912_ACEOF
29913
29914fi
29915done
29916
29917 fi
29918 else
cristy8b350f62009-11-15 23:12:43 +000029919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029920$as_echo "no" >&6; }
29921 fi
29922fi
cristy73bd4a52010-10-05 11:24:23 +000029923 if test "$have_tiff" = 'yes'; then
29924 TIFF_DELEGATE_TRUE=
29925 TIFF_DELEGATE_FALSE='#'
29926else
29927 TIFF_DELEGATE_TRUE='#'
29928 TIFF_DELEGATE_FALSE=
29929fi
29930
cristy3ed852e2009-09-05 21:47:34 +000029931
29932
29933
29934#
cristyb1860752011-03-14 00:27:46 +000029935# Check for WEBP delegate library.
29936#
29937
29938# Check whether --with-webp was given.
29939if test "${with_webp+set}" = set; then :
29940 withval=$with_webp; with_webp=$withval
29941else
29942 with_webp='yes'
29943fi
29944
29945
29946if test "$with_webp" != 'yes'; then
29947 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
29948fi
29949
29950have_webp='no'
29951WEBP_LIBS=''
29952if test "$with_webp" != 'no'; then
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29954$as_echo "-------------------------------------------------------------" >&6; }
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
29956$as_echo_n "checking for WEBP... " >&6; }
29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29958$as_echo "" >&6; }
29959 failed=0
29960 passed=0
29961 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
29962if test "x$ac_cv_header_webp_decode_h" = xyes; then :
29963 passed=`expr $passed + 1`
29964else
29965 failed=`expr $failed + 1`
29966fi
29967
29968
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
29970$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
29971if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
29972 $as_echo_n "(cached) " >&6
29973else
29974 ac_check_lib_save_LIBS=$LIBS
29975LIBS="-lwebp $LIBS"
29976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29977/* end confdefs.h. */
29978
29979/* Override any GCC internal prototype to avoid an error.
29980 Use char because int might match the return type of a GCC
29981 builtin and then its argument prototype would still apply. */
29982#ifdef __cplusplus
29983extern "C"
29984#endif
29985char WebPDecodeRGB ();
29986int
29987main ()
29988{
29989return WebPDecodeRGB ();
29990 ;
29991 return 0;
29992}
29993_ACEOF
29994if ac_fn_c_try_link "$LINENO"; then :
29995 ac_cv_lib_webp_WebPDecodeRGB=yes
29996else
29997 ac_cv_lib_webp_WebPDecodeRGB=no
29998fi
29999rm -f core conftest.err conftest.$ac_objext \
30000 conftest$ac_exeext conftest.$ac_ext
30001LIBS=$ac_check_lib_save_LIBS
30002fi
30003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30004$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30005if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30006 passed=`expr $passed + 1`
30007else
30008 failed=`expr $failed + 1`
30009fi
30010
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30012$as_echo_n "checking if WEBP package is complete... " >&6; }
30013 if test $passed -gt 0; then
30014 if test $failed -gt 0; then
30015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30016$as_echo "no -- some components failed test" >&6; }
30017 have_webp='no (failed tests)'
30018 else
30019 WEBP_LIBS='-lwebp'
30020 LIBS="$WEBP_LIBS $LIBS"
30021
30022$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30023
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30025$as_echo "yes" >&6; }
30026 have_webp='yes'
30027 fi
30028 else
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30030$as_echo "no" >&6; }
30031 fi
30032fi
30033 if test "$have_webp" = 'yes'; then
30034 WEBP_DELEGATE_TRUE=
30035 WEBP_DELEGATE_FALSE='#'
30036else
30037 WEBP_DELEGATE_TRUE='#'
30038 WEBP_DELEGATE_FALSE=
30039fi
30040
30041
30042
30043
30044#
cristy3ed852e2009-09-05 21:47:34 +000030045# Set Windows font directory.
30046#
30047
30048# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030049if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030050 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30051else
30052 with_windows_font_dir=''
30053fi
30054
30055if test "$with_windows_font_dir" != '' ; then
30056 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30057fi
30058
30059
30060#
30061# Check for WMF delegate library.
30062#
30063
30064# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000030065if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030066 withval=$with_wmf; with_wmf=$withval
30067else
cristy8d63d1d2010-01-06 20:38:37 +000030068 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000030069fi
30070
30071
30072if test "$with_wmf" != 'yes'; then
30073 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30074fi
30075
30076have_wmf='no'
30077WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000030078if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030080$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030082$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030084$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000030085 failed=0
30086 passed=0
30087 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030088if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030089 passed=`expr $passed + 1`
30090else
30091 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030092fi
30093
30094
cristy735e8942010-04-02 20:32:57 +000030095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30096$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030097if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030098 $as_echo_n "(cached) " >&6
30099else
30100 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000030101LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030103/* end confdefs.h. */
30104
30105/* Override any GCC internal prototype to avoid an error.
30106 Use char because int might match the return type of a GCC
30107 builtin and then its argument prototype would still apply. */
30108#ifdef __cplusplus
30109extern "C"
30110#endif
cristy735e8942010-04-02 20:32:57 +000030111char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030112int
30113main ()
30114{
cristy735e8942010-04-02 20:32:57 +000030115return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030116 ;
30117 return 0;
30118}
30119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030120if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000030121 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030122else
cristy735e8942010-04-02 20:32:57 +000030123 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030124fi
cristy8b350f62009-11-15 23:12:43 +000030125rm -f core conftest.err conftest.$ac_objext \
30126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030127LIBS=$ac_check_lib_save_LIBS
30128fi
cristy735e8942010-04-02 20:32:57 +000030129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30130$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030131if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030132 passed=`expr $passed + 1`
30133else
30134 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030135fi
30136
cristy735e8942010-04-02 20:32:57 +000030137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30138$as_echo_n "checking if WMF package is complete... " >&6; }
30139 if test $passed -gt 0; then
30140 if test $failed -gt 0; then
30141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30142$as_echo "no -- some components failed test" >&6; }
30143 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030144 else
cristy735e8942010-04-02 20:32:57 +000030145 WMF_LIBS='-lwmf -lwmflite'
30146 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030147
cristy8b350f62009-11-15 23:12:43 +000030148$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030149
cristy735e8942010-04-02 20:32:57 +000030150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030151$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030152 have_wmf='yes'
30153 fi
cristy3ed852e2009-09-05 21:47:34 +000030154 else
cristy8b350f62009-11-15 23:12:43 +000030155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030156$as_echo "no" >&6; }
30157 fi
30158fi
cristy73bd4a52010-10-05 11:24:23 +000030159 if test "$have_wmf" = 'yes'; then
30160 WMF_DELEGATE_TRUE=
30161 WMF_DELEGATE_FALSE='#'
30162else
30163 WMF_DELEGATE_TRUE='#'
30164 WMF_DELEGATE_FALSE=
30165fi
30166
cristy3ed852e2009-09-05 21:47:34 +000030167
30168
30169
30170
cristy735e8942010-04-02 20:32:57 +000030171
cristy3ed852e2009-09-05 21:47:34 +000030172#
30173# Check for XML delegate library.
30174#
30175
30176# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030177if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030178 withval=$with_xml; with_xml=$withval
30179else
30180 with_xml=$have_x
30181fi
30182
30183
30184if test "$with_xml" != 'yes' ; then
30185 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30186fi
30187
30188have_xml='no'
30189XML_LIBS=''
30190if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030194$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030196$as_echo "" >&6; }
30197 PERSIST_LDFLAGS=$LDFLAGS
30198 PERSIST_CPPFLAGS=$CPPFLAGS
30199 xml2_config=''
30200 for ac_prog in xml2-config
30201do
30202 # Extract the first word of "$ac_prog", so it can be a program name with args.
30203set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030205$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030206if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030207 $as_echo_n "(cached) " >&6
30208else
30209 if test -n "$xml2_config"; then
30210 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30211else
30212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30213for as_dir in $PATH
30214do
30215 IFS=$as_save_IFS
30216 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030217 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30219 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030221 break 2
30222 fi
30223done
cristy8b350f62009-11-15 23:12:43 +000030224 done
cristy3ed852e2009-09-05 21:47:34 +000030225IFS=$as_save_IFS
30226
30227fi
30228fi
30229xml2_config=$ac_cv_prog_xml2_config
30230if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo "$xml2_config" >&6; }
30233else
cristy8b350f62009-11-15 23:12:43 +000030234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030235$as_echo "no" >&6; }
30236fi
30237
30238
30239 test -n "$xml2_config" && break
30240done
30241 if test -n "$xml2_config"; then
30242 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30243 # the shared library installed under /usr/lib, whereas the package
30244 # installs itself under $prefix/libxml and $prefix/lib.
30245 xml2_prefix=`xml2-config --prefix`
30246 if test -d "${xml2_prefix}/include/libxml2"; then
30247 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30248 fi
30249 if test "${xml2_prefix}" != '/usr'; then
30250 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30251 fi
30252 fi
30253 failed=0
30254 passed=0
cristy8b350f62009-11-15 23:12:43 +000030255 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030256if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030257 passed=`expr $passed + 1`
30258else
30259 failed=`expr $failed + 1`
30260fi
30261
30262
cristy8b350f62009-11-15 23:12:43 +000030263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030264$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030265if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030266 $as_echo_n "(cached) " >&6
30267else
30268 ac_check_lib_save_LIBS=$LIBS
30269LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030271/* end confdefs.h. */
30272
30273/* Override any GCC internal prototype to avoid an error.
30274 Use char because int might match the return type of a GCC
30275 builtin and then its argument prototype would still apply. */
30276#ifdef __cplusplus
30277extern "C"
30278#endif
30279char xmlParseExternalEntity ();
30280int
30281main ()
30282{
30283return xmlParseExternalEntity ();
30284 ;
30285 return 0;
30286}
30287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030289 ac_cv_lib_xml2_xmlParseExternalEntity=yes
30290else
cristy8b350f62009-11-15 23:12:43 +000030291 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000030292fi
cristy8b350f62009-11-15 23:12:43 +000030293rm -f core conftest.err conftest.$ac_objext \
30294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030295LIBS=$ac_check_lib_save_LIBS
30296fi
cristy8b350f62009-11-15 23:12:43 +000030297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000030298$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000030299if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030300 passed=`expr $passed + 1`
30301else
30302 failed=`expr $failed + 1`
30303fi
30304
cristy8b350f62009-11-15 23:12:43 +000030305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030306$as_echo_n "checking if XML package is complete... " >&6; }
30307 if test $passed -gt 0; then
30308 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030310$as_echo "no -- some components failed test" >&6; }
30311 have_xml='no (failed tests)'
30312 LDFLAGS="$PERSIST_LDFLAGS"
30313 CPPFLAGS="$PERSIST_CPPFLAGS"
30314 else
30315 XML_LIBS='-lxml2'
30316 LIBS="$XML_LIBS $LIBS"
30317
cristy8b350f62009-11-15 23:12:43 +000030318$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030319
cristy8b350f62009-11-15 23:12:43 +000030320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030321$as_echo "yes" >&6; }
30322 have_xml='yes'
30323 fi
30324 else
cristy8b350f62009-11-15 23:12:43 +000030325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030326$as_echo "no" >&6; }
30327 fi
30328fi
cristy73bd4a52010-10-05 11:24:23 +000030329 if test "$have_xml" = 'yes'; then
30330 XML_DELEGATE_TRUE=
30331 XML_DELEGATE_FALSE='#'
30332else
30333 XML_DELEGATE_TRUE='#'
30334 XML_DELEGATE_FALSE=
30335fi
30336
cristy3ed852e2009-09-05 21:47:34 +000030337
30338
30339
30340# Substitute compiler name to build/link PerlMagick
30341#
30342
30343
30344#
30345# Configure install Paths
30346#
30347
30348# Subdirectory under lib to place ImageMagick lib files
30349LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30350
30351cat >>confdefs.h <<_ACEOF
30352#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30353_ACEOF
30354
30355
30356# Path to ImageMagick bin directory
30357EXECUTABLE_PATH="${BIN_DIR}"
30358DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30359case "${build_os}" in
30360 mingw* )
30361 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30362 ;;
30363esac
30364
30365cat >>confdefs.h <<_ACEOF
30366#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30367_ACEOF
30368
30369
30370
30371# Path to ImageMagick lib
30372LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30373DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30374case "${build_os}" in
30375 mingw* )
30376 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30377 ;;
30378esac
30379
30380cat >>confdefs.h <<_ACEOF
30381#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30382_ACEOF
30383
30384
30385
cristy3ed852e2009-09-05 21:47:34 +000030386#
30387# Subdirectory under lib to place ImageMagick coder module files
30388CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30389
30390cat >>confdefs.h <<_ACEOF
30391#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30392_ACEOF
30393
30394CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30395DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30396case "${build_os}" in
30397 mingw* )
30398 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30399 ;;
30400esac
30401
30402cat >>confdefs.h <<_ACEOF
30403#define CODER_PATH "$DEFINE_CODER_PATH"
30404_ACEOF
30405
30406
30407
30408#
30409# Subdirectory under lib to place ImageMagick filter module files
30410FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30411
30412cat >>confdefs.h <<_ACEOF
30413#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30414_ACEOF
30415
30416FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30417DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30418case "${build_os}" in
30419 mingw* )
30420 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30421 ;;
30422esac
30423
30424cat >>confdefs.h <<_ACEOF
30425#define FILTER_PATH "$DEFINE_FILTER_PATH"
30426_ACEOF
30427
30428
30429
30430#
30431# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000030432DOCUMENTATION_RELATIVE_PATH=""
30433DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
30434DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000030435case "${build_os}" in
30436 mingw* )
30437 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30438 ;;
30439esac
30440
30441cat >>confdefs.h <<_ACEOF
30442#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30443_ACEOF
30444
30445
30446
30447#
30448# Path to ImageMagick share files
30449SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30450SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30451DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
30452case "${build_os}" in
30453 mingw* )
30454 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
30455 ;;
30456esac
30457
30458cat >>confdefs.h <<_ACEOF
30459#define SHARE_PATH "$DEFINE_SHARE_PATH"
30460_ACEOF
30461
30462
30463
cristy3cf8a722011-03-20 23:32:22 +000030464# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000030465CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000030466
30467cat >>confdefs.h <<_ACEOF
30468#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30469_ACEOF
30470
30471CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30472DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30473case "${build_os}" in
30474 mingw* )
30475 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30476 ;;
30477esac
30478
30479cat >>confdefs.h <<_ACEOF
30480#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30481_ACEOF
30482
30483
30484
30485# Subdirectory to place ImageMagick configuration files
cristy388b4e02011-03-29 14:42:37 +000030486SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy3ed852e2009-09-05 21:47:34 +000030487
30488cat >>confdefs.h <<_ACEOF
30489#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
30490_ACEOF
30491
cristy45dbd322011-03-27 16:40:38 +000030492SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
30493DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000030494case "${build_os}" in
30495 mingw* )
30496 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
30497 ;;
30498esac
30499
30500cat >>confdefs.h <<_ACEOF
30501#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
30502_ACEOF
30503
30504
30505
30506#
30507# program_transform_name is formed for use in a Makefile, so create a
30508# modified version for use in a shell script.
30509configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30510
30511# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000030512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030513$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030515$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030517$as_echo "" >&6; }
30518AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000030519BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000030520BZIPDelegateDefault='bzip2'
30521BrowseDelegateDefault='xdg-open'
30522CGMDecodeDelegateDefault='ralcgm'
30523CatDelegateDefault='cat'
30524DNGDecodeDelegateDefault='ufraw-batch'
30525GVCDecodeDelegateDefault='dot'
30526DVIDecodeDelegateDefault='dvips'
30527EchoDelegateDefault='echo'
30528EditorDelegateDefault='xterm'
30529FIGDecodeDelegateDefault='fig2dev'
30530ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30531DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30532MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30533GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000030534HPGLDecodeDelegateDefault='hp2xx'
30535HTMLDecodeDelegateDefault='html2ps'
30536ILBMDecodeDelegateDefault='ilbmtoppm'
30537ILBMEncodeDelegateDefault='ppmtoilbm'
30538LPDelegateDefault='lp'
30539LPRDelegateDefault='lpr'
30540LZWDecodeDelegateDefault='uncompress'
30541LZWEncodeDelegateDefault='compress'
30542LaunchDelegateDefault='gimp'
30543MANDelegateDefault='groff'
30544MPEGDecodeDelegateDefault='ffmpeg'
30545MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000030546MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000030547MVDelegateDefault='mv'
30548PCLDelegateDefault='pcl6'
30549PGPDecodeDelegateDefault='pgpv'
30550POVDelegateDefault='povray'
30551if test "$native_win32_build" = 'yes'; then
30552 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000030553elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030554 PSDelegateDefault='gsc'
30555else
30556 PSDelegateDefault='gs'
30557fi
30558RLEEncodeDelegateDefault='rawtorle'
30559RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000030560RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000030561SCANDecodeDelegateDefault='scanimage'
30562TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000030563UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000030564WMFDecodeDelegateDefault='wmf2eps'
30565WWWDecodeDelegateDefault='curl'
30566XPSDelegateDefault='gxps'
30567ZipDelegateDefault='gzip'
30568
30569# Search for delegates
30570# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30571set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030574if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030575 $as_echo_n "(cached) " >&6
30576else
30577 case $AutotraceDecodeDelegate in
30578 [\\/]* | ?:[\\/]*)
30579 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30580 ;;
30581 *)
30582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30583for as_dir in $PATH
30584do
30585 IFS=$as_save_IFS
30586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30589 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030591 break 2
30592 fi
30593done
cristy8b350f62009-11-15 23:12:43 +000030594 done
cristy3ed852e2009-09-05 21:47:34 +000030595IFS=$as_save_IFS
30596
30597 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30598 ;;
30599esac
30600fi
30601AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30602if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030604$as_echo "$AutotraceDecodeDelegate" >&6; }
30605else
cristy8b350f62009-11-15 23:12:43 +000030606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030607$as_echo "no" >&6; }
30608fi
30609
30610
cristy3ed852e2009-09-05 21:47:34 +000030611# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30612set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030615if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030616 $as_echo_n "(cached) " >&6
30617else
30618 case $BlenderDecodeDelegate in
30619 [\\/]* | ?:[\\/]*)
30620 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30621 ;;
30622 *)
30623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30624for as_dir in $PATH
30625do
30626 IFS=$as_save_IFS
30627 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30630 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030632 break 2
30633 fi
30634done
cristy8b350f62009-11-15 23:12:43 +000030635 done
cristy3ed852e2009-09-05 21:47:34 +000030636IFS=$as_save_IFS
30637
30638 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30639 ;;
30640esac
30641fi
30642BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30643if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030645$as_echo "$BlenderDecodeDelegate" >&6; }
30646else
cristy8b350f62009-11-15 23:12:43 +000030647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030648$as_echo "no" >&6; }
30649fi
30650
30651
30652# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30653set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030656if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030657 $as_echo_n "(cached) " >&6
30658else
30659 case $BZIPDelegate in
30660 [\\/]* | ?:[\\/]*)
30661 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30662 ;;
30663 *)
30664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30665for as_dir in $PATH
30666do
30667 IFS=$as_save_IFS
30668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30671 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030673 break 2
30674 fi
30675done
cristy8b350f62009-11-15 23:12:43 +000030676 done
cristy3ed852e2009-09-05 21:47:34 +000030677IFS=$as_save_IFS
30678
30679 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30680 ;;
30681esac
30682fi
30683BZIPDelegate=$ac_cv_path_BZIPDelegate
30684if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030686$as_echo "$BZIPDelegate" >&6; }
30687else
cristy8b350f62009-11-15 23:12:43 +000030688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030689$as_echo "no" >&6; }
30690fi
30691
30692
30693# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30694set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030697if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030698 $as_echo_n "(cached) " >&6
30699else
30700 case $BrowseDelegate in
30701 [\\/]* | ?:[\\/]*)
30702 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30703 ;;
30704 *)
30705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30706for as_dir in $PATH
30707do
30708 IFS=$as_save_IFS
30709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30712 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030714 break 2
30715 fi
30716done
cristy8b350f62009-11-15 23:12:43 +000030717 done
cristy3ed852e2009-09-05 21:47:34 +000030718IFS=$as_save_IFS
30719
30720 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30721 ;;
30722esac
30723fi
30724BrowseDelegate=$ac_cv_path_BrowseDelegate
30725if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030727$as_echo "$BrowseDelegate" >&6; }
30728else
cristy8b350f62009-11-15 23:12:43 +000030729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030730$as_echo "no" >&6; }
30731fi
30732
30733
30734# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30735set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030738if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030739 $as_echo_n "(cached) " >&6
30740else
30741 case $CGMDecodeDelegate in
30742 [\\/]* | ?:[\\/]*)
30743 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30744 ;;
30745 *)
30746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30747for as_dir in $PATH
30748do
30749 IFS=$as_save_IFS
30750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30753 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030755 break 2
30756 fi
30757done
cristy8b350f62009-11-15 23:12:43 +000030758 done
cristy3ed852e2009-09-05 21:47:34 +000030759IFS=$as_save_IFS
30760
30761 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30762 ;;
30763esac
30764fi
30765CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30766if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030768$as_echo "$CGMDecodeDelegate" >&6; }
30769else
cristy8b350f62009-11-15 23:12:43 +000030770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030771$as_echo "no" >&6; }
30772fi
30773
30774
30775# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30776set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030778$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030779if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030780 $as_echo_n "(cached) " >&6
30781else
30782 case $CatDelegate in
30783 [\\/]* | ?:[\\/]*)
30784 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30785 ;;
30786 *)
30787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30788for as_dir in $PATH
30789do
30790 IFS=$as_save_IFS
30791 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030792 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30794 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030796 break 2
30797 fi
30798done
cristy8b350f62009-11-15 23:12:43 +000030799 done
cristy3ed852e2009-09-05 21:47:34 +000030800IFS=$as_save_IFS
30801
30802 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30803 ;;
30804esac
30805fi
30806CatDelegate=$ac_cv_path_CatDelegate
30807if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030809$as_echo "$CatDelegate" >&6; }
30810else
cristy8b350f62009-11-15 23:12:43 +000030811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030812$as_echo "no" >&6; }
30813fi
30814
30815
30816# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30817set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030820if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030821 $as_echo_n "(cached) " >&6
30822else
30823 case $DNGDecodeDelegate in
30824 [\\/]* | ?:[\\/]*)
30825 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30826 ;;
30827 *)
30828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30829for as_dir in $PATH
30830do
30831 IFS=$as_save_IFS
30832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30835 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030837 break 2
30838 fi
30839done
cristy8b350f62009-11-15 23:12:43 +000030840 done
cristy3ed852e2009-09-05 21:47:34 +000030841IFS=$as_save_IFS
30842
30843 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30844 ;;
30845esac
30846fi
30847DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30848if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030850$as_echo "$DNGDecodeDelegate" >&6; }
30851else
cristy8b350f62009-11-15 23:12:43 +000030852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030853$as_echo "no" >&6; }
30854fi
30855
30856
30857# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30858set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030861if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030862 $as_echo_n "(cached) " >&6
30863else
30864 case $GVCDecodeDelegate in
30865 [\\/]* | ?:[\\/]*)
30866 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30867 ;;
30868 *)
30869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30870for as_dir in $PATH
30871do
30872 IFS=$as_save_IFS
30873 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30876 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030878 break 2
30879 fi
30880done
cristy8b350f62009-11-15 23:12:43 +000030881 done
cristy3ed852e2009-09-05 21:47:34 +000030882IFS=$as_save_IFS
30883
30884 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30885 ;;
30886esac
30887fi
30888GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30889if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030891$as_echo "$GVCDecodeDelegate" >&6; }
30892else
cristy8b350f62009-11-15 23:12:43 +000030893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030894$as_echo "no" >&6; }
30895fi
30896
30897
30898# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30899set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030901$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030902if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030903 $as_echo_n "(cached) " >&6
30904else
30905 case $DVIDecodeDelegate in
30906 [\\/]* | ?:[\\/]*)
30907 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30908 ;;
30909 *)
30910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30911for as_dir in $PATH
30912do
30913 IFS=$as_save_IFS
30914 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30917 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030919 break 2
30920 fi
30921done
cristy8b350f62009-11-15 23:12:43 +000030922 done
cristy3ed852e2009-09-05 21:47:34 +000030923IFS=$as_save_IFS
30924
30925 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30926 ;;
30927esac
30928fi
30929DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30930if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030932$as_echo "$DVIDecodeDelegate" >&6; }
30933else
cristy8b350f62009-11-15 23:12:43 +000030934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030935$as_echo "no" >&6; }
30936fi
30937
30938
30939# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30940set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030942$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030943if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030944 $as_echo_n "(cached) " >&6
30945else
30946 case $EchoDelegate in
30947 [\\/]* | ?:[\\/]*)
30948 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30949 ;;
30950 *)
30951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30952for as_dir in $PATH
30953do
30954 IFS=$as_save_IFS
30955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30958 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030960 break 2
30961 fi
30962done
cristy8b350f62009-11-15 23:12:43 +000030963 done
cristy3ed852e2009-09-05 21:47:34 +000030964IFS=$as_save_IFS
30965
30966 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30967 ;;
30968esac
30969fi
30970EchoDelegate=$ac_cv_path_EchoDelegate
30971if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030973$as_echo "$EchoDelegate" >&6; }
30974else
cristy8b350f62009-11-15 23:12:43 +000030975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030976$as_echo "no" >&6; }
30977fi
30978
30979
30980# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30981set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030983$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030984if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030985 $as_echo_n "(cached) " >&6
30986else
30987 case $EditorDelegate in
30988 [\\/]* | ?:[\\/]*)
30989 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30990 ;;
30991 *)
30992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30993for as_dir in $PATH
30994do
30995 IFS=$as_save_IFS
30996 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030997 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30999 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031001 break 2
31002 fi
31003done
cristy8b350f62009-11-15 23:12:43 +000031004 done
cristy3ed852e2009-09-05 21:47:34 +000031005IFS=$as_save_IFS
31006
31007 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31008 ;;
31009esac
31010fi
31011EditorDelegate=$ac_cv_path_EditorDelegate
31012if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031014$as_echo "$EditorDelegate" >&6; }
31015else
cristy8b350f62009-11-15 23:12:43 +000031016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031017$as_echo "no" >&6; }
31018fi
31019
31020
31021# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31022set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031024$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031025if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031026 $as_echo_n "(cached) " >&6
31027else
31028 case $FIGDecodeDelegate in
31029 [\\/]* | ?:[\\/]*)
31030 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31031 ;;
31032 *)
31033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31034for as_dir in $PATH
31035do
31036 IFS=$as_save_IFS
31037 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31040 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031042 break 2
31043 fi
31044done
cristy8b350f62009-11-15 23:12:43 +000031045 done
cristy3ed852e2009-09-05 21:47:34 +000031046IFS=$as_save_IFS
31047
31048 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31049 ;;
31050esac
31051fi
31052FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31053if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031055$as_echo "$FIGDecodeDelegate" >&6; }
31056else
cristy8b350f62009-11-15 23:12:43 +000031057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031058$as_echo "no" >&6; }
31059fi
31060
31061
31062# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31063set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031065$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031066if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031067 $as_echo_n "(cached) " >&6
31068else
31069 case $ConvertDelegate in
31070 [\\/]* | ?:[\\/]*)
31071 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31072 ;;
31073 *)
31074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31075for as_dir in $PATH
31076do
31077 IFS=$as_save_IFS
31078 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031079 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31081 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031083 break 2
31084 fi
31085done
cristy8b350f62009-11-15 23:12:43 +000031086 done
cristy3ed852e2009-09-05 21:47:34 +000031087IFS=$as_save_IFS
31088
31089 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31090 ;;
31091esac
31092fi
31093ConvertDelegate=$ac_cv_path_ConvertDelegate
31094if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031096$as_echo "$ConvertDelegate" >&6; }
31097else
cristy8b350f62009-11-15 23:12:43 +000031098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031099$as_echo "no" >&6; }
31100fi
31101
31102
31103# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31104set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031106$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031107if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031108 $as_echo_n "(cached) " >&6
31109else
31110 case $DisplayDelegate in
31111 [\\/]* | ?:[\\/]*)
31112 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31113 ;;
31114 *)
31115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31116for as_dir in $PATH
31117do
31118 IFS=$as_save_IFS
31119 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031120 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31122 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031124 break 2
31125 fi
31126done
cristy8b350f62009-11-15 23:12:43 +000031127 done
cristy3ed852e2009-09-05 21:47:34 +000031128IFS=$as_save_IFS
31129
31130 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31131 ;;
31132esac
31133fi
31134DisplayDelegate=$ac_cv_path_DisplayDelegate
31135if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031137$as_echo "$DisplayDelegate" >&6; }
31138else
cristy8b350f62009-11-15 23:12:43 +000031139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031140$as_echo "no" >&6; }
31141fi
31142
31143
31144# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31145set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031147$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031148if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031149 $as_echo_n "(cached) " >&6
31150else
31151 case $MogrifyDelegate in
31152 [\\/]* | ?:[\\/]*)
31153 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31154 ;;
31155 *)
31156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31157for as_dir in $PATH
31158do
31159 IFS=$as_save_IFS
31160 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031161 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31163 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031165 break 2
31166 fi
31167done
cristy8b350f62009-11-15 23:12:43 +000031168 done
cristy3ed852e2009-09-05 21:47:34 +000031169IFS=$as_save_IFS
31170
31171 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31172 ;;
31173esac
31174fi
31175MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31176if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031178$as_echo "$MogrifyDelegate" >&6; }
31179else
cristy8b350f62009-11-15 23:12:43 +000031180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031181$as_echo "no" >&6; }
31182fi
31183
31184
31185# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31186set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031188$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031189if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031190 $as_echo_n "(cached) " >&6
31191else
31192 case $GnuplotDecodeDelegate in
31193 [\\/]* | ?:[\\/]*)
31194 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31195 ;;
31196 *)
31197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31198for as_dir in $PATH
31199do
31200 IFS=$as_save_IFS
31201 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031202 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31204 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031206 break 2
31207 fi
31208done
cristy8b350f62009-11-15 23:12:43 +000031209 done
cristy3ed852e2009-09-05 21:47:34 +000031210IFS=$as_save_IFS
31211
31212 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31213 ;;
31214esac
31215fi
31216GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31217if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031219$as_echo "$GnuplotDecodeDelegate" >&6; }
31220else
cristy8b350f62009-11-15 23:12:43 +000031221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031222$as_echo "no" >&6; }
31223fi
31224
31225
cristy3ed852e2009-09-05 21:47:34 +000031226# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31227set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031229$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031230if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031231 $as_echo_n "(cached) " >&6
31232else
31233 case $HPGLDecodeDelegate in
31234 [\\/]* | ?:[\\/]*)
31235 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31236 ;;
31237 *)
31238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31239for as_dir in $PATH
31240do
31241 IFS=$as_save_IFS
31242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31245 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031247 break 2
31248 fi
31249done
cristy8b350f62009-11-15 23:12:43 +000031250 done
cristy3ed852e2009-09-05 21:47:34 +000031251IFS=$as_save_IFS
31252
31253 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31254 ;;
31255esac
31256fi
31257HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31258if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031260$as_echo "$HPGLDecodeDelegate" >&6; }
31261else
cristy8b350f62009-11-15 23:12:43 +000031262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031263$as_echo "no" >&6; }
31264fi
31265
31266
31267# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31268set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031270$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031271if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031272 $as_echo_n "(cached) " >&6
31273else
31274 case $HTMLDecodeDelegate in
31275 [\\/]* | ?:[\\/]*)
31276 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31277 ;;
31278 *)
31279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31280for as_dir in $PATH
31281do
31282 IFS=$as_save_IFS
31283 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31286 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031288 break 2
31289 fi
31290done
cristy8b350f62009-11-15 23:12:43 +000031291 done
cristy3ed852e2009-09-05 21:47:34 +000031292IFS=$as_save_IFS
31293
31294 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31295 ;;
31296esac
31297fi
31298HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31299if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031301$as_echo "$HTMLDecodeDelegate" >&6; }
31302else
cristy8b350f62009-11-15 23:12:43 +000031303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031304$as_echo "no" >&6; }
31305fi
31306
31307
31308# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31309set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031311$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031312if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031313 $as_echo_n "(cached) " >&6
31314else
31315 case $ILBMDecodeDelegate in
31316 [\\/]* | ?:[\\/]*)
31317 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31318 ;;
31319 *)
31320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31321for as_dir in $PATH
31322do
31323 IFS=$as_save_IFS
31324 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31327 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031329 break 2
31330 fi
31331done
cristy8b350f62009-11-15 23:12:43 +000031332 done
cristy3ed852e2009-09-05 21:47:34 +000031333IFS=$as_save_IFS
31334
31335 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31336 ;;
31337esac
31338fi
31339ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31340if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031342$as_echo "$ILBMDecodeDelegate" >&6; }
31343else
cristy8b350f62009-11-15 23:12:43 +000031344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031345$as_echo "no" >&6; }
31346fi
31347
31348
31349# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31350set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031352$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031353if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031354 $as_echo_n "(cached) " >&6
31355else
31356 case $ILBMEncodeDelegate in
31357 [\\/]* | ?:[\\/]*)
31358 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31359 ;;
31360 *)
31361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31362for as_dir in $PATH
31363do
31364 IFS=$as_save_IFS
31365 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031366 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31368 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031370 break 2
31371 fi
31372done
cristy8b350f62009-11-15 23:12:43 +000031373 done
cristy3ed852e2009-09-05 21:47:34 +000031374IFS=$as_save_IFS
31375
31376 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31377 ;;
31378esac
31379fi
31380ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31381if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031383$as_echo "$ILBMEncodeDelegate" >&6; }
31384else
cristy8b350f62009-11-15 23:12:43 +000031385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031386$as_echo "no" >&6; }
31387fi
31388
31389
31390# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31391set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031393$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031394if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031395 $as_echo_n "(cached) " >&6
31396else
31397 case $LPDelegate in
31398 [\\/]* | ?:[\\/]*)
31399 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31400 ;;
31401 *)
31402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31403for as_dir in $PATH
31404do
31405 IFS=$as_save_IFS
31406 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031407 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31409 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031411 break 2
31412 fi
31413done
cristy8b350f62009-11-15 23:12:43 +000031414 done
cristy3ed852e2009-09-05 21:47:34 +000031415IFS=$as_save_IFS
31416
31417 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31418 ;;
31419esac
31420fi
31421LPDelegate=$ac_cv_path_LPDelegate
31422if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031424$as_echo "$LPDelegate" >&6; }
31425else
cristy8b350f62009-11-15 23:12:43 +000031426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031427$as_echo "no" >&6; }
31428fi
31429
31430
31431# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31432set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031435if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031436 $as_echo_n "(cached) " >&6
31437else
31438 case $LPRDelegate in
31439 [\\/]* | ?:[\\/]*)
31440 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31441 ;;
31442 *)
31443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31444for as_dir in $PATH
31445do
31446 IFS=$as_save_IFS
31447 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31450 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031452 break 2
31453 fi
31454done
cristy8b350f62009-11-15 23:12:43 +000031455 done
cristy3ed852e2009-09-05 21:47:34 +000031456IFS=$as_save_IFS
31457
31458 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31459 ;;
31460esac
31461fi
31462LPRDelegate=$ac_cv_path_LPRDelegate
31463if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031465$as_echo "$LPRDelegate" >&6; }
31466else
cristy8b350f62009-11-15 23:12:43 +000031467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031468$as_echo "no" >&6; }
31469fi
31470
31471
31472# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31473set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031475$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031476if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031477 $as_echo_n "(cached) " >&6
31478else
31479 case $LZWDecodeDelegate in
31480 [\\/]* | ?:[\\/]*)
31481 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31482 ;;
31483 *)
31484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31485for as_dir in $PATH
31486do
31487 IFS=$as_save_IFS
31488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31491 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031493 break 2
31494 fi
31495done
cristy8b350f62009-11-15 23:12:43 +000031496 done
cristy3ed852e2009-09-05 21:47:34 +000031497IFS=$as_save_IFS
31498
31499 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31500 ;;
31501esac
31502fi
31503LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31504if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031506$as_echo "$LZWDecodeDelegate" >&6; }
31507else
cristy8b350f62009-11-15 23:12:43 +000031508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031509$as_echo "no" >&6; }
31510fi
31511
31512
31513# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31514set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031517if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031518 $as_echo_n "(cached) " >&6
31519else
31520 case $LZWEncodeDelegate in
31521 [\\/]* | ?:[\\/]*)
31522 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31523 ;;
31524 *)
31525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31526for as_dir in $PATH
31527do
31528 IFS=$as_save_IFS
31529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31532 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031534 break 2
31535 fi
31536done
cristy8b350f62009-11-15 23:12:43 +000031537 done
cristy3ed852e2009-09-05 21:47:34 +000031538IFS=$as_save_IFS
31539
31540 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31541 ;;
31542esac
31543fi
31544LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31545if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031547$as_echo "$LZWEncodeDelegate" >&6; }
31548else
cristy8b350f62009-11-15 23:12:43 +000031549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031550$as_echo "no" >&6; }
31551fi
31552
31553
31554# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31555set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031558if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031559 $as_echo_n "(cached) " >&6
31560else
31561 case $LaunchDelegate in
31562 [\\/]* | ?:[\\/]*)
31563 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31564 ;;
31565 *)
31566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31567for as_dir in $PATH
31568do
31569 IFS=$as_save_IFS
31570 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31573 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031575 break 2
31576 fi
31577done
cristy8b350f62009-11-15 23:12:43 +000031578 done
cristy3ed852e2009-09-05 21:47:34 +000031579IFS=$as_save_IFS
31580
31581 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31582 ;;
31583esac
31584fi
31585LaunchDelegate=$ac_cv_path_LaunchDelegate
31586if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031588$as_echo "$LaunchDelegate" >&6; }
31589else
cristy8b350f62009-11-15 23:12:43 +000031590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031591$as_echo "no" >&6; }
31592fi
31593
31594
31595# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31596set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031599if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031600 $as_echo_n "(cached) " >&6
31601else
31602 case $MANDelegate in
31603 [\\/]* | ?:[\\/]*)
31604 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31605 ;;
31606 *)
31607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31608for as_dir in $PATH
31609do
31610 IFS=$as_save_IFS
31611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31614 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031616 break 2
31617 fi
31618done
cristy8b350f62009-11-15 23:12:43 +000031619 done
cristy3ed852e2009-09-05 21:47:34 +000031620IFS=$as_save_IFS
31621
31622 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31623 ;;
31624esac
31625fi
31626MANDelegate=$ac_cv_path_MANDelegate
31627if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031629$as_echo "$MANDelegate" >&6; }
31630else
cristy8b350f62009-11-15 23:12:43 +000031631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031632$as_echo "no" >&6; }
31633fi
31634
31635
31636# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31637set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031639$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031640if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031641 $as_echo_n "(cached) " >&6
31642else
31643 case $MPEGDecodeDelegate in
31644 [\\/]* | ?:[\\/]*)
31645 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31646 ;;
31647 *)
31648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31649for as_dir in $PATH
31650do
31651 IFS=$as_save_IFS
31652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31655 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031657 break 2
31658 fi
31659done
cristy8b350f62009-11-15 23:12:43 +000031660 done
cristy3ed852e2009-09-05 21:47:34 +000031661IFS=$as_save_IFS
31662
31663 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31664 ;;
31665esac
31666fi
31667MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31668if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031670$as_echo "$MPEGDecodeDelegate" >&6; }
31671else
cristy8b350f62009-11-15 23:12:43 +000031672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031673$as_echo "no" >&6; }
31674fi
31675
31676
31677# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31678set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031680$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031681if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031682 $as_echo_n "(cached) " >&6
31683else
31684 case $MPEGEncodeDelegate in
31685 [\\/]* | ?:[\\/]*)
31686 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31687 ;;
31688 *)
31689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31690for as_dir in $PATH
31691do
31692 IFS=$as_save_IFS
31693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31696 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031698 break 2
31699 fi
31700done
cristy8b350f62009-11-15 23:12:43 +000031701 done
cristy3ed852e2009-09-05 21:47:34 +000031702IFS=$as_save_IFS
31703
31704 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31705 ;;
31706esac
31707fi
31708MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31709if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031711$as_echo "$MPEGEncodeDelegate" >&6; }
31712else
cristy8b350f62009-11-15 23:12:43 +000031713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031714$as_echo "no" >&6; }
31715fi
31716
31717
cristy935c86e2010-06-05 23:50:07 +000031718# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31719set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31721$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031722if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000031723 $as_echo_n "(cached) " >&6
31724else
31725 case $MrSIDDecodeDelegate in
31726 [\\/]* | ?:[\\/]*)
31727 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31728 ;;
31729 *)
31730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31731for as_dir in $PATH
31732do
31733 IFS=$as_save_IFS
31734 test -z "$as_dir" && as_dir=.
31735 for ac_exec_ext in '' $ac_executable_extensions; do
31736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31737 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31739 break 2
31740 fi
31741done
31742 done
31743IFS=$as_save_IFS
31744
31745 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31746 ;;
31747esac
31748fi
31749MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31750if test -n "$MrSIDDecodeDelegate"; then
31751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31752$as_echo "$MrSIDDecodeDelegate" >&6; }
31753else
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31755$as_echo "no" >&6; }
31756fi
31757
31758
cristy3ed852e2009-09-05 21:47:34 +000031759# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31760set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031763if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031764 $as_echo_n "(cached) " >&6
31765else
31766 case $MVDelegate in
31767 [\\/]* | ?:[\\/]*)
31768 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31769 ;;
31770 *)
31771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31772for as_dir in $PATH
31773do
31774 IFS=$as_save_IFS
31775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31778 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031780 break 2
31781 fi
31782done
cristy8b350f62009-11-15 23:12:43 +000031783 done
cristy3ed852e2009-09-05 21:47:34 +000031784IFS=$as_save_IFS
31785
31786 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31787 ;;
31788esac
31789fi
31790MVDelegate=$ac_cv_path_MVDelegate
31791if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031793$as_echo "$MVDelegate" >&6; }
31794else
cristy8b350f62009-11-15 23:12:43 +000031795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031796$as_echo "no" >&6; }
31797fi
31798
31799
31800# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31801set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031803$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031804if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031805 $as_echo_n "(cached) " >&6
31806else
31807 case $PCLDelegate in
31808 [\\/]* | ?:[\\/]*)
31809 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31810 ;;
31811 *)
31812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31813for as_dir in $PATH
31814do
31815 IFS=$as_save_IFS
31816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31819 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031821 break 2
31822 fi
31823done
cristy8b350f62009-11-15 23:12:43 +000031824 done
cristy3ed852e2009-09-05 21:47:34 +000031825IFS=$as_save_IFS
31826
31827 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31828 ;;
31829esac
31830fi
31831PCLDelegate=$ac_cv_path_PCLDelegate
31832if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031834$as_echo "$PCLDelegate" >&6; }
31835else
cristy8b350f62009-11-15 23:12:43 +000031836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031837$as_echo "no" >&6; }
31838fi
31839
31840
31841# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31842set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031844$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031845if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031846 $as_echo_n "(cached) " >&6
31847else
31848 case $PGPDecodeDelegate in
31849 [\\/]* | ?:[\\/]*)
31850 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31851 ;;
31852 *)
31853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31854for as_dir in $PATH
31855do
31856 IFS=$as_save_IFS
31857 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31860 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031862 break 2
31863 fi
31864done
cristy8b350f62009-11-15 23:12:43 +000031865 done
cristy3ed852e2009-09-05 21:47:34 +000031866IFS=$as_save_IFS
31867
31868 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31869 ;;
31870esac
31871fi
31872PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31873if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031875$as_echo "$PGPDecodeDelegate" >&6; }
31876else
cristy8b350f62009-11-15 23:12:43 +000031877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031878$as_echo "no" >&6; }
31879fi
31880
31881
31882# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31883set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031886if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031887 $as_echo_n "(cached) " >&6
31888else
31889 case $POVDelegate in
31890 [\\/]* | ?:[\\/]*)
31891 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31892 ;;
31893 *)
31894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31895for as_dir in $PATH
31896do
31897 IFS=$as_save_IFS
31898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31901 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031903 break 2
31904 fi
31905done
cristy8b350f62009-11-15 23:12:43 +000031906 done
cristy3ed852e2009-09-05 21:47:34 +000031907IFS=$as_save_IFS
31908
31909 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31910 ;;
31911esac
31912fi
31913POVDelegate=$ac_cv_path_POVDelegate
31914if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031916$as_echo "$POVDelegate" >&6; }
31917else
cristy8b350f62009-11-15 23:12:43 +000031918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031919$as_echo "no" >&6; }
31920fi
31921
31922
31923for ac_prog in gsx gsc "$PSDelegateDefault"
31924do
31925 # Extract the first word of "$ac_prog", so it can be a program name with args.
31926set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031929if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031930 $as_echo_n "(cached) " >&6
31931else
31932 case $PSDelegate in
31933 [\\/]* | ?:[\\/]*)
31934 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31935 ;;
31936 *)
31937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31938for as_dir in $PATH
31939do
31940 IFS=$as_save_IFS
31941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31944 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031946 break 2
31947 fi
31948done
cristy8b350f62009-11-15 23:12:43 +000031949 done
cristy3ed852e2009-09-05 21:47:34 +000031950IFS=$as_save_IFS
31951
31952 ;;
31953esac
31954fi
31955PSDelegate=$ac_cv_path_PSDelegate
31956if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031958$as_echo "$PSDelegate" >&6; }
31959else
cristy8b350f62009-11-15 23:12:43 +000031960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031961$as_echo "no" >&6; }
31962fi
31963
31964
31965 test -n "$PSDelegate" && break
31966done
31967test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31968
31969# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31970set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031973if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031974 $as_echo_n "(cached) " >&6
31975else
31976 case $RLEEncodeDelegate in
31977 [\\/]* | ?:[\\/]*)
31978 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31979 ;;
31980 *)
31981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31982for as_dir in $PATH
31983do
31984 IFS=$as_save_IFS
31985 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31988 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031990 break 2
31991 fi
31992done
cristy8b350f62009-11-15 23:12:43 +000031993 done
cristy3ed852e2009-09-05 21:47:34 +000031994IFS=$as_save_IFS
31995
31996 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31997 ;;
31998esac
31999fi
32000RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
32001if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032003$as_echo "$RLEEncodeDelegate" >&6; }
32004else
cristy8b350f62009-11-15 23:12:43 +000032005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032006$as_echo "no" >&6; }
32007fi
32008
32009
32010# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
32011set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032013$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032014if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032015 $as_echo_n "(cached) " >&6
32016else
32017 case $RMDelegate in
32018 [\\/]* | ?:[\\/]*)
32019 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32020 ;;
32021 *)
32022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32023for as_dir in $PATH
32024do
32025 IFS=$as_save_IFS
32026 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032027 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32029 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032031 break 2
32032 fi
32033done
cristy8b350f62009-11-15 23:12:43 +000032034 done
cristy3ed852e2009-09-05 21:47:34 +000032035IFS=$as_save_IFS
32036
32037 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32038 ;;
32039esac
32040fi
32041RMDelegate=$ac_cv_path_RMDelegate
32042if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032044$as_echo "$RMDelegate" >&6; }
32045else
cristy8b350f62009-11-15 23:12:43 +000032046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032047$as_echo "no" >&6; }
32048fi
32049
32050
cristy4689cf02010-02-17 21:15:45 +000032051# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32052set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032055if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000032056 $as_echo_n "(cached) " >&6
32057else
32058 case $RSVGDecodeDelegate in
32059 [\\/]* | ?:[\\/]*)
32060 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32061 ;;
32062 *)
32063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32064for as_dir in $PATH
32065do
32066 IFS=$as_save_IFS
32067 test -z "$as_dir" && as_dir=.
32068 for ac_exec_ext in '' $ac_executable_extensions; do
32069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32070 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32072 break 2
32073 fi
32074done
32075 done
32076IFS=$as_save_IFS
32077
32078 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32079 ;;
32080esac
32081fi
32082RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32083if test -n "$RSVGDecodeDelegate"; then
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32085$as_echo "$RSVGDecodeDelegate" >&6; }
32086else
32087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32088$as_echo "no" >&6; }
32089fi
32090
32091
cristy3ed852e2009-09-05 21:47:34 +000032092# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32093set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032095$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032096if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032097 $as_echo_n "(cached) " >&6
32098else
32099 case $SCANDecodeDelegate in
32100 [\\/]* | ?:[\\/]*)
32101 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32102 ;;
32103 *)
32104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32105for as_dir in $PATH
32106do
32107 IFS=$as_save_IFS
32108 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032109 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32111 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032113 break 2
32114 fi
32115done
cristy8b350f62009-11-15 23:12:43 +000032116 done
cristy3ed852e2009-09-05 21:47:34 +000032117IFS=$as_save_IFS
32118
32119 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32120 ;;
32121esac
32122fi
32123SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32124if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032126$as_echo "$SCANDecodeDelegate" >&6; }
32127else
cristy8b350f62009-11-15 23:12:43 +000032128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032129$as_echo "no" >&6; }
32130fi
32131
32132
32133# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32134set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032136$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032137if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032138 $as_echo_n "(cached) " >&6
32139else
32140 case $TXTDelegate in
32141 [\\/]* | ?:[\\/]*)
32142 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32143 ;;
32144 *)
32145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32146for as_dir in $PATH
32147do
32148 IFS=$as_save_IFS
32149 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032150 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32152 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032154 break 2
32155 fi
32156done
cristy8b350f62009-11-15 23:12:43 +000032157 done
cristy3ed852e2009-09-05 21:47:34 +000032158IFS=$as_save_IFS
32159
32160 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32161 ;;
32162esac
32163fi
32164TXTDelegate=$ac_cv_path_TXTDelegate
32165if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032167$as_echo "$TXTDelegate" >&6; }
32168else
cristy8b350f62009-11-15 23:12:43 +000032169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032170$as_echo "no" >&6; }
32171fi
32172
32173
cristy5ac9ac82010-07-29 13:24:24 +000032174# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32175set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32177$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032178if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032179 $as_echo_n "(cached) " >&6
32180else
32181 case $UniconvertorDelegate in
32182 [\\/]* | ?:[\\/]*)
32183 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32184 ;;
32185 *)
32186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32187for as_dir in $PATH
32188do
32189 IFS=$as_save_IFS
32190 test -z "$as_dir" && as_dir=.
32191 for ac_exec_ext in '' $ac_executable_extensions; do
32192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32193 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32195 break 2
32196 fi
32197done
32198 done
32199IFS=$as_save_IFS
32200
32201 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32202 ;;
32203esac
32204fi
32205UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32206if test -n "$UniconvertorDelegate"; then
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32208$as_echo "$UniconvertorDelegate" >&6; }
32209else
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32211$as_echo "no" >&6; }
32212fi
32213
32214
cristy3ed852e2009-09-05 21:47:34 +000032215# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32216set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032218$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032219if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032220 $as_echo_n "(cached) " >&6
32221else
32222 case $WMFDecodeDelegate in
32223 [\\/]* | ?:[\\/]*)
32224 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32225 ;;
32226 *)
32227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32228for as_dir in $PATH
32229do
32230 IFS=$as_save_IFS
32231 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32234 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032236 break 2
32237 fi
32238done
cristy8b350f62009-11-15 23:12:43 +000032239 done
cristy3ed852e2009-09-05 21:47:34 +000032240IFS=$as_save_IFS
32241
32242 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32243 ;;
32244esac
32245fi
32246WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32247if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032249$as_echo "$WMFDecodeDelegate" >&6; }
32250else
cristy8b350f62009-11-15 23:12:43 +000032251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032252$as_echo "no" >&6; }
32253fi
32254
32255
32256# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32257set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032259$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032260if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032261 $as_echo_n "(cached) " >&6
32262else
32263 case $WWWDecodeDelegate in
32264 [\\/]* | ?:[\\/]*)
32265 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
32266 ;;
32267 *)
32268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32269for as_dir in $PATH
32270do
32271 IFS=$as_save_IFS
32272 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032273 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32275 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032277 break 2
32278 fi
32279done
cristy8b350f62009-11-15 23:12:43 +000032280 done
cristy3ed852e2009-09-05 21:47:34 +000032281IFS=$as_save_IFS
32282
32283 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32284 ;;
32285esac
32286fi
32287WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32288if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032290$as_echo "$WWWDecodeDelegate" >&6; }
32291else
cristy8b350f62009-11-15 23:12:43 +000032292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032293$as_echo "no" >&6; }
32294fi
32295
32296
32297# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32298set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032300$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032301if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032302 $as_echo_n "(cached) " >&6
32303else
32304 case $XPSDelegate in
32305 [\\/]* | ?:[\\/]*)
32306 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
32307 ;;
32308 *)
32309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32310for as_dir in $PATH
32311do
32312 IFS=$as_save_IFS
32313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32316 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032318 break 2
32319 fi
32320done
cristy8b350f62009-11-15 23:12:43 +000032321 done
cristy3ed852e2009-09-05 21:47:34 +000032322IFS=$as_save_IFS
32323
32324 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32325 ;;
32326esac
32327fi
32328XPSDelegate=$ac_cv_path_XPSDelegate
32329if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032331$as_echo "$XPSDelegate" >&6; }
32332else
cristy8b350f62009-11-15 23:12:43 +000032333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032334$as_echo "no" >&6; }
32335fi
32336
32337
32338# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32339set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032341$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032342if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032343 $as_echo_n "(cached) " >&6
32344else
32345 case $ZipDelegate in
32346 [\\/]* | ?:[\\/]*)
32347 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
32348 ;;
32349 *)
32350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32351for as_dir in $PATH
32352do
32353 IFS=$as_save_IFS
32354 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32357 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032359 break 2
32360 fi
32361done
cristy8b350f62009-11-15 23:12:43 +000032362 done
cristy3ed852e2009-09-05 21:47:34 +000032363IFS=$as_save_IFS
32364
32365 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32366 ;;
32367esac
32368fi
32369ZipDelegate=$ac_cv_path_ZipDelegate
32370if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032372$as_echo "$ZipDelegate" >&6; }
32373else
cristy8b350f62009-11-15 23:12:43 +000032374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032375$as_echo "no" >&6; }
32376fi
32377
32378
32379
32380# Prefer lpr to lp; lp needs options tacked on.
32381if test "$LPRDelegate" != no; then
32382 PrintDelegate="$LPRDelegate"
32383else
32384 PrintDelegate="$LPDelegate -c -s"
32385fi
32386
32387
32388# Installed ImageMagick utiltity paths
32389ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32390DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32391MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32392
32393# Set delegate booleans
32394have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32395have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32396have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32397have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32398have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000032399have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032400have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32401have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032402have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32403have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32404
32405#
32406# Test for font directories
32407#
32408type_include_files=''
32409
cristy430a7312010-01-21 20:44:04 +000032410# Dejavu fonts.
32411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32412$as_echo_n "checking for Dejavu fonts directory... " >&6; }
32413dejavu_font_dir=''
32414if test "${with_dejavu_font_dir}" != 'default'; then
32415 dejavu_font_dir="${with_dejavu_font_dir}/"
32416else
32417 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32418 if test -f "${font_dir}DejaVuSerif.ttf"; then
32419 dejavu_font_dir="${font_dir}"
32420 break 1
32421 fi
32422 done
32423fi
32424if test "${dejavu_font_dir}x" != 'x'; then
32425 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32427$as_echo "$dejavu_font_dir" >&6; }
32428else
32429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32430$as_echo "not found!" >&6; };
32431fi
32432
32433
cristy3ed852e2009-09-05 21:47:34 +000032434# Windows
32435windows_font_dir=''
32436if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32437 windows_font_dir="${with_windows_font_dir}/"
32438fi
cristy430a7312010-01-21 20:44:04 +000032439if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032440 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32441 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32442 fi
32443 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32444 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32445 fi
32446 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32447 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32448 fi
32449fi
cristy430a7312010-01-21 20:44:04 +000032450if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032451 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32452fi
32453
32454
32455# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000032456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000032457$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32458ghostscript_font_dir=''
32459if test "${with_gs_font_dir}" != 'default'; then
32460 ghostscript_font_dir="${with_gs_font_dir}/"
32461else
32462 if test "${native_win32_build}" = 'yes'; then
32463 # Native Windows Build
32464 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32465 if test -f "${font_dir}a010013l.pfb"; then
32466 ghostscript_font_dir="$font_dir"
32467 break 1
32468 fi
32469 done
32470 if test "${PSDelegate}" != 'gswin32c'; then
32471 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32472 fi
32473 else
32474 # Linux / Mac OS X / Unix Build
32475 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
32476 if test -f "${font_dir}a010013l.pfb"; then
32477 ghostscript_font_dir="${font_dir}"
32478 break 1
32479 fi
32480 done
32481 if test "${ghostscript_font_dir}x" = 'x'; then
32482 if test "$PSDelegate" != 'gs'; then
32483 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32484 fi
32485 fi
32486 fi
32487fi
32488if test "${ghostscript_font_dir}x" != 'x'; then
32489 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000032490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000032491$as_echo "$ghostscript_font_dir" >&6; }
32492else
cristy8b350f62009-11-15 23:12:43 +000032493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000032494$as_echo "not found!" >&6; };
32495fi
32496
32497case "${build_os}" in
32498 mingw* )
32499 PSDelegate=`$WinPathScript "$PSDelegate" 1`
32500 ;;
32501esac
32502
32503
32504
32505#
32506# Handle case where user doesn't want frozen paths
32507#
32508if test "$with_frozenpaths" != 'yes'; then
32509 # Re-set delegate definitions to default (no paths)
32510 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032511 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32512 BZIPDelegate="$BZIPDelegateDefault"
32513 BrowseDelegate="$BrowseDelegateDefault"
32514 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32515 CatDelegate="$CatDelegateDefault"
32516 ConvertDelegate="$ConvertDelegateDefault"
32517 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32518 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32519 EchoDelegate="$EchoDelegateDefault"
32520 EditorDelegate="$EditorDelegateDefault"
32521 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32522 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32523 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32524 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32525 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32526 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32527 LPDelegate="$LPDelegateDefault"
32528 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32529 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32530 LaunchDelegate="$LaunchDelegateDefault"
32531 MANDelegate="$MANDelegateDefault"
32532 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32533 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032534 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000032535 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32536 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032537 PCLDelegate="$PCLDelegateDefault"
32538 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32539 POVDelegate="$POVDelegateDefault"
32540 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032541 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32542 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000032543 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032544 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32545 ShowImageDelegate="$ShowImageDelegateDefault"
32546 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000032547 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032548 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32549 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32550 XPSDelegate="$XPSDelegateDefault"
32551 ZipDelegate="$ZipDelegateDefault"
32552fi
32553
32554# Delegate substitutions
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597#
32598# RPM support.
32599#
32600RPM=''
32601for ac_prog in gnutar gtar tar
32602do
32603 # Extract the first word of "$ac_prog", so it can be a program name with args.
32604set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032606$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032607if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032608 $as_echo_n "(cached) " >&6
32609else
32610 if test -n "$TAR"; then
32611 ac_cv_prog_TAR="$TAR" # Let the user override the test.
32612else
32613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32614for as_dir in $PATH
32615do
32616 IFS=$as_save_IFS
32617 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032618 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32620 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032622 break 2
32623 fi
32624done
cristy8b350f62009-11-15 23:12:43 +000032625 done
cristy3ed852e2009-09-05 21:47:34 +000032626IFS=$as_save_IFS
32627
32628fi
32629fi
32630TAR=$ac_cv_prog_TAR
32631if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000032632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000032633$as_echo "$TAR" >&6; }
32634else
cristy8b350f62009-11-15 23:12:43 +000032635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032636$as_echo "no" >&6; }
32637fi
32638
32639
32640 test -n "$TAR" && break
32641done
32642
32643for ac_prog in perl
32644do
32645 # Extract the first word of "$ac_prog", so it can be a program name with args.
32646set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032649if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032650 $as_echo_n "(cached) " >&6
32651else
32652 if test -n "$PERL"; then
32653 ac_cv_prog_PERL="$PERL" # Let the user override the test.
32654else
32655as_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_prog_PERL="$ac_prog"
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
32670fi
32671fi
32672PERL=$ac_cv_prog_PERL
32673if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032675$as_echo "$PERL" >&6; }
32676else
cristy8b350f62009-11-15 23:12:43 +000032677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032678$as_echo "no" >&6; }
32679fi
32680
32681
32682 test -n "$PERL" && break
32683done
32684
32685for ac_prog in rpmbuild rpm
32686do
32687 # Extract the first word of "$ac_prog", so it can be a program name with args.
32688set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032690$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032691if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032692 $as_echo_n "(cached) " >&6
32693else
32694 if test -n "$RPM"; then
32695 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32696else
32697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32698for as_dir in $PATH
32699do
32700 IFS=$as_save_IFS
32701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32704 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032706 break 2
32707 fi
32708done
cristy8b350f62009-11-15 23:12:43 +000032709 done
cristy3ed852e2009-09-05 21:47:34 +000032710IFS=$as_save_IFS
32711
32712fi
32713fi
32714RPM=$ac_cv_prog_RPM
32715if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032717$as_echo "$RPM" >&6; }
32718else
cristy8b350f62009-11-15 23:12:43 +000032719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032720$as_echo "no" >&6; }
32721fi
32722
32723
32724 test -n "$RPM" && break
32725done
32726
32727
cristy73bd4a52010-10-05 11:24:23 +000032728ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32729
32730
32731AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32732
32733
32734AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32735
32736
32737AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32738
32739
32740 if test "x$RPM" != "x" ; then
32741 RPM_DELEGATE_TRUE=
32742 RPM_DELEGATE_FALSE='#'
32743else
32744 RPM_DELEGATE_TRUE='#'
32745 RPM_DELEGATE_FALSE=
32746fi
32747
cristy3ed852e2009-09-05 21:47:34 +000032748
32749#
32750# 7ZIP support (http://p7zip.sourceforge.net/)
32751#
32752P7ZIP=''
32753for ac_prog in 7za
32754do
32755 # Extract the first word of "$ac_prog", so it can be a program name with args.
32756set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032759if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032760 $as_echo_n "(cached) " >&6
32761else
32762 if test -n "$P7ZIP"; then
32763 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32764else
32765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32766for as_dir in $PATH
32767do
32768 IFS=$as_save_IFS
32769 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32772 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032774 break 2
32775 fi
32776done
cristy8b350f62009-11-15 23:12:43 +000032777 done
cristy3ed852e2009-09-05 21:47:34 +000032778IFS=$as_save_IFS
32779
32780fi
32781fi
32782P7ZIP=$ac_cv_prog_P7ZIP
32783if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032785$as_echo "$P7ZIP" >&6; }
32786else
cristy8b350f62009-11-15 23:12:43 +000032787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032788$as_echo "no" >&6; }
32789fi
32790
32791
32792 test -n "$P7ZIP" && break
32793done
32794
32795
cristy73bd4a52010-10-05 11:24:23 +000032796 if test "x$P7ZIP" != "x" ; then
32797 P7ZIP_DELEGATE_TRUE=
32798 P7ZIP_DELEGATE_FALSE='#'
32799else
32800 P7ZIP_DELEGATE_TRUE='#'
32801 P7ZIP_DELEGATE_FALSE=
32802fi
32803
cristy3ed852e2009-09-05 21:47:34 +000032804
32805#
32806# ZIP support (http://www.info-zip.org/Zip.html)
32807#
32808ZIP=''
32809for ac_prog in zip
32810do
32811 # Extract the first word of "$ac_prog", so it can be a program name with args.
32812set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032815if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032816 $as_echo_n "(cached) " >&6
32817else
32818 if test -n "$ZIP"; then
32819 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32820else
32821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32822for as_dir in $PATH
32823do
32824 IFS=$as_save_IFS
32825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32828 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032830 break 2
32831 fi
32832done
cristy8b350f62009-11-15 23:12:43 +000032833 done
cristy3ed852e2009-09-05 21:47:34 +000032834IFS=$as_save_IFS
32835
32836fi
32837fi
32838ZIP=$ac_cv_prog_ZIP
32839if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032841$as_echo "$ZIP" >&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 test -n "$ZIP" && break
32849done
32850
32851
cristy73bd4a52010-10-05 11:24:23 +000032852 if test "x$ZIP" != "x" ; then
32853 ZIP_DELEGATE_TRUE=
32854 ZIP_DELEGATE_FALSE='#'
32855else
32856 ZIP_DELEGATE_TRUE='#'
32857 ZIP_DELEGATE_FALSE=
32858fi
32859
cristy3ed852e2009-09-05 21:47:34 +000032860
32861#
32862# GhostPCL related configuration.
32863#
32864PCLColorDevice=ppmraw
32865PCLCMYKDevice=bmpsep8
32866PCLMonoDevice=pbmraw
32867if test -z "$PCLVersion"; then
32868 PCLVersion='unknown'
32869fi
32870if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032872$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032874$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo "" >&6; }
32877 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032879$as_echo_n "checking for pcl color device... " >&6; }
32880 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32881 :
32882 else
32883 PCLColorDevice=ppmraw
32884 fi
cristy8b350f62009-11-15 23:12:43 +000032885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032886$as_echo "$PCLColorDevice" >&6; }
32887
32888 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032890$as_echo_n "checking for pcl CMYK device... " >&6; }
32891 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32892 :
32893 else
32894 PCLCMYKDevice=$PCLColorDevice
32895 fi
cristy8b350f62009-11-15 23:12:43 +000032896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897$as_echo "$PCLCMYKDevice" >&6; }
32898
32899 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032901$as_echo_n "checking for pcl mono device... " >&6; }
32902 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32903 :
32904 else
32905 PCLMonoDevice=$PCLColorDevice
32906 fi
cristy8b350f62009-11-15 23:12:43 +000032907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908$as_echo "$PCLMonoDevice" >&6; }
32909fi
32910
32911
32912
32913
32914
32915
32916#
32917# GhostXPS related configuration.
32918#
32919XPSColorDevice=ppmraw
32920XPSCMYKDevice=bmpsep8
32921XPSMonoDevice=pbmraw
32922if test -z "$XPSVersion"; then
32923 XPSVersion='unknown'
32924fi
32925if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032931$as_echo "" >&6; }
32932 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032934$as_echo_n "checking for xps color device... " >&6; }
32935 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32936 :
32937 else
32938 XPSColorDevice=ppmraw
32939 fi
cristy8b350f62009-11-15 23:12:43 +000032940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo "$XPSColorDevice" >&6; }
32942
32943 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945$as_echo_n "checking for xps CMYK device... " >&6; }
32946 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32947 :
32948 else
32949 XPSCMYKDevice=$XPSColorDevice
32950 fi
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo "$XPSCMYKDevice" >&6; }
32953
32954 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032956$as_echo_n "checking for xps mono device... " >&6; }
32957 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32958 :
32959 else
32960 XPSMonoDevice=$XPSColorDevice
32961 fi
cristy8b350f62009-11-15 23:12:43 +000032962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032963$as_echo "$XPSMonoDevice" >&6; }
32964fi
32965
32966
32967
32968
32969
32970
32971#
32972# Ghostscript related configuration.
32973#
cristya97426c2011-02-04 01:41:27 +000032974GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000032975GSColorDevice=pnmraw
32976GSCMYKDevice=pam
32977GSMonoDevice=pbmraw
32978GSPDFDevice=pdfwrite
32979GSPSDevice=pswrite
32980GSEPSDevice=epswrite
32981GSVersion='unknown'
32982if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032984$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032986$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032988$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032990$as_echo_n "checking for Ghostscript version... " >&6; }
32991 if GSVersion=`$PSDelegate --version`; then
32992 :
32993 else
32994 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32995 fi
cristy8b350f62009-11-15 23:12:43 +000032996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032997$as_echo "$GSVersion" >&6; }
32998
32999 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000033000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033001$as_echo_n "checking for gs alpha device... " >&6; }
33002 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33003 :
33004 else
33005 GSAlphaDevice=pnmraw
33006 fi
cristy8b350f62009-11-15 23:12:43 +000033007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008$as_echo "$GSAlphaDevice" >&6; }
33009
33010 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012$as_echo_n "checking for gs color device... " >&6; }
33013 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33014 :
33015 else
33016 GSColorDevice=pnmraw
33017 fi
cristy8b350f62009-11-15 23:12:43 +000033018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033019$as_echo "$GSColorDevice" >&6; }
33020
33021 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023$as_echo_n "checking for gs CMYK device... " >&6; }
33024 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33025 :
33026 else
33027 GSCMYKDevice=bmpsep8
33028 fi
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo "$GSCMYKDevice" >&6; }
33031
33032 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034$as_echo_n "checking for gs mono device... " >&6; }
33035 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33036 :
33037 else
33038 GSMonoDevice=$GSColorDevice
33039 fi
cristy8b350f62009-11-15 23:12:43 +000033040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033041$as_echo "$GSMonoDevice" >&6; }
33042
33043 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033045$as_echo_n "checking for gs PDF writing device... " >&6; }
33046 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33047 :
33048 else
33049 GSPDFDevice=nodevice
33050 fi
cristy8b350f62009-11-15 23:12:43 +000033051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052$as_echo "$GSPDFDevice" >&6; }
33053
33054 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033056$as_echo_n "checking for gs PS writing device... " >&6; }
33057 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33058 :
33059 else
33060 GSPSDevice=nodevice
33061 fi
cristy8b350f62009-11-15 23:12:43 +000033062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033063$as_echo "$GSPSDevice" >&6; }
33064
33065 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033067$as_echo_n "checking for gs EPS writing device... " >&6; }
33068 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33069 :
33070 else
33071 GSEPSDevice=nodevice
33072 fi
cristy8b350f62009-11-15 23:12:43 +000033073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo "$GSEPSDevice" >&6; }
33075fi
33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086#
33087# PerlMagick-related configuration
33088#
33089
33090# Look for PERL if PerlMagick requested
33091# If name/path of desired PERL interpreter is specified, look for that one first
33092have_perl='no'
33093if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033095$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033097$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033099$as_echo "" >&6; }
33100 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033102$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033103if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033104 $as_echo_n "(cached) " >&6
33105else
33106 ac_cv_path_PERL="$with_perl"
33107fi
cristy8b350f62009-11-15 23:12:43 +000033108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033109$as_echo "$ac_cv_path_PERL" >&6; };
33110 PERL=$ac_cv_path_PERL
33111 have_perl="$ac_cv_path_PERL"
33112 else
33113 for ac_prog in perl perl5
33114do
33115 # Extract the first word of "$ac_prog", so it can be a program name with args.
33116set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033119if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033120 $as_echo_n "(cached) " >&6
33121else
33122 case $PERL in
33123 [\\/]* | ?:[\\/]*)
33124 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33125 ;;
33126 *)
33127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33128for as_dir in $PATH
33129do
33130 IFS=$as_save_IFS
33131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33134 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033136 break 2
33137 fi
33138done
cristy8b350f62009-11-15 23:12:43 +000033139 done
cristy3ed852e2009-09-05 21:47:34 +000033140IFS=$as_save_IFS
33141
33142 ;;
33143esac
33144fi
33145PERL=$ac_cv_path_PERL
33146if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033148$as_echo "$PERL" >&6; }
33149else
cristy8b350f62009-11-15 23:12:43 +000033150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033151$as_echo "no" >&6; }
33152fi
33153
33154
33155 test -n "$PERL" && break
33156done
33157 if test "$ac_cv_path_PERL"; then
33158 have_perl="$ac_cv_path_PERL"
33159 fi
33160 fi
33161fi
33162
cristy949301e2010-01-06 01:38:40 +000033163if test "$with_perl" != 'yes' ; then
33164 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33165fi
33166
33167PERL_SUPPORTS_DESTDIR='no'
33168
cristy3ed852e2009-09-05 21:47:34 +000033169with_perl_static='no'
33170with_perl_dynamic='no'
33171if test "$have_perl" != 'no'; then
33172 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33173 with_perl_static='yes'
33174 fi
33175 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33176 with_perl_dynamic='yes'
33177 fi
33178 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033179
33180
33181
33182
33183 if test -n "$PERL"; then :
33184
33185 ax_perl_version="5.8.1"
33186
33187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33188$as_echo_n "checking for perl version... " >&6; }
33189
33190 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33191
33192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33193$as_echo "$perl_version" >&6; }
33194
33195 PERL_VERSION=$perl_version
33196
33197
33198
33199
33200
33201 # Used to indicate true or false condition
33202 ax_compare_version=false
33203
33204 # Convert the two version strings to be compared into a format that
33205 # allows a simple string comparison. The end result is that a version
33206 # string of the form 1.12.5-r617 will be converted to the form
33207 # 0001001200050617. In other words, each number is zero padded to four
33208 # digits, and non digits are removed.
33209
33210 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33211 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33212 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33213 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33214 -e 's/[^0-9]//g'`
33215
33216
33217 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33218 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33219 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33220 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33221 -e 's/[^0-9]//g'`
33222
33223
33224 ax_compare_version=`echo "x$ax_compare_version_A
33225x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33226
33227
33228
33229 if test "$ax_compare_version" = "true" ; then
33230
33231 :
33232 PERL_SUPPORTS_DESTDIR='yes'
33233
33234 else
33235 :
33236 PERL_SUPPORTS_DESTDIR='no'
33237
33238 fi
33239
33240
33241else
33242
33243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33244$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33245 PERL_SUPPORTS_DESTDIR='no'
33246
cristy3ed852e2009-09-05 21:47:34 +000033247fi
cristy73bd4a52010-10-05 11:24:23 +000033248
33249fi
33250 if test "$have_perl" != 'no'; then
33251 WITH_PERL_TRUE=
33252 WITH_PERL_FALSE='#'
33253else
33254 WITH_PERL_TRUE='#'
33255 WITH_PERL_FALSE=
33256fi
33257
33258 if test $with_perl_static = 'yes'; then
33259 WITH_PERL_STATIC_TRUE=
33260 WITH_PERL_STATIC_FALSE='#'
33261else
33262 WITH_PERL_STATIC_TRUE='#'
33263 WITH_PERL_STATIC_FALSE=
33264fi
33265
33266 if test $with_perl_dynamic = 'yes'; then
33267 WITH_PERL_DYNAMIC_TRUE=
33268 WITH_PERL_DYNAMIC_FALSE='#'
33269else
33270 WITH_PERL_DYNAMIC_TRUE='#'
33271 WITH_PERL_DYNAMIC_FALSE=
33272fi
33273
cristy3ed852e2009-09-05 21:47:34 +000033274
33275
33276# Determine path to pick up MagickCore library from for use with building PerlMagick
33277MAGICKCORE_PATH="${LIB_DIR}"
33278if test $with_perl_static = 'yes'; then
33279 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33280 libtool_objdir=$objdir
33281
33282 # Linker search path to library, followed by -lMagickCore
33283 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33284fi
33285
33286
33287# Create a simple string containing format names for all delegate libraries
33288DELEGATES=''
33289if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33290if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33291if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33292if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33293if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33294if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33295if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33296if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33297if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33298if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33299if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33300if test "$have_jpeg" = 'yes'; then
33301 DELEGATES="$DELEGATES jpeg";
33302 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33303fi
33304if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000033305if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000033306if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33307if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000033308if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000033309if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33310if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33311if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33312if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33313if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33314if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33315if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33316if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33317if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33318
33319
33320
33321#
33322# Handle special compiler flags
33323#
33324
33325# Add '-p' if prof source profiling support enabled
33326if test "$enable_prof" = 'yes'; then
33327 CFLAGS="-p $CFLAGS"
33328 CXXFLAGS="-p $CXXFLAGS"
33329 LDFLAGS="-p $LDFLAGS"
33330fi
33331
33332# Add '-pg' if gprof source profiling support enabled
33333if test "$enable_gprof" = 'yes'; then
33334 CFLAGS="-pg $CFLAGS"
33335 CXXFLAGS="-pg $CXXFLAGS"
33336 LDFLAGS="-pg $LDFLAGS"
33337fi
33338
33339# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33340# This is a gcc-specific feature
33341if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033343$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033344if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033345 $as_echo_n "(cached) " >&6
33346else
33347 ac_check_lib_save_LIBS=$LIBS
33348LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033350/* end confdefs.h. */
33351
33352/* Override any GCC internal prototype to avoid an error.
33353 Use char because int might match the return type of a GCC
33354 builtin and then its argument prototype would still apply. */
33355#ifdef __cplusplus
33356extern "C"
33357#endif
33358char _gcov_init ();
33359int
33360main ()
33361{
33362return _gcov_init ();
33363 ;
33364 return 0;
33365}
33366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033367if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033368 ac_cv_lib_gcov__gcov_init=yes
33369else
cristy8b350f62009-11-15 23:12:43 +000033370 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033371fi
cristy8b350f62009-11-15 23:12:43 +000033372rm -f core conftest.err conftest.$ac_objext \
33373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033374LIBS=$ac_check_lib_save_LIBS
33375fi
cristy8b350f62009-11-15 23:12:43 +000033376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033378if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033379 cat >>confdefs.h <<_ACEOF
33380#define HAVE_LIBGCOV 1
33381_ACEOF
33382
33383 LIBS="-lgcov $LIBS"
33384
33385fi
33386
cristy8b350f62009-11-15 23:12:43 +000033387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033388$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033389if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033390 $as_echo_n "(cached) " >&6
33391else
33392 ac_check_lib_save_LIBS=$LIBS
33393LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033395/* end confdefs.h. */
33396
33397/* Override any GCC internal prototype to avoid an error.
33398 Use char because int might match the return type of a GCC
33399 builtin and then its argument prototype would still apply. */
33400#ifdef __cplusplus
33401extern "C"
33402#endif
33403char __gcov_init ();
33404int
33405main ()
33406{
33407return __gcov_init ();
33408 ;
33409 return 0;
33410}
33411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033412if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033413 ac_cv_lib_gcov___gcov_init=yes
33414else
cristy8b350f62009-11-15 23:12:43 +000033415 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033416fi
cristy8b350f62009-11-15 23:12:43 +000033417rm -f core conftest.err conftest.$ac_objext \
33418 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033419LIBS=$ac_check_lib_save_LIBS
33420fi
cristy8b350f62009-11-15 23:12:43 +000033421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033422$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033423if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033424 cat >>confdefs.h <<_ACEOF
33425#define HAVE_LIBGCOV 1
33426_ACEOF
33427
33428 LIBS="-lgcov $LIBS"
33429
33430fi
33431
33432 case "$target_os" in
33433 darwin*)
33434 OSX_GCOV_LDFLAG="-Wl,-single_module"
33435 ;;
33436 *)
33437 OSX_GCOV_LDFLAG=""
33438 ;;
33439 esac
33440
33441 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
33442 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
33443 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33444fi
33445
33446#
33447# Build library dependency list for libMagickCore
33448#
33449
33450MAGICK_LIBLTDL='' # Libltdl for build
33451MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
33452MAGICK_LTDLDEPS='' # extra libltdl dependencies
33453if test "$with_ltdl" != 'no'
33454then
33455 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33456 MAGICK_API_LIBLTDL='-lltdl'
33457 fi
33458 MAGICK_LIBLTDL=${LIBLTDL}
33459 MAGICK_LTDLDEPS=${LTDLDEPS}
33460fi
33461
33462
33463
33464if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000033465 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 +000033466else
cristyb1860752011-03-14 00:27:46 +000033467 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000033468fi
33469
33470
33471#
33472# Remove extraneous spaces from output variables (asthetic)
33473#
33474X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
33475X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
33476X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
33477X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
33478
33479CC=`echo $CC | sed -e 's/ */ /g'`
33480CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
33481CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
33482CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
33483DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33484DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
33485LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
33486TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33487MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
33488#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33489
33490# Pass only user-provided LIBS as "global" libraries
33491LIBS=$USER_LIBS
33492
33493#AC_SUBST(CPPFLAGS)
33494
33495#AC_SUBST(LDFLAGS)
33496#AC_SUBST(X_PRE_LIBS)
33497#AC_SUBST(X_LIBS)
33498#AC_SUBST(X_EXTRA_LIBS)
33499
33500MAGICK_CFLAGS=$CFLAGS
33501MAGICK_CXXFLAGS="$CXXFLAGS"
33502MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
33503MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
33504MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33505MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33506
33507
33508
33509
33510
33511
33512
33513
cristyfd9dcd42010-08-08 18:07:02 +000033514
cristy3ed852e2009-09-05 21:47:34 +000033515# Set configured scripts to executable.
33516ac_config_commands="$ac_config_commands default"
33517
33518ac_config_commands="$ac_config_commands MagickCore-config.in"
33519
33520ac_config_commands="$ac_config_commands Magick-config.in"
33521
33522ac_config_commands="$ac_config_commands MagickWand-config.in"
33523
33524ac_config_commands="$ac_config_commands Wand-config.in"
33525
33526ac_config_commands="$ac_config_commands Magick++-config.in"
33527
33528ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33529
33530
cristy8b350f62009-11-15 23:12:43 +000033531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000033534$as_echo "Update ImageMagick configuration" >&6; }
33535cat >confcache <<\_ACEOF
33536# This file is a shell script that caches the results of configure
33537# tests run on this system so they can be shared between configure
33538# scripts and configure runs, see configure's option --config-cache.
33539# It is not useful on other systems. If it contains results you don't
33540# want to keep, you may remove or edit it.
33541#
33542# config.status only pays attention to the cache file if you give it
33543# the --recheck option to rerun configure.
33544#
33545# `ac_cv_env_foo' variables (set or unset) will be overridden when
33546# loading this file, other *unset* `ac_cv_foo' will be assigned the
33547# following values.
33548
33549_ACEOF
33550
33551# The following way of writing the cache mishandles newlines in values,
33552# but we know of no workaround that is simple, portable, and efficient.
33553# So, we kill variables containing newlines.
33554# Ultrix sh set writes to stderr and can't be redirected directly,
33555# and sets the high bit in the cache file unless we assign to the vars.
33556(
33557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33558 eval ac_val=\$$ac_var
33559 case $ac_val in #(
33560 *${as_nl}*)
33561 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000033562 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000033563$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33564 esac
33565 case $ac_var in #(
33566 _ | IFS | as_nl) ;; #(
33567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000033568 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000033569 esac ;;
33570 esac
33571 done
33572
33573 (set) 2>&1 |
33574 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33575 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000033576 # `set' does not quote correctly, so add quotes: double-quote
33577 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000033578 sed -n \
33579 "s/'/'\\\\''/g;
33580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33581 ;; #(
33582 *)
33583 # `set' quotes correctly as required by POSIX, so do not add quotes.
33584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33585 ;;
33586 esac |
33587 sort
33588) |
33589 sed '
33590 /^ac_cv_env_/b end
33591 t clear
33592 :clear
33593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33594 t end
33595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33596 :end' >>confcache
33597if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33598 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000033599 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000033600 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033601$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000033602 if test ! -f "$cache_file" || test -h "$cache_file"; then
33603 cat confcache >"$cache_file"
33604 else
33605 case $cache_file in #(
33606 */* | ?:*)
33607 mv -f confcache "$cache_file"$$ &&
33608 mv -f "$cache_file"$$ "$cache_file" ;; #(
33609 *)
33610 mv -f confcache "$cache_file" ;;
33611 esac
33612 fi
33613 fi
cristy3ed852e2009-09-05 21:47:34 +000033614 else
cristy8b350f62009-11-15 23:12:43 +000033615 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033616$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33617 fi
33618fi
33619rm -f confcache
33620
33621test "x$prefix" = xNONE && prefix=$ac_default_prefix
33622# Let make expand exec_prefix.
33623test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33624
33625DEFS=-DHAVE_CONFIG_H
33626
33627ac_libobjs=
33628ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000033629U=
cristy3ed852e2009-09-05 21:47:34 +000033630for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33631 # 1. Remove the extension, and $U if already installed.
33632 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33633 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33634 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33635 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000033636 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33637 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000033638done
33639LIBOBJS=$ac_libobjs
33640
33641LTLIBOBJS=$ac_ltlibobjs
33642
33643
cristy73bd4a52010-10-05 11:24:23 +000033644 if test -n "$EXEEXT"; then
33645 am__EXEEXT_TRUE=
33646 am__EXEEXT_FALSE='#'
33647else
33648 am__EXEEXT_TRUE='#'
33649 am__EXEEXT_FALSE=
33650fi
cristy3ed852e2009-09-05 21:47:34 +000033651
cristy73bd4a52010-10-05 11:24:23 +000033652if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033653 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033654Usually this means the macro was only invoked conditionally." "$LINENO" 5
33655fi
33656if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033657 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033658Usually this means the macro was only invoked conditionally." "$LINENO" 5
33659fi
33660if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033661 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033662Usually this means the macro was only invoked conditionally." "$LINENO" 5
33663fi
33664if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033665 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033666Usually this means the macro was only invoked conditionally." "$LINENO" 5
33667fi
33668if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033669 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033670Usually this means the macro was only invoked conditionally." "$LINENO" 5
33671fi
33672if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033673 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033674Usually this means the macro was only invoked conditionally." "$LINENO" 5
33675fi
33676if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033677 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033678Usually this means the macro was only invoked conditionally." "$LINENO" 5
33679fi
33680if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033681 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033682Usually this means the macro was only invoked conditionally." "$LINENO" 5
33683fi
cristy73bd4a52010-10-05 11:24:23 +000033684if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033685 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033686Usually this means the macro was only invoked conditionally." "$LINENO" 5
33687fi
33688if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033689 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033690Usually this means the macro was only invoked conditionally." "$LINENO" 5
33691fi
33692LT_CONFIG_H=config/config.h
33693
33694 _ltdl_libobjs=
33695 _ltdl_ltlibobjs=
33696 if test -n "$_LT_LIBOBJS"; then
33697 # Remove the extension.
33698 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33699 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33700 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33701 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33702 done
33703 fi
33704 ltdl_LIBOBJS=$_ltdl_libobjs
33705
33706 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33707
33708
33709if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033710 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033711Usually this means the macro was only invoked conditionally." "$LINENO" 5
33712fi
33713if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033714 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033715Usually this means the macro was only invoked conditionally." "$LINENO" 5
33716fi
33717if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033718 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033719Usually this means the macro was only invoked conditionally." "$LINENO" 5
33720fi
33721if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033722 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033723Usually this means the macro was only invoked conditionally." "$LINENO" 5
33724fi
33725
33726if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033727 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033728Usually this means the macro was only invoked conditionally." "$LINENO" 5
33729fi
33730if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033731 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033732Usually this means the macro was only invoked conditionally." "$LINENO" 5
33733fi
33734if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033735 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033736Usually this means the macro was only invoked conditionally." "$LINENO" 5
33737fi
33738if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033739 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033740Usually this means the macro was only invoked conditionally." "$LINENO" 5
33741fi
33742if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033743 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033744Usually this means the macro was only invoked conditionally." "$LINENO" 5
33745fi
33746if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033747 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033748Usually this means the macro was only invoked conditionally." "$LINENO" 5
33749fi
33750if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033751 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033752Usually this means the macro was only invoked conditionally." "$LINENO" 5
33753fi
33754if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033755 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033756Usually this means the macro was only invoked conditionally." "$LINENO" 5
33757fi
33758if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033759 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033760Usually this means the macro was only invoked conditionally." "$LINENO" 5
33761fi
33762if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033763 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033764Usually this means the macro was only invoked conditionally." "$LINENO" 5
33765fi
33766if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033767 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033768Usually this means the macro was only invoked conditionally." "$LINENO" 5
33769fi
33770if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033771 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033772Usually this means the macro was only invoked conditionally." "$LINENO" 5
33773fi
33774if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033775 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033776Usually this means the macro was only invoked conditionally." "$LINENO" 5
33777fi
33778if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033779 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033780Usually this means the macro was only invoked conditionally." "$LINENO" 5
33781fi
33782if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033783 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033784Usually this means the macro was only invoked conditionally." "$LINENO" 5
33785fi
33786if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033787 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033788Usually this means the macro was only invoked conditionally." "$LINENO" 5
33789fi
33790if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033791 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033792Usually this means the macro was only invoked conditionally." "$LINENO" 5
33793fi
33794if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033795 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033796Usually this means the macro was only invoked conditionally." "$LINENO" 5
33797fi
33798if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033799 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033800Usually this means the macro was only invoked conditionally." "$LINENO" 5
33801fi
33802if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033803 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033804Usually this means the macro was only invoked conditionally." "$LINENO" 5
33805fi
cristyfbb0ef02010-12-19 02:32:11 +000033806if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33807 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33808Usually this means the macro was only invoked conditionally." "$LINENO" 5
33809fi
cristy73bd4a52010-10-05 11:24:23 +000033810if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033811 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033812Usually this means the macro was only invoked conditionally." "$LINENO" 5
33813fi
33814if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033815 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033816Usually this means the macro was only invoked conditionally." "$LINENO" 5
33817fi
33818if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033819 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033820Usually this means the macro was only invoked conditionally." "$LINENO" 5
33821fi
33822if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033823 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033824Usually this means the macro was only invoked conditionally." "$LINENO" 5
33825fi
33826if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033827 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033828Usually this means the macro was only invoked conditionally." "$LINENO" 5
33829fi
cristyb1860752011-03-14 00:27:46 +000033830if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
33831 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
33832Usually this means the macro was only invoked conditionally." "$LINENO" 5
33833fi
cristy73bd4a52010-10-05 11:24:23 +000033834if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033835 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033836Usually this means the macro was only invoked conditionally." "$LINENO" 5
33837fi
33838if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033839 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033840Usually this means the macro was only invoked conditionally." "$LINENO" 5
33841fi
33842if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033843 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033844Usually this means the macro was only invoked conditionally." "$LINENO" 5
33845fi
33846if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033847 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033848Usually this means the macro was only invoked conditionally." "$LINENO" 5
33849fi
33850if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033851 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033852Usually this means the macro was only invoked conditionally." "$LINENO" 5
33853fi
33854if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033855 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033856Usually this means the macro was only invoked conditionally." "$LINENO" 5
33857fi
33858if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033859 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033860Usually this means the macro was only invoked conditionally." "$LINENO" 5
33861fi
33862if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033863 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033864Usually this means the macro was only invoked conditionally." "$LINENO" 5
33865fi
cristy3ed852e2009-09-05 21:47:34 +000033866
cristyda16f162011-02-19 23:52:17 +000033867: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000033868ac_write_fail=0
33869ac_clean_files_save=$ac_clean_files
33870ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033871{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033873as_write_fail=0
33874cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033875#! $SHELL
33876# Generated by $as_me.
33877# Run this file to recreate the current configuration.
33878# Compiler output produced by configure, useful for debugging
33879# configure, is in config.log if it exists.
33880
33881debug=false
33882ac_cs_recheck=false
33883ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033884
cristy8b350f62009-11-15 23:12:43 +000033885SHELL=\${CONFIG_SHELL-$SHELL}
33886export SHELL
33887_ASEOF
33888cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33889## -------------------- ##
33890## M4sh Initialization. ##
33891## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033892
33893# Be more Bourne compatible
33894DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033895if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033896 emulate sh
33897 NULLCMD=:
33898 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33899 # is contrary to our usage. Disable this feature.
33900 alias -g '${1+"$@"}'='"$@"'
33901 setopt NO_GLOB_SUBST
33902else
cristy8b350f62009-11-15 23:12:43 +000033903 case `(set -o) 2>/dev/null` in #(
33904 *posix*) :
33905 set -o posix ;; #(
33906 *) :
33907 ;;
cristy3ed852e2009-09-05 21:47:34 +000033908esac
cristy3ed852e2009-09-05 21:47:34 +000033909fi
33910
33911
cristy3ed852e2009-09-05 21:47:34 +000033912as_nl='
33913'
33914export as_nl
33915# Printing a long string crashes Solaris 7 /usr/bin/printf.
33916as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33917as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33918as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033919# Prefer a ksh shell builtin over an external printf program on Solaris,
33920# but without wasting forks for bash or zsh.
33921if test -z "$BASH_VERSION$ZSH_VERSION" \
33922 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33923 as_echo='print -r --'
33924 as_echo_n='print -rn --'
33925elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033926 as_echo='printf %s\n'
33927 as_echo_n='printf %s'
33928else
33929 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33930 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33931 as_echo_n='/usr/ucb/echo -n'
33932 else
33933 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33934 as_echo_n_body='eval
33935 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033936 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033937 *"$as_nl"*)
33938 expr "X$arg" : "X\\(.*\\)$as_nl";
33939 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33940 esac;
33941 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33942 '
33943 export as_echo_n_body
33944 as_echo_n='sh -c $as_echo_n_body as_echo'
33945 fi
33946 export as_echo_body
33947 as_echo='sh -c $as_echo_body as_echo'
33948fi
33949
33950# The user is always right.
33951if test "${PATH_SEPARATOR+set}" != set; then
33952 PATH_SEPARATOR=:
33953 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33954 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33955 PATH_SEPARATOR=';'
33956 }
33957fi
33958
cristy3ed852e2009-09-05 21:47:34 +000033959
33960# IFS
33961# We need space, tab and new line, in precisely that order. Quoting is
33962# there to prevent editors from complaining about space-tab.
33963# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33964# splitting by setting IFS to empty value.)
33965IFS=" "" $as_nl"
33966
33967# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000033968as_myself=
cristy8b350f62009-11-15 23:12:43 +000033969case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033970 *[\\/]* ) as_myself=$0 ;;
33971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33972for as_dir in $PATH
33973do
33974 IFS=$as_save_IFS
33975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33977 done
cristy3ed852e2009-09-05 21:47:34 +000033978IFS=$as_save_IFS
33979
33980 ;;
33981esac
33982# We did not find ourselves, most probably we were run as `sh COMMAND'
33983# in which case we are not to be found in the path.
33984if test "x$as_myself" = x; then
33985 as_myself=$0
33986fi
33987if test ! -f "$as_myself"; then
33988 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033989 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033990fi
33991
cristy8b350f62009-11-15 23:12:43 +000033992# Unset variables that we do not need and which cause bugs (e.g. in
33993# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33994# suppresses any "Segmentation fault" message there. '((' could
33995# trigger a bug in pdksh 5.2.14.
33996for as_var in BASH_ENV ENV MAIL MAILPATH
33997do eval test x\${$as_var+set} = xset \
33998 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033999done
34000PS1='$ '
34001PS2='> '
34002PS4='+ '
34003
34004# NLS nuisances.
34005LC_ALL=C
34006export LC_ALL
34007LANGUAGE=C
34008export LANGUAGE
34009
cristy8b350f62009-11-15 23:12:43 +000034010# CDPATH.
34011(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34012
34013
cristy98dddb52010-11-04 00:30:15 +000034014# as_fn_error STATUS ERROR [LINENO LOG_FD]
34015# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000034016# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34017# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000034018# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000034019as_fn_error ()
34020{
cristy98dddb52010-11-04 00:30:15 +000034021 as_status=$1; test $as_status -eq 0 && as_status=1
34022 if test "$4"; then
34023 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34024 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000034025 fi
cristy98dddb52010-11-04 00:30:15 +000034026 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000034027 as_fn_exit $as_status
34028} # as_fn_error
34029
34030
34031# as_fn_set_status STATUS
34032# -----------------------
34033# Set $? to STATUS, without forking.
34034as_fn_set_status ()
34035{
34036 return $1
34037} # as_fn_set_status
34038
34039# as_fn_exit STATUS
34040# -----------------
34041# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34042as_fn_exit ()
34043{
34044 set +e
34045 as_fn_set_status $1
34046 exit $1
34047} # as_fn_exit
34048
34049# as_fn_unset VAR
34050# ---------------
34051# Portably unset VAR.
34052as_fn_unset ()
34053{
34054 { eval $1=; unset $1;}
34055}
34056as_unset=as_fn_unset
34057# as_fn_append VAR VALUE
34058# ----------------------
34059# Append the text in VALUE to the end of the definition contained in VAR. Take
34060# advantage of any shell optimizations that allow amortized linear growth over
34061# repeated appends, instead of the typical quadratic growth present in naive
34062# implementations.
34063if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34064 eval 'as_fn_append ()
34065 {
34066 eval $1+=\$2
34067 }'
34068else
34069 as_fn_append ()
34070 {
34071 eval $1=\$$1\$2
34072 }
34073fi # as_fn_append
34074
34075# as_fn_arith ARG...
34076# ------------------
34077# Perform arithmetic evaluation on the ARGs, and store the result in the
34078# global $as_val. Take advantage of shells that can avoid forks. The arguments
34079# must be portable across $(()) and expr.
34080if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34081 eval 'as_fn_arith ()
34082 {
34083 as_val=$(( $* ))
34084 }'
34085else
34086 as_fn_arith ()
34087 {
34088 as_val=`expr "$@" || test $? -eq 1`
34089 }
34090fi # as_fn_arith
34091
34092
cristy3ed852e2009-09-05 21:47:34 +000034093if expr a : '\(a\)' >/dev/null 2>&1 &&
34094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34095 as_expr=expr
34096else
34097 as_expr=false
34098fi
34099
34100if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34101 as_basename=basename
34102else
34103 as_basename=false
34104fi
34105
cristy8b350f62009-11-15 23:12:43 +000034106if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34107 as_dirname=dirname
34108else
34109 as_dirname=false
34110fi
cristy3ed852e2009-09-05 21:47:34 +000034111
cristy3ed852e2009-09-05 21:47:34 +000034112as_me=`$as_basename -- "$0" ||
34113$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34114 X"$0" : 'X\(//\)$' \| \
34115 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34116$as_echo X/"$0" |
34117 sed '/^.*\/\([^/][^/]*\)\/*$/{
34118 s//\1/
34119 q
34120 }
34121 /^X\/\(\/\/\)$/{
34122 s//\1/
34123 q
34124 }
34125 /^X\/\(\/\).*/{
34126 s//\1/
34127 q
34128 }
34129 s/.*/./; q'`
34130
cristy8b350f62009-11-15 23:12:43 +000034131# Avoid depending upon Character Ranges.
34132as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34133as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34134as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34135as_cr_digits='0123456789'
34136as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034137
34138ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034139case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034140-n*)
cristy8b350f62009-11-15 23:12:43 +000034141 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034143 xy) ECHO_C='\c';;
34144 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34145 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034146 esac;;
34147*)
34148 ECHO_N='-n';;
34149esac
cristy3ed852e2009-09-05 21:47:34 +000034150
34151rm -f conf$$ conf$$.exe conf$$.file
34152if test -d conf$$.dir; then
34153 rm -f conf$$.dir/conf$$.file
34154else
34155 rm -f conf$$.dir
34156 mkdir conf$$.dir 2>/dev/null
34157fi
34158if (echo >conf$$.file) 2>/dev/null; then
34159 if ln -s conf$$.file conf$$ 2>/dev/null; then
34160 as_ln_s='ln -s'
34161 # ... but there are two gotchas:
34162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34164 # In both cases, we have to default to `cp -p'.
34165 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34166 as_ln_s='cp -p'
34167 elif ln conf$$.file conf$$ 2>/dev/null; then
34168 as_ln_s=ln
34169 else
34170 as_ln_s='cp -p'
34171 fi
34172else
34173 as_ln_s='cp -p'
34174fi
34175rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34176rmdir conf$$.dir 2>/dev/null
34177
cristy8b350f62009-11-15 23:12:43 +000034178
34179# as_fn_mkdir_p
34180# -------------
34181# Create "$as_dir" as a directory, including parents if necessary.
34182as_fn_mkdir_p ()
34183{
34184
34185 case $as_dir in #(
34186 -*) as_dir=./$as_dir;;
34187 esac
34188 test -d "$as_dir" || eval $as_mkdir_p || {
34189 as_dirs=
34190 while :; do
34191 case $as_dir in #(
34192 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34193 *) as_qdir=$as_dir;;
34194 esac
34195 as_dirs="'$as_qdir' $as_dirs"
34196 as_dir=`$as_dirname -- "$as_dir" ||
34197$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34198 X"$as_dir" : 'X\(//\)[^/]' \| \
34199 X"$as_dir" : 'X\(//\)$' \| \
34200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34201$as_echo X"$as_dir" |
34202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34203 s//\1/
34204 q
34205 }
34206 /^X\(\/\/\)[^/].*/{
34207 s//\1/
34208 q
34209 }
34210 /^X\(\/\/\)$/{
34211 s//\1/
34212 q
34213 }
34214 /^X\(\/\).*/{
34215 s//\1/
34216 q
34217 }
34218 s/.*/./; q'`
34219 test -d "$as_dir" && break
34220 done
34221 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034222 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034223
34224
34225} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034226if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034227 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034228else
34229 test -d ./-p && rmdir ./-p
34230 as_mkdir_p=false
34231fi
34232
34233if test -x / >/dev/null 2>&1; then
34234 as_test_x='test -x'
34235else
34236 if ls -dL / >/dev/null 2>&1; then
34237 as_ls_L_option=L
34238 else
34239 as_ls_L_option=
34240 fi
34241 as_test_x='
34242 eval sh -c '\''
34243 if test -d "$1"; then
34244 test -d "$1/.";
34245 else
cristy8b350f62009-11-15 23:12:43 +000034246 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034247 -*)set "./$1";;
34248 esac;
cristy8b350f62009-11-15 23:12:43 +000034249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034250 ???[sx]*):;;*)false;;esac;fi
34251 '\'' sh
34252 '
34253fi
34254as_executable_p=$as_test_x
34255
34256# Sed expression to map a string onto a valid CPP name.
34257as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34258
34259# Sed expression to map a string onto a valid variable name.
34260as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34261
34262
34263exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000034264## ----------------------------------- ##
34265## Main body of $CONFIG_STATUS script. ##
34266## ----------------------------------- ##
34267_ASEOF
34268test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034269
cristy8b350f62009-11-15 23:12:43 +000034270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34271# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000034272# report actual input values of CONFIG_FILES etc. instead of their
34273# values after options handling.
34274ac_log="
cristy45dbd322011-03-27 16:40:38 +000034275This file was extended by ImageMagick $as_me 6.6.9, which was
cristyda16f162011-02-19 23:52:17 +000034276generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000034277
34278 CONFIG_FILES = $CONFIG_FILES
34279 CONFIG_HEADERS = $CONFIG_HEADERS
34280 CONFIG_LINKS = $CONFIG_LINKS
34281 CONFIG_COMMANDS = $CONFIG_COMMANDS
34282 $ $0 $@
34283
34284on `(hostname || uname -n) 2>/dev/null | sed 1q`
34285"
34286
34287_ACEOF
34288
34289case $ac_config_files in *"
34290"*) set x $ac_config_files; shift; ac_config_files=$*;;
34291esac
34292
34293case $ac_config_headers in *"
34294"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34295esac
34296
34297
34298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34299# Files that config.status was made for.
34300config_files="$ac_config_files"
34301config_headers="$ac_config_headers"
34302config_commands="$ac_config_commands"
34303
34304_ACEOF
34305
34306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34307ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000034308\`$as_me' instantiates files and other configuration actions
34309from templates according to the current configuration. Unless the files
34310and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000034311
cristy8b350f62009-11-15 23:12:43 +000034312Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000034313
34314 -h, --help print this help, then exit
34315 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000034316 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000034317 -q, --quiet, --silent
34318 do not print progress messages
34319 -d, --debug don't remove temporary files
34320 --recheck update $as_me by reconfiguring in the same conditions
34321 --file=FILE[:TEMPLATE]
34322 instantiate the configuration file FILE
34323 --header=FILE[:TEMPLATE]
34324 instantiate the configuration header FILE
34325
34326Configuration files:
34327$config_files
34328
34329Configuration headers:
34330$config_headers
34331
34332Configuration commands:
34333$config_commands
34334
cristy8b350f62009-11-15 23:12:43 +000034335Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000034336
34337_ACEOF
34338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000034339ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000034340ac_cs_version="\\
cristy45dbd322011-03-27 16:40:38 +000034341ImageMagick config.status 6.6.9
cristyda16f162011-02-19 23:52:17 +000034342configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000034343 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000034344
cristy98dddb52010-11-04 00:30:15 +000034345Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034346This config.status script is free software; the Free Software Foundation
34347gives unlimited permission to copy, distribute and modify it."
34348
34349ac_pwd='$ac_pwd'
34350srcdir='$srcdir'
34351INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000034352MKDIR_P='$MKDIR_P'
34353AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000034354test -n "\$AWK" || AWK=awk
34355_ACEOF
34356
34357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34358# The default lists apply if the user does not specify any file.
34359ac_need_defaults=:
34360while test $# != 0
34361do
34362 case $1 in
cristyda16f162011-02-19 23:52:17 +000034363 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000034364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34366 ac_shift=:
34367 ;;
cristyda16f162011-02-19 23:52:17 +000034368 --*=)
34369 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34370 ac_optarg=
34371 ac_shift=:
34372 ;;
cristy3ed852e2009-09-05 21:47:34 +000034373 *)
34374 ac_option=$1
34375 ac_optarg=$2
34376 ac_shift=shift
34377 ;;
34378 esac
34379
34380 case $ac_option in
34381 # Handling of the options.
34382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34383 ac_cs_recheck=: ;;
34384 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34385 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000034386 --config | --confi | --conf | --con | --co | --c )
34387 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000034388 --debug | --debu | --deb | --de | --d | -d )
34389 debug=: ;;
34390 --file | --fil | --fi | --f )
34391 $ac_shift
34392 case $ac_optarg in
34393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000034394 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000034395 esac
cristy8b350f62009-11-15 23:12:43 +000034396 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034397 ac_need_defaults=false;;
34398 --header | --heade | --head | --hea )
34399 $ac_shift
34400 case $ac_optarg in
34401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34402 esac
cristy8b350f62009-11-15 23:12:43 +000034403 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034404 ac_need_defaults=false;;
34405 --he | --h)
34406 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000034407 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034408Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000034409 --help | --hel | -h )
34410 $as_echo "$ac_cs_usage"; exit ;;
34411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34413 ac_cs_silent=: ;;
34414
34415 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000034416 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034417Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000034418
cristy8b350f62009-11-15 23:12:43 +000034419 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000034420 ac_need_defaults=false ;;
34421
34422 esac
34423 shift
34424done
34425
34426ac_configure_extra_args=
34427
34428if $ac_cs_silent; then
34429 exec 6>/dev/null
34430 ac_configure_extra_args="$ac_configure_extra_args --silent"
34431fi
34432
34433_ACEOF
34434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34435if \$ac_cs_recheck; then
34436 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34437 shift
34438 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34439 CONFIG_SHELL='$SHELL'
34440 export CONFIG_SHELL
34441 exec "\$@"
34442fi
34443
34444_ACEOF
34445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34446exec 5>>config.log
34447{
34448 echo
34449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34450## Running $as_me. ##
34451_ASBOX
34452 $as_echo "$ac_log"
34453} >&5
34454
34455_ACEOF
34456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000034457#
34458# INIT-COMMANDS
34459#
34460PACKAGE="$PACKAGE"
34461AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34462
34463
34464# The HP-UX ksh and POSIX shell print the target directory to stdout
34465# if CDPATH is set.
34466(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34467
34468sed_quote_subst='$sed_quote_subst'
34469double_quote_subst='$double_quote_subst'
34470delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000034471SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34472Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34473GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34474EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34475FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34476SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34477ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34478LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34479macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34480macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34481AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34482DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34483OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34484enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34485enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34486pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34487enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34488host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34489host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34490host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34491build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34492build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34493build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34494NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34495LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34496max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34497ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34498exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34499lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34500lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34501lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034502lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34503lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034504reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34505reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34506deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34507file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034508file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34509want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34510sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034511AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34512AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034513archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034514STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34515RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34516old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34517old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34518old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34519lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34520CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34521CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34522compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34523GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34524lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34525lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34526lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34527lt_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 +000034528nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34529lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034530objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34531MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34532lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034533lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034534lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034535lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34536lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34537need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034538MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034539DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34540NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34541LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34542OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34543OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34544libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34545shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34546extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34547archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34548enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34549export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34550whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34551compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34552old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34553old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34554archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34555archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34556module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34557module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34558with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34559allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34560no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34561hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34562hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34563hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34564hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34565hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34566hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34567hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34568hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34569inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34570link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034571always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34572export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34573exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34574include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34575prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034576postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034577file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34578variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34579need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34580need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34581version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34582runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34583shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34584shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34585libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34586library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34587soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34588install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34589postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34590postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34591finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34592finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34593hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34594sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34595sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34596hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34597enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34598enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34599enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34600old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34601striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34602compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34603predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34604postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34605predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34606postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34607compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34608LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34609reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34610reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34611old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34612compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34613GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34614lt_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 +000034615lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034616lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034617lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34618lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34619archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34620enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34621export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34622whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34623compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34624old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34625old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34626archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34627archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34628module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34629module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34630with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34631allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34632no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34633hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34634hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34635hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34636hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34637hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34638hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34639hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34640hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34641inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34642link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034643always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34644export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34645exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34646include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34647prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034648postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034649file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34650hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34651compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34652predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34653postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34654predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34655postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34656compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000034657
34658LTCC='$LTCC'
34659LTCFLAGS='$LTCFLAGS'
34660compiler='$compiler_DEFAULT'
34661
cristy0c60a692010-11-04 01:09:47 +000034662# A function that is used when there is no print builtin or printf.
34663func_fallback_echo ()
34664{
34665 eval 'cat <<_LTECHO_EOF
34666\$1
34667_LTECHO_EOF'
34668}
34669
cristy73bd4a52010-10-05 11:24:23 +000034670# Quote evaled strings.
34671for var in SED \
34672GREP \
34673EGREP \
34674FGREP \
cristy0c60a692010-11-04 01:09:47 +000034675SHELL \
34676ECHO \
cristy73bd4a52010-10-05 11:24:23 +000034677LD \
cristy0c60a692010-11-04 01:09:47 +000034678AS \
34679DLLTOOL \
34680OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000034681NM \
34682LN_S \
34683lt_SP2NL \
34684lt_NL2SP \
34685reload_flag \
34686deplibs_check_method \
34687file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000034688file_magic_glob \
34689want_nocaseglob \
34690sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000034691AR \
34692AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000034693archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034694STRIP \
34695RANLIB \
34696CC \
34697CFLAGS \
34698compiler \
34699lt_cv_sys_global_symbol_pipe \
34700lt_cv_sys_global_symbol_to_cdecl \
34701lt_cv_sys_global_symbol_to_c_name_address \
34702lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000034703nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034704lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000034705lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000034706lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000034707lt_prog_compiler_static \
34708lt_cv_prog_compiler_c_o \
34709need_locks \
cristyda16f162011-02-19 23:52:17 +000034710MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000034711DSYMUTIL \
34712NMEDIT \
34713LIPO \
34714OTOOL \
34715OTOOL64 \
34716shrext_cmds \
34717export_dynamic_flag_spec \
34718whole_archive_flag_spec \
34719compiler_needs_object \
34720with_gnu_ld \
34721allow_undefined_flag \
34722no_undefined_flag \
34723hardcode_libdir_flag_spec \
34724hardcode_libdir_flag_spec_ld \
34725hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000034726exclude_expsyms \
34727include_expsyms \
34728file_list_spec \
34729variables_saved_for_relink \
34730libname_spec \
34731library_names_spec \
34732soname_spec \
cristy0c60a692010-11-04 01:09:47 +000034733install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000034734finish_eval \
34735old_striplib \
34736striplib \
34737compiler_lib_search_dirs \
34738predep_objects \
34739postdep_objects \
34740predeps \
34741postdeps \
34742compiler_lib_search_path \
34743LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000034744reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034745compiler_CXX \
34746lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034747lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000034748lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034749lt_prog_compiler_static_CXX \
34750lt_cv_prog_compiler_c_o_CXX \
34751export_dynamic_flag_spec_CXX \
34752whole_archive_flag_spec_CXX \
34753compiler_needs_object_CXX \
34754with_gnu_ld_CXX \
34755allow_undefined_flag_CXX \
34756no_undefined_flag_CXX \
34757hardcode_libdir_flag_spec_CXX \
34758hardcode_libdir_flag_spec_ld_CXX \
34759hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034760exclude_expsyms_CXX \
34761include_expsyms_CXX \
34762file_list_spec_CXX \
34763compiler_lib_search_dirs_CXX \
34764predep_objects_CXX \
34765postdep_objects_CXX \
34766predeps_CXX \
34767postdeps_CXX \
34768compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034769 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034770 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034771 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034772 ;;
34773 *)
34774 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34775 ;;
34776 esac
34777done
34778
34779# Double-quote double-evaled strings.
34780for var in reload_cmds \
34781old_postinstall_cmds \
34782old_postuninstall_cmds \
34783old_archive_cmds \
34784extract_expsyms_cmds \
34785old_archive_from_new_cmds \
34786old_archive_from_expsyms_cmds \
34787archive_cmds \
34788archive_expsym_cmds \
34789module_cmds \
34790module_expsym_cmds \
34791export_symbols_cmds \
34792prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000034793postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000034794postinstall_cmds \
34795postuninstall_cmds \
34796finish_cmds \
34797sys_lib_search_path_spec \
34798sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000034799reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034800old_archive_cmds_CXX \
34801old_archive_from_new_cmds_CXX \
34802old_archive_from_expsyms_cmds_CXX \
34803archive_cmds_CXX \
34804archive_expsym_cmds_CXX \
34805module_cmds_CXX \
34806module_expsym_cmds_CXX \
34807export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000034808prelink_cmds_CXX \
34809postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034810 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034811 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034812 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034813 ;;
34814 *)
34815 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34816 ;;
34817 esac
34818done
34819
cristy73bd4a52010-10-05 11:24:23 +000034820ac_aux_dir='$ac_aux_dir'
34821xsi_shell='$xsi_shell'
34822lt_shell_append='$lt_shell_append'
34823
34824# See if we are running on zsh, and set the options which allow our
34825# commands through without removal of \ escapes INIT.
34826if test -n "\${ZSH_VERSION+set}" ; then
34827 setopt NO_GLOB_SUBST
34828fi
34829
34830
34831 PACKAGE='$PACKAGE'
34832 VERSION='$VERSION'
34833 TIMESTAMP='$TIMESTAMP'
34834 RM='$RM'
34835 ofile='$ofile'
34836
34837
34838
34839
34840
34841
cristy3ed852e2009-09-05 21:47:34 +000034842_ACEOF
34843
34844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34845
34846# Handling of arguments.
34847for ac_config_target in $ac_config_targets
34848do
34849 case $ac_config_target in
34850 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034851 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034852 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34853 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34854 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34855 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34856 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034857 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034858 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34859 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34860 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34861 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34862 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34863 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34864 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34865 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34866 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34867 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34868 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34869 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34870 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34871 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34872 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34873 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34874 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34875 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34876 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34877 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34878 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34879 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34880 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34881 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34882 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34883 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34884 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34885 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34886 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34887 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34888 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34889 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34890 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034891 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34892 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034893 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34894 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34895 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34896 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34897 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34898 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34899 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34900
cristy98dddb52010-11-04 00:30:15 +000034901 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034902 esac
34903done
34904
34905
34906# If the user did not use the arguments to specify the items to instantiate,
34907# then the envvar interface is used. Set only those that are not.
34908# We use the long form for the default assignment because of an extremely
34909# bizarre bug on SunOS 4.1.3.
34910if $ac_need_defaults; then
34911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34912 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34914fi
34915
34916# Have a temporary directory for convenience. Make it in the build tree
34917# simply because there is no reason against having it here, and in addition,
34918# creating and moving files from /tmp can sometimes cause problems.
34919# Hook for its removal unless debugging.
34920# Note that there is a small window in which the directory will not be cleaned:
34921# after its creation but before its name has been assigned to `$tmp'.
34922$debug ||
34923{
cristyda16f162011-02-19 23:52:17 +000034924 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000034925 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000034926 : "${ac_tmp:=$tmp}"
34927 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000034928' 0
cristy8b350f62009-11-15 23:12:43 +000034929 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034930}
34931# Create a (secure) tmp directory for tmp files.
34932
34933{
34934 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000034935 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000034936} ||
34937{
34938 tmp=./conf$$-$RANDOM
34939 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034940} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000034941ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000034942
34943# Set up the scripts for CONFIG_FILES section.
34944# No need to generate them if there are no CONFIG_FILES.
34945# This happens for instance with `./config.status config.h'.
34946if test -n "$CONFIG_FILES"; then
34947
34948
cristy8b350f62009-11-15 23:12:43 +000034949ac_cr=`echo X | tr X '\015'`
34950# On cygwin, bash can eat \r inside `` if the user requested igncr.
34951# But we know of no other shell where ac_cr would be empty at this
34952# point, so we can use a bashism as a fallback.
34953if test "x$ac_cr" = x; then
34954 eval ac_cr=\$\'\\r\'
34955fi
cristy3ed852e2009-09-05 21:47:34 +000034956ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34957if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034958 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034959else
34960 ac_cs_awk_cr=$ac_cr
34961fi
34962
cristyda16f162011-02-19 23:52:17 +000034963echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000034964_ACEOF
34965
34966
34967{
34968 echo "cat >conf$$subs.awk <<_ACEOF" &&
34969 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34970 echo "_ACEOF"
34971} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034972 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34973ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034974ac_delim='%!_!# '
34975for ac_last_try in false false false false false :; do
34976 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034977 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034978
34979 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34980 if test $ac_delim_n = $ac_delim_num; then
34981 break
34982 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034984 else
34985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34986 fi
34987done
34988rm -f conf$$subs.sh
34989
34990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000034991cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000034992_ACEOF
34993sed -n '
34994h
34995s/^/S["/; s/!.*/"]=/
34996p
34997g
34998s/^[^!]*!//
34999:repl
35000t repl
35001s/'"$ac_delim"'$//
35002t delim
35003:nl
35004h
cristycd4c5312009-11-22 01:19:08 +000035005s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035006t more1
35007s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35008p
35009n
35010b repl
35011:more1
35012s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35013p
35014g
35015s/.\{148\}//
35016t nl
35017:delim
35018h
cristycd4c5312009-11-22 01:19:08 +000035019s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035020t more2
35021s/["\\]/\\&/g; s/^/"/; s/$/"/
35022p
35023b
35024:more2
35025s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35026p
35027g
35028s/.\{148\}//
35029t delim
35030' <conf$$subs.awk | sed '
35031/^[^""]/{
35032 N
35033 s/\n//
35034}
35035' >>$CONFIG_STATUS || ac_write_fail=1
35036rm -f conf$$subs.awk
35037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35038_ACAWK
cristyda16f162011-02-19 23:52:17 +000035039cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035040 for (key in S) S_is_set[key] = 1
35041 FS = ""
35042
35043}
35044{
35045 line = $ 0
35046 nfields = split(line, field, "@")
35047 substed = 0
35048 len = length(field[1])
35049 for (i = 2; i < nfields; i++) {
35050 key = field[i]
35051 keylen = length(key)
35052 if (S_is_set[key]) {
35053 value = S[key]
35054 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35055 len += length(value) + length(field[++i])
35056 substed = 1
35057 } else
35058 len += 1 + keylen
35059 }
35060
35061 print line
35062}
35063
35064_ACAWK
35065_ACEOF
35066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35067if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35068 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35069else
35070 cat
cristyda16f162011-02-19 23:52:17 +000035071fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035072 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035073_ACEOF
35074
cristy98dddb52010-11-04 00:30:15 +000035075# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35076# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035077# trailing colons and then remove the whole line if VPATH becomes empty
35078# (actually we leave an empty line to preserve line numbers).
35079if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035080 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35081h
35082s///
35083s/^/:/
35084s/[ ]*$/:/
35085s/:\$(srcdir):/:/g
35086s/:\${srcdir}:/:/g
35087s/:@srcdir@:/:/g
35088s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035089s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035090x
35091s/\(=[ ]*\).*/\1/
35092G
35093s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035094s/^[^=]*=[ ]*$//
35095}'
35096fi
35097
35098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35099fi # test -n "$CONFIG_FILES"
35100
35101# Set up the scripts for CONFIG_HEADERS section.
35102# No need to generate them if there are no CONFIG_HEADERS.
35103# This happens for instance with `./config.status Makefile'.
35104if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035105cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035106BEGIN {
35107_ACEOF
35108
35109# Transform confdefs.h into an awk script `defines.awk', embedded as
35110# here-document in config.status, that substitutes the proper values into
35111# config.h.in to produce config.h.
35112
35113# Create a delimiter string that does not exist in confdefs.h, to ease
35114# handling of long lines.
35115ac_delim='%!_!# '
35116for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035117 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35118 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035119 break
35120 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035121 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035122 else
35123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35124 fi
35125done
35126
35127# For the awk script, D is an array of macro values keyed by name,
35128# likewise P contains macro parameters if any. Preserve backslash
35129# newline sequences.
35130
35131ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35132sed -n '
35133s/.\{148\}/&'"$ac_delim"'/g
35134t rset
35135:rset
35136s/^[ ]*#[ ]*define[ ][ ]*/ /
35137t def
35138d
35139:def
35140s/\\$//
35141t bsnl
35142s/["\\]/\\&/g
35143s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35144D["\1"]=" \3"/p
35145s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35146d
35147:bsnl
35148s/["\\]/\\&/g
35149s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35150D["\1"]=" \3\\\\\\n"\\/p
35151t cont
35152s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35153t cont
35154d
35155:cont
35156n
35157s/.\{148\}/&'"$ac_delim"'/g
35158t clear
35159:clear
35160s/\\$//
35161t bsnlc
35162s/["\\]/\\&/g; s/^/"/; s/$/"/p
35163d
35164:bsnlc
35165s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35166b cont
35167' <confdefs.h | sed '
35168s/'"$ac_delim"'/"\\\
35169"/g' >>$CONFIG_STATUS || ac_write_fail=1
35170
35171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35172 for (key in D) D_is_set[key] = 1
35173 FS = ""
35174}
35175/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35176 line = \$ 0
35177 split(line, arg, " ")
35178 if (arg[1] == "#") {
35179 defundef = arg[2]
35180 mac1 = arg[3]
35181 } else {
35182 defundef = substr(arg[1], 2)
35183 mac1 = arg[2]
35184 }
35185 split(mac1, mac2, "(") #)
35186 macro = mac2[1]
35187 prefix = substr(line, 1, index(line, defundef) - 1)
35188 if (D_is_set[macro]) {
35189 # Preserve the white space surrounding the "#".
35190 print prefix "define", macro P[macro] D[macro]
35191 next
35192 } else {
35193 # Replace #undef with comments. This is necessary, for example,
35194 # in the case of _POSIX_SOURCE, which is predefined and required
35195 # on some systems where configure will not decide to define it.
35196 if (defundef == "undef") {
35197 print "/*", prefix defundef, macro, "*/"
35198 next
35199 }
35200 }
35201}
35202{ print }
35203_ACAWK
35204_ACEOF
35205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035206 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035207fi # test -n "$CONFIG_HEADERS"
35208
35209
35210eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35211shift
35212for ac_tag
35213do
35214 case $ac_tag in
35215 :[FHLC]) ac_mode=$ac_tag; continue;;
35216 esac
35217 case $ac_mode$ac_tag in
35218 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035219 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035220 :[FH]-) ac_tag=-:-;;
35221 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35222 esac
35223 ac_save_IFS=$IFS
35224 IFS=:
35225 set x $ac_tag
35226 IFS=$ac_save_IFS
35227 shift
35228 ac_file=$1
35229 shift
35230
35231 case $ac_mode in
35232 :L) ac_source=$1;;
35233 :[FH])
35234 ac_file_inputs=
35235 for ac_f
35236 do
35237 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035238 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035239 *) # Look for the file first in the build tree, then in the source tree
35240 # (if the path is not absolute). The absolute path cannot be DOS-style,
35241 # because $ac_f cannot contain `:'.
35242 test -f "$ac_f" ||
35243 case $ac_f in
35244 [\\/$]*) false;;
35245 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35246 esac ||
cristy98dddb52010-11-04 00:30:15 +000035247 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035248 esac
35249 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035250 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035251 done
35252
35253 # Let's still pretend it is `configure' which instantiates (i.e., don't
35254 # use $as_me), people would be surprised to read:
35255 # /* config.h. Generated by config.status. */
35256 configure_input='Generated from '`
35257 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35258 `' by configure.'
35259 if test x"$ac_file" != x-; then
35260 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035262$as_echo "$as_me: creating $ac_file" >&6;}
35263 fi
35264 # Neutralize special characters interpreted by sed in replacement strings.
35265 case $configure_input in #(
35266 *\&* | *\|* | *\\* )
35267 ac_sed_conf_input=`$as_echo "$configure_input" |
35268 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35269 *) ac_sed_conf_input=$configure_input;;
35270 esac
35271
35272 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000035273 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000035274 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000035275 esac
35276 ;;
35277 esac
35278
35279 ac_dir=`$as_dirname -- "$ac_file" ||
35280$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35281 X"$ac_file" : 'X\(//\)[^/]' \| \
35282 X"$ac_file" : 'X\(//\)$' \| \
35283 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35284$as_echo X"$ac_file" |
35285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35286 s//\1/
35287 q
35288 }
35289 /^X\(\/\/\)[^/].*/{
35290 s//\1/
35291 q
35292 }
35293 /^X\(\/\/\)$/{
35294 s//\1/
35295 q
35296 }
35297 /^X\(\/\).*/{
35298 s//\1/
35299 q
35300 }
35301 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000035302 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035303 ac_builddir=.
35304
35305case "$ac_dir" in
35306.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35307*)
35308 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35309 # A ".." for each directory in $ac_dir_suffix.
35310 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35311 case $ac_top_builddir_sub in
35312 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35313 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35314 esac ;;
35315esac
35316ac_abs_top_builddir=$ac_pwd
35317ac_abs_builddir=$ac_pwd$ac_dir_suffix
35318# for backward compatibility:
35319ac_top_builddir=$ac_top_build_prefix
35320
35321case $srcdir in
35322 .) # We are building in place.
35323 ac_srcdir=.
35324 ac_top_srcdir=$ac_top_builddir_sub
35325 ac_abs_top_srcdir=$ac_pwd ;;
35326 [\\/]* | ?:[\\/]* ) # Absolute name.
35327 ac_srcdir=$srcdir$ac_dir_suffix;
35328 ac_top_srcdir=$srcdir
35329 ac_abs_top_srcdir=$srcdir ;;
35330 *) # Relative name.
35331 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35332 ac_top_srcdir=$ac_top_build_prefix$srcdir
35333 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35334esac
35335ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35336
35337
35338 case $ac_mode in
35339 :F)
35340 #
35341 # CONFIG_FILE
35342 #
35343
35344 case $INSTALL in
35345 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35346 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35347 esac
cristy73bd4a52010-10-05 11:24:23 +000035348 ac_MKDIR_P=$MKDIR_P
35349 case $MKDIR_P in
35350 [\\/$]* | ?:[\\/]* ) ;;
35351 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35352 esac
cristy3ed852e2009-09-05 21:47:34 +000035353_ACEOF
35354
35355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35356# If the template does not know about datarootdir, expand it.
35357# FIXME: This hack should be removed a few years after 2.60.
35358ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000035359ac_sed_dataroot='
35360/datarootdir/ {
35361 p
35362 q
35363}
35364/@datadir@/p
35365/@docdir@/p
35366/@infodir@/p
35367/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000035368/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000035369case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35370*datarootdir*) ac_datarootdir_seen=yes;;
35371*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000035372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000035373$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35374_ACEOF
35375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35376 ac_datarootdir_hack='
35377 s&@datadir@&$datadir&g
35378 s&@docdir@&$docdir&g
35379 s&@infodir@&$infodir&g
35380 s&@localedir@&$localedir&g
35381 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000035382 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000035383esac
35384_ACEOF
35385
35386# Neutralize VPATH when `$srcdir' = `.'.
35387# Shell code in configure.ac might set extrasub.
35388# FIXME: do we really want to maintain this feature?
35389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35390ac_sed_extra="$ac_vpsub
35391$extrasub
35392_ACEOF
35393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35394:t
35395/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35396s|@configure_input@|$ac_sed_conf_input|;t t
35397s&@top_builddir@&$ac_top_builddir_sub&;t t
35398s&@top_build_prefix@&$ac_top_build_prefix&;t t
35399s&@srcdir@&$ac_srcdir&;t t
35400s&@abs_srcdir@&$ac_abs_srcdir&;t t
35401s&@top_srcdir@&$ac_top_srcdir&;t t
35402s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35403s&@builddir@&$ac_builddir&;t t
35404s&@abs_builddir@&$ac_abs_builddir&;t t
35405s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35406s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000035407s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000035408$ac_datarootdir_hack
35409"
cristyda16f162011-02-19 23:52:17 +000035410eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35411 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035412
35413test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000035414 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35415 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35416 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000035417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035418which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000035419$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035420which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000035421
cristyda16f162011-02-19 23:52:17 +000035422 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000035423 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000035424 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35425 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000035426 esac \
cristy98dddb52010-11-04 00:30:15 +000035427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035428 ;;
35429 :H)
35430 #
35431 # CONFIG_HEADER
35432 #
35433 if test x"$ac_file" != x-; then
35434 {
35435 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035436 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35437 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000035438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035439 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000035440 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000035441$as_echo "$as_me: $ac_file is unchanged" >&6;}
35442 else
35443 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000035444 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000035445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035446 fi
35447 else
35448 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000035450 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035451 fi
cristy73bd4a52010-10-05 11:24:23 +000035452# Compute "$ac_file"'s index in $config_headers.
35453_am_arg="$ac_file"
35454_am_stamp_count=1
35455for _am_header in $config_headers :; do
35456 case $_am_header in
35457 $_am_arg | $_am_arg:* )
35458 break ;;
35459 * )
35460 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35461 esac
35462done
35463echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35464$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35465 X"$_am_arg" : 'X\(//\)[^/]' \| \
35466 X"$_am_arg" : 'X\(//\)$' \| \
35467 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35468$as_echo X"$_am_arg" |
35469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35470 s//\1/
35471 q
35472 }
35473 /^X\(\/\/\)[^/].*/{
35474 s//\1/
35475 q
35476 }
35477 /^X\(\/\/\)$/{
35478 s//\1/
35479 q
35480 }
35481 /^X\(\/\).*/{
35482 s//\1/
35483 q
35484 }
35485 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000035486 ;;
35487
cristy8b350f62009-11-15 23:12:43 +000035488 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000035489$as_echo "$as_me: executing $ac_file commands" >&6;}
35490 ;;
35491 esac
35492
35493
35494 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000035495 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35496ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35497ac_prefix_conf_PKG=`echo MagickCore`
35498ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35499ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
35500ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35501if test ".$ac_prefix_conf_INP" = "."; then
35502 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35503 case "$ac_file" in
35504 *.h) ac_prefix_conf_INP=$ac_file ;;
35505 *)
35506 esac
35507 test ".$ac_prefix_conf_INP" != "." && break
35508 done
35509fi
35510if test ".$ac_prefix_conf_INP" = "."; then
35511 case "$ac_prefix_conf_OUT" in
35512 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35513 ;;
35514 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35515 ;;
35516 *) ac_prefix_conf_INP=config.h
35517 ;;
35518 esac
35519fi
35520if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000035521 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000035522else
35523 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35524 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35525 fi fi
35526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35527$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35528 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000035529 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35530 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35531 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35532 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35533 $as_echo "#endif/" >> conftest.prefix
35534 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35535 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35536 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000035537 # now executing _script on _DEF input to create _OUT output file
35538 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
35539 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35540 echo ' ' >>$tmp/pconfig.h
35541 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35542
35543 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35544 echo ' ' >>$tmp/pconfig.h
35545 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35546 echo "#endif" >>$tmp/pconfig.h
35547 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35548 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35549$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35550 else
35551 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35552$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35553 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35554 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35555 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35556$as_echo X"$ac_prefix_conf_OUT" |
35557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35558 s//\1/
35559 q
35560 }
35561 /^X\(\/\/\)[^/].*/{
35562 s//\1/
35563 q
35564 }
35565 /^X\(\/\/\)$/{
35566 s//\1/
35567 q
35568 }
35569 /^X\(\/\).*/{
35570 s//\1/
35571 q
35572 }
35573 s/.*/./; q'`
35574 as_dir="$ac_dir"; as_fn_mkdir_p
35575 rm -f "$ac_prefix_conf_OUT"
35576 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35577 fi
35578 cp conftest.prefix _configs.sed
35579 else
cristy98dddb52010-11-04 00:30:15 +000035580 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 +000035581 fi
35582 rm -f conftest.*
35583fi
35584 ;;
35585 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35586 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35587 # are listed without --file. Let's play safe and only enable the eval
35588 # if we detect the quoting.
35589 case $CONFIG_FILES in
35590 *\'*) eval set x "$CONFIG_FILES" ;;
35591 *) set x $CONFIG_FILES ;;
35592 esac
35593 shift
35594 for mf
35595 do
35596 # Strip MF so we end up with the name of the file.
35597 mf=`echo "$mf" | sed -e 's/:.*$//'`
35598 # Check whether this is an Automake generated Makefile or not.
35599 # We used to match only the files named `Makefile.in', but
35600 # some people rename them; so instead we look at the file content.
35601 # Grep'ing the first line is not enough: some people post-process
35602 # each Makefile.in and add a new line on top of each file to say so.
35603 # Grep'ing the whole file is not good either: AIX grep has a line
35604 # limit of 2048, but all sed's we know have understand at least 4000.
35605 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35606 dirpart=`$as_dirname -- "$mf" ||
35607$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35608 X"$mf" : 'X\(//\)[^/]' \| \
35609 X"$mf" : 'X\(//\)$' \| \
35610 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35611$as_echo X"$mf" |
35612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35613 s//\1/
35614 q
35615 }
35616 /^X\(\/\/\)[^/].*/{
35617 s//\1/
35618 q
35619 }
35620 /^X\(\/\/\)$/{
35621 s//\1/
35622 q
35623 }
35624 /^X\(\/\).*/{
35625 s//\1/
35626 q
35627 }
35628 s/.*/./; q'`
35629 else
35630 continue
35631 fi
35632 # Extract the definition of DEPDIR, am__include, and am__quote
35633 # from the Makefile without running `make'.
35634 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35635 test -z "$DEPDIR" && continue
35636 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35637 test -z "am__include" && continue
35638 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35639 # When using ansi2knr, U may be empty or an underscore; expand it
35640 U=`sed -n 's/^U = //p' < "$mf"`
35641 # Find all dependency output files, they are included files with
35642 # $(DEPDIR) in their names. We invoke sed twice because it is the
35643 # simplest approach to changing $(DEPDIR) to its actual value in the
35644 # expansion.
35645 for file in `sed -n "
35646 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35647 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35648 # Make sure the directory exists.
35649 test -f "$dirpart/$file" && continue
35650 fdir=`$as_dirname -- "$file" ||
35651$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35652 X"$file" : 'X\(//\)[^/]' \| \
35653 X"$file" : 'X\(//\)$' \| \
35654 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35655$as_echo X"$file" |
35656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35657 s//\1/
35658 q
35659 }
35660 /^X\(\/\/\)[^/].*/{
35661 s//\1/
35662 q
35663 }
35664 /^X\(\/\/\)$/{
35665 s//\1/
35666 q
35667 }
35668 /^X\(\/\).*/{
35669 s//\1/
35670 q
35671 }
35672 s/.*/./; q'`
35673 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35674 # echo "creating $dirpart/$file"
35675 echo '# dummy' > "$dirpart/$file"
35676 done
35677 done
35678}
35679 ;;
35680 "libtool":C)
35681
35682 # See if we are running on zsh, and set the options which allow our
35683 # commands through without removal of \ escapes.
35684 if test -n "${ZSH_VERSION+set}" ; then
35685 setopt NO_GLOB_SUBST
35686 fi
35687
35688 cfgfile="${ofile}T"
35689 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35690 $RM "$cfgfile"
35691
35692 cat <<_LT_EOF >> "$cfgfile"
35693#! $SHELL
35694
35695# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35696# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35697# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35698# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35699#
35700# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000035701# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35702# Inc.
cristy73bd4a52010-10-05 11:24:23 +000035703# Written by Gordon Matzigkeit, 1996
35704#
35705# This file is part of GNU Libtool.
35706#
35707# GNU Libtool is free software; you can redistribute it and/or
35708# modify it under the terms of the GNU General Public License as
35709# published by the Free Software Foundation; either version 2 of
35710# the License, or (at your option) any later version.
35711#
35712# As a special exception to the GNU General Public License,
35713# if you distribute this file as part of a program or library that
35714# is built using GNU Libtool, you may include this file under the
35715# same distribution terms that you use for the rest of that program.
35716#
35717# GNU Libtool is distributed in the hope that it will be useful,
35718# but WITHOUT ANY WARRANTY; without even the implied warranty of
35719# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35720# GNU General Public License for more details.
35721#
35722# You should have received a copy of the GNU General Public License
35723# along with GNU Libtool; see the file COPYING. If not, a copy
35724# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35725# obtained by writing to the Free Software Foundation, Inc.,
35726# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35727
35728
35729# The names of the tagged configurations supported by this script.
35730available_tags="CXX "
35731
35732# ### BEGIN LIBTOOL CONFIG
35733
35734# A sed program that does not truncate output.
35735SED=$lt_SED
35736
35737# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35738Xsed="\$SED -e 1s/^X//"
35739
35740# A grep program that handles long lines.
35741GREP=$lt_GREP
35742
35743# An ERE matcher.
35744EGREP=$lt_EGREP
35745
35746# A literal string matcher.
35747FGREP=$lt_FGREP
35748
cristy0c60a692010-11-04 01:09:47 +000035749# Shell to use when invoking shell scripts.
35750SHELL=$lt_SHELL
35751
35752# An echo program that protects backslashes.
35753ECHO=$lt_ECHO
35754
cristy73bd4a52010-10-05 11:24:23 +000035755# Which release of libtool.m4 was used?
35756macro_version=$macro_version
35757macro_revision=$macro_revision
35758
35759# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000035760AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000035761
35762# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000035763DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000035764
35765# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000035766OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000035767
35768# Whether or not to build shared libraries.
35769build_libtool_libs=$enable_shared
35770
35771# Whether or not to build static libraries.
35772build_old_libs=$enable_static
35773
35774# What type of objects to build.
35775pic_mode=$pic_mode
35776
35777# Whether or not to optimize for fast installation.
35778fast_install=$enable_fast_install
35779
35780# The host system.
35781host_alias=$host_alias
35782host=$host
35783host_os=$host_os
35784
35785# The build system.
35786build_alias=$build_alias
35787build=$build
35788build_os=$build_os
35789
35790# A BSD- or MS-compatible name lister.
35791NM=$lt_NM
35792
35793# Whether we need soft or hard links.
35794LN_S=$lt_LN_S
35795
35796# What is the maximum length of a command?
35797max_cmd_len=$max_cmd_len
35798
35799# Object file suffix (normally "o").
35800objext=$ac_objext
35801
35802# Executable file suffix (normally "").
35803exeext=$exeext
35804
35805# whether the shell understands "unset".
35806lt_unset=$lt_unset
35807
35808# turn spaces into newlines.
35809SP2NL=$lt_lt_SP2NL
35810
35811# turn newlines into spaces.
35812NL2SP=$lt_lt_NL2SP
35813
cristyda16f162011-02-19 23:52:17 +000035814# convert \$build file names to \$host format.
35815to_host_file_cmd=$lt_cv_to_host_file_cmd
35816
35817# convert \$build files to toolchain format.
35818to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35819
cristy73bd4a52010-10-05 11:24:23 +000035820# Method to check whether dependent libraries are shared objects.
35821deplibs_check_method=$lt_deplibs_check_method
35822
cristyda16f162011-02-19 23:52:17 +000035823# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000035824file_magic_cmd=$lt_file_magic_cmd
35825
cristyda16f162011-02-19 23:52:17 +000035826# How to find potential files when deplibs_check_method = "file_magic".
35827file_magic_glob=$lt_file_magic_glob
35828
35829# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35830want_nocaseglob=$lt_want_nocaseglob
35831
35832# Command to associate shared and link libraries.
35833sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35834
cristy73bd4a52010-10-05 11:24:23 +000035835# The archiver.
35836AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000035837
35838# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000035839AR_FLAGS=$lt_AR_FLAGS
35840
cristyda16f162011-02-19 23:52:17 +000035841# How to feed a file listing to the archiver.
35842archiver_list_spec=$lt_archiver_list_spec
35843
cristy73bd4a52010-10-05 11:24:23 +000035844# A symbol stripping program.
35845STRIP=$lt_STRIP
35846
35847# Commands used to install an old-style archive.
35848RANLIB=$lt_RANLIB
35849old_postinstall_cmds=$lt_old_postinstall_cmds
35850old_postuninstall_cmds=$lt_old_postuninstall_cmds
35851
cristy0c60a692010-11-04 01:09:47 +000035852# Whether to use a lock for old archive extraction.
35853lock_old_archive_extraction=$lock_old_archive_extraction
35854
cristy73bd4a52010-10-05 11:24:23 +000035855# A C compiler.
35856LTCC=$lt_CC
35857
35858# LTCC compiler flags.
35859LTCFLAGS=$lt_CFLAGS
35860
35861# Take the output of nm and produce a listing of raw symbols and C names.
35862global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35863
35864# Transform the output of nm in a proper C declaration.
35865global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35866
35867# Transform the output of nm in a C name address pair.
35868global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35869
35870# Transform the output of nm in a C name address pair when lib prefix is needed.
35871global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35872
cristyda16f162011-02-19 23:52:17 +000035873# Specify filename containing input files for \$NM.
35874nm_file_list_spec=$lt_nm_file_list_spec
35875
35876# The root where to search for dependent libraries,and in which our libraries should be installed.
35877lt_sysroot=$lt_sysroot
35878
cristy73bd4a52010-10-05 11:24:23 +000035879# The name of the directory that contains temporary libtool files.
35880objdir=$objdir
35881
cristy73bd4a52010-10-05 11:24:23 +000035882# Used to examine libraries when file_magic_cmd begins with "file".
35883MAGIC_CMD=$MAGIC_CMD
35884
35885# Must we lock files when doing compilation?
35886need_locks=$lt_need_locks
35887
cristyda16f162011-02-19 23:52:17 +000035888# Manifest tool.
35889MANIFEST_TOOL=$lt_MANIFEST_TOOL
35890
cristy73bd4a52010-10-05 11:24:23 +000035891# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35892DSYMUTIL=$lt_DSYMUTIL
35893
35894# Tool to change global to local symbols on Mac OS X.
35895NMEDIT=$lt_NMEDIT
35896
35897# Tool to manipulate fat objects and archives on Mac OS X.
35898LIPO=$lt_LIPO
35899
35900# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35901OTOOL=$lt_OTOOL
35902
35903# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35904OTOOL64=$lt_OTOOL64
35905
35906# Old archive suffix (normally "a").
35907libext=$libext
35908
35909# Shared library suffix (normally ".so").
35910shrext_cmds=$lt_shrext_cmds
35911
35912# The commands to extract the exported symbol list from a shared archive.
35913extract_expsyms_cmds=$lt_extract_expsyms_cmds
35914
35915# Variables whose values should be saved in libtool wrapper scripts and
35916# restored at link time.
35917variables_saved_for_relink=$lt_variables_saved_for_relink
35918
35919# Do we need the "lib" prefix for modules?
35920need_lib_prefix=$need_lib_prefix
35921
35922# Do we need a version for libraries?
35923need_version=$need_version
35924
35925# Library versioning type.
35926version_type=$version_type
35927
35928# Shared library runtime path variable.
35929runpath_var=$runpath_var
35930
35931# Shared library path variable.
35932shlibpath_var=$shlibpath_var
35933
35934# Is shlibpath searched before the hard-coded library search path?
35935shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35936
35937# Format of library name prefix.
35938libname_spec=$lt_libname_spec
35939
35940# List of archive names. First name is the real one, the rest are links.
35941# The last name is the one that the linker finds with -lNAME
35942library_names_spec=$lt_library_names_spec
35943
35944# The coded name of the library, if different from the real name.
35945soname_spec=$lt_soname_spec
35946
cristy0c60a692010-11-04 01:09:47 +000035947# Permission mode override for installation of shared libraries.
35948install_override_mode=$lt_install_override_mode
35949
cristy73bd4a52010-10-05 11:24:23 +000035950# Command to use after installation of a shared archive.
35951postinstall_cmds=$lt_postinstall_cmds
35952
35953# Command to use after uninstallation of a shared archive.
35954postuninstall_cmds=$lt_postuninstall_cmds
35955
35956# Commands used to finish a libtool library installation in a directory.
35957finish_cmds=$lt_finish_cmds
35958
35959# As "finish_cmds", except a single script fragment to be evaled but
35960# not shown.
35961finish_eval=$lt_finish_eval
35962
35963# Whether we should hardcode library paths into libraries.
35964hardcode_into_libs=$hardcode_into_libs
35965
35966# Compile-time system search path for libraries.
35967sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35968
35969# Run-time system search path for libraries.
35970sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35971
35972# Whether dlopen is supported.
35973dlopen_support=$enable_dlopen
35974
35975# Whether dlopen of programs is supported.
35976dlopen_self=$enable_dlopen_self
35977
35978# Whether dlopen of statically linked programs is supported.
35979dlopen_self_static=$enable_dlopen_self_static
35980
35981# Commands to strip libraries.
35982old_striplib=$lt_old_striplib
35983striplib=$lt_striplib
35984
35985
35986# The linker used to build libraries.
35987LD=$lt_LD
35988
cristy0c60a692010-11-04 01:09:47 +000035989# How to create reloadable object files.
35990reload_flag=$lt_reload_flag
35991reload_cmds=$lt_reload_cmds
35992
cristy73bd4a52010-10-05 11:24:23 +000035993# Commands used to build an old-style archive.
35994old_archive_cmds=$lt_old_archive_cmds
35995
35996# A language specific compiler.
35997CC=$lt_compiler
35998
35999# Is the compiler the GNU compiler?
36000with_gcc=$GCC
36001
36002# Compiler flag to turn off builtin functions.
36003no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36004
cristy73bd4a52010-10-05 11:24:23 +000036005# Additional compiler flags for building library objects.
36006pic_flag=$lt_lt_prog_compiler_pic
36007
cristyda16f162011-02-19 23:52:17 +000036008# How to pass a linker flag through the compiler.
36009wl=$lt_lt_prog_compiler_wl
36010
cristy73bd4a52010-10-05 11:24:23 +000036011# Compiler flag to prevent dynamic linking.
36012link_static_flag=$lt_lt_prog_compiler_static
36013
36014# Does compiler simultaneously support -c and -o options?
36015compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36016
36017# Whether or not to add -lc for building shared libraries.
36018build_libtool_need_lc=$archive_cmds_need_lc
36019
36020# Whether or not to disallow shared libs when runtime libs are static.
36021allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36022
36023# Compiler flag to allow reflexive dlopens.
36024export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36025
36026# Compiler flag to generate shared objects directly from archives.
36027whole_archive_flag_spec=$lt_whole_archive_flag_spec
36028
36029# Whether the compiler copes with passing no objects directly.
36030compiler_needs_object=$lt_compiler_needs_object
36031
36032# Create an old-style archive from a shared archive.
36033old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36034
36035# Create a temporary old-style archive to link instead of a shared archive.
36036old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36037
36038# Commands used to build a shared archive.
36039archive_cmds=$lt_archive_cmds
36040archive_expsym_cmds=$lt_archive_expsym_cmds
36041
36042# Commands used to build a loadable module if different from building
36043# a shared archive.
36044module_cmds=$lt_module_cmds
36045module_expsym_cmds=$lt_module_expsym_cmds
36046
36047# Whether we are building with GNU ld or not.
36048with_gnu_ld=$lt_with_gnu_ld
36049
36050# Flag that allows shared libraries with undefined symbols to be built.
36051allow_undefined_flag=$lt_allow_undefined_flag
36052
36053# Flag that enforces no undefined symbols.
36054no_undefined_flag=$lt_no_undefined_flag
36055
36056# Flag to hardcode \$libdir into a binary during linking.
36057# This must work even if \$libdir does not exist
36058hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36059
36060# If ld is used when linking, flag to hardcode \$libdir into a binary
36061# during linking. This must work even if \$libdir does not exist.
36062hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36063
36064# Whether we need a single "-rpath" flag with a separated argument.
36065hardcode_libdir_separator=$lt_hardcode_libdir_separator
36066
36067# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36068# DIR into the resulting binary.
36069hardcode_direct=$hardcode_direct
36070
36071# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36072# DIR into the resulting binary and the resulting library dependency is
36073# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36074# library is relocated.
36075hardcode_direct_absolute=$hardcode_direct_absolute
36076
36077# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36078# into the resulting binary.
36079hardcode_minus_L=$hardcode_minus_L
36080
36081# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36082# into the resulting binary.
36083hardcode_shlibpath_var=$hardcode_shlibpath_var
36084
36085# Set to "yes" if building a shared library automatically hardcodes DIR
36086# into the library and all subsequent libraries and executables linked
36087# against it.
36088hardcode_automatic=$hardcode_automatic
36089
36090# Set to yes if linker adds runtime paths of dependent libraries
36091# to runtime path list.
36092inherit_rpath=$inherit_rpath
36093
36094# Whether libtool must link a program against all its dependency libraries.
36095link_all_deplibs=$link_all_deplibs
36096
cristy73bd4a52010-10-05 11:24:23 +000036097# Set to "yes" if exported symbols are required.
36098always_export_symbols=$always_export_symbols
36099
36100# The commands to list exported symbols.
36101export_symbols_cmds=$lt_export_symbols_cmds
36102
36103# Symbols that should not be listed in the preloaded symbols.
36104exclude_expsyms=$lt_exclude_expsyms
36105
36106# Symbols that must always be exported.
36107include_expsyms=$lt_include_expsyms
36108
36109# Commands necessary for linking programs (against libraries) with templates.
36110prelink_cmds=$lt_prelink_cmds
36111
cristyda16f162011-02-19 23:52:17 +000036112# Commands necessary for finishing linking programs.
36113postlink_cmds=$lt_postlink_cmds
36114
cristy73bd4a52010-10-05 11:24:23 +000036115# Specify filename containing input files.
36116file_list_spec=$lt_file_list_spec
36117
36118# How to hardcode a shared library path into an executable.
36119hardcode_action=$hardcode_action
36120
36121# The directories searched by this compiler when creating a shared library.
36122compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36123
36124# Dependencies to place before and after the objects being linked to
36125# create a shared library.
36126predep_objects=$lt_predep_objects
36127postdep_objects=$lt_postdep_objects
36128predeps=$lt_predeps
36129postdeps=$lt_postdeps
36130
36131# The library search path used internally by the compiler when linking
36132# a shared library.
36133compiler_lib_search_path=$lt_compiler_lib_search_path
36134
36135# ### END LIBTOOL CONFIG
36136
36137_LT_EOF
36138
36139 case $host_os in
36140 aix3*)
36141 cat <<\_LT_EOF >> "$cfgfile"
36142# AIX sometimes has problems with the GCC collect2 program. For some
36143# reason, if we set the COLLECT_NAMES environment variable, the problems
36144# vanish in a puff of smoke.
36145if test "X${COLLECT_NAMES+set}" != Xset; then
36146 COLLECT_NAMES=
36147 export COLLECT_NAMES
36148fi
36149_LT_EOF
36150 ;;
36151 esac
36152
36153
36154ltmain="$ac_aux_dir/ltmain.sh"
36155
36156
36157 # We use sed instead of cat because bash on DJGPP gets confused if
36158 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36159 # text mode, it properly converts lines to CR/LF. This bash problem
36160 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036161 sed '$q' "$ltmain" >> "$cfgfile" \
36162 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036163
cristyda16f162011-02-19 23:52:17 +000036164 if test x"$xsi_shell" = xyes; then
36165 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36166func_dirname ()\
36167{\
36168\ case ${1} in\
36169\ */*) func_dirname_result="${1%/*}${2}" ;;\
36170\ * ) func_dirname_result="${3}" ;;\
36171\ esac\
36172} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36173 && mv -f "$cfgfile.tmp" "$cfgfile" \
36174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36175test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036176
36177
cristyda16f162011-02-19 23:52:17 +000036178 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36179func_basename ()\
36180{\
36181\ func_basename_result="${1##*/}"\
36182} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36183 && mv -f "$cfgfile.tmp" "$cfgfile" \
36184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36185test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036186
36187
cristyda16f162011-02-19 23:52:17 +000036188 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36189func_dirname_and_basename ()\
36190{\
36191\ case ${1} in\
36192\ */*) func_dirname_result="${1%/*}${2}" ;;\
36193\ * ) func_dirname_result="${3}" ;;\
36194\ esac\
36195\ func_basename_result="${1##*/}"\
36196} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36197 && mv -f "$cfgfile.tmp" "$cfgfile" \
36198 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36199test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036200
cristyda16f162011-02-19 23:52:17 +000036201
36202 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36203func_stripname ()\
36204{\
36205\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36206\ # positional parameters, so assign one to ordinary parameter first.\
36207\ func_stripname_result=${3}\
36208\ func_stripname_result=${func_stripname_result#"${1}"}\
36209\ func_stripname_result=${func_stripname_result%"${2}"}\
36210} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36211 && mv -f "$cfgfile.tmp" "$cfgfile" \
36212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36213test 0 -eq $? || _lt_function_replace_fail=:
36214
36215
36216 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36217func_split_long_opt ()\
36218{\
36219\ func_split_long_opt_name=${1%%=*}\
36220\ func_split_long_opt_arg=${1#*=}\
36221} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36222 && mv -f "$cfgfile.tmp" "$cfgfile" \
36223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36224test 0 -eq $? || _lt_function_replace_fail=:
36225
36226
36227 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36228func_split_short_opt ()\
36229{\
36230\ func_split_short_opt_arg=${1#??}\
36231\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36232} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36233 && mv -f "$cfgfile.tmp" "$cfgfile" \
36234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36235test 0 -eq $? || _lt_function_replace_fail=:
36236
36237
36238 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36239func_lo2o ()\
36240{\
36241\ case ${1} in\
36242\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36243\ *) func_lo2o_result=${1} ;;\
36244\ esac\
36245} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36246 && mv -f "$cfgfile.tmp" "$cfgfile" \
36247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36248test 0 -eq $? || _lt_function_replace_fail=:
36249
36250
36251 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36252func_xform ()\
36253{\
36254 func_xform_result=${1%.*}.lo\
36255} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36256 && mv -f "$cfgfile.tmp" "$cfgfile" \
36257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36258test 0 -eq $? || _lt_function_replace_fail=:
36259
36260
36261 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36262func_arith ()\
36263{\
36264 func_arith_result=$(( $* ))\
36265} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36266 && mv -f "$cfgfile.tmp" "$cfgfile" \
36267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36268test 0 -eq $? || _lt_function_replace_fail=:
36269
36270
36271 sed -e '/^func_len ()$/,/^} # func_len /c\
36272func_len ()\
36273{\
36274 func_len_result=${#1}\
36275} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36276 && mv -f "$cfgfile.tmp" "$cfgfile" \
36277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36278test 0 -eq $? || _lt_function_replace_fail=:
36279
36280fi
36281
36282if test x"$lt_shell_append" = xyes; then
36283 sed -e '/^func_append ()$/,/^} # func_append /c\
36284func_append ()\
36285{\
36286 eval "${1}+=\\${2}"\
36287} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36288 && mv -f "$cfgfile.tmp" "$cfgfile" \
36289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36290test 0 -eq $? || _lt_function_replace_fail=:
36291
36292
36293 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36294func_append_quoted ()\
36295{\
36296\ func_quote_for_eval "${2}"\
36297\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36298} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36299 && mv -f "$cfgfile.tmp" "$cfgfile" \
36300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36301test 0 -eq $? || _lt_function_replace_fail=:
36302
36303
36304 # Save a `func_append' function call where possible by direct use of '+='
36305 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36306 && mv -f "$cfgfile.tmp" "$cfgfile" \
36307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36308 test 0 -eq $? || _lt_function_replace_fail=:
36309else
36310 # Save a `func_append' function call even when '+=' is not available
36311 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36312 && mv -f "$cfgfile.tmp" "$cfgfile" \
36313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36314 test 0 -eq $? || _lt_function_replace_fail=:
36315fi
36316
36317if test x"$_lt_function_replace_fail" = x":"; then
36318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36319$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36320fi
36321
36322
36323 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000036324 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36325 chmod +x "$ofile"
36326
36327
36328 cat <<_LT_EOF >> "$ofile"
36329
36330# ### BEGIN LIBTOOL TAG CONFIG: CXX
36331
36332# The linker used to build libraries.
36333LD=$lt_LD_CXX
36334
cristy0c60a692010-11-04 01:09:47 +000036335# How to create reloadable object files.
36336reload_flag=$lt_reload_flag_CXX
36337reload_cmds=$lt_reload_cmds_CXX
36338
cristy73bd4a52010-10-05 11:24:23 +000036339# Commands used to build an old-style archive.
36340old_archive_cmds=$lt_old_archive_cmds_CXX
36341
36342# A language specific compiler.
36343CC=$lt_compiler_CXX
36344
36345# Is the compiler the GNU compiler?
36346with_gcc=$GCC_CXX
36347
36348# Compiler flag to turn off builtin functions.
36349no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36350
cristy73bd4a52010-10-05 11:24:23 +000036351# Additional compiler flags for building library objects.
36352pic_flag=$lt_lt_prog_compiler_pic_CXX
36353
cristyda16f162011-02-19 23:52:17 +000036354# How to pass a linker flag through the compiler.
36355wl=$lt_lt_prog_compiler_wl_CXX
36356
cristy73bd4a52010-10-05 11:24:23 +000036357# Compiler flag to prevent dynamic linking.
36358link_static_flag=$lt_lt_prog_compiler_static_CXX
36359
36360# Does compiler simultaneously support -c and -o options?
36361compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36362
36363# Whether or not to add -lc for building shared libraries.
36364build_libtool_need_lc=$archive_cmds_need_lc_CXX
36365
36366# Whether or not to disallow shared libs when runtime libs are static.
36367allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36368
36369# Compiler flag to allow reflexive dlopens.
36370export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36371
36372# Compiler flag to generate shared objects directly from archives.
36373whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36374
36375# Whether the compiler copes with passing no objects directly.
36376compiler_needs_object=$lt_compiler_needs_object_CXX
36377
36378# Create an old-style archive from a shared archive.
36379old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36380
36381# Create a temporary old-style archive to link instead of a shared archive.
36382old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36383
36384# Commands used to build a shared archive.
36385archive_cmds=$lt_archive_cmds_CXX
36386archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36387
36388# Commands used to build a loadable module if different from building
36389# a shared archive.
36390module_cmds=$lt_module_cmds_CXX
36391module_expsym_cmds=$lt_module_expsym_cmds_CXX
36392
36393# Whether we are building with GNU ld or not.
36394with_gnu_ld=$lt_with_gnu_ld_CXX
36395
36396# Flag that allows shared libraries with undefined symbols to be built.
36397allow_undefined_flag=$lt_allow_undefined_flag_CXX
36398
36399# Flag that enforces no undefined symbols.
36400no_undefined_flag=$lt_no_undefined_flag_CXX
36401
36402# Flag to hardcode \$libdir into a binary during linking.
36403# This must work even if \$libdir does not exist
36404hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36405
36406# If ld is used when linking, flag to hardcode \$libdir into a binary
36407# during linking. This must work even if \$libdir does not exist.
36408hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36409
36410# Whether we need a single "-rpath" flag with a separated argument.
36411hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36412
36413# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36414# DIR into the resulting binary.
36415hardcode_direct=$hardcode_direct_CXX
36416
36417# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36418# DIR into the resulting binary and the resulting library dependency is
36419# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36420# library is relocated.
36421hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36422
36423# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36424# into the resulting binary.
36425hardcode_minus_L=$hardcode_minus_L_CXX
36426
36427# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36428# into the resulting binary.
36429hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36430
36431# Set to "yes" if building a shared library automatically hardcodes DIR
36432# into the library and all subsequent libraries and executables linked
36433# against it.
36434hardcode_automatic=$hardcode_automatic_CXX
36435
36436# Set to yes if linker adds runtime paths of dependent libraries
36437# to runtime path list.
36438inherit_rpath=$inherit_rpath_CXX
36439
36440# Whether libtool must link a program against all its dependency libraries.
36441link_all_deplibs=$link_all_deplibs_CXX
36442
cristy73bd4a52010-10-05 11:24:23 +000036443# Set to "yes" if exported symbols are required.
36444always_export_symbols=$always_export_symbols_CXX
36445
36446# The commands to list exported symbols.
36447export_symbols_cmds=$lt_export_symbols_cmds_CXX
36448
36449# Symbols that should not be listed in the preloaded symbols.
36450exclude_expsyms=$lt_exclude_expsyms_CXX
36451
36452# Symbols that must always be exported.
36453include_expsyms=$lt_include_expsyms_CXX
36454
36455# Commands necessary for linking programs (against libraries) with templates.
36456prelink_cmds=$lt_prelink_cmds_CXX
36457
cristyda16f162011-02-19 23:52:17 +000036458# Commands necessary for finishing linking programs.
36459postlink_cmds=$lt_postlink_cmds_CXX
36460
cristy73bd4a52010-10-05 11:24:23 +000036461# Specify filename containing input files.
36462file_list_spec=$lt_file_list_spec_CXX
36463
36464# How to hardcode a shared library path into an executable.
36465hardcode_action=$hardcode_action_CXX
36466
36467# The directories searched by this compiler when creating a shared library.
36468compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36469
36470# Dependencies to place before and after the objects being linked to
36471# create a shared library.
36472predep_objects=$lt_predep_objects_CXX
36473postdep_objects=$lt_postdep_objects_CXX
36474predeps=$lt_predeps_CXX
36475postdeps=$lt_postdeps_CXX
36476
36477# The library search path used internally by the compiler when linking
36478# a shared library.
36479compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36480
36481# ### END LIBTOOL TAG CONFIG: CXX
36482_LT_EOF
36483
36484 ;;
cristy3ed852e2009-09-05 21:47:34 +000036485 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36486 "Magick-config.in":C) chmod +x magick/Magick-config ;;
36487 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36488 "Wand-config.in":C) chmod +x wand/Wand-config ;;
36489 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36490 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36491
36492 esac
36493done # for ac_tag
36494
36495
cristy8b350f62009-11-15 23:12:43 +000036496as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000036497_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000036498ac_clean_files=$ac_clean_files_save
36499
36500test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000036501 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036502
36503
36504# configure is writing to config.log, and then calls config.status.
36505# config.status does its own redirection, appending to config.log.
36506# Unfortunately, on DOS this fails, as config.log is still kept open
36507# by configure, so config.status won't be able to write to it; its
36508# output is simply discarded. So we exec the FD to /dev/null,
36509# effectively closing config.log, so it can be properly (re)opened and
36510# appended to by config.status. When coming back to configure, we
36511# need to make the FD available again.
36512if test "$no_create" != yes; then
36513 ac_cs_success=:
36514 ac_config_status_args=
36515 test "$silent" = yes &&
36516 ac_config_status_args="$ac_config_status_args --quiet"
36517 exec 5>/dev/null
36518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36519 exec 5>>config.log
36520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36521 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000036522 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000036523fi
36524if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000036525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000036526$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36527fi
36528
36529
36530rm -f magick-version
36531
cristy430a7312010-01-21 20:44:04 +000036532result_dejavu_font_dir='none'
36533if test "${dejavu_font_dir}x" != 'x'; then
36534 result_dejavu_font_dir=$dejavu_font_dir
36535fi
36536
cristy3ed852e2009-09-05 21:47:34 +000036537result_ghostscript_font_dir='none'
36538if test "${ghostscript_font_dir}x" != 'x'; then
36539 result_ghostscript_font_dir=$ghostscript_font_dir
36540fi
36541
36542result_windows_font_dir='none'
36543if test "${windows_font_dir}x" != 'x'; then
36544 result_windows_font_dir=${windows_font_dir}
36545fi
36546
cristy8b350f62009-11-15 23:12:43 +000036547{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000036548ImageMagick is configured as follows. Please verify that this configuration
36549matches your expectations.
36550
36551Host system type: $host
36552Build system type: $build
36553
36554 Option Value
36555-------------------------------------------------------------------------------
36556Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36557Static libraries --enable-static=$enable_static $libtool_build_static_libs
36558Module support --with-modules=$with_modules $with_modules
36559GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36560Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36561High Dynamic Range Imagery
36562 --enable-hdri=$enable_hdri $enable_hdri
36563
36564Delegate Configuration:
36565BZLIB --with-bzlib=$with_bzlib $have_bzlib
36566Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036567Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036568DJVU --with-djvu=$with_djvu $have_djvu
36569DPS --with-dps=$with_dps $have_dps
36570FFTW --with-fftw=$with_fftw $have_fftw
36571FlashPIX --with-fpx=$with_fpx $have_fpx
36572FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36573FreeType --with-freetype=$with_freetype $have_freetype
36574GhostPCL None $PCLDelegate ($PCLVersion)
36575GhostXPS None $XPSDelegate ($XPSVersion)
36576Ghostscript None $PSDelegate ($GSVersion)
36577Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36578Ghostscript lib --with-gslib=$with_gslib $have_gslib
36579Graphviz --with-gvc=$with_gvc $have_gvc
36580JBIG --with-jbig=$with_jbig $have_jbig
36581JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36582JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036583LCMS v1 --with-lcms=$with_lcms $have_lcms
36584LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036585LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036586LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036587Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36588OpenEXR --with-openexr=$with_openexr $have_openexr
36589PERL --with-perl=$with_perl $have_perl
36590PNG --with-png=$with_png $have_png
36591RSVG --with-rsvg=$with_rsvg $have_rsvg
36592TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036593WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036594Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36595WMF --with-wmf=$with_wmf $have_wmf
36596X11 --with-x=$with_x $have_x
36597XML --with-xml=$with_xml $have_xml
36598ZLIB --with-zlib=$with_zlib $have_zlib
36599
36600X11 Configuration:
36601 X_CFLAGS = $X_CFLAGS
36602 X_PRE_LIBS = $X_PRE_LIBS
36603 X_LIBS = $X_LIBS
36604 X_EXTRA_LIBS = $X_EXTRA_LIBS
36605
36606Options used to compile and link:
36607 PREFIX = $PREFIX_DIR
36608 EXEC-PREFIX = $EXEC_PREFIX_DIR
36609 VERSION = $PACKAGE_VERSION
36610 CC = $CC
36611 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036612 CPPFLAGS = $MAGICK_CPPFLAGS
36613 PCFLAGS = $MAGICK_PCFLAGS
36614 DEFS = $DEFS
36615 LDFLAGS = $LDFLAGS
36616 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36617 LIBS = $MAGICK_LIBS
36618 CXX = $CXX
36619 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036620 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036621" >&5
36622$as_echo "
36623ImageMagick is configured as follows. Please verify that this configuration
36624matches your expectations.
36625
36626Host system type: $host
36627Build system type: $build
36628
36629 Option Value
36630-------------------------------------------------------------------------------
36631Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36632Static libraries --enable-static=$enable_static $libtool_build_static_libs
36633Module support --with-modules=$with_modules $with_modules
36634GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36635Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36636High Dynamic Range Imagery
36637 --enable-hdri=$enable_hdri $enable_hdri
36638
36639Delegate Configuration:
36640BZLIB --with-bzlib=$with_bzlib $have_bzlib
36641Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036642Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036643DJVU --with-djvu=$with_djvu $have_djvu
36644DPS --with-dps=$with_dps $have_dps
36645FFTW --with-fftw=$with_fftw $have_fftw
36646FlashPIX --with-fpx=$with_fpx $have_fpx
36647FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36648FreeType --with-freetype=$with_freetype $have_freetype
36649GhostPCL None $PCLDelegate ($PCLVersion)
36650GhostXPS None $XPSDelegate ($XPSVersion)
36651Ghostscript None $PSDelegate ($GSVersion)
36652Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36653Ghostscript lib --with-gslib=$with_gslib $have_gslib
36654Graphviz --with-gvc=$with_gvc $have_gvc
36655JBIG --with-jbig=$with_jbig $have_jbig
36656JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36657JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036658LCMS v1 --with-lcms=$with_lcms $have_lcms
36659LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036660LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036661LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036662Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36663OpenEXR --with-openexr=$with_openexr $have_openexr
36664PERL --with-perl=$with_perl $have_perl
36665PNG --with-png=$with_png $have_png
36666RSVG --with-rsvg=$with_rsvg $have_rsvg
36667TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000036668WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000036669Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36670WMF --with-wmf=$with_wmf $have_wmf
36671X11 --with-x=$with_x $have_x
36672XML --with-xml=$with_xml $have_xml
36673ZLIB --with-zlib=$with_zlib $have_zlib
36674
36675X11 Configuration:
36676 X_CFLAGS = $X_CFLAGS
36677 X_PRE_LIBS = $X_PRE_LIBS
36678 X_LIBS = $X_LIBS
36679 X_EXTRA_LIBS = $X_EXTRA_LIBS
36680
36681Options used to compile and link:
36682 PREFIX = $PREFIX_DIR
36683 EXEC-PREFIX = $EXEC_PREFIX_DIR
36684 VERSION = $PACKAGE_VERSION
36685 CC = $CC
36686 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036687 CPPFLAGS = $MAGICK_CPPFLAGS
36688 PCFLAGS = $MAGICK_PCFLAGS
36689 DEFS = $DEFS
36690 LDFLAGS = $LDFLAGS
36691 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36692 LIBS = $MAGICK_LIBS
36693 CXX = $CXX
36694 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036695 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036696" >&6; }